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>
12#include <aws/ec2/model/IpRange.h>
13#include <aws/ec2/model/Ipv6Range.h>
14#include <aws/ec2/model/PrefixListId.h>
64 inline void SetIpProtocol(
const char* value) { m_ipProtocolHasBeenSet =
true; m_ipProtocol.assign(value); }
77 inline void SetFromPort(
int value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
90 inline void SetToPort(
int value) { m_toPortHasBeenSet =
true; m_toPort = value; }
152 bool m_ipProtocolHasBeenSet =
false;
155 bool m_fromPortHasBeenSet =
false;
158 bool m_toPortHasBeenSet =
false;
161 bool m_userIdGroupPairsHasBeenSet =
false;
164 bool m_ipRangesHasBeenSet =
false;
167 bool m_ipv6RangesHasBeenSet =
false;
170 bool m_prefixListIdsHasBeenSet =
false;
IpPermission & WithPrefixListIds(const Aws::Vector< PrefixListId > &value)
IpPermission & AddIpv6Ranges(Ipv6Range &&value)
void SetIpv6Ranges(const Aws::Vector< Ipv6Range > &value)
IpPermission & WithUserIdGroupPairs(Aws::Vector< UserIdGroupPair > &&value)
const Aws::Vector< IpRange > & GetIpRanges() const
IpPermission & WithIpRanges(Aws::Vector< IpRange > &&value)
void SetIpProtocol(const char *value)
bool ToPortHasBeenSet() const
const Aws::Vector< Ipv6Range > & GetIpv6Ranges() const
IpPermission & AddPrefixListIds(PrefixListId &&value)
IpPermission & WithFromPort(int value)
IpPermission & WithUserIdGroupPairs(const Aws::Vector< UserIdGroupPair > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool IpRangesHasBeenSet() const
void SetUserIdGroupPairs(const Aws::Vector< UserIdGroupPair > &value)
IpPermission & WithPrefixListIds(Aws::Vector< PrefixListId > &&value)
const Aws::String & GetIpProtocol() const
IpPermission & AddIpRanges(IpRange &&value)
IpPermission & WithToPort(int value)
AWS_EC2_API IpPermission()
void SetIpProtocol(const Aws::String &value)
IpPermission & WithIpProtocol(const Aws::String &value)
bool IpProtocolHasBeenSet() const
bool FromPortHasBeenSet() const
IpPermission & AddUserIdGroupPairs(UserIdGroupPair &&value)
void SetToPort(int value)
AWS_EC2_API IpPermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IpPermission & AddIpRanges(const IpRange &value)
bool UserIdGroupPairsHasBeenSet() const
IpPermission & WithIpv6Ranges(const Aws::Vector< Ipv6Range > &value)
bool PrefixListIdsHasBeenSet() const
IpPermission & AddPrefixListIds(const PrefixListId &value)
const Aws::Vector< UserIdGroupPair > & GetUserIdGroupPairs() const
void SetPrefixListIds(Aws::Vector< PrefixListId > &&value)
void SetUserIdGroupPairs(Aws::Vector< UserIdGroupPair > &&value)
void SetIpRanges(const Aws::Vector< IpRange > &value)
void SetPrefixListIds(const Aws::Vector< PrefixListId > &value)
void SetIpRanges(Aws::Vector< IpRange > &&value)
IpPermission & AddIpv6Ranges(const Ipv6Range &value)
IpPermission & AddUserIdGroupPairs(const UserIdGroupPair &value)
void SetFromPort(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetIpv6Ranges(Aws::Vector< Ipv6Range > &&value)
IpPermission & WithIpRanges(const Aws::Vector< IpRange > &value)
AWS_EC2_API IpPermission(const Aws::Utils::Xml::XmlNode &xmlNode)
IpPermission & WithIpv6Ranges(Aws::Vector< Ipv6Range > &&value)
const Aws::Vector< PrefixListId > & GetPrefixListIds() const
IpPermission & WithIpProtocol(const char *value)
IpPermission & WithIpProtocol(Aws::String &&value)
bool Ipv6RangesHasBeenSet() const
void SetIpProtocol(Aws::String &&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