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>
12#include <aws/ec2/model/TagSpecification.h>
59 template<
typename C
idrIpT = Aws::String>
60 void SetCidrIp(CidrIpT&& value) { m_cidrIpHasBeenSet =
true; m_cidrIp = std::forward<CidrIpT>(value); }
61 template<
typename C
idrIpT = Aws::String>
74 inline void SetFromPort(
int value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
84 template<
typename GroupIdT = Aws::String>
85 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet =
true; m_groupId = std::forward<GroupIdT>(value); }
86 template<
typename GroupIdT = Aws::String>
99 template<
typename GroupNameT = Aws::String>
100 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet =
true; m_groupName = std::forward<GroupNameT>(value); }
101 template<
typename GroupNameT = Aws::String>
111 template<
typename IpPermissionsT = Aws::Vector<IpPermission>>
112 void SetIpPermissions(IpPermissionsT&& value) { m_ipPermissionsHasBeenSet =
true; m_ipPermissions = std::forward<IpPermissionsT>(value); }
113 template<
typename IpPermissionsT = Aws::Vector<IpPermission>>
115 template<
typename IpPermissionsT = IpPermission>
132 template<
typename IpProtocolT = Aws::String>
133 void SetIpProtocol(IpProtocolT&& value) { m_ipProtocolHasBeenSet =
true; m_ipProtocol = std::forward<IpProtocolT>(value); }
134 template<
typename IpProtocolT = Aws::String>
146 template<
typename SourceSecurityGroupNameT = Aws::String>
147 void SetSourceSecurityGroupName(SourceSecurityGroupNameT&& value) { m_sourceSecurityGroupNameHasBeenSet =
true; m_sourceSecurityGroupName = std::forward<SourceSecurityGroupNameT>(value); }
148 template<
typename SourceSecurityGroupNameT = Aws::String>
161 template<
typename SourceSecurityGroupOwnerIdT = Aws::String>
162 void SetSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT&& value) { m_sourceSecurityGroupOwnerIdHasBeenSet =
true; m_sourceSecurityGroupOwnerId = std::forward<SourceSecurityGroupOwnerIdT>(value); }
163 template<
typename SourceSecurityGroupOwnerIdT = Aws::String>
177 inline void SetToPort(
int value) { m_toPortHasBeenSet =
true; m_toPort = value; }
187 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
188 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet =
true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
189 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
191 template<
typename TagSpecificationsT = TagSpecification>
204 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
210 bool m_cidrIpHasBeenSet =
false;
213 bool m_fromPortHasBeenSet =
false;
216 bool m_groupIdHasBeenSet =
false;
219 bool m_groupNameHasBeenSet =
false;
222 bool m_ipPermissionsHasBeenSet =
false;
225 bool m_ipProtocolHasBeenSet =
false;
228 bool m_sourceSecurityGroupNameHasBeenSet =
false;
231 bool m_sourceSecurityGroupOwnerIdHasBeenSet =
false;
234 bool m_toPortHasBeenSet =
false;
237 bool m_tagSpecificationsHasBeenSet =
false;
239 bool m_dryRun{
false};
240 bool m_dryRunHasBeenSet =
false;
const Aws::String & GetGroupName() const
AuthorizeSecurityGroupIngressRequest & WithGroupId(GroupIdT &&value)
const Aws::String & GetSourceSecurityGroupName() const
const Aws::String & GetSourceSecurityGroupOwnerId() const
void SetCidrIp(CidrIpT &&value)
bool IpProtocolHasBeenSet() const
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetIpProtocol(IpProtocolT &&value)
AWS_EC2_API AuthorizeSecurityGroupIngressRequest()=default
bool ToPortHasBeenSet() const
bool DryRunHasBeenSet() const
bool SourceSecurityGroupNameHasBeenSet() const
AuthorizeSecurityGroupIngressRequest & WithDryRun(bool value)
const Aws::String & GetCidrIp() const
void SetGroupName(GroupNameT &&value)
AuthorizeSecurityGroupIngressRequest & WithGroupName(GroupNameT &&value)
AuthorizeSecurityGroupIngressRequest & AddIpPermissions(IpPermissionsT &&value)
AuthorizeSecurityGroupIngressRequest & WithCidrIp(CidrIpT &&value)
AuthorizeSecurityGroupIngressRequest & WithFromPort(int value)
bool GroupIdHasBeenSet() const
bool GroupNameHasBeenSet() const
AuthorizeSecurityGroupIngressRequest & AddTagSpecifications(TagSpecificationsT &&value)
void SetIpPermissions(IpPermissionsT &&value)
const Aws::Vector< IpPermission > & GetIpPermissions() const
bool SourceSecurityGroupOwnerIdHasBeenSet() const
AuthorizeSecurityGroupIngressRequest & WithIpProtocol(IpProtocolT &&value)
void SetTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetGroupId(GroupIdT &&value)
void SetSourceSecurityGroupName(SourceSecurityGroupNameT &&value)
AuthorizeSecurityGroupIngressRequest & WithSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT &&value)
virtual const char * GetServiceRequestName() const override
AuthorizeSecurityGroupIngressRequest & WithSourceSecurityGroupName(SourceSecurityGroupNameT &&value)
AuthorizeSecurityGroupIngressRequest & WithToPort(int value)
bool TagSpecificationsHasBeenSet() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::String & GetIpProtocol() const
void SetFromPort(int value)
void SetDryRun(bool value)
AuthorizeSecurityGroupIngressRequest & WithTagSpecifications(TagSpecificationsT &&value)
void SetSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT &&value)
bool CidrIpHasBeenSet() const
AuthorizeSecurityGroupIngressRequest & WithIpPermissions(IpPermissionsT &&value)
void SetToPort(int value)
const Aws::String & GetGroupId() const
bool FromPortHasBeenSet() const
bool IpPermissionsHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector