/** * 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 CreateClusterSecurityGroupRequest : public RedshiftRequest { public: AWS_REDSHIFT_API CreateClusterSecurityGroupRequest(); // 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 "CreateClusterSecurityGroup"; } 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 security 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 security groups that are * created by your Amazon Web Services account.

Example: * examplesecuritygroup

*/ inline const Aws::String& GetClusterSecurityGroupName() const{ return m_clusterSecurityGroupName; } /** *

The name for the security 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 security groups that are * created by your Amazon Web Services account.

Example: * examplesecuritygroup

*/ inline bool ClusterSecurityGroupNameHasBeenSet() const { return m_clusterSecurityGroupNameHasBeenSet; } /** *

The name for the security 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 security groups that are * created by your Amazon Web Services account.

Example: * examplesecuritygroup

*/ inline void SetClusterSecurityGroupName(const Aws::String& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = value; } /** *

The name for the security 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 security groups that are * created by your Amazon Web Services account.

Example: * examplesecuritygroup

*/ inline void SetClusterSecurityGroupName(Aws::String&& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = std::move(value); } /** *

The name for the security 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 security groups that are * created by your Amazon Web Services account.

Example: * examplesecuritygroup

*/ inline void SetClusterSecurityGroupName(const char* value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName.assign(value); } /** *

The name for the security 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 security groups that are * created by your Amazon Web Services account.

Example: * examplesecuritygroup

*/ inline CreateClusterSecurityGroupRequest& WithClusterSecurityGroupName(const Aws::String& value) { SetClusterSecurityGroupName(value); return *this;} /** *

The name for the security 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 security groups that are * created by your Amazon Web Services account.

Example: * examplesecuritygroup

*/ inline CreateClusterSecurityGroupRequest& WithClusterSecurityGroupName(Aws::String&& value) { SetClusterSecurityGroupName(std::move(value)); return *this;} /** *

The name for the security 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 security groups that are * created by your Amazon Web Services account.

Example: * examplesecuritygroup

*/ inline CreateClusterSecurityGroupRequest& WithClusterSecurityGroupName(const char* value) { SetClusterSecurityGroupName(value); return *this;} /** *

A description for the security group.

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

A description for the security group.

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

A description for the security group.

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

A description for the security group.

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

A description for the security group.

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

A description for the security group.

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

A description for the security group.

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

A description for the security group.

*/ inline CreateClusterSecurityGroupRequest& WithDescription(const char* value) { SetDescription(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 CreateClusterSecurityGroupRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tag instances.

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

A list of tag instances.

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

A list of tag instances.

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