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

See Also:

AWS * API Reference

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

The name for the subnet group. Amazon Redshift stores the value as a * lowercase string.

Constraints:

  • Must contain no more than * 255 alphanumeric characters or hyphens.

  • Must not be * "Default".

  • Must be unique for all subnet groups that are * created by your Amazon Web Services account.

Example: * examplesubnetgroup

*/ inline const Aws::String& GetClusterSubnetGroupName() const{ return m_clusterSubnetGroupName; } /** *

The name for the subnet group. Amazon Redshift stores the value as a * lowercase string.

Constraints:

  • Must contain no more than * 255 alphanumeric characters or hyphens.

  • Must not be * "Default".

  • Must be unique for all subnet groups that are * created by your Amazon Web Services account.

Example: * examplesubnetgroup

*/ inline bool ClusterSubnetGroupNameHasBeenSet() const { return m_clusterSubnetGroupNameHasBeenSet; } /** *

The name for the subnet group. Amazon Redshift stores the value as a * lowercase string.

Constraints:

  • Must contain no more than * 255 alphanumeric characters or hyphens.

  • Must not be * "Default".

  • Must be unique for all subnet groups that are * created by your Amazon Web Services account.

Example: * examplesubnetgroup

*/ inline void SetClusterSubnetGroupName(const Aws::String& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; } /** *

The name for the subnet group. Amazon Redshift stores the value as a * lowercase string.

Constraints:

  • Must contain no more than * 255 alphanumeric characters or hyphens.

  • Must not be * "Default".

  • Must be unique for all subnet groups that are * created by your Amazon Web Services account.

Example: * examplesubnetgroup

*/ inline void SetClusterSubnetGroupName(Aws::String&& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = std::move(value); } /** *

The name for the subnet group. Amazon Redshift stores the value as a * lowercase string.

Constraints:

  • Must contain no more than * 255 alphanumeric characters or hyphens.

  • Must not be * "Default".

  • Must be unique for all subnet groups that are * created by your Amazon Web Services account.

Example: * examplesubnetgroup

*/ inline void SetClusterSubnetGroupName(const char* value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName.assign(value); } /** *

The name for the subnet group. Amazon Redshift stores the value as a * lowercase string.

Constraints:

  • Must contain no more than * 255 alphanumeric characters or hyphens.

  • Must not be * "Default".

  • Must be unique for all subnet groups that are * created by your Amazon Web Services account.

Example: * examplesubnetgroup

*/ inline CreateClusterSubnetGroupRequest& WithClusterSubnetGroupName(const Aws::String& value) { SetClusterSubnetGroupName(value); return *this;} /** *

The name for the subnet group. Amazon Redshift stores the value as a * lowercase string.

Constraints:

  • Must contain no more than * 255 alphanumeric characters or hyphens.

  • Must not be * "Default".

  • Must be unique for all subnet groups that are * created by your Amazon Web Services account.

Example: * examplesubnetgroup

*/ inline CreateClusterSubnetGroupRequest& WithClusterSubnetGroupName(Aws::String&& value) { SetClusterSubnetGroupName(std::move(value)); return *this;} /** *

The name for the subnet group. Amazon Redshift stores the value as a * lowercase string.

Constraints:

  • Must contain no more than * 255 alphanumeric characters or hyphens.

  • Must not be * "Default".

  • Must be unique for all subnet groups that are * created by your Amazon Web Services account.

Example: * examplesubnetgroup

*/ inline CreateClusterSubnetGroupRequest& WithClusterSubnetGroupName(const char* value) { SetClusterSubnetGroupName(value); return *this;} /** *

A description for the subnet group.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the subnet group.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the subnet group.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the subnet group.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the subnet group.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the subnet group.

*/ inline CreateClusterSubnetGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the subnet group.

*/ inline CreateClusterSubnetGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the subnet group.

*/ inline CreateClusterSubnetGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a * single request.

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

An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a * single request.

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

An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a * single request.

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

An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a * single request.

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

An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a * single request.

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

An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a * single request.

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

An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a * single request.

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

An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a * single request.

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

An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a * single request.

*/ inline CreateClusterSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

A list of tag instances.

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

A list of tag instances.

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

A list of tag instances.

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

A list of tag instances.

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

A list of tag instances.

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

A list of tag instances.

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

A list of tag instances.

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

A list of tag instances.

*/ inline CreateClusterSubnetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_clusterSubnetGroupName; bool m_clusterSubnetGroupNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws