/** * 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 Neptune { namespace Model { /** */ class ModifyDBSubnetGroupRequest : public NeptuneRequest { public: AWS_NEPTUNE_API ModifyDBSubnetGroupRequest(); // 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 "ModifyDBSubnetGroup"; } AWS_NEPTUNE_API Aws::String SerializePayload() const override; protected: AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name for the DB subnet group. This value is stored as a lowercase string. * You can't modify the default subnet group.

Constraints: Must match the * name of an existing DBSubnetGroup. Must not be default.

Example: * mySubnetgroup

*/ inline const Aws::String& GetDBSubnetGroupName() const{ return m_dBSubnetGroupName; } /** *

The name for the DB subnet group. This value is stored as a lowercase string. * You can't modify the default subnet group.

Constraints: Must match the * name of an existing DBSubnetGroup. Must not be default.

Example: * mySubnetgroup

*/ inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; } /** *

The name for the DB subnet group. This value is stored as a lowercase string. * You can't modify the default subnet group.

Constraints: Must match the * name of an existing DBSubnetGroup. Must not be default.

Example: * mySubnetgroup

*/ inline void SetDBSubnetGroupName(const Aws::String& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; } /** *

The name for the DB subnet group. This value is stored as a lowercase string. * You can't modify the default subnet group.

Constraints: Must match the * name of an existing DBSubnetGroup. Must not be default.

Example: * mySubnetgroup

*/ inline void SetDBSubnetGroupName(Aws::String&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::move(value); } /** *

The name for the DB subnet group. This value is stored as a lowercase string. * You can't modify the default subnet group.

Constraints: Must match the * name of an existing DBSubnetGroup. Must not be default.

Example: * mySubnetgroup

*/ inline void SetDBSubnetGroupName(const char* value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName.assign(value); } /** *

The name for the DB subnet group. This value is stored as a lowercase string. * You can't modify the default subnet group.

Constraints: Must match the * name of an existing DBSubnetGroup. Must not be default.

Example: * mySubnetgroup

*/ inline ModifyDBSubnetGroupRequest& WithDBSubnetGroupName(const Aws::String& value) { SetDBSubnetGroupName(value); return *this;} /** *

The name for the DB subnet group. This value is stored as a lowercase string. * You can't modify the default subnet group.

Constraints: Must match the * name of an existing DBSubnetGroup. Must not be default.

Example: * mySubnetgroup

*/ inline ModifyDBSubnetGroupRequest& WithDBSubnetGroupName(Aws::String&& value) { SetDBSubnetGroupName(std::move(value)); return *this;} /** *

The name for the DB subnet group. This value is stored as a lowercase string. * You can't modify the default subnet group.

Constraints: Must match the * name of an existing DBSubnetGroup. Must not be default.

Example: * mySubnetgroup

*/ inline ModifyDBSubnetGroupRequest& WithDBSubnetGroupName(const char* value) { SetDBSubnetGroupName(value); return *this;} /** *

The description for the DB subnet group.

*/ inline const Aws::String& GetDBSubnetGroupDescription() const{ return m_dBSubnetGroupDescription; } /** *

The description for the DB subnet group.

*/ inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; } /** *

The description for the DB subnet group.

*/ inline void SetDBSubnetGroupDescription(const Aws::String& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; } /** *

The description for the DB subnet group.

*/ inline void SetDBSubnetGroupDescription(Aws::String&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::move(value); } /** *

The description for the DB subnet group.

*/ inline void SetDBSubnetGroupDescription(const char* value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription.assign(value); } /** *

The description for the DB subnet group.

*/ inline ModifyDBSubnetGroupRequest& WithDBSubnetGroupDescription(const Aws::String& value) { SetDBSubnetGroupDescription(value); return *this;} /** *

The description for the DB subnet group.

*/ inline ModifyDBSubnetGroupRequest& WithDBSubnetGroupDescription(Aws::String&& value) { SetDBSubnetGroupDescription(std::move(value)); return *this;} /** *

The description for the DB subnet group.

*/ inline ModifyDBSubnetGroupRequest& WithDBSubnetGroupDescription(const char* value) { SetDBSubnetGroupDescription(value); return *this;} /** *

The EC2 subnet IDs for the DB subnet group.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

The EC2 subnet IDs for the DB subnet group.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

The EC2 subnet IDs for the DB subnet group.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

The EC2 subnet IDs for the DB subnet group.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

The EC2 subnet IDs for the DB subnet group.

*/ inline ModifyDBSubnetGroupRequest& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

The EC2 subnet IDs for the DB subnet group.

*/ inline ModifyDBSubnetGroupRequest& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

The EC2 subnet IDs for the DB subnet group.

*/ inline ModifyDBSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The EC2 subnet IDs for the DB subnet group.

*/ inline ModifyDBSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

The EC2 subnet IDs for the DB subnet group.

*/ inline ModifyDBSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } private: Aws::String m_dBSubnetGroupName; bool m_dBSubnetGroupNameHasBeenSet = false; Aws::String m_dBSubnetGroupDescription; bool m_dBSubnetGroupDescriptionHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws