This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-redshift/include/aws/redshift/model/RevokeClusterSecurityGroupIngressRequest.h

303 lines
14 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/redshift/Redshift_EXPORTS.h>
#include <aws/redshift/RedshiftRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Redshift
{
namespace Model
{
/**
* <p/><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeClusterSecurityGroupIngressMessage">AWS
* API Reference</a></p>
*/
class AWS_REDSHIFT_API RevokeClusterSecurityGroupIngressRequest : public RedshiftRequest
{
public:
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::String SerializePayload() const override;
protected:
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
/**
* <p>The name of the security Group from which to revoke the ingress rule.</p>
*/
inline const Aws::String& GetClusterSecurityGroupName() const{ return m_clusterSecurityGroupName; }
/**
* <p>The name of the security Group from which to revoke the ingress rule.</p>
*/
inline bool ClusterSecurityGroupNameHasBeenSet() const { return m_clusterSecurityGroupNameHasBeenSet; }
/**
* <p>The name of the security Group from which to revoke the ingress rule.</p>
*/
inline void SetClusterSecurityGroupName(const Aws::String& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = value; }
/**
* <p>The name of the security Group from which to revoke the ingress rule.</p>
*/
inline void SetClusterSecurityGroupName(Aws::String&& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = std::move(value); }
/**
* <p>The name of the security Group from which to revoke the ingress rule.</p>
*/
inline void SetClusterSecurityGroupName(const char* value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName.assign(value); }
/**
* <p>The name of the security Group from which to revoke the ingress rule.</p>
*/
inline RevokeClusterSecurityGroupIngressRequest& WithClusterSecurityGroupName(const Aws::String& value) { SetClusterSecurityGroupName(value); return *this;}
/**
* <p>The name of the security Group from which to revoke the ingress rule.</p>
*/
inline RevokeClusterSecurityGroupIngressRequest& WithClusterSecurityGroupName(Aws::String&& value) { SetClusterSecurityGroupName(std::move(value)); return *this;}
/**
* <p>The name of the security Group from which to revoke the ingress rule.</p>
*/
inline RevokeClusterSecurityGroupIngressRequest& WithClusterSecurityGroupName(const char* value) { SetClusterSecurityGroupName(value); return *this;}
/**
* <p>The IP range for which to revoke access. This range must be a valid Classless
* Inter-Domain Routing (CIDR) block of IP addresses. If <code>CIDRIP</code> is
* specified, <code>EC2SecurityGroupName</code> and
* <code>EC2SecurityGroupOwnerId</code> cannot be provided. </p>
*/
inline const Aws::String& GetCIDRIP() const{ return m_cIDRIP; }
/**
* <p>The IP range for which to revoke access. This range must be a valid Classless
* Inter-Domain Routing (CIDR) block of IP addresses. If <code>CIDRIP</code> is
* specified, <code>EC2SecurityGroupName</code> and
* <code>EC2SecurityGroupOwnerId</code> cannot be provided. </p>
*/
inline bool CIDRIPHasBeenSet() const { return m_cIDRIPHasBeenSet; }
/**
* <p>The IP range for which to revoke access. This range must be a valid Classless
* Inter-Domain Routing (CIDR) block of IP addresses. If <code>CIDRIP</code> is
* specified, <code>EC2SecurityGroupName</code> and
* <code>EC2SecurityGroupOwnerId</code> cannot be provided. </p>
*/
inline void SetCIDRIP(const Aws::String& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; }
/**
* <p>The IP range for which to revoke access. This range must be a valid Classless
* Inter-Domain Routing (CIDR) block of IP addresses. If <code>CIDRIP</code> is
* specified, <code>EC2SecurityGroupName</code> and
* <code>EC2SecurityGroupOwnerId</code> cannot be provided. </p>
*/
inline void SetCIDRIP(Aws::String&& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = std::move(value); }
/**
* <p>The IP range for which to revoke access. This range must be a valid Classless
* Inter-Domain Routing (CIDR) block of IP addresses. If <code>CIDRIP</code> is
* specified, <code>EC2SecurityGroupName</code> and
* <code>EC2SecurityGroupOwnerId</code> cannot be provided. </p>
*/
inline void SetCIDRIP(const char* value) { m_cIDRIPHasBeenSet = true; m_cIDRIP.assign(value); }
/**
* <p>The IP range for which to revoke access. This range must be a valid Classless
* Inter-Domain Routing (CIDR) block of IP addresses. If <code>CIDRIP</code> is
* specified, <code>EC2SecurityGroupName</code> and
* <code>EC2SecurityGroupOwnerId</code> cannot be provided. </p>
*/
inline RevokeClusterSecurityGroupIngressRequest& WithCIDRIP(const Aws::String& value) { SetCIDRIP(value); return *this;}
/**
* <p>The IP range for which to revoke access. This range must be a valid Classless
* Inter-Domain Routing (CIDR) block of IP addresses. If <code>CIDRIP</code> is
* specified, <code>EC2SecurityGroupName</code> and
* <code>EC2SecurityGroupOwnerId</code> cannot be provided. </p>
*/
inline RevokeClusterSecurityGroupIngressRequest& WithCIDRIP(Aws::String&& value) { SetCIDRIP(std::move(value)); return *this;}
/**
* <p>The IP range for which to revoke access. This range must be a valid Classless
* Inter-Domain Routing (CIDR) block of IP addresses. If <code>CIDRIP</code> is
* specified, <code>EC2SecurityGroupName</code> and
* <code>EC2SecurityGroupOwnerId</code> cannot be provided. </p>
*/
inline RevokeClusterSecurityGroupIngressRequest& WithCIDRIP(const char* value) { SetCIDRIP(value); return *this;}
/**
* <p>The name of the EC2 Security Group whose access is to be revoked. If
* <code>EC2SecurityGroupName</code> is specified,
* <code>EC2SecurityGroupOwnerId</code> must also be provided and
* <code>CIDRIP</code> cannot be provided. </p>
*/
inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; }
/**
* <p>The name of the EC2 Security Group whose access is to be revoked. If
* <code>EC2SecurityGroupName</code> is specified,
* <code>EC2SecurityGroupOwnerId</code> must also be provided and
* <code>CIDRIP</code> cannot be provided. </p>
*/
inline bool EC2SecurityGroupNameHasBeenSet() const { return m_eC2SecurityGroupNameHasBeenSet; }
/**
* <p>The name of the EC2 Security Group whose access is to be revoked. If
* <code>EC2SecurityGroupName</code> is specified,
* <code>EC2SecurityGroupOwnerId</code> must also be provided and
* <code>CIDRIP</code> cannot be provided. </p>
*/
inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
/**
* <p>The name of the EC2 Security Group whose access is to be revoked. If
* <code>EC2SecurityGroupName</code> is specified,
* <code>EC2SecurityGroupOwnerId</code> must also be provided and
* <code>CIDRIP</code> cannot be provided. </p>
*/
inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = std::move(value); }
/**
* <p>The name of the EC2 Security Group whose access is to be revoked. If
* <code>EC2SecurityGroupName</code> is specified,
* <code>EC2SecurityGroupOwnerId</code> must also be provided and
* <code>CIDRIP</code> cannot be provided. </p>
*/
inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); }
/**
* <p>The name of the EC2 Security Group whose access is to be revoked. If
* <code>EC2SecurityGroupName</code> is specified,
* <code>EC2SecurityGroupOwnerId</code> must also be provided and
* <code>CIDRIP</code> cannot be provided. </p>
*/
inline RevokeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupName(const Aws::String& value) { SetEC2SecurityGroupName(value); return *this;}
/**
* <p>The name of the EC2 Security Group whose access is to be revoked. If
* <code>EC2SecurityGroupName</code> is specified,
* <code>EC2SecurityGroupOwnerId</code> must also be provided and
* <code>CIDRIP</code> cannot be provided. </p>
*/
inline RevokeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(std::move(value)); return *this;}
/**
* <p>The name of the EC2 Security Group whose access is to be revoked. If
* <code>EC2SecurityGroupName</code> is specified,
* <code>EC2SecurityGroupOwnerId</code> must also be provided and
* <code>CIDRIP</code> cannot be provided. </p>
*/
inline RevokeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;}
/**
* <p>The AWS account number of the owner of the security group specified in the
* <code>EC2SecurityGroupName</code> parameter. The AWS access key ID is not an
* acceptable value. If <code>EC2SecurityGroupOwnerId</code> is specified,
* <code>EC2SecurityGroupName</code> must also be provided. and <code>CIDRIP</code>
* cannot be provided. </p> <p>Example: <code>111122223333</code> </p>
*/
inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; }
/**
* <p>The AWS account number of the owner of the security group specified in the
* <code>EC2SecurityGroupName</code> parameter. The AWS access key ID is not an
* acceptable value. If <code>EC2SecurityGroupOwnerId</code> is specified,
* <code>EC2SecurityGroupName</code> must also be provided. and <code>CIDRIP</code>
* cannot be provided. </p> <p>Example: <code>111122223333</code> </p>
*/
inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; }
/**
* <p>The AWS account number of the owner of the security group specified in the
* <code>EC2SecurityGroupName</code> parameter. The AWS access key ID is not an
* acceptable value. If <code>EC2SecurityGroupOwnerId</code> is specified,
* <code>EC2SecurityGroupName</code> must also be provided. and <code>CIDRIP</code>
* cannot be provided. </p> <p>Example: <code>111122223333</code> </p>
*/
inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
/**
* <p>The AWS account number of the owner of the security group specified in the
* <code>EC2SecurityGroupName</code> parameter. The AWS access key ID is not an
* acceptable value. If <code>EC2SecurityGroupOwnerId</code> is specified,
* <code>EC2SecurityGroupName</code> must also be provided. and <code>CIDRIP</code>
* cannot be provided. </p> <p>Example: <code>111122223333</code> </p>
*/
inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = std::move(value); }
/**
* <p>The AWS account number of the owner of the security group specified in the
* <code>EC2SecurityGroupName</code> parameter. The AWS access key ID is not an
* acceptable value. If <code>EC2SecurityGroupOwnerId</code> is specified,
* <code>EC2SecurityGroupName</code> must also be provided. and <code>CIDRIP</code>
* cannot be provided. </p> <p>Example: <code>111122223333</code> </p>
*/
inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); }
/**
* <p>The AWS account number of the owner of the security group specified in the
* <code>EC2SecurityGroupName</code> parameter. The AWS access key ID is not an
* acceptable value. If <code>EC2SecurityGroupOwnerId</code> is specified,
* <code>EC2SecurityGroupName</code> must also be provided. and <code>CIDRIP</code>
* cannot be provided. </p> <p>Example: <code>111122223333</code> </p>
*/
inline RevokeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const Aws::String& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
/**
* <p>The AWS account number of the owner of the security group specified in the
* <code>EC2SecurityGroupName</code> parameter. The AWS access key ID is not an
* acceptable value. If <code>EC2SecurityGroupOwnerId</code> is specified,
* <code>EC2SecurityGroupName</code> must also be provided. and <code>CIDRIP</code>
* cannot be provided. </p> <p>Example: <code>111122223333</code> </p>
*/
inline RevokeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(std::move(value)); return *this;}
/**
* <p>The AWS account number of the owner of the security group specified in the
* <code>EC2SecurityGroupName</code> parameter. The AWS access key ID is not an
* acceptable value. If <code>EC2SecurityGroupOwnerId</code> is specified,
* <code>EC2SecurityGroupName</code> must also be provided. and <code>CIDRIP</code>
* cannot be provided. </p> <p>Example: <code>111122223333</code> </p>
*/
inline RevokeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;}
private:
Aws::String m_clusterSecurityGroupName;
bool m_clusterSecurityGroupNameHasBeenSet;
Aws::String m_cIDRIP;
bool m_cIDRIPHasBeenSet;
Aws::String m_eC2SecurityGroupName;
bool m_eC2SecurityGroupNameHasBeenSet;
Aws::String m_eC2SecurityGroupOwnerId;
bool m_eC2SecurityGroupOwnerIdHasBeenSet;
};
} // namespace Model
} // namespace Redshift
} // namespace Aws