/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Neptune { namespace Model { /** */ class AddRoleToDBClusterRequest : public NeptuneRequest { public: AWS_NEPTUNE_API AddRoleToDBClusterRequest(); // 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 "AddRoleToDBCluster"; } AWS_NEPTUNE_API Aws::String SerializePayload() const override; protected: AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the DB cluster to associate the IAM role with.

*/ inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; } /** *

The name of the DB cluster to associate the IAM role with.

*/ inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; } /** *

The name of the DB cluster to associate the IAM role with.

*/ inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; } /** *

The name of the DB cluster to associate the IAM role with.

*/ inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); } /** *

The name of the DB cluster to associate the IAM role with.

*/ inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); } /** *

The name of the DB cluster to associate the IAM role with.

*/ inline AddRoleToDBClusterRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;} /** *

The name of the DB cluster to associate the IAM role with.

*/ inline AddRoleToDBClusterRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;} /** *

The name of the DB cluster to associate the IAM role with.

*/ inline AddRoleToDBClusterRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role to associate with the Neptune * DB cluster, for example * arn:aws:iam::123456789012:role/NeptuneAccessRole.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of the IAM role to associate with the Neptune * DB cluster, for example * arn:aws:iam::123456789012:role/NeptuneAccessRole.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAM role to associate with the Neptune * DB cluster, for example * arn:aws:iam::123456789012:role/NeptuneAccessRole.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAM role to associate with the Neptune * DB cluster, for example * arn:aws:iam::123456789012:role/NeptuneAccessRole.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM role to associate with the Neptune * DB cluster, for example * arn:aws:iam::123456789012:role/NeptuneAccessRole.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM role to associate with the Neptune * DB cluster, for example * arn:aws:iam::123456789012:role/NeptuneAccessRole.

*/ inline AddRoleToDBClusterRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role to associate with the Neptune * DB cluster, for example * arn:aws:iam::123456789012:role/NeptuneAccessRole.

*/ inline AddRoleToDBClusterRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role to associate with the Neptune * DB cluster, for example * arn:aws:iam::123456789012:role/NeptuneAccessRole.

*/ inline AddRoleToDBClusterRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The name of the feature for the Neptune DB cluster that the IAM role is to be * associated with. For the list of supported feature names, see DBEngineVersion.

*/ inline const Aws::String& GetFeatureName() const{ return m_featureName; } /** *

The name of the feature for the Neptune DB cluster that the IAM role is to be * associated with. For the list of supported feature names, see DBEngineVersion.

*/ inline bool FeatureNameHasBeenSet() const { return m_featureNameHasBeenSet; } /** *

The name of the feature for the Neptune DB cluster that the IAM role is to be * associated with. For the list of supported feature names, see DBEngineVersion.

*/ inline void SetFeatureName(const Aws::String& value) { m_featureNameHasBeenSet = true; m_featureName = value; } /** *

The name of the feature for the Neptune DB cluster that the IAM role is to be * associated with. For the list of supported feature names, see DBEngineVersion.

*/ inline void SetFeatureName(Aws::String&& value) { m_featureNameHasBeenSet = true; m_featureName = std::move(value); } /** *

The name of the feature for the Neptune DB cluster that the IAM role is to be * associated with. For the list of supported feature names, see DBEngineVersion.

*/ inline void SetFeatureName(const char* value) { m_featureNameHasBeenSet = true; m_featureName.assign(value); } /** *

The name of the feature for the Neptune DB cluster that the IAM role is to be * associated with. For the list of supported feature names, see DBEngineVersion.

*/ inline AddRoleToDBClusterRequest& WithFeatureName(const Aws::String& value) { SetFeatureName(value); return *this;} /** *

The name of the feature for the Neptune DB cluster that the IAM role is to be * associated with. For the list of supported feature names, see DBEngineVersion.

*/ inline AddRoleToDBClusterRequest& WithFeatureName(Aws::String&& value) { SetFeatureName(std::move(value)); return *this;} /** *

The name of the feature for the Neptune DB cluster that the IAM role is to be * associated with. For the list of supported feature names, see DBEngineVersion.

*/ inline AddRoleToDBClusterRequest& WithFeatureName(const char* value) { SetFeatureName(value); return *this;} private: Aws::String m_dBClusterIdentifier; bool m_dBClusterIdentifierHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_featureName; bool m_featureNameHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws