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/UserIdGroupPair.h>
46 m_fromPortHasBeenSet =
true;
64 template <
typename IpProtocolT = Aws::String>
66 m_ipProtocolHasBeenSet =
true;
67 m_ipProtocol = std::forward<IpProtocolT>(value);
69 template <
typename IpProtocolT = Aws::String>
82 template <
typename IpRangesT = Aws::Vector<Aws::String>>
84 m_ipRangesHasBeenSet =
true;
85 m_ipRanges = std::forward<IpRangesT>(value);
87 template <
typename IpRangesT = Aws::Vector<Aws::String>>
92 template <
typename IpRangesT = Aws::String>
94 m_ipRangesHasBeenSet =
true;
95 m_ipRanges.emplace_back(std::forward<IpRangesT>(value));
106 template <
typename PrefixListIdsT = Aws::Vector<Aws::String>>
108 m_prefixListIdsHasBeenSet =
true;
109 m_prefixListIds = std::forward<PrefixListIdsT>(value);
111 template <
typename PrefixListIdsT = Aws::Vector<Aws::String>>
116 template <
typename PrefixListIdsT = Aws::String>
118 m_prefixListIdsHasBeenSet =
true;
119 m_prefixListIds.emplace_back(std::forward<PrefixListIdsT>(value));
132 m_toPortHasBeenSet =
true;
148 template <
typename UserIdGroupPairsT = Aws::Vector<UserIdGroupPair>>
150 m_userIdGroupPairsHasBeenSet =
true;
151 m_userIdGroupPairs = std::forward<UserIdGroupPairsT>(value);
153 template <
typename UserIdGroupPairsT = Aws::Vector<UserIdGroupPair>>
158 template <
typename UserIdGroupPairsT = UserIdGroupPair>
160 m_userIdGroupPairsHasBeenSet =
true;
161 m_userIdGroupPairs.emplace_back(std::forward<UserIdGroupPairsT>(value));
177 bool m_fromPortHasBeenSet =
false;
178 bool m_ipProtocolHasBeenSet =
false;
179 bool m_ipRangesHasBeenSet =
false;
180 bool m_prefixListIdsHasBeenSet =
false;
181 bool m_toPortHasBeenSet =
false;
182 bool m_userIdGroupPairsHasBeenSet =
false;
bool IpRangesHasBeenSet() const
StaleIpPermission & WithPrefixListIds(PrefixListIdsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetToPort(int value)
const Aws::Vector< UserIdGroupPair > & GetUserIdGroupPairs() const
bool PrefixListIdsHasBeenSet() const
StaleIpPermission & WithIpProtocol(IpProtocolT &&value)
StaleIpPermission & WithToPort(int value)
StaleIpPermission & WithIpRanges(IpRangesT &&value)
bool IpProtocolHasBeenSet() const
AWS_EC2_API StaleIpPermission(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API StaleIpPermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetIpRanges(IpRangesT &&value)
const Aws::Vector< Aws::String > & GetPrefixListIds() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool UserIdGroupPairsHasBeenSet() const
StaleIpPermission & AddIpRanges(IpRangesT &&value)
AWS_EC2_API StaleIpPermission()=default
StaleIpPermission & AddUserIdGroupPairs(UserIdGroupPairsT &&value)
StaleIpPermission & WithFromPort(int value)
StaleIpPermission & AddPrefixListIds(PrefixListIdsT &&value)
void SetFromPort(int value)
bool FromPortHasBeenSet() const
const Aws::String & GetIpProtocol() const
const Aws::Vector< Aws::String > & GetIpRanges() const
bool ToPortHasBeenSet() const
void SetUserIdGroupPairs(UserIdGroupPairsT &&value)
StaleIpPermission & WithUserIdGroupPairs(UserIdGroupPairsT &&value)
void SetIpProtocol(IpProtocolT &&value)
void SetPrefixListIds(PrefixListIdsT &&value)
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