7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/IpPermission.h>
48 template<
typename C
idrIpT = Aws::String>
49 void SetCidrIp(CidrIpT&& value) { m_cidrIpHasBeenSet =
true; m_cidrIp = std::forward<CidrIpT>(value); }
50 template<
typename C
idrIpT = Aws::String>
61 inline void SetFromPort(
int value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
71 template<
typename GroupIdT = Aws::String>
72 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet =
true; m_groupId = std::forward<GroupIdT>(value); }
73 template<
typename GroupIdT = Aws::String>
85 template<
typename GroupNameT = Aws::String>
86 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet =
true; m_groupName = std::forward<GroupNameT>(value); }
87 template<
typename GroupNameT = Aws::String>
98 template<
typename IpPermissionsT = Aws::Vector<IpPermission>>
99 void SetIpPermissions(IpPermissionsT&& value) { m_ipPermissionsHasBeenSet =
true; m_ipPermissions = std::forward<IpPermissionsT>(value); }
100 template<
typename IpPermissionsT = Aws::Vector<IpPermission>>
102 template<
typename IpPermissionsT = IpPermission>
115 template<
typename IpProtocolT = Aws::String>
116 void SetIpProtocol(IpProtocolT&& value) { m_ipProtocolHasBeenSet =
true; m_ipProtocol = std::forward<IpProtocolT>(value); }
117 template<
typename IpProtocolT = Aws::String>
131 template<
typename SourceSecurityGroupNameT = Aws::String>
132 void SetSourceSecurityGroupName(SourceSecurityGroupNameT&& value) { m_sourceSecurityGroupNameHasBeenSet =
true; m_sourceSecurityGroupName = std::forward<SourceSecurityGroupNameT>(value); }
133 template<
typename SourceSecurityGroupNameT = Aws::String>
143 template<
typename SourceSecurityGroupOwnerIdT = Aws::String>
144 void SetSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT&& value) { m_sourceSecurityGroupOwnerIdHasBeenSet =
true; m_sourceSecurityGroupOwnerId = std::forward<SourceSecurityGroupOwnerIdT>(value); }
145 template<
typename SourceSecurityGroupOwnerIdT = Aws::String>
156 inline void SetToPort(
int value) { m_toPortHasBeenSet =
true; m_toPort = value; }
166 template<
typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
167 void SetSecurityGroupRuleIds(SecurityGroupRuleIdsT&& value) { m_securityGroupRuleIdsHasBeenSet =
true; m_securityGroupRuleIds = std::forward<SecurityGroupRuleIdsT>(value); }
168 template<
typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
170 template<
typename SecurityGroupRuleIdsT = Aws::String>
183 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
189 bool m_cidrIpHasBeenSet =
false;
192 bool m_fromPortHasBeenSet =
false;
195 bool m_groupIdHasBeenSet =
false;
198 bool m_groupNameHasBeenSet =
false;
201 bool m_ipPermissionsHasBeenSet =
false;
204 bool m_ipProtocolHasBeenSet =
false;
207 bool m_sourceSecurityGroupNameHasBeenSet =
false;
210 bool m_sourceSecurityGroupOwnerIdHasBeenSet =
false;
213 bool m_toPortHasBeenSet =
false;
216 bool m_securityGroupRuleIdsHasBeenSet =
false;
218 bool m_dryRun{
false};
219 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