/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace EMR { namespace Model { /** *

The input to the SetVisibleToAllUsers action.

See Also:

AWS * API Reference

*/ class AWS_EMR_API SetVisibleToAllUsersRequest : public EMRRequest { public: SetVisibleToAllUsersRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SetVisibleToAllUsers"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique identifier of the job flow (cluster).

*/ inline const Aws::Vector& GetJobFlowIds() const{ return m_jobFlowIds; } /** *

The unique identifier of the job flow (cluster).

*/ inline bool JobFlowIdsHasBeenSet() const { return m_jobFlowIdsHasBeenSet; } /** *

The unique identifier of the job flow (cluster).

*/ inline void SetJobFlowIds(const Aws::Vector& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = value; } /** *

The unique identifier of the job flow (cluster).

*/ inline void SetJobFlowIds(Aws::Vector&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = std::move(value); } /** *

The unique identifier of the job flow (cluster).

*/ inline SetVisibleToAllUsersRequest& WithJobFlowIds(const Aws::Vector& value) { SetJobFlowIds(value); return *this;} /** *

The unique identifier of the job flow (cluster).

*/ inline SetVisibleToAllUsersRequest& WithJobFlowIds(Aws::Vector&& value) { SetJobFlowIds(std::move(value)); return *this;} /** *

The unique identifier of the job flow (cluster).

*/ inline SetVisibleToAllUsersRequest& AddJobFlowIds(const Aws::String& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; } /** *

The unique identifier of the job flow (cluster).

*/ inline SetVisibleToAllUsersRequest& AddJobFlowIds(Aws::String&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(std::move(value)); return *this; } /** *

The unique identifier of the job flow (cluster).

*/ inline SetVisibleToAllUsersRequest& AddJobFlowIds(const char* value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; } /** *

A value of true indicates that all IAM users in the AWS account * can perform cluster actions if they have the proper IAM policy permissions. This * is the default. A value of false indicates that only the IAM user * who created the cluster can perform actions.

*/ inline bool GetVisibleToAllUsers() const{ return m_visibleToAllUsers; } /** *

A value of true indicates that all IAM users in the AWS account * can perform cluster actions if they have the proper IAM policy permissions. This * is the default. A value of false indicates that only the IAM user * who created the cluster can perform actions.

*/ inline bool VisibleToAllUsersHasBeenSet() const { return m_visibleToAllUsersHasBeenSet; } /** *

A value of true indicates that all IAM users in the AWS account * can perform cluster actions if they have the proper IAM policy permissions. This * is the default. A value of false indicates that only the IAM user * who created the cluster can perform actions.

*/ inline void SetVisibleToAllUsers(bool value) { m_visibleToAllUsersHasBeenSet = true; m_visibleToAllUsers = value; } /** *

A value of true indicates that all IAM users in the AWS account * can perform cluster actions if they have the proper IAM policy permissions. This * is the default. A value of false indicates that only the IAM user * who created the cluster can perform actions.

*/ inline SetVisibleToAllUsersRequest& WithVisibleToAllUsers(bool value) { SetVisibleToAllUsers(value); return *this;} private: Aws::Vector m_jobFlowIds; bool m_jobFlowIdsHasBeenSet; bool m_visibleToAllUsers; bool m_visibleToAllUsersHasBeenSet; }; } // namespace Model } // namespace EMR } // namespace Aws