AWS SDK for C++  1.9.71
AWS SDK for C++
Ipv6Pool.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 Ipv6Pool& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
74 
78  inline Ipv6Pool& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
79 
83  inline Ipv6Pool& 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 Ipv6Pool& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
115 
119  inline Ipv6Pool& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
120 
124  inline Ipv6Pool& WithDescription(const char* value) { SetDescription(value); return *this;}
125 
126 
130  inline const Aws::Vector<PoolCidrBlock>& GetPoolCidrBlocks() const{ return m_poolCidrBlocks; }
131 
135  inline bool PoolCidrBlocksHasBeenSet() const { return m_poolCidrBlocksHasBeenSet; }
136 
140  inline void SetPoolCidrBlocks(const Aws::Vector<PoolCidrBlock>& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks = value; }
141 
145  inline void SetPoolCidrBlocks(Aws::Vector<PoolCidrBlock>&& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks = std::move(value); }
146 
150  inline Ipv6Pool& WithPoolCidrBlocks(const Aws::Vector<PoolCidrBlock>& value) { SetPoolCidrBlocks(value); return *this;}
151 
155  inline Ipv6Pool& WithPoolCidrBlocks(Aws::Vector<PoolCidrBlock>&& value) { SetPoolCidrBlocks(std::move(value)); return *this;}
156 
160  inline Ipv6Pool& AddPoolCidrBlocks(const PoolCidrBlock& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks.push_back(value); return *this; }
161 
165  inline Ipv6Pool& AddPoolCidrBlocks(PoolCidrBlock&& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks.push_back(std::move(value)); return *this; }
166 
167 
171  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
172 
176  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 
181  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
182 
186  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
187 
191  inline Ipv6Pool& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
192 
196  inline Ipv6Pool& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
197 
201  inline Ipv6Pool& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
202 
206  inline Ipv6Pool& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
207 
208  private:
209 
210  Aws::String m_poolId;
211  bool m_poolIdHasBeenSet;
212 
213  Aws::String m_description;
214  bool m_descriptionHasBeenSet;
215 
216  Aws::Vector<PoolCidrBlock> m_poolCidrBlocks;
217  bool m_poolCidrBlocksHasBeenSet;
218 
219  Aws::Vector<Tag> m_tags;
220  bool m_tagsHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace EC2
225 } // namespace Aws
Aws::EC2::Model::Ipv6Pool::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: Ipv6Pool.h:186
Aws::EC2::Model::Ipv6Pool::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: Ipv6Pool.h:181
Aws::EC2::Model::Ipv6Pool::SetPoolId
void SetPoolId(const char *value)
Definition: Ipv6Pool.h:68
Aws::EC2::Model::Ipv6Pool
Definition: Ipv6Pool.h:35
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::Ipv6Pool::GetPoolCidrBlocks
const Aws::Vector< PoolCidrBlock > & GetPoolCidrBlocks() const
Definition: Ipv6Pool.h:130
Aws::EC2::Model::PoolCidrBlock
Definition: PoolCidrBlock.h:32
Aws::EC2::Model::Ipv6Pool::SetPoolCidrBlocks
void SetPoolCidrBlocks(const Aws::Vector< PoolCidrBlock > &value)
Definition: Ipv6Pool.h:140
Aws::EC2::Model::Ipv6Pool::AddPoolCidrBlocks
Ipv6Pool & AddPoolCidrBlocks(const PoolCidrBlock &value)
Definition: Ipv6Pool.h:160
Aws::EC2::Model::Ipv6Pool::operator=
Ipv6Pool & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::Ipv6Pool::AddTags
Ipv6Pool & AddTags(Tag &&value)
Definition: Ipv6Pool.h:206
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::Ipv6Pool::WithPoolId
Ipv6Pool & WithPoolId(Aws::String &&value)
Definition: Ipv6Pool.h:78
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::Ipv6Pool::PoolIdHasBeenSet
bool PoolIdHasBeenSet() const
Definition: Ipv6Pool.h:53
AWSVector.h
Tag.h
Aws::EC2::Model::Ipv6Pool::WithPoolId
Ipv6Pool & WithPoolId(const Aws::String &value)
Definition: Ipv6Pool.h:73
Aws::EC2::Model::Ipv6Pool::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: Ipv6Pool.h:94
Aws::EC2::Model::Ipv6Pool::GetDescription
const Aws::String & GetDescription() const
Definition: Ipv6Pool.h:89
Aws::EC2::Model::Ipv6Pool::WithPoolId
Ipv6Pool & WithPoolId(const char *value)
Definition: Ipv6Pool.h:83
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::Ipv6Pool::WithDescription
Ipv6Pool & WithDescription(Aws::String &&value)
Definition: Ipv6Pool.h:119
Aws::EC2::Model::Ipv6Pool::SetPoolId
void SetPoolId(const Aws::String &value)
Definition: Ipv6Pool.h:58
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::Ipv6Pool::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::Ipv6Pool::SetPoolCidrBlocks
void SetPoolCidrBlocks(Aws::Vector< PoolCidrBlock > &&value)
Definition: Ipv6Pool.h:145
Aws::EC2::Model::Ipv6Pool::SetPoolId
void SetPoolId(Aws::String &&value)
Definition: Ipv6Pool.h:63
Aws::EC2::Model::Ipv6Pool::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: Ipv6Pool.h:176
Aws::EC2::Model::Ipv6Pool::WithPoolCidrBlocks
Ipv6Pool & WithPoolCidrBlocks(const Aws::Vector< PoolCidrBlock > &value)
Definition: Ipv6Pool.h:150
AWSString.h
PoolCidrBlock.h
Aws::EC2::Model::Ipv6Pool::Ipv6Pool
Ipv6Pool(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::Ipv6Pool::WithDescription
Ipv6Pool & WithDescription(const Aws::String &value)
Definition: Ipv6Pool.h:114
Aws::EC2::Model::Ipv6Pool::GetPoolId
const Aws::String & GetPoolId() const
Definition: Ipv6Pool.h:48
Aws::EC2::Model::Ipv6Pool::AddPoolCidrBlocks
Ipv6Pool & AddPoolCidrBlocks(PoolCidrBlock &&value)
Definition: Ipv6Pool.h:165
Aws::EC2::Model::Ipv6Pool::SetDescription
void SetDescription(const char *value)
Definition: Ipv6Pool.h:109
Aws::EC2::Model::Ipv6Pool::WithDescription
Ipv6Pool & WithDescription(const char *value)
Definition: Ipv6Pool.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::Ipv6Pool::SetDescription
void SetDescription(Aws::String &&value)
Definition: Ipv6Pool.h:104
Aws::EC2::Model::Ipv6Pool::PoolCidrBlocksHasBeenSet
bool PoolCidrBlocksHasBeenSet() const
Definition: Ipv6Pool.h:135
Aws::EC2::Model::Ipv6Pool::WithPoolCidrBlocks
Ipv6Pool & WithPoolCidrBlocks(Aws::Vector< PoolCidrBlock > &&value)
Definition: Ipv6Pool.h:155
Aws::EC2::Model::Ipv6Pool::AddTags
Ipv6Pool & AddTags(const Tag &value)
Definition: Ipv6Pool.h:201
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::Ipv6Pool::WithTags
Ipv6Pool & WithTags(Aws::Vector< Tag > &&value)
Definition: Ipv6Pool.h:196
EC2_EXPORTS.h
Aws::EC2::Model::Ipv6Pool::SetDescription
void SetDescription(const Aws::String &value)
Definition: Ipv6Pool.h:99
Aws::EC2::Model::Ipv6Pool::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: Ipv6Pool.h:171
Aws::EC2::Model::Ipv6Pool::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::Ipv6Pool::Ipv6Pool
Ipv6Pool()
Aws::EC2::Model::Ipv6Pool::WithTags
Ipv6Pool & WithTags(const Aws::Vector< Tag > &value)
Definition: Ipv6Pool.h:191