/** * 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 Redshift { namespace Model { /** *

See Also:

AWS * API Reference

*/ class ModifyClusterIamRolesRequest : public RedshiftRequest { public: AWS_REDSHIFT_API ModifyClusterIamRolesRequest(); // 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 "ModifyClusterIamRoles"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The unique identifier of the cluster for which you want to associate or * disassociate IAM roles.

*/ inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; } /** *

The unique identifier of the cluster for which you want to associate or * disassociate IAM roles.

*/ inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; } /** *

The unique identifier of the cluster for which you want to associate or * disassociate IAM roles.

*/ inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; } /** *

The unique identifier of the cluster for which you want to associate or * disassociate IAM roles.

*/ inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); } /** *

The unique identifier of the cluster for which you want to associate or * disassociate IAM roles.

*/ inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); } /** *

The unique identifier of the cluster for which you want to associate or * disassociate IAM roles.

*/ inline ModifyClusterIamRolesRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;} /** *

The unique identifier of the cluster for which you want to associate or * disassociate IAM roles.

*/ inline ModifyClusterIamRolesRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;} /** *

The unique identifier of the cluster for which you want to associate or * disassociate IAM roles.

*/ inline ModifyClusterIamRolesRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;} /** *

Zero or more IAM roles to associate with the cluster. The roles must be in * their Amazon Resource Name (ARN) format.

*/ inline const Aws::Vector& GetAddIamRoles() const{ return m_addIamRoles; } /** *

Zero or more IAM roles to associate with the cluster. The roles must be in * their Amazon Resource Name (ARN) format.

*/ inline bool AddIamRolesHasBeenSet() const { return m_addIamRolesHasBeenSet; } /** *

Zero or more IAM roles to associate with the cluster. The roles must be in * their Amazon Resource Name (ARN) format.

*/ inline void SetAddIamRoles(const Aws::Vector& value) { m_addIamRolesHasBeenSet = true; m_addIamRoles = value; } /** *

Zero or more IAM roles to associate with the cluster. The roles must be in * their Amazon Resource Name (ARN) format.

*/ inline void SetAddIamRoles(Aws::Vector&& value) { m_addIamRolesHasBeenSet = true; m_addIamRoles = std::move(value); } /** *

Zero or more IAM roles to associate with the cluster. The roles must be in * their Amazon Resource Name (ARN) format.

*/ inline ModifyClusterIamRolesRequest& WithAddIamRoles(const Aws::Vector& value) { SetAddIamRoles(value); return *this;} /** *

Zero or more IAM roles to associate with the cluster. The roles must be in * their Amazon Resource Name (ARN) format.

*/ inline ModifyClusterIamRolesRequest& WithAddIamRoles(Aws::Vector&& value) { SetAddIamRoles(std::move(value)); return *this;} /** *

Zero or more IAM roles to associate with the cluster. The roles must be in * their Amazon Resource Name (ARN) format.

*/ inline ModifyClusterIamRolesRequest& AddAddIamRoles(const Aws::String& value) { m_addIamRolesHasBeenSet = true; m_addIamRoles.push_back(value); return *this; } /** *

Zero or more IAM roles to associate with the cluster. The roles must be in * their Amazon Resource Name (ARN) format.

*/ inline ModifyClusterIamRolesRequest& AddAddIamRoles(Aws::String&& value) { m_addIamRolesHasBeenSet = true; m_addIamRoles.push_back(std::move(value)); return *this; } /** *

Zero or more IAM roles to associate with the cluster. The roles must be in * their Amazon Resource Name (ARN) format.

*/ inline ModifyClusterIamRolesRequest& AddAddIamRoles(const char* value) { m_addIamRolesHasBeenSet = true; m_addIamRoles.push_back(value); return *this; } /** *

Zero or more IAM roles in ARN format to disassociate from the cluster.

*/ inline const Aws::Vector& GetRemoveIamRoles() const{ return m_removeIamRoles; } /** *

Zero or more IAM roles in ARN format to disassociate from the cluster.

*/ inline bool RemoveIamRolesHasBeenSet() const { return m_removeIamRolesHasBeenSet; } /** *

Zero or more IAM roles in ARN format to disassociate from the cluster.

*/ inline void SetRemoveIamRoles(const Aws::Vector& value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles = value; } /** *

Zero or more IAM roles in ARN format to disassociate from the cluster.

*/ inline void SetRemoveIamRoles(Aws::Vector&& value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles = std::move(value); } /** *

Zero or more IAM roles in ARN format to disassociate from the cluster.

*/ inline ModifyClusterIamRolesRequest& WithRemoveIamRoles(const Aws::Vector& value) { SetRemoveIamRoles(value); return *this;} /** *

Zero or more IAM roles in ARN format to disassociate from the cluster.

*/ inline ModifyClusterIamRolesRequest& WithRemoveIamRoles(Aws::Vector&& value) { SetRemoveIamRoles(std::move(value)); return *this;} /** *

Zero or more IAM roles in ARN format to disassociate from the cluster.

*/ inline ModifyClusterIamRolesRequest& AddRemoveIamRoles(const Aws::String& value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles.push_back(value); return *this; } /** *

Zero or more IAM roles in ARN format to disassociate from the cluster.

*/ inline ModifyClusterIamRolesRequest& AddRemoveIamRoles(Aws::String&& value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles.push_back(std::move(value)); return *this; } /** *

Zero or more IAM roles in ARN format to disassociate from the cluster.

*/ inline ModifyClusterIamRolesRequest& AddRemoveIamRoles(const char* value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles.push_back(value); return *this; } /** *

The Amazon Resource Name (ARN) for the IAM role that was set as default for * the cluster when the cluster was last modified.

*/ inline const Aws::String& GetDefaultIamRoleArn() const{ return m_defaultIamRoleArn; } /** *

The Amazon Resource Name (ARN) for the IAM role that was set as default for * the cluster when the cluster was last modified.

*/ inline bool DefaultIamRoleArnHasBeenSet() const { return m_defaultIamRoleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for the IAM role that was set as default for * the cluster when the cluster was last modified.

*/ inline void SetDefaultIamRoleArn(const Aws::String& value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn = value; } /** *

The Amazon Resource Name (ARN) for the IAM role that was set as default for * the cluster when the cluster was last modified.

*/ inline void SetDefaultIamRoleArn(Aws::String&& value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the IAM role that was set as default for * the cluster when the cluster was last modified.

*/ inline void SetDefaultIamRoleArn(const char* value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the IAM role that was set as default for * the cluster when the cluster was last modified.

*/ inline ModifyClusterIamRolesRequest& WithDefaultIamRoleArn(const Aws::String& value) { SetDefaultIamRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the IAM role that was set as default for * the cluster when the cluster was last modified.

*/ inline ModifyClusterIamRolesRequest& WithDefaultIamRoleArn(Aws::String&& value) { SetDefaultIamRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the IAM role that was set as default for * the cluster when the cluster was last modified.

*/ inline ModifyClusterIamRolesRequest& WithDefaultIamRoleArn(const char* value) { SetDefaultIamRoleArn(value); return *this;} private: Aws::String m_clusterIdentifier; bool m_clusterIdentifierHasBeenSet = false; Aws::Vector m_addIamRoles; bool m_addIamRolesHasBeenSet = false; Aws::Vector m_removeIamRoles; bool m_removeIamRolesHasBeenSet = false; Aws::String m_defaultIamRoleArn; bool m_defaultIamRoleArnHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws