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-ec2/include/aws/ec2/model/RevokeSecurityGroupEgressRequest.h

426 lines
16 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/ec2/EC2Request.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ec2/model/IpPermission.h>
#include <utility>
namespace Aws
{
namespace EC2
{
namespace Model
{
/**
*/
class AWS_EC2_API RevokeSecurityGroupEgressRequest : public EC2Request
{
public:
RevokeSecurityGroupEgressRequest();
// 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 "RevokeSecurityGroupEgress"; }
Aws::String SerializePayload() const override;
protected:
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
/**
* <p>Checks whether you have the required permissions for the action, without
* actually making the request, and provides an error response. If you have the
* required permissions, the error response is <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline bool GetDryRun() const{ return m_dryRun; }
/**
* <p>Checks whether you have the required permissions for the action, without
* actually making the request, and provides an error response. If you have the
* required permissions, the error response is <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
/**
* <p>Checks whether you have the required permissions for the action, without
* actually making the request, and provides an error response. If you have the
* required permissions, the error response is <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
/**
* <p>Checks whether you have the required permissions for the action, without
* actually making the request, and provides an error response. If you have the
* required permissions, the error response is <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
/**
* <p>The ID of the security group.</p>
*/
inline const Aws::String& GetGroupId() const{ return m_groupId; }
/**
* <p>The ID of the security group.</p>
*/
inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
/**
* <p>The ID of the security group.</p>
*/
inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
/**
* <p>The ID of the security group.</p>
*/
inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
/**
* <p>The ID of the security group.</p>
*/
inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
/**
* <p>The ID of the security group.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
/**
* <p>The ID of the security group.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
/**
* <p>The ID of the security group.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
/**
* <p>The sets of IP permissions. You can't specify a destination security group
* and a CIDR IP address range in the same set of permissions.</p>
*/
inline const Aws::Vector<IpPermission>& GetIpPermissions() const{ return m_ipPermissions; }
/**
* <p>The sets of IP permissions. You can't specify a destination security group
* and a CIDR IP address range in the same set of permissions.</p>
*/
inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; }
/**
* <p>The sets of IP permissions. You can't specify a destination security group
* and a CIDR IP address range in the same set of permissions.</p>
*/
inline void SetIpPermissions(const Aws::Vector<IpPermission>& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = value; }
/**
* <p>The sets of IP permissions. You can't specify a destination security group
* and a CIDR IP address range in the same set of permissions.</p>
*/
inline void SetIpPermissions(Aws::Vector<IpPermission>&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = std::move(value); }
/**
* <p>The sets of IP permissions. You can't specify a destination security group
* and a CIDR IP address range in the same set of permissions.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithIpPermissions(const Aws::Vector<IpPermission>& value) { SetIpPermissions(value); return *this;}
/**
* <p>The sets of IP permissions. You can't specify a destination security group
* and a CIDR IP address range in the same set of permissions.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithIpPermissions(Aws::Vector<IpPermission>&& value) { SetIpPermissions(std::move(value)); return *this;}
/**
* <p>The sets of IP permissions. You can't specify a destination security group
* and a CIDR IP address range in the same set of permissions.</p>
*/
inline RevokeSecurityGroupEgressRequest& AddIpPermissions(const IpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; }
/**
* <p>The sets of IP permissions. You can't specify a destination security group
* and a CIDR IP address range in the same set of permissions.</p>
*/
inline RevokeSecurityGroupEgressRequest& AddIpPermissions(IpPermission&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(std::move(value)); return *this; }
/**
* <p>Not supported. Use a set of IP permissions to specify the CIDR.</p>
*/
inline const Aws::String& GetCidrIp() const{ return m_cidrIp; }
/**
* <p>Not supported. Use a set of IP permissions to specify the CIDR.</p>
*/
inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; }
/**
* <p>Not supported. Use a set of IP permissions to specify the CIDR.</p>
*/
inline void SetCidrIp(const Aws::String& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; }
/**
* <p>Not supported. Use a set of IP permissions to specify the CIDR.</p>
*/
inline void SetCidrIp(Aws::String&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = std::move(value); }
/**
* <p>Not supported. Use a set of IP permissions to specify the CIDR.</p>
*/
inline void SetCidrIp(const char* value) { m_cidrIpHasBeenSet = true; m_cidrIp.assign(value); }
/**
* <p>Not supported. Use a set of IP permissions to specify the CIDR.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;}
/**
* <p>Not supported. Use a set of IP permissions to specify the CIDR.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithCidrIp(Aws::String&& value) { SetCidrIp(std::move(value)); return *this;}
/**
* <p>Not supported. Use a set of IP permissions to specify the CIDR.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithCidrIp(const char* value) { SetCidrIp(value); return *this;}
/**
* <p>Not supported. Use a set of IP permissions to specify the port.</p>
*/
inline int GetFromPort() const{ return m_fromPort; }
/**
* <p>Not supported. Use a set of IP permissions to specify the port.</p>
*/
inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
/**
* <p>Not supported. Use a set of IP permissions to specify the port.</p>
*/
inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
/**
* <p>Not supported. Use a set of IP permissions to specify the port.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithFromPort(int value) { SetFromPort(value); return *this;}
/**
* <p>Not supported. Use a set of IP permissions to specify the protocol name or
* number.</p>
*/
inline const Aws::String& GetIpProtocol() const{ return m_ipProtocol; }
/**
* <p>Not supported. Use a set of IP permissions to specify the protocol name or
* number.</p>
*/
inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
/**
* <p>Not supported. Use a set of IP permissions to specify the protocol name or
* number.</p>
*/
inline void SetIpProtocol(const Aws::String& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = value; }
/**
* <p>Not supported. Use a set of IP permissions to specify the protocol name or
* number.</p>
*/
inline void SetIpProtocol(Aws::String&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = std::move(value); }
/**
* <p>Not supported. Use a set of IP permissions to specify the protocol name or
* number.</p>
*/
inline void SetIpProtocol(const char* value) { m_ipProtocolHasBeenSet = true; m_ipProtocol.assign(value); }
/**
* <p>Not supported. Use a set of IP permissions to specify the protocol name or
* number.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithIpProtocol(const Aws::String& value) { SetIpProtocol(value); return *this;}
/**
* <p>Not supported. Use a set of IP permissions to specify the protocol name or
* number.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithIpProtocol(Aws::String&& value) { SetIpProtocol(std::move(value)); return *this;}
/**
* <p>Not supported. Use a set of IP permissions to specify the protocol name or
* number.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithIpProtocol(const char* value) { SetIpProtocol(value); return *this;}
/**
* <p>Not supported. Use a set of IP permissions to specify the port.</p>
*/
inline int GetToPort() const{ return m_toPort; }
/**
* <p>Not supported. Use a set of IP permissions to specify the port.</p>
*/
inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
/**
* <p>Not supported. Use a set of IP permissions to specify the port.</p>
*/
inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
/**
* <p>Not supported. Use a set of IP permissions to specify the port.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithToPort(int value) { SetToPort(value); return *this;}
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline const Aws::String& GetSourceSecurityGroupName() const{ return m_sourceSecurityGroupName; }
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline bool SourceSecurityGroupNameHasBeenSet() const { return m_sourceSecurityGroupNameHasBeenSet; }
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline void SetSourceSecurityGroupName(const Aws::String& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = value; }
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline void SetSourceSecurityGroupName(Aws::String&& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = std::move(value); }
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline void SetSourceSecurityGroupName(const char* value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName.assign(value); }
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithSourceSecurityGroupName(const Aws::String& value) { SetSourceSecurityGroupName(value); return *this;}
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithSourceSecurityGroupName(Aws::String&& value) { SetSourceSecurityGroupName(std::move(value)); return *this;}
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithSourceSecurityGroupName(const char* value) { SetSourceSecurityGroupName(value); return *this;}
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline const Aws::String& GetSourceSecurityGroupOwnerId() const{ return m_sourceSecurityGroupOwnerId; }
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline bool SourceSecurityGroupOwnerIdHasBeenSet() const { return m_sourceSecurityGroupOwnerIdHasBeenSet; }
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline void SetSourceSecurityGroupOwnerId(const Aws::String& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = value; }
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline void SetSourceSecurityGroupOwnerId(Aws::String&& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = std::move(value); }
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline void SetSourceSecurityGroupOwnerId(const char* value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId.assign(value); }
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithSourceSecurityGroupOwnerId(const Aws::String& value) { SetSourceSecurityGroupOwnerId(value); return *this;}
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithSourceSecurityGroupOwnerId(Aws::String&& value) { SetSourceSecurityGroupOwnerId(std::move(value)); return *this;}
/**
* <p>Not supported. Use a set of IP permissions to specify a destination security
* group.</p>
*/
inline RevokeSecurityGroupEgressRequest& WithSourceSecurityGroupOwnerId(const char* value) { SetSourceSecurityGroupOwnerId(value); return *this;}
private:
bool m_dryRun;
bool m_dryRunHasBeenSet;
Aws::String m_groupId;
bool m_groupIdHasBeenSet;
Aws::Vector<IpPermission> m_ipPermissions;
bool m_ipPermissionsHasBeenSet;
Aws::String m_cidrIp;
bool m_cidrIpHasBeenSet;
int m_fromPort;
bool m_fromPortHasBeenSet;
Aws::String m_ipProtocol;
bool m_ipProtocolHasBeenSet;
int m_toPort;
bool m_toPortHasBeenSet;
Aws::String m_sourceSecurityGroupName;
bool m_sourceSecurityGroupNameHasBeenSet;
Aws::String m_sourceSecurityGroupOwnerId;
bool m_sourceSecurityGroupOwnerIdHasBeenSet;
};
} // namespace Model
} // namespace EC2
} // namespace Aws