7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/IpPermission.h>
47 template<
typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
48 void SetSecurityGroupRuleIds(SecurityGroupRuleIdsT&& value) { m_securityGroupRuleIdsHasBeenSet =
true; m_securityGroupRuleIds = std::forward<SecurityGroupRuleIdsT>(value); }
49 template<
typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
51 template<
typename SecurityGroupRuleIdsT = Aws::String>
64 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
74 template<
typename GroupIdT = Aws::String>
75 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet =
true; m_groupId = std::forward<GroupIdT>(value); }
76 template<
typename GroupIdT = Aws::String>
87 template<
typename SourceSecurityGroupNameT = Aws::String>
88 void SetSourceSecurityGroupName(SourceSecurityGroupNameT&& value) { m_sourceSecurityGroupNameHasBeenSet =
true; m_sourceSecurityGroupName = std::forward<SourceSecurityGroupNameT>(value); }
89 template<
typename SourceSecurityGroupNameT = Aws::String>
100 template<
typename SourceSecurityGroupOwnerIdT = Aws::String>
101 void SetSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT&& value) { m_sourceSecurityGroupOwnerIdHasBeenSet =
true; m_sourceSecurityGroupOwnerId = std::forward<SourceSecurityGroupOwnerIdT>(value); }
102 template<
typename SourceSecurityGroupOwnerIdT = Aws::String>
113 template<
typename IpProtocolT = Aws::String>
114 void SetIpProtocol(IpProtocolT&& value) { m_ipProtocolHasBeenSet =
true; m_ipProtocol = std::forward<IpProtocolT>(value); }
115 template<
typename IpProtocolT = Aws::String>
125 inline void SetFromPort(
int value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
135 inline void SetToPort(
int value) { m_toPortHasBeenSet =
true; m_toPort = value; }
145 template<
typename C
idrIpT = Aws::String>
146 void SetCidrIp(CidrIpT&& value) { m_cidrIpHasBeenSet =
true; m_cidrIp = std::forward<CidrIpT>(value); }
147 template<
typename C
idrIpT = Aws::String>
158 template<
typename IpPermissionsT = Aws::Vector<IpPermission>>
159 void SetIpPermissions(IpPermissionsT&& value) { m_ipPermissionsHasBeenSet =
true; m_ipPermissions = std::forward<IpPermissionsT>(value); }
160 template<
typename IpPermissionsT = Aws::Vector<IpPermission>>
162 template<
typename IpPermissionsT = IpPermission>
168 bool m_securityGroupRuleIdsHasBeenSet =
false;
170 bool m_dryRun{
false};
171 bool m_dryRunHasBeenSet =
false;
174 bool m_groupIdHasBeenSet =
false;
177 bool m_sourceSecurityGroupNameHasBeenSet =
false;
180 bool m_sourceSecurityGroupOwnerIdHasBeenSet =
false;
183 bool m_ipProtocolHasBeenSet =
false;
186 bool m_fromPortHasBeenSet =
false;
189 bool m_toPortHasBeenSet =
false;
192 bool m_cidrIpHasBeenSet =
false;
195 bool m_ipPermissionsHasBeenSet =
false;
void SetSourceSecurityGroupName(SourceSecurityGroupNameT &&value)
RevokeSecurityGroupEgressRequest & WithSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT &&value)
RevokeSecurityGroupEgressRequest & WithIpPermissions(IpPermissionsT &&value)
RevokeSecurityGroupEgressRequest & WithToPort(int value)
const Aws::Vector< IpPermission > & GetIpPermissions() const
const Aws::String & GetCidrIp() const
RevokeSecurityGroupEgressRequest & WithIpProtocol(IpProtocolT &&value)
RevokeSecurityGroupEgressRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
bool CidrIpHasBeenSet() const
void SetSecurityGroupRuleIds(SecurityGroupRuleIdsT &&value)
virtual const char * GetServiceRequestName() const override
void SetIpPermissions(IpPermissionsT &&value)
void SetSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT &&value)
bool SourceSecurityGroupNameHasBeenSet() const
const Aws::String & GetGroupId() const
RevokeSecurityGroupEgressRequest & WithFromPort(int value)
const Aws::Vector< Aws::String > & GetSecurityGroupRuleIds() const
void SetToPort(int value)
RevokeSecurityGroupEgressRequest & AddIpPermissions(IpPermissionsT &&value)
void SetDryRun(bool value)
bool IpProtocolHasBeenSet() const
RevokeSecurityGroupEgressRequest & WithSourceSecurityGroupName(SourceSecurityGroupNameT &&value)
RevokeSecurityGroupEgressRequest & AddSecurityGroupRuleIds(SecurityGroupRuleIdsT &&value)
bool SecurityGroupRuleIdsHasBeenSet() const
AWS_EC2_API RevokeSecurityGroupEgressRequest()=default
const Aws::String & GetIpProtocol() const
bool SourceSecurityGroupOwnerIdHasBeenSet() const
const Aws::String & GetSourceSecurityGroupName() const
bool IpPermissionsHasBeenSet() const
RevokeSecurityGroupEgressRequest & WithCidrIp(CidrIpT &&value)
bool GroupIdHasBeenSet() const
RevokeSecurityGroupEgressRequest & WithGroupId(GroupIdT &&value)
bool ToPortHasBeenSet() const
void SetIpProtocol(IpProtocolT &&value)
const Aws::String & GetSourceSecurityGroupOwnerId() const
void SetGroupId(GroupIdT &&value)
bool DryRunHasBeenSet() const
bool FromPortHasBeenSet() const
RevokeSecurityGroupEgressRequest & WithSecurityGroupRuleIds(SecurityGroupRuleIdsT &&value)
void SetCidrIp(CidrIpT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetFromPort(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector