/** * 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 SetVisibleToAllUsersRequest : public EMRRequest { public: AWS_EMR_API 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_EMR_API Aws::String SerializePayload() const override; AWS_EMR_API 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 an IAM principal in the Amazon * Web Services account can perform Amazon EMR actions on the cluster that the IAM * policies attached to the principal allow. A value of false * indicates that only the IAM principal that created the cluster and the Amazon * Web Services root user can perform Amazon EMR actions on the cluster.

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

A value of true indicates that an IAM principal in the Amazon * Web Services account can perform Amazon EMR actions on the cluster that the IAM * policies attached to the principal allow. A value of false * indicates that only the IAM principal that created the cluster and the Amazon * Web Services root user can perform Amazon EMR actions on the cluster.

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

A value of true indicates that an IAM principal in the Amazon * Web Services account can perform Amazon EMR actions on the cluster that the IAM * policies attached to the principal allow. A value of false * indicates that only the IAM principal that created the cluster and the Amazon * Web Services root user can perform Amazon EMR actions on the cluster.

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

A value of true indicates that an IAM principal in the Amazon * Web Services account can perform Amazon EMR actions on the cluster that the IAM * policies attached to the principal allow. A value of false * indicates that only the IAM principal that created the cluster and the Amazon * Web Services root user can perform Amazon EMR actions on the cluster.

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