/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Neptune { namespace Model { /** */ class CreateDBSubnetGroupRequest : public NeptuneRequest { public: AWS_NEPTUNE_API CreateDBSubnetGroupRequest(); // 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 "CreateDBSubnetGroup"; } 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.

Constraints: Must contain no more than 255 letters, numbers, * periods, underscores, spaces, or hyphens. 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.

Constraints: Must contain no more than 255 letters, numbers, * periods, underscores, spaces, or hyphens. 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.

Constraints: Must contain no more than 255 letters, numbers, * periods, underscores, spaces, or hyphens. 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.

Constraints: Must contain no more than 255 letters, numbers, * periods, underscores, spaces, or hyphens. 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.

Constraints: Must contain no more than 255 letters, numbers, * periods, underscores, spaces, or hyphens. 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.

Constraints: Must contain no more than 255 letters, numbers, * periods, underscores, spaces, or hyphens. Must not be default.

Example: * mySubnetgroup

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

The name for the DB subnet group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 letters, numbers, * periods, underscores, spaces, or hyphens. Must not be default.

Example: * mySubnetgroup

*/ inline CreateDBSubnetGroupRequest& 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.

Constraints: Must contain no more than 255 letters, numbers, * periods, underscores, spaces, or hyphens. Must not be default.

Example: * mySubnetgroup

*/ inline CreateDBSubnetGroupRequest& 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 CreateDBSubnetGroupRequest& WithDBSubnetGroupDescription(const Aws::String& value) { SetDBSubnetGroupDescription(value); return *this;} /** *

The description for the DB subnet group.

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

The description for the DB subnet group.

*/ inline CreateDBSubnetGroupRequest& 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 CreateDBSubnetGroupRequest& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

The EC2 Subnet IDs for the DB subnet group.

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

The EC2 Subnet IDs for the DB subnet group.

*/ inline CreateDBSubnetGroupRequest& 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 CreateDBSubnetGroupRequest& 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 CreateDBSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The tags to be assigned to the new DB subnet group.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags to be assigned to the new DB subnet group.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags to be assigned to the new DB subnet group.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags to be assigned to the new DB subnet group.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags to be assigned to the new DB subnet group.

*/ inline CreateDBSubnetGroupRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags to be assigned to the new DB subnet group.

*/ inline CreateDBSubnetGroupRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags to be assigned to the new DB subnet group.

*/ inline CreateDBSubnetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags to be assigned to the new DB subnet group.

*/ inline CreateDBSubnetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(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; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws