/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace RDS { namespace Model { /** *

See Also:

AWS * API Reference

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

The name of the DB security group to delete.

You can't delete * the default DB security group.

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"

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

The name of the DB security group to delete.

You can't delete * the default DB security group.

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"

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

The name of the DB security group to delete.

You can't delete * the default DB security group.

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"

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

The name of the DB security group to delete.

You can't delete * the default DB security group.

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"

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

The name of the DB security group to delete.

You can't delete * the default DB security group.

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"

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

The name of the DB security group to delete.

You can't delete * the default DB security group.

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"

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

The name of the DB security group to delete.

You can't delete * the default DB security group.

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"

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

The name of the DB security group to delete.

You can't delete * the default DB security group.

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"

*/ inline DeleteDBSecurityGroupRequest& WithDBSecurityGroupName(const char* value) { SetDBSecurityGroupName(value); return *this;} private: Aws::String m_dBSecurityGroupName; bool m_dBSecurityGroupNameHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws