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

See Also:

AWS * API Reference

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

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

Constraints:

  • Must be 1 to 255 letters, numbers, * or hyphens.

  • First character must be a letter

  • *

    Can't end with a hyphen or contain two consecutive hyphens

  • *

    Must not be "Default"

Example: * mysecuritygroup

*/ inline const Aws::String& GetDBSecurityGroupName() const{ return m_dBSecurityGroupName; } /** *

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

Constraints:

  • Must be 1 to 255 letters, numbers, * or hyphens.

  • First character must be a letter

  • *

    Can't end with a hyphen or contain two consecutive hyphens

  • *

    Must not be "Default"

Example: * mysecuritygroup

*/ inline bool DBSecurityGroupNameHasBeenSet() const { return m_dBSecurityGroupNameHasBeenSet; } /** *

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

Constraints:

  • Must be 1 to 255 letters, numbers, * or hyphens.

  • First character must be a letter

  • *

    Can't end with a hyphen or contain two consecutive hyphens

  • *

    Must not be "Default"

Example: * mysecuritygroup

*/ inline void SetDBSecurityGroupName(const Aws::String& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = value; } /** *

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

Constraints:

  • Must be 1 to 255 letters, numbers, * or hyphens.

  • First character must be a letter

  • *

    Can't end with a hyphen or contain two consecutive hyphens

  • *

    Must not be "Default"

Example: * mysecuritygroup

*/ inline void SetDBSecurityGroupName(Aws::String&& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = std::move(value); } /** *

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

Constraints:

  • Must be 1 to 255 letters, numbers, * or hyphens.

  • First character must be a letter

  • *

    Can't end with a hyphen or contain two consecutive hyphens

  • *

    Must not be "Default"

Example: * mysecuritygroup

*/ inline void SetDBSecurityGroupName(const char* value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName.assign(value); } /** *

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

Constraints:

  • Must be 1 to 255 letters, numbers, * or hyphens.

  • First character must be a letter

  • *

    Can't end with a hyphen or contain two consecutive hyphens

  • *

    Must not be "Default"

Example: * mysecuritygroup

*/ inline CreateDBSecurityGroupRequest& WithDBSecurityGroupName(const Aws::String& value) { SetDBSecurityGroupName(value); return *this;} /** *

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

Constraints:

  • Must be 1 to 255 letters, numbers, * or hyphens.

  • First character must be a letter

  • *

    Can't end with a hyphen or contain two consecutive hyphens

  • *

    Must not be "Default"

Example: * mysecuritygroup

*/ inline CreateDBSecurityGroupRequest& WithDBSecurityGroupName(Aws::String&& value) { SetDBSecurityGroupName(std::move(value)); return *this;} /** *

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

Constraints:

  • Must be 1 to 255 letters, numbers, * or hyphens.

  • First character must be a letter

  • *

    Can't end with a hyphen or contain two consecutive hyphens

  • *

    Must not be "Default"

Example: * mysecuritygroup

*/ inline CreateDBSecurityGroupRequest& WithDBSecurityGroupName(const char* value) { SetDBSecurityGroupName(value); return *this;} /** *

The description for the DB security group.

*/ inline const Aws::String& GetDBSecurityGroupDescription() const{ return m_dBSecurityGroupDescription; } /** *

The description for the DB security group.

*/ inline bool DBSecurityGroupDescriptionHasBeenSet() const { return m_dBSecurityGroupDescriptionHasBeenSet; } /** *

The description for the DB security group.

*/ inline void SetDBSecurityGroupDescription(const Aws::String& value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription = value; } /** *

The description for the DB security group.

*/ inline void SetDBSecurityGroupDescription(Aws::String&& value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription = std::move(value); } /** *

The description for the DB security group.

*/ inline void SetDBSecurityGroupDescription(const char* value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription.assign(value); } /** *

The description for the DB security group.

*/ inline CreateDBSecurityGroupRequest& WithDBSecurityGroupDescription(const Aws::String& value) { SetDBSecurityGroupDescription(value); return *this;} /** *

The description for the DB security group.

*/ inline CreateDBSecurityGroupRequest& WithDBSecurityGroupDescription(Aws::String&& value) { SetDBSecurityGroupDescription(std::move(value)); return *this;} /** *

The description for the DB security group.

*/ inline CreateDBSecurityGroupRequest& WithDBSecurityGroupDescription(const char* value) { SetDBSecurityGroupDescription(value); return *this;} /** *

Tags to assign to the DB security group.

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

Tags to assign to the DB security group.

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

Tags to assign to the DB security group.

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

Tags to assign to the DB security group.

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

Tags to assign to the DB security group.

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

Tags to assign to the DB security group.

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

Tags to assign to the DB security group.

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

Tags to assign to the DB security group.

*/ inline CreateDBSecurityGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_dBSecurityGroupName; bool m_dBSecurityGroupNameHasBeenSet = false; Aws::String m_dBSecurityGroupDescription; bool m_dBSecurityGroupDescriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws