7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/UserIdGroupPair.h>
51 inline void SetFromPort(
int value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
64 template<
typename IpProtocolT = Aws::String>
65 void SetIpProtocol(IpProtocolT&& value) { m_ipProtocolHasBeenSet =
true; m_ipProtocol = std::forward<IpProtocolT>(value); }
66 template<
typename IpProtocolT = Aws::String>
76 template<
typename IpRangesT = Aws::Vector<Aws::String>>
77 void SetIpRanges(IpRangesT&& value) { m_ipRangesHasBeenSet =
true; m_ipRanges = std::forward<IpRangesT>(value); }
78 template<
typename IpRangesT = Aws::Vector<Aws::String>>
80 template<
typename IpRangesT = Aws::String>
81 StaleIpPermission&
AddIpRanges(IpRangesT&& value) { m_ipRangesHasBeenSet =
true; m_ipRanges.emplace_back(std::forward<IpRangesT>(value));
return *
this; }
90 template<
typename PrefixListIdsT = Aws::Vector<Aws::String>>
91 void SetPrefixListIds(PrefixListIdsT&& value) { m_prefixListIdsHasBeenSet =
true; m_prefixListIds = std::forward<PrefixListIdsT>(value); }
92 template<
typename PrefixListIdsT = Aws::Vector<Aws::String>>
94 template<
typename PrefixListIdsT = Aws::String>
95 StaleIpPermission&
AddPrefixListIds(PrefixListIdsT&& value) { m_prefixListIdsHasBeenSet =
true; m_prefixListIds.emplace_back(std::forward<PrefixListIdsT>(value));
return *
this; }
105 inline void SetToPort(
int value) { m_toPortHasBeenSet =
true; m_toPort = value; }
116 template<
typename UserIdGroupPairsT = Aws::Vector<UserIdGroupPair>>
117 void SetUserIdGroupPairs(UserIdGroupPairsT&& value) { m_userIdGroupPairsHasBeenSet =
true; m_userIdGroupPairs = std::forward<UserIdGroupPairsT>(value); }
118 template<
typename UserIdGroupPairsT = Aws::Vector<UserIdGroupPair>>
120 template<
typename UserIdGroupPairsT = UserIdGroupPair>
121 StaleIpPermission&
AddUserIdGroupPairs(UserIdGroupPairsT&& value) { m_userIdGroupPairsHasBeenSet =
true; m_userIdGroupPairs.emplace_back(std::forward<UserIdGroupPairsT>(value));
return *
this; }
126 bool m_fromPortHasBeenSet =
false;
129 bool m_ipProtocolHasBeenSet =
false;
132 bool m_ipRangesHasBeenSet =
false;
135 bool m_prefixListIdsHasBeenSet =
false;
138 bool m_toPortHasBeenSet =
false;
141 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