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

See Also:

AWS * API Reference

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

The name of the security Group from which to revoke the ingress rule.

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

The name of the security Group from which to revoke the ingress rule.

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

The name of the security Group from which to revoke the ingress rule.

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

The name of the security Group from which to revoke the ingress rule.

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

The name of the security Group from which to revoke the ingress rule.

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

The name of the security Group from which to revoke the ingress rule.

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

The name of the security Group from which to revoke the ingress rule.

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

The name of the security Group from which to revoke the ingress rule.

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

The IP range for which to revoke access. This range must be a valid Classless * Inter-Domain Routing (CIDR) block of IP addresses. If CIDRIP is * specified, EC2SecurityGroupName and * EC2SecurityGroupOwnerId cannot be provided.

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

The IP range for which to revoke access. This range must be a valid Classless * Inter-Domain Routing (CIDR) block of IP addresses. If CIDRIP is * specified, EC2SecurityGroupName and * EC2SecurityGroupOwnerId cannot be provided.

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

The IP range for which to revoke access. This range must be a valid Classless * Inter-Domain Routing (CIDR) block of IP addresses. If CIDRIP is * specified, EC2SecurityGroupName and * EC2SecurityGroupOwnerId cannot be provided.

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

The IP range for which to revoke access. This range must be a valid Classless * Inter-Domain Routing (CIDR) block of IP addresses. If CIDRIP is * specified, EC2SecurityGroupName and * EC2SecurityGroupOwnerId cannot be provided.

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

The IP range for which to revoke access. This range must be a valid Classless * Inter-Domain Routing (CIDR) block of IP addresses. If CIDRIP is * specified, EC2SecurityGroupName and * EC2SecurityGroupOwnerId cannot be provided.

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

The IP range for which to revoke access. This range must be a valid Classless * Inter-Domain Routing (CIDR) block of IP addresses. If CIDRIP is * specified, EC2SecurityGroupName and * EC2SecurityGroupOwnerId cannot be provided.

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

The IP range for which to revoke access. This range must be a valid Classless * Inter-Domain Routing (CIDR) block of IP addresses. If CIDRIP is * specified, EC2SecurityGroupName and * EC2SecurityGroupOwnerId cannot be provided.

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

The IP range for which to revoke access. This range must be a valid Classless * Inter-Domain Routing (CIDR) block of IP addresses. If CIDRIP is * specified, EC2SecurityGroupName and * EC2SecurityGroupOwnerId cannot be provided.

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

The name of the EC2 Security Group whose access is to be revoked. If * EC2SecurityGroupName is specified, * EC2SecurityGroupOwnerId must also be provided and * CIDRIP cannot be provided.

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

The name of the EC2 Security Group whose access is to be revoked. If * EC2SecurityGroupName is specified, * EC2SecurityGroupOwnerId must also be provided and * CIDRIP cannot be provided.

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

The name of the EC2 Security Group whose access is to be revoked. If * EC2SecurityGroupName is specified, * EC2SecurityGroupOwnerId must also be provided and * CIDRIP cannot be provided.

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

The name of the EC2 Security Group whose access is to be revoked. If * EC2SecurityGroupName is specified, * EC2SecurityGroupOwnerId must also be provided and * CIDRIP cannot be provided.

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

The name of the EC2 Security Group whose access is to be revoked. If * EC2SecurityGroupName is specified, * EC2SecurityGroupOwnerId must also be provided and * CIDRIP cannot be provided.

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

The name of the EC2 Security Group whose access is to be revoked. If * EC2SecurityGroupName is specified, * EC2SecurityGroupOwnerId must also be provided and * CIDRIP cannot be provided.

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

The name of the EC2 Security Group whose access is to be revoked. If * EC2SecurityGroupName is specified, * EC2SecurityGroupOwnerId must also be provided and * CIDRIP cannot be provided.

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

The name of the EC2 Security Group whose access is to be revoked. If * EC2SecurityGroupName is specified, * EC2SecurityGroupOwnerId must also be provided and * CIDRIP cannot be provided.

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

The Amazon Web Services account number of the owner of the security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID is not an acceptable value. If * EC2SecurityGroupOwnerId is specified, * EC2SecurityGroupName must also be provided. and CIDRIP * cannot be provided.

Example: 111122223333

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

The Amazon Web Services account number of the owner of the security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID is not an acceptable value. If * EC2SecurityGroupOwnerId is specified, * EC2SecurityGroupName must also be provided. and CIDRIP * cannot be provided.

Example: 111122223333

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

The Amazon Web Services account number of the owner of the security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID is not an acceptable value. If * EC2SecurityGroupOwnerId is specified, * EC2SecurityGroupName must also be provided. and CIDRIP * cannot be provided.

Example: 111122223333

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

The Amazon Web Services account number of the owner of the security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID is not an acceptable value. If * EC2SecurityGroupOwnerId is specified, * EC2SecurityGroupName must also be provided. and CIDRIP * cannot be provided.

Example: 111122223333

*/ 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 security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID is not an acceptable value. If * EC2SecurityGroupOwnerId is specified, * EC2SecurityGroupName must also be provided. and CIDRIP * cannot be provided.

Example: 111122223333

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

The Amazon Web Services account number of the owner of the security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID is not an acceptable value. If * EC2SecurityGroupOwnerId is specified, * EC2SecurityGroupName must also be provided. and CIDRIP * cannot be provided.

Example: 111122223333

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

The Amazon Web Services account number of the owner of the security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID is not an acceptable value. If * EC2SecurityGroupOwnerId is specified, * EC2SecurityGroupName must also be provided. and CIDRIP * cannot be provided.

Example: 111122223333

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

The Amazon Web Services account number of the owner of the security group * specified in the EC2SecurityGroupName parameter. The Amazon Web * Services access key ID is not an acceptable value. If * EC2SecurityGroupOwnerId is specified, * EC2SecurityGroupName must also be provided. and CIDRIP * cannot be provided.

Example: 111122223333

*/ inline RevokeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;} private: Aws::String m_clusterSecurityGroupName; bool m_clusterSecurityGroupNameHasBeenSet = false; Aws::String m_cIDRIP; bool m_cIDRIPHasBeenSet = false; Aws::String m_eC2SecurityGroupName; bool m_eC2SecurityGroupNameHasBeenSet = false; Aws::String m_eC2SecurityGroupOwnerId; bool m_eC2SecurityGroupOwnerIdHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws