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>
44 template <
typename C
idrIpT = Aws::String>
46 m_cidrIpHasBeenSet =
true;
47 m_cidrIp = std::forward<CidrIpT>(value);
49 template <
typename C
idrIpT = Aws::String>
64 m_fromPortHasBeenSet =
true;
79 template <
typename GroupIdT = Aws::String>
81 m_groupIdHasBeenSet =
true;
82 m_groupId = std::forward<GroupIdT>(value);
84 template <
typename GroupIdT = Aws::String>
99 template <
typename GroupNameT = Aws::String>
101 m_groupNameHasBeenSet =
true;
102 m_groupName = std::forward<GroupNameT>(value);
104 template <
typename GroupNameT = Aws::String>
118 template <
typename IpPermissionsT = Aws::Vector<IpPermission>>
120 m_ipPermissionsHasBeenSet =
true;
121 m_ipPermissions = std::forward<IpPermissionsT>(value);
123 template <
typename IpPermissionsT = Aws::Vector<IpPermission>>
128 template <
typename IpPermissionsT = IpPermission>
130 m_ipPermissionsHasBeenSet =
true;
131 m_ipPermissions.emplace_back(std::forward<IpPermissionsT>(value));
145 template <
typename IpProtocolT = Aws::String>
147 m_ipProtocolHasBeenSet =
true;
148 m_ipProtocol = std::forward<IpProtocolT>(value);
150 template <
typename IpProtocolT = Aws::String>
167 template <
typename SourceSecurityGroupNameT = Aws::String>
169 m_sourceSecurityGroupNameHasBeenSet =
true;
170 m_sourceSecurityGroupName = std::forward<SourceSecurityGroupNameT>(value);
172 template <
typename SourceSecurityGroupNameT = Aws::String>
185 template <
typename SourceSecurityGroupOwnerIdT = Aws::String>
187 m_sourceSecurityGroupOwnerIdHasBeenSet =
true;
188 m_sourceSecurityGroupOwnerId = std::forward<SourceSecurityGroupOwnerIdT>(value);
190 template <
typename SourceSecurityGroupOwnerIdT = Aws::String>
205 m_toPortHasBeenSet =
true;
220 template <
typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
222 m_securityGroupRuleIdsHasBeenSet =
true;
223 m_securityGroupRuleIds = std::forward<SecurityGroupRuleIdsT>(value);
225 template <
typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
230 template <
typename SecurityGroupRuleIdsT = Aws::String>
232 m_securityGroupRuleIdsHasBeenSet =
true;
233 m_securityGroupRuleIds.emplace_back(std::forward<SecurityGroupRuleIdsT>(value));
248 m_dryRunHasBeenSet =
true;
277 bool m_dryRun{
false};
278 bool m_cidrIpHasBeenSet =
false;
279 bool m_fromPortHasBeenSet =
false;
280 bool m_groupIdHasBeenSet =
false;
281 bool m_groupNameHasBeenSet =
false;
282 bool m_ipPermissionsHasBeenSet =
false;
283 bool m_ipProtocolHasBeenSet =
false;
284 bool m_sourceSecurityGroupNameHasBeenSet =
false;
285 bool m_sourceSecurityGroupOwnerIdHasBeenSet =
false;
286 bool m_toPortHasBeenSet =
false;
287 bool m_securityGroupRuleIdsHasBeenSet =
false;
288 bool m_dryRunHasBeenSet =
false;
const Aws::String & GetGroupId() const
AWS_EC2_API Aws::String SerializePayload() const override
bool FromPortHasBeenSet() const
RevokeSecurityGroupIngressRequest & WithGroupId(GroupIdT &&value)
bool SecurityGroupRuleIdsHasBeenSet() const
void SetSourceSecurityGroupName(SourceSecurityGroupNameT &&value)
RevokeSecurityGroupIngressRequest & WithDryRun(bool value)
void SetCidrIp(CidrIpT &&value)
bool ToPortHasBeenSet() const
RevokeSecurityGroupIngressRequest & AddSecurityGroupRuleIds(SecurityGroupRuleIdsT &&value)
RevokeSecurityGroupIngressRequest & WithSecurityGroupRuleIds(SecurityGroupRuleIdsT &&value)
RevokeSecurityGroupIngressRequest & WithGroupName(GroupNameT &&value)
void SetSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT &&value)
bool IpProtocolHasBeenSet() const
bool IpPermissionsHasBeenSet() const
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT &&value)
void SetFromPort(int value)
RevokeSecurityGroupIngressRequest & AddIpPermissions(IpPermissionsT &&value)
AWS_EC2_API RevokeSecurityGroupIngressRequest()=default
const Aws::Vector< Aws::String > & GetSecurityGroupRuleIds() const
RevokeSecurityGroupIngressRequest & WithToPort(int value)
RevokeSecurityGroupIngressRequest & WithIpPermissions(IpPermissionsT &&value)
RevokeSecurityGroupIngressRequest & WithCidrIp(CidrIpT &&value)
void SetSecurityGroupRuleIds(SecurityGroupRuleIdsT &&value)
const Aws::String & GetSourceSecurityGroupName() const
void SetGroupId(GroupIdT &&value)
void SetGroupName(GroupNameT &&value)
RevokeSecurityGroupIngressRequest & WithIpProtocol(IpProtocolT &&value)
void SetIpPermissions(IpPermissionsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
bool GroupIdHasBeenSet() const
const Aws::String & GetCidrIp() const
bool DryRunHasBeenSet() const
const Aws::String & GetIpProtocol() const
RevokeSecurityGroupIngressRequest & WithFromPort(int value)
bool GroupNameHasBeenSet() const
const Aws::String & GetSourceSecurityGroupOwnerId() const
void SetIpProtocol(IpProtocolT &&value)
const Aws::Vector< IpPermission > & GetIpPermissions() const
bool SourceSecurityGroupNameHasBeenSet() const
const Aws::String & GetGroupName() const
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupName(SourceSecurityGroupNameT &&value)
void SetToPort(int value)
bool SourceSecurityGroupOwnerIdHasBeenSet() const
bool CidrIpHasBeenSet() const
virtual const char * GetServiceRequestName() const override
void SetDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector