/** * 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 RDS { namespace Model { /** */ class AddRoleToDBInstanceRequest : public RDSRequest { public: AWS_RDS_API AddRoleToDBInstanceRequest(); // 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 "AddRoleToDBInstance"; } AWS_RDS_API Aws::String SerializePayload() const override; protected: AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

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

*/ inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; } /** *

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

*/ inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; } /** *

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

*/ inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; } /** *

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

*/ inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); } /** *

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

*/ inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); } /** *

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

*/ inline AddRoleToDBInstanceRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;} /** *

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

*/ inline AddRoleToDBInstanceRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;} /** *

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

*/ inline AddRoleToDBInstanceRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;} /** *

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

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

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

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

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

*/ 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 DB * instance, for example * arn:aws:iam::123456789012:role/AccessRole.

*/ 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 DB * instance, for example * arn:aws:iam::123456789012:role/AccessRole.

*/ 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 DB * instance, for example * arn:aws:iam::123456789012:role/AccessRole.

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

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

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

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

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

The name of the feature for the DB instance that the IAM role is to be * associated with. For information about supported feature names, see * DBEngineVersion.

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

The name of the feature for the DB instance that the IAM role is to be * associated with. For information about supported feature names, see * DBEngineVersion.

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

The name of the feature for the DB instance that the IAM role is to be * associated with. For information about 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 DB instance that the IAM role is to be * associated with. For information about 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 DB instance that the IAM role is to be * associated with. For information about 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 DB instance that the IAM role is to be * associated with. For information about supported feature names, see * DBEngineVersion.

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

The name of the feature for the DB instance that the IAM role is to be * associated with. For information about supported feature names, see * DBEngineVersion.

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

The name of the feature for the DB instance that the IAM role is to be * associated with. For information about supported feature names, see * DBEngineVersion.

*/ inline AddRoleToDBInstanceRequest& WithFeatureName(const char* value) { SetFeatureName(value); return *this;} private: Aws::String m_dBInstanceIdentifier; bool m_dBInstanceIdentifierHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_featureName; bool m_featureNameHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws