AWS SDK for C++  1.9.68
AWS SDK for C++
PublicIpv4Pool.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetPoolId() const{ return m_poolId; }
49 
53  inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
54 
58  inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
59 
63  inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
64 
68  inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
69 
73  inline PublicIpv4Pool& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
74 
78  inline PublicIpv4Pool& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
79 
83  inline PublicIpv4Pool& WithPoolId(const char* value) { SetPoolId(value); return *this;}
84 
85 
89  inline const Aws::String& GetDescription() const{ return m_description; }
90 
94  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 
99  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
100 
104  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
105 
109  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
110 
114  inline PublicIpv4Pool& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
115 
119  inline PublicIpv4Pool& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
120 
124  inline PublicIpv4Pool& WithDescription(const char* value) { SetDescription(value); return *this;}
125 
126 
130  inline const Aws::Vector<PublicIpv4PoolRange>& GetPoolAddressRanges() const{ return m_poolAddressRanges; }
131 
135  inline bool PoolAddressRangesHasBeenSet() const { return m_poolAddressRangesHasBeenSet; }
136 
140  inline void SetPoolAddressRanges(const Aws::Vector<PublicIpv4PoolRange>& value) { m_poolAddressRangesHasBeenSet = true; m_poolAddressRanges = value; }
141 
145  inline void SetPoolAddressRanges(Aws::Vector<PublicIpv4PoolRange>&& value) { m_poolAddressRangesHasBeenSet = true; m_poolAddressRanges = std::move(value); }
146 
150  inline PublicIpv4Pool& WithPoolAddressRanges(const Aws::Vector<PublicIpv4PoolRange>& value) { SetPoolAddressRanges(value); return *this;}
151 
155  inline PublicIpv4Pool& WithPoolAddressRanges(Aws::Vector<PublicIpv4PoolRange>&& value) { SetPoolAddressRanges(std::move(value)); return *this;}
156 
160  inline PublicIpv4Pool& AddPoolAddressRanges(const PublicIpv4PoolRange& value) { m_poolAddressRangesHasBeenSet = true; m_poolAddressRanges.push_back(value); return *this; }
161 
165  inline PublicIpv4Pool& AddPoolAddressRanges(PublicIpv4PoolRange&& value) { m_poolAddressRangesHasBeenSet = true; m_poolAddressRanges.push_back(std::move(value)); return *this; }
166 
167 
171  inline int GetTotalAddressCount() const{ return m_totalAddressCount; }
172 
176  inline bool TotalAddressCountHasBeenSet() const { return m_totalAddressCountHasBeenSet; }
177 
181  inline void SetTotalAddressCount(int value) { m_totalAddressCountHasBeenSet = true; m_totalAddressCount = value; }
182 
186  inline PublicIpv4Pool& WithTotalAddressCount(int value) { SetTotalAddressCount(value); return *this;}
187 
188 
192  inline int GetTotalAvailableAddressCount() const{ return m_totalAvailableAddressCount; }
193 
197  inline bool TotalAvailableAddressCountHasBeenSet() const { return m_totalAvailableAddressCountHasBeenSet; }
198 
202  inline void SetTotalAvailableAddressCount(int value) { m_totalAvailableAddressCountHasBeenSet = true; m_totalAvailableAddressCount = value; }
203 
207  inline PublicIpv4Pool& WithTotalAvailableAddressCount(int value) { SetTotalAvailableAddressCount(value); return *this;}
208 
209 
215  inline const Aws::String& GetNetworkBorderGroup() const{ return m_networkBorderGroup; }
216 
222  inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
223 
229  inline void SetNetworkBorderGroup(const Aws::String& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = value; }
230 
236  inline void SetNetworkBorderGroup(Aws::String&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::move(value); }
237 
243  inline void SetNetworkBorderGroup(const char* value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup.assign(value); }
244 
250  inline PublicIpv4Pool& WithNetworkBorderGroup(const Aws::String& value) { SetNetworkBorderGroup(value); return *this;}
251 
257  inline PublicIpv4Pool& WithNetworkBorderGroup(Aws::String&& value) { SetNetworkBorderGroup(std::move(value)); return *this;}
258 
264  inline PublicIpv4Pool& WithNetworkBorderGroup(const char* value) { SetNetworkBorderGroup(value); return *this;}
265 
266 
270  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
271 
275  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
276 
280  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
281 
285  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
286 
290  inline PublicIpv4Pool& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
291 
295  inline PublicIpv4Pool& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
296 
300  inline PublicIpv4Pool& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
301 
305  inline PublicIpv4Pool& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
306 
307  private:
308 
309  Aws::String m_poolId;
310  bool m_poolIdHasBeenSet;
311 
312  Aws::String m_description;
313  bool m_descriptionHasBeenSet;
314 
315  Aws::Vector<PublicIpv4PoolRange> m_poolAddressRanges;
316  bool m_poolAddressRangesHasBeenSet;
317 
318  int m_totalAddressCount;
319  bool m_totalAddressCountHasBeenSet;
320 
321  int m_totalAvailableAddressCount;
322  bool m_totalAvailableAddressCountHasBeenSet;
323 
324  Aws::String m_networkBorderGroup;
325  bool m_networkBorderGroupHasBeenSet;
326 
327  Aws::Vector<Tag> m_tags;
328  bool m_tagsHasBeenSet;
329  };
330 
331 } // namespace Model
332 } // namespace EC2
333 } // namespace Aws
Aws::EC2::Model::PublicIpv4Pool::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: PublicIpv4Pool.h:270
Aws::EC2::Model::PublicIpv4Pool::PublicIpv4Pool
PublicIpv4Pool()
Aws::EC2::Model::PublicIpv4Pool::WithPoolId
PublicIpv4Pool & WithPoolId(const Aws::String &value)
Definition: PublicIpv4Pool.h:73
Aws::EC2::Model::PublicIpv4Pool::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::PublicIpv4Pool::WithDescription
PublicIpv4Pool & WithDescription(const char *value)
Definition: PublicIpv4Pool.h:124
Aws::EC2::Model::PublicIpv4Pool::WithPoolId
PublicIpv4Pool & WithPoolId(const char *value)
Definition: PublicIpv4Pool.h:83
Aws::EC2::Model::PublicIpv4Pool::WithNetworkBorderGroup
PublicIpv4Pool & WithNetworkBorderGroup(const Aws::String &value)
Definition: PublicIpv4Pool.h:250
Aws::EC2::Model::PublicIpv4Pool::SetNetworkBorderGroup
void SetNetworkBorderGroup(Aws::String &&value)
Definition: PublicIpv4Pool.h:236
Aws::EC2::Model::PublicIpv4Pool::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: PublicIpv4Pool.h:275
Aws::EC2::Model::PublicIpv4Pool::SetPoolAddressRanges
void SetPoolAddressRanges(Aws::Vector< PublicIpv4PoolRange > &&value)
Definition: PublicIpv4Pool.h:145
Aws::EC2::Model::PublicIpv4Pool::SetPoolId
void SetPoolId(Aws::String &&value)
Definition: PublicIpv4Pool.h:63
Aws::EC2::Model::PublicIpv4Pool::AddPoolAddressRanges
PublicIpv4Pool & AddPoolAddressRanges(PublicIpv4PoolRange &&value)
Definition: PublicIpv4Pool.h:165
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PublicIpv4Pool::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: PublicIpv4Pool.h:94
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::PublicIpv4Pool::TotalAvailableAddressCountHasBeenSet
bool TotalAvailableAddressCountHasBeenSet() const
Definition: PublicIpv4Pool.h:197
Aws::EC2::Model::PublicIpv4Pool::AddTags
PublicIpv4Pool & AddTags(Tag &&value)
Definition: PublicIpv4Pool.h:305
Aws::EC2::Model::PublicIpv4Pool::WithTags
PublicIpv4Pool & WithTags(Aws::Vector< Tag > &&value)
Definition: PublicIpv4Pool.h:295
AWSStreamFwd.h
Aws::EC2::Model::PublicIpv4Pool::NetworkBorderGroupHasBeenSet
bool NetworkBorderGroupHasBeenSet() const
Definition: PublicIpv4Pool.h:222
AWSVector.h
Tag.h
Aws::EC2::Model::PublicIpv4Pool::PublicIpv4Pool
PublicIpv4Pool(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PublicIpv4Pool::SetNetworkBorderGroup
void SetNetworkBorderGroup(const Aws::String &value)
Definition: PublicIpv4Pool.h:229
Aws::EC2::Model::PublicIpv4Pool::SetDescription
void SetDescription(Aws::String &&value)
Definition: PublicIpv4Pool.h:104
Aws::EC2::Model::PublicIpv4Pool::GetDescription
const Aws::String & GetDescription() const
Definition: PublicIpv4Pool.h:89
Aws::EC2::Model::PublicIpv4PoolRange
Definition: PublicIpv4PoolRange.h:33
Aws::EC2::Model::PublicIpv4Pool::GetPoolId
const Aws::String & GetPoolId() const
Definition: PublicIpv4Pool.h:48
Aws::EC2::Model::PublicIpv4Pool::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: PublicIpv4Pool.h:280
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PublicIpv4Pool::TotalAddressCountHasBeenSet
bool TotalAddressCountHasBeenSet() const
Definition: PublicIpv4Pool.h:176
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PublicIpv4Pool::WithNetworkBorderGroup
PublicIpv4Pool & WithNetworkBorderGroup(const char *value)
Definition: PublicIpv4Pool.h:264
Aws::EC2::Model::PublicIpv4Pool::WithTotalAvailableAddressCount
PublicIpv4Pool & WithTotalAvailableAddressCount(int value)
Definition: PublicIpv4Pool.h:207
Aws::EC2::Model::PublicIpv4Pool::WithDescription
PublicIpv4Pool & WithDescription(const Aws::String &value)
Definition: PublicIpv4Pool.h:114
Aws::EC2::Model::PublicIpv4Pool::SetPoolId
void SetPoolId(const char *value)
Definition: PublicIpv4Pool.h:68
PublicIpv4PoolRange.h
Aws::EC2::Model::PublicIpv4Pool::WithPoolId
PublicIpv4Pool & WithPoolId(Aws::String &&value)
Definition: PublicIpv4Pool.h:78
Aws::EC2::Model::PublicIpv4Pool::GetTotalAvailableAddressCount
int GetTotalAvailableAddressCount() const
Definition: PublicIpv4Pool.h:192
Aws::EC2::Model::PublicIpv4Pool::AddPoolAddressRanges
PublicIpv4Pool & AddPoolAddressRanges(const PublicIpv4PoolRange &value)
Definition: PublicIpv4Pool.h:160
Aws::EC2::Model::PublicIpv4Pool::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::PublicIpv4Pool::GetNetworkBorderGroup
const Aws::String & GetNetworkBorderGroup() const
Definition: PublicIpv4Pool.h:215
AWSString.h
Aws::EC2::Model::PublicIpv4Pool::SetPoolId
void SetPoolId(const Aws::String &value)
Definition: PublicIpv4Pool.h:58
Aws::EC2::Model::PublicIpv4Pool::GetPoolAddressRanges
const Aws::Vector< PublicIpv4PoolRange > & GetPoolAddressRanges() const
Definition: PublicIpv4Pool.h:130
Aws::EC2::Model::PublicIpv4Pool::GetTotalAddressCount
int GetTotalAddressCount() const
Definition: PublicIpv4Pool.h:171
Aws::EC2::Model::PublicIpv4Pool::PoolAddressRangesHasBeenSet
bool PoolAddressRangesHasBeenSet() const
Definition: PublicIpv4Pool.h:135
Aws::EC2::Model::PublicIpv4Pool::SetTotalAddressCount
void SetTotalAddressCount(int value)
Definition: PublicIpv4Pool.h:181
Aws::EC2::Model::PublicIpv4Pool::WithPoolAddressRanges
PublicIpv4Pool & WithPoolAddressRanges(Aws::Vector< PublicIpv4PoolRange > &&value)
Definition: PublicIpv4Pool.h:155
Aws::EC2::Model::PublicIpv4Pool
Definition: PublicIpv4Pool.h:35
Aws::EC2::Model::PublicIpv4Pool::WithDescription
PublicIpv4Pool & WithDescription(Aws::String &&value)
Definition: PublicIpv4Pool.h:119
Aws::EC2::Model::PublicIpv4Pool::SetNetworkBorderGroup
void SetNetworkBorderGroup(const char *value)
Definition: PublicIpv4Pool.h:243
Aws::EC2::Model::PublicIpv4Pool::WithTags
PublicIpv4Pool & WithTags(const Aws::Vector< Tag > &value)
Definition: PublicIpv4Pool.h:290
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PublicIpv4Pool::AddTags
PublicIpv4Pool & AddTags(const Tag &value)
Definition: PublicIpv4Pool.h:300
Aws::EC2::Model::PublicIpv4Pool::SetTotalAvailableAddressCount
void SetTotalAvailableAddressCount(int value)
Definition: PublicIpv4Pool.h:202
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::PublicIpv4Pool::PoolIdHasBeenSet
bool PoolIdHasBeenSet() const
Definition: PublicIpv4Pool.h:53
Aws::EC2::Model::PublicIpv4Pool::SetDescription
void SetDescription(const char *value)
Definition: PublicIpv4Pool.h:109
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::PublicIpv4Pool::WithTotalAddressCount
PublicIpv4Pool & WithTotalAddressCount(int value)
Definition: PublicIpv4Pool.h:186
Aws::EC2::Model::PublicIpv4Pool::SetDescription
void SetDescription(const Aws::String &value)
Definition: PublicIpv4Pool.h:99
Aws::EC2::Model::PublicIpv4Pool::SetPoolAddressRanges
void SetPoolAddressRanges(const Aws::Vector< PublicIpv4PoolRange > &value)
Definition: PublicIpv4Pool.h:140
Aws::EC2::Model::PublicIpv4Pool::operator=
PublicIpv4Pool & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PublicIpv4Pool::WithNetworkBorderGroup
PublicIpv4Pool & WithNetworkBorderGroup(Aws::String &&value)
Definition: PublicIpv4Pool.h:257
EC2_EXPORTS.h
Aws::EC2::Model::PublicIpv4Pool::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: PublicIpv4Pool.h:285
Aws::EC2::Model::PublicIpv4Pool::WithPoolAddressRanges
PublicIpv4Pool & WithPoolAddressRanges(const Aws::Vector< PublicIpv4PoolRange > &value)
Definition: PublicIpv4Pool.h:150