7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/IpPermission.h>
43 template <
typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
45 m_securityGroupRuleIdsHasBeenSet =
true;
46 m_securityGroupRuleIds = std::forward<SecurityGroupRuleIdsT>(value);
48 template <
typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
53 template <
typename SecurityGroupRuleIdsT = Aws::String>
55 m_securityGroupRuleIdsHasBeenSet =
true;
56 m_securityGroupRuleIds.emplace_back(std::forward<SecurityGroupRuleIdsT>(value));
71 m_dryRunHasBeenSet =
true;
86 template <
typename GroupIdT = Aws::String>
88 m_groupIdHasBeenSet =
true;
89 m_groupId = std::forward<GroupIdT>(value);
91 template <
typename GroupIdT = Aws::String>
105 template <
typename SourceSecurityGroupNameT = Aws::String>
107 m_sourceSecurityGroupNameHasBeenSet =
true;
108 m_sourceSecurityGroupName = std::forward<SourceSecurityGroupNameT>(value);
110 template <
typename SourceSecurityGroupNameT = Aws::String>
124 template <
typename SourceSecurityGroupOwnerIdT = Aws::String>
126 m_sourceSecurityGroupOwnerIdHasBeenSet =
true;
127 m_sourceSecurityGroupOwnerId = std::forward<SourceSecurityGroupOwnerIdT>(value);
129 template <
typename SourceSecurityGroupOwnerIdT = Aws::String>
143 template <
typename IpProtocolT = Aws::String>
145 m_ipProtocolHasBeenSet =
true;
146 m_ipProtocol = std::forward<IpProtocolT>(value);
148 template <
typename IpProtocolT = Aws::String>
162 m_fromPortHasBeenSet =
true;
178 m_toPortHasBeenSet =
true;
193 template <
typename C
idrIpT = Aws::String>
195 m_cidrIpHasBeenSet =
true;
196 m_cidrIp = std::forward<CidrIpT>(value);
198 template <
typename C
idrIpT = Aws::String>
212 template <
typename IpPermissionsT = Aws::Vector<IpPermission>>
214 m_ipPermissionsHasBeenSet =
true;
215 m_ipPermissions = std::forward<IpPermissionsT>(value);
217 template <
typename IpPermissionsT = Aws::Vector<IpPermission>>
222 template <
typename IpPermissionsT = IpPermission>
224 m_ipPermissionsHasBeenSet =
true;
225 m_ipPermissions.emplace_back(std::forward<IpPermissionsT>(value));
232 bool m_dryRun{
false};
249 bool m_securityGroupRuleIdsHasBeenSet =
false;
250 bool m_dryRunHasBeenSet =
false;
251 bool m_groupIdHasBeenSet =
false;
252 bool m_sourceSecurityGroupNameHasBeenSet =
false;
253 bool m_sourceSecurityGroupOwnerIdHasBeenSet =
false;
254 bool m_ipProtocolHasBeenSet =
false;
255 bool m_fromPortHasBeenSet =
false;
256 bool m_toPortHasBeenSet =
false;
257 bool m_cidrIpHasBeenSet =
false;
258 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