7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/IpRange.h>
12#include <aws/ec2/model/Ipv6Range.h>
13#include <aws/ec2/model/PrefixListId.h>
14#include <aws/ec2/model/UserIdGroupPair.h>
56 template <
typename IpProtocolT = Aws::String>
58 m_ipProtocolHasBeenSet =
true;
59 m_ipProtocol = std::forward<IpProtocolT>(value);
61 template <
typename IpProtocolT = Aws::String>
76 m_fromPortHasBeenSet =
true;
95 m_toPortHasBeenSet =
true;
110 template <
typename UserIdGroupPairsT = Aws::Vector<UserIdGroupPair>>
112 m_userIdGroupPairsHasBeenSet =
true;
113 m_userIdGroupPairs = std::forward<UserIdGroupPairsT>(value);
115 template <
typename UserIdGroupPairsT = Aws::Vector<UserIdGroupPair>>
120 template <
typename UserIdGroupPairsT = UserIdGroupPair>
122 m_userIdGroupPairsHasBeenSet =
true;
123 m_userIdGroupPairs.emplace_back(std::forward<UserIdGroupPairsT>(value));
134 template <
typename IpRangesT = Aws::Vector<IpRange>>
136 m_ipRangesHasBeenSet =
true;
137 m_ipRanges = std::forward<IpRangesT>(value);
139 template <
typename IpRangesT = Aws::Vector<IpRange>>
144 template <
typename IpRangesT = IpRange>
146 m_ipRangesHasBeenSet =
true;
147 m_ipRanges.emplace_back(std::forward<IpRangesT>(value));
158 template <
typename Ipv6RangesT = Aws::Vector<Ipv6Range>>
160 m_ipv6RangesHasBeenSet =
true;
161 m_ipv6Ranges = std::forward<Ipv6RangesT>(value);
163 template <
typename Ipv6RangesT = Aws::Vector<Ipv6Range>>
168 template <
typename Ipv6RangesT = Ipv6Range>
170 m_ipv6RangesHasBeenSet =
true;
171 m_ipv6Ranges.emplace_back(std::forward<Ipv6RangesT>(value));
182 template <
typename PrefixListIdsT = Aws::Vector<PrefixListId>>
184 m_prefixListIdsHasBeenSet =
true;
185 m_prefixListIds = std::forward<PrefixListIdsT>(value);
187 template <
typename PrefixListIdsT = Aws::Vector<PrefixListId>>
192 template <
typename PrefixListIdsT = PrefixListId>
194 m_prefixListIdsHasBeenSet =
true;
195 m_prefixListIds.emplace_back(std::forward<PrefixListIdsT>(value));
213 bool m_ipProtocolHasBeenSet =
false;
214 bool m_fromPortHasBeenSet =
false;
215 bool m_toPortHasBeenSet =
false;
216 bool m_userIdGroupPairsHasBeenSet =
false;
217 bool m_ipRangesHasBeenSet =
false;
218 bool m_ipv6RangesHasBeenSet =
false;
219 bool m_prefixListIdsHasBeenSet =
false;
IpPermission & AddUserIdGroupPairs(UserIdGroupPairsT &&value)
void SetIpv6Ranges(Ipv6RangesT &&value)
const Aws::Vector< IpRange > & GetIpRanges() const
IpPermission & AddIpRanges(IpRangesT &&value)
void SetIpRanges(IpRangesT &&value)
IpPermission & WithPrefixListIds(PrefixListIdsT &&value)
bool ToPortHasBeenSet() const
const Aws::Vector< Ipv6Range > & GetIpv6Ranges() const
IpPermission & WithFromPort(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool IpRangesHasBeenSet() const
IpPermission & AddIpv6Ranges(Ipv6RangesT &&value)
const Aws::String & GetIpProtocol() const
void SetUserIdGroupPairs(UserIdGroupPairsT &&value)
IpPermission & WithIpv6Ranges(Ipv6RangesT &&value)
IpPermission & WithToPort(int value)
IpPermission & WithUserIdGroupPairs(UserIdGroupPairsT &&value)
bool IpProtocolHasBeenSet() const
bool FromPortHasBeenSet() const
void SetToPort(int value)
AWS_EC2_API IpPermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool UserIdGroupPairsHasBeenSet() const
void SetIpProtocol(IpProtocolT &&value)
bool PrefixListIdsHasBeenSet() const
IpPermission & WithIpProtocol(IpProtocolT &&value)
const Aws::Vector< UserIdGroupPair > & GetUserIdGroupPairs() const
IpPermission & WithIpRanges(IpRangesT &&value)
void SetFromPort(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API IpPermission()=default
void SetPrefixListIds(PrefixListIdsT &&value)
AWS_EC2_API IpPermission(const Aws::Utils::Xml::XmlNode &xmlNode)
IpPermission & AddPrefixListIds(PrefixListIdsT &&value)
const Aws::Vector< PrefixListId > & GetPrefixListIds() const
bool Ipv6RangesHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream