/** * 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 RevokeDBSecurityGroupIngressRequest : public RDSRequest { public: AWS_RDS_API RevokeDBSecurityGroupIngressRequest(); // 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 "RevokeDBSecurityGroupIngress"; } 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 revoke ingress from.

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

The name of the DB security group to revoke ingress from.

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

The name of the DB security group to revoke ingress from.

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

The name of the DB security group to revoke ingress from.

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

The name of the DB security group to revoke ingress from.

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

The name of the DB security group to revoke ingress from.

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

The name of the DB security group to revoke ingress from.

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

The name of the DB security group to revoke ingress from.

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

The IP range to revoke access from. Must be a valid CIDR range. If * CIDRIP is specified, EC2SecurityGroupName, * EC2SecurityGroupId and EC2SecurityGroupOwnerId can't * be provided.

*/ inline const Aws::String& GetCIDRIP() const{ return m_cIDRIP; } /** *

The IP range to revoke access from. Must be a valid CIDR range. If * CIDRIP is specified, EC2SecurityGroupName, * EC2SecurityGroupId and EC2SecurityGroupOwnerId can't * be provided.

*/ inline bool CIDRIPHasBeenSet() const { return m_cIDRIPHasBeenSet; } /** *

The IP range to revoke access from. Must be a valid CIDR range. If * CIDRIP is specified, EC2SecurityGroupName, * EC2SecurityGroupId and EC2SecurityGroupOwnerId can't * be provided.

*/ inline void SetCIDRIP(const Aws::String& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; } /** *

The IP range to revoke access from. Must be a valid CIDR range. If * CIDRIP is specified, EC2SecurityGroupName, * EC2SecurityGroupId and EC2SecurityGroupOwnerId can't * be provided.

*/ inline void SetCIDRIP(Aws::String&& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = std::move(value); } /** *

The IP range to revoke access from. Must be a valid CIDR range. If * CIDRIP is specified, EC2SecurityGroupName, * EC2SecurityGroupId and EC2SecurityGroupOwnerId can't * be provided.

*/ inline void SetCIDRIP(const char* value) { m_cIDRIPHasBeenSet = true; m_cIDRIP.assign(value); } /** *

The IP range to revoke access from. Must be a valid CIDR range. If * CIDRIP is specified, EC2SecurityGroupName, * EC2SecurityGroupId and EC2SecurityGroupOwnerId can't * be provided.

*/ inline RevokeDBSecurityGroupIngressRequest& WithCIDRIP(const Aws::String& value) { SetCIDRIP(value); return *this;} /** *

The IP range to revoke access from. Must be a valid CIDR range. If * CIDRIP is specified, EC2SecurityGroupName, * EC2SecurityGroupId and EC2SecurityGroupOwnerId can't * be provided.

*/ inline RevokeDBSecurityGroupIngressRequest& WithCIDRIP(Aws::String&& value) { SetCIDRIP(std::move(value)); return *this;} /** *

The IP range to revoke access from. Must be a valid CIDR range. If * CIDRIP is specified, EC2SecurityGroupName, * EC2SecurityGroupId and EC2SecurityGroupOwnerId can't * be provided.

*/ inline RevokeDBSecurityGroupIngressRequest& WithCIDRIP(const char* value) { SetCIDRIP(value); return *this;} /** *

The name of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; } /** *

The name of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline bool EC2SecurityGroupNameHasBeenSet() const { return m_eC2SecurityGroupNameHasBeenSet; } /** *

The name of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; } /** *

The name of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = std::move(value); } /** *

The name of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); } /** *

The name of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline RevokeDBSecurityGroupIngressRequest& WithEC2SecurityGroupName(const Aws::String& value) { SetEC2SecurityGroupName(value); return *this;} /** *

The name of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline RevokeDBSecurityGroupIngressRequest& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(std::move(value)); return *this;} /** *

The name of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline RevokeDBSecurityGroupIngressRequest& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;} /** *

The id of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline const Aws::String& GetEC2SecurityGroupId() const{ return m_eC2SecurityGroupId; } /** *

The id of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline bool EC2SecurityGroupIdHasBeenSet() const { return m_eC2SecurityGroupIdHasBeenSet; } /** *

The id of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline void SetEC2SecurityGroupId(const Aws::String& value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId = value; } /** *

The id of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline void SetEC2SecurityGroupId(Aws::String&& value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId = std::move(value); } /** *

The id of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline void SetEC2SecurityGroupId(const char* value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId.assign(value); } /** *

The id of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline RevokeDBSecurityGroupIngressRequest& WithEC2SecurityGroupId(const Aws::String& value) { SetEC2SecurityGroupId(value); return *this;} /** *

The id of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline RevokeDBSecurityGroupIngressRequest& WithEC2SecurityGroupId(Aws::String&& value) { SetEC2SecurityGroupId(std::move(value)); return *this;} /** *

The id of the EC2 security group to revoke access from. For VPC DB security * groups, EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline RevokeDBSecurityGroupIngressRequest& WithEC2SecurityGroupId(const char* value) { SetEC2SecurityGroupId(value); return *this;} /** *

The Amazon Web Services account number of the owner of the EC2 security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID isn't an acceptable value. For VPC DB security groups, * EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; } /** *

The Amazon Web Services account number of the owner of the EC2 security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID isn't an acceptable value. For VPC DB security groups, * EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; } /** *

The Amazon Web Services account number of the owner of the EC2 security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID isn't an acceptable value. For VPC DB security groups, * EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; } /** *

The Amazon Web Services account number of the owner of the EC2 security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID isn't an acceptable value. For VPC DB security groups, * EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = std::move(value); } /** *

The Amazon Web Services account number of the owner of the EC2 security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID isn't an acceptable value. For VPC DB security groups, * EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); } /** *

The Amazon Web Services account number of the owner of the EC2 security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID isn't an acceptable value. For VPC DB security groups, * EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline RevokeDBSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const Aws::String& value) { SetEC2SecurityGroupOwnerId(value); return *this;} /** *

The Amazon Web Services account number of the owner of the EC2 security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID isn't an acceptable value. For VPC DB security groups, * EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline RevokeDBSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(std::move(value)); return *this;} /** *

The Amazon Web Services account number of the owner of the EC2 security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID isn't an acceptable value. For VPC DB security groups, * EC2SecurityGroupId must be provided. Otherwise, * EC2SecurityGroupOwnerId and either EC2SecurityGroupName or * EC2SecurityGroupId must be provided.

*/ inline RevokeDBSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;} private: Aws::String m_dBSecurityGroupName; bool m_dBSecurityGroupNameHasBeenSet = false; Aws::String m_cIDRIP; bool m_cIDRIPHasBeenSet = false; Aws::String m_eC2SecurityGroupName; bool m_eC2SecurityGroupNameHasBeenSet = false; Aws::String m_eC2SecurityGroupId; bool m_eC2SecurityGroupIdHasBeenSet = false; Aws::String m_eC2SecurityGroupOwnerId; bool m_eC2SecurityGroupOwnerIdHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws