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/PublicIpv4PoolRange.h>
12#include <aws/ec2/model/Tag.h>
51 template<
typename PoolIdT = Aws::String>
52 void SetPoolId(PoolIdT&& value) { m_poolIdHasBeenSet =
true; m_poolId = std::forward<PoolIdT>(value); }
53 template<
typename PoolIdT = Aws::String>
63 template<
typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
65 template<
typename DescriptionT = Aws::String>
75 template<
typename PoolAddressRangesT = Aws::Vector<PublicIpv4PoolRange>>
76 void SetPoolAddressRanges(PoolAddressRangesT&& value) { m_poolAddressRangesHasBeenSet =
true; m_poolAddressRanges = std::forward<PoolAddressRangesT>(value); }
77 template<
typename PoolAddressRangesT = Aws::Vector<PublicIpv4PoolRange>>
79 template<
typename PoolAddressRangesT = PublicIpv4PoolRange>
80 PublicIpv4Pool&
AddPoolAddressRanges(PoolAddressRangesT&& value) { m_poolAddressRangesHasBeenSet =
true; m_poolAddressRanges.emplace_back(std::forward<PoolAddressRangesT>(value));
return *
this; }
89 inline void SetTotalAddressCount(
int value) { m_totalAddressCountHasBeenSet =
true; m_totalAddressCount = value; }
111 template<
typename NetworkBorderGroupT = Aws::String>
112 void SetNetworkBorderGroup(NetworkBorderGroupT&& value) { m_networkBorderGroupHasBeenSet =
true; m_networkBorderGroup = std::forward<NetworkBorderGroupT>(value); }
113 template<
typename NetworkBorderGroupT = Aws::String>
123 template<
typename TagsT = Aws::Vector<Tag>>
124 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
125 template<
typename TagsT = Aws::Vector<Tag>>
127 template<
typename TagsT = Tag>
128 PublicIpv4Pool&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
133 bool m_poolIdHasBeenSet =
false;
136 bool m_descriptionHasBeenSet =
false;
139 bool m_poolAddressRangesHasBeenSet =
false;
141 int m_totalAddressCount{0};
142 bool m_totalAddressCountHasBeenSet =
false;
144 int m_totalAvailableAddressCount{0};
145 bool m_totalAvailableAddressCountHasBeenSet =
false;
148 bool m_networkBorderGroupHasBeenSet =
false;
151 bool m_tagsHasBeenSet =
false;
bool PoolIdHasBeenSet() const
const Aws::String & GetDescription() const
bool TotalAvailableAddressCountHasBeenSet() const
PublicIpv4Pool & WithPoolAddressRanges(PoolAddressRangesT &&value)
bool TotalAddressCountHasBeenSet() const
void SetTags(TagsT &&value)
void SetPoolId(PoolIdT &&value)
const Aws::Vector< PublicIpv4PoolRange > & GetPoolAddressRanges() const
void SetPoolAddressRanges(PoolAddressRangesT &&value)
const Aws::String & GetPoolId() const
void SetDescription(DescriptionT &&value)
bool DescriptionHasBeenSet() const
PublicIpv4Pool & AddTags(TagsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
int GetTotalAvailableAddressCount() const
AWS_EC2_API PublicIpv4Pool & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PublicIpv4Pool & WithDescription(DescriptionT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< Tag > & GetTags() const
void SetTotalAddressCount(int value)
AWS_EC2_API PublicIpv4Pool(const Aws::Utils::Xml::XmlNode &xmlNode)
bool TagsHasBeenSet() const
PublicIpv4Pool & WithNetworkBorderGroup(NetworkBorderGroupT &&value)
int GetTotalAddressCount() const
PublicIpv4Pool & AddPoolAddressRanges(PoolAddressRangesT &&value)
PublicIpv4Pool & WithTotalAvailableAddressCount(int value)
void SetNetworkBorderGroup(NetworkBorderGroupT &&value)
PublicIpv4Pool & WithTags(TagsT &&value)
const Aws::String & GetNetworkBorderGroup() const
PublicIpv4Pool & WithTotalAddressCount(int value)
void SetTotalAvailableAddressCount(int value)
PublicIpv4Pool & WithPoolId(PoolIdT &&value)
bool NetworkBorderGroupHasBeenSet() const
bool PoolAddressRangesHasBeenSet() const
AWS_EC2_API PublicIpv4Pool()=default
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