/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class RevokeSecurityGroupEgressRequest : public EC2Request { public: AWS_EC2_API 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_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

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 DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

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 DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

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 DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

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 DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline RevokeSecurityGroupEgressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The ID of the security group.

*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *

The ID of the security group.

*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *

The ID of the security group.

*/ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *

The ID of the security group.

*/ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *

The ID of the security group.

*/ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** *

The ID of the security group.

*/ inline RevokeSecurityGroupEgressRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *

The ID of the security group.

*/ inline RevokeSecurityGroupEgressRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *

The ID of the security group.

*/ inline RevokeSecurityGroupEgressRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *

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.

*/ inline const Aws::Vector& GetIpPermissions() const{ return m_ipPermissions; } /** *

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.

*/ inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; } /** *

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.

*/ inline void SetIpPermissions(const Aws::Vector& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = value; } /** *

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.

*/ inline void SetIpPermissions(Aws::Vector&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = std::move(value); } /** *

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.

*/ inline RevokeSecurityGroupEgressRequest& WithIpPermissions(const Aws::Vector& value) { SetIpPermissions(value); return *this;} /** *

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.

*/ inline RevokeSecurityGroupEgressRequest& WithIpPermissions(Aws::Vector&& value) { SetIpPermissions(std::move(value)); return *this;} /** *

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.

*/ inline RevokeSecurityGroupEgressRequest& AddIpPermissions(const IpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; } /** *

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.

*/ inline RevokeSecurityGroupEgressRequest& AddIpPermissions(IpPermission&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(std::move(value)); return *this; } /** *

The IDs of the security group rules.

*/ inline const Aws::Vector& GetSecurityGroupRuleIds() const{ return m_securityGroupRuleIds; } /** *

The IDs of the security group rules.

*/ inline bool SecurityGroupRuleIdsHasBeenSet() const { return m_securityGroupRuleIdsHasBeenSet; } /** *

The IDs of the security group rules.

*/ inline void SetSecurityGroupRuleIds(const Aws::Vector& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds = value; } /** *

The IDs of the security group rules.

*/ inline void SetSecurityGroupRuleIds(Aws::Vector&& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds = std::move(value); } /** *

The IDs of the security group rules.

*/ inline RevokeSecurityGroupEgressRequest& WithSecurityGroupRuleIds(const Aws::Vector& value) { SetSecurityGroupRuleIds(value); return *this;} /** *

The IDs of the security group rules.

*/ inline RevokeSecurityGroupEgressRequest& WithSecurityGroupRuleIds(Aws::Vector&& value) { SetSecurityGroupRuleIds(std::move(value)); return *this;} /** *

The IDs of the security group rules.

*/ inline RevokeSecurityGroupEgressRequest& AddSecurityGroupRuleIds(const Aws::String& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds.push_back(value); return *this; } /** *

The IDs of the security group rules.

*/ inline RevokeSecurityGroupEgressRequest& AddSecurityGroupRuleIds(Aws::String&& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds.push_back(std::move(value)); return *this; } /** *

The IDs of the security group rules.

*/ inline RevokeSecurityGroupEgressRequest& AddSecurityGroupRuleIds(const char* value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds.push_back(value); return *this; } /** *

Not supported. Use a set of IP permissions to specify the CIDR.

*/ inline const Aws::String& GetCidrIp() const{ return m_cidrIp; } /** *

Not supported. Use a set of IP permissions to specify the CIDR.

*/ inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; } /** *

Not supported. Use a set of IP permissions to specify the CIDR.

*/ inline void SetCidrIp(const Aws::String& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; } /** *

Not supported. Use a set of IP permissions to specify the CIDR.

*/ inline void SetCidrIp(Aws::String&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = std::move(value); } /** *

Not supported. Use a set of IP permissions to specify the CIDR.

*/ inline void SetCidrIp(const char* value) { m_cidrIpHasBeenSet = true; m_cidrIp.assign(value); } /** *

Not supported. Use a set of IP permissions to specify the CIDR.

*/ inline RevokeSecurityGroupEgressRequest& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;} /** *

Not supported. Use a set of IP permissions to specify the CIDR.

*/ inline RevokeSecurityGroupEgressRequest& WithCidrIp(Aws::String&& value) { SetCidrIp(std::move(value)); return *this;} /** *

Not supported. Use a set of IP permissions to specify the CIDR.

*/ inline RevokeSecurityGroupEgressRequest& WithCidrIp(const char* value) { SetCidrIp(value); return *this;} /** *

Not supported. Use a set of IP permissions to specify the port.

*/ inline int GetFromPort() const{ return m_fromPort; } /** *

Not supported. Use a set of IP permissions to specify the port.

*/ inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; } /** *

Not supported. Use a set of IP permissions to specify the port.

*/ inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; } /** *

Not supported. Use a set of IP permissions to specify the port.

*/ inline RevokeSecurityGroupEgressRequest& WithFromPort(int value) { SetFromPort(value); return *this;} /** *

Not supported. Use a set of IP permissions to specify the protocol name or * number.

*/ inline const Aws::String& GetIpProtocol() const{ return m_ipProtocol; } /** *

Not supported. Use a set of IP permissions to specify the protocol name or * number.

*/ inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; } /** *

Not supported. Use a set of IP permissions to specify the protocol name or * number.

*/ inline void SetIpProtocol(const Aws::String& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = value; } /** *

Not supported. Use a set of IP permissions to specify the protocol name or * number.

*/ inline void SetIpProtocol(Aws::String&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = std::move(value); } /** *

Not supported. Use a set of IP permissions to specify the protocol name or * number.

*/ inline void SetIpProtocol(const char* value) { m_ipProtocolHasBeenSet = true; m_ipProtocol.assign(value); } /** *

Not supported. Use a set of IP permissions to specify the protocol name or * number.

*/ inline RevokeSecurityGroupEgressRequest& WithIpProtocol(const Aws::String& value) { SetIpProtocol(value); return *this;} /** *

Not supported. Use a set of IP permissions to specify the protocol name or * number.

*/ inline RevokeSecurityGroupEgressRequest& WithIpProtocol(Aws::String&& value) { SetIpProtocol(std::move(value)); return *this;} /** *

Not supported. Use a set of IP permissions to specify the protocol name or * number.

*/ inline RevokeSecurityGroupEgressRequest& WithIpProtocol(const char* value) { SetIpProtocol(value); return *this;} /** *

Not supported. Use a set of IP permissions to specify the port.

*/ inline int GetToPort() const{ return m_toPort; } /** *

Not supported. Use a set of IP permissions to specify the port.

*/ inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; } /** *

Not supported. Use a set of IP permissions to specify the port.

*/ inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; } /** *

Not supported. Use a set of IP permissions to specify the port.

*/ inline RevokeSecurityGroupEgressRequest& WithToPort(int value) { SetToPort(value); return *this;} /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline const Aws::String& GetSourceSecurityGroupName() const{ return m_sourceSecurityGroupName; } /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline bool SourceSecurityGroupNameHasBeenSet() const { return m_sourceSecurityGroupNameHasBeenSet; } /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline void SetSourceSecurityGroupName(const Aws::String& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = value; } /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline void SetSourceSecurityGroupName(Aws::String&& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = std::move(value); } /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline void SetSourceSecurityGroupName(const char* value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName.assign(value); } /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline RevokeSecurityGroupEgressRequest& WithSourceSecurityGroupName(const Aws::String& value) { SetSourceSecurityGroupName(value); return *this;} /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline RevokeSecurityGroupEgressRequest& WithSourceSecurityGroupName(Aws::String&& value) { SetSourceSecurityGroupName(std::move(value)); return *this;} /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline RevokeSecurityGroupEgressRequest& WithSourceSecurityGroupName(const char* value) { SetSourceSecurityGroupName(value); return *this;} /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline const Aws::String& GetSourceSecurityGroupOwnerId() const{ return m_sourceSecurityGroupOwnerId; } /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline bool SourceSecurityGroupOwnerIdHasBeenSet() const { return m_sourceSecurityGroupOwnerIdHasBeenSet; } /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline void SetSourceSecurityGroupOwnerId(const Aws::String& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = value; } /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline void SetSourceSecurityGroupOwnerId(Aws::String&& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = std::move(value); } /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline void SetSourceSecurityGroupOwnerId(const char* value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId.assign(value); } /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline RevokeSecurityGroupEgressRequest& WithSourceSecurityGroupOwnerId(const Aws::String& value) { SetSourceSecurityGroupOwnerId(value); return *this;} /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline RevokeSecurityGroupEgressRequest& WithSourceSecurityGroupOwnerId(Aws::String&& value) { SetSourceSecurityGroupOwnerId(std::move(value)); return *this;} /** *

Not supported. Use a set of IP permissions to specify a destination security * group.

*/ inline RevokeSecurityGroupEgressRequest& WithSourceSecurityGroupOwnerId(const char* value) { SetSourceSecurityGroupOwnerId(value); return *this;} private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_groupId; bool m_groupIdHasBeenSet = false; Aws::Vector m_ipPermissions; bool m_ipPermissionsHasBeenSet = false; Aws::Vector m_securityGroupRuleIds; bool m_securityGroupRuleIdsHasBeenSet = false; Aws::String m_cidrIp; bool m_cidrIpHasBeenSet = false; int m_fromPort; bool m_fromPortHasBeenSet = false; Aws::String m_ipProtocol; bool m_ipProtocolHasBeenSet = false; int m_toPort; bool m_toPortHasBeenSet = false; Aws::String m_sourceSecurityGroupName; bool m_sourceSecurityGroupNameHasBeenSet = false; Aws::String m_sourceSecurityGroupOwnerId; bool m_sourceSecurityGroupOwnerIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws