AWS SDK for C++  1.9.67
AWS SDK for C++
CoipPool.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <aws/ec2/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetPoolId() const{ return m_poolId; }
48 
52  inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
53 
57  inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
58 
62  inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
63 
67  inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
68 
72  inline CoipPool& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
73 
77  inline CoipPool& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
78 
82  inline CoipPool& WithPoolId(const char* value) { SetPoolId(value); return *this;}
83 
84 
88  inline const Aws::Vector<Aws::String>& GetPoolCidrs() const{ return m_poolCidrs; }
89 
93  inline bool PoolCidrsHasBeenSet() const { return m_poolCidrsHasBeenSet; }
94 
98  inline void SetPoolCidrs(const Aws::Vector<Aws::String>& value) { m_poolCidrsHasBeenSet = true; m_poolCidrs = value; }
99 
103  inline void SetPoolCidrs(Aws::Vector<Aws::String>&& value) { m_poolCidrsHasBeenSet = true; m_poolCidrs = std::move(value); }
104 
108  inline CoipPool& WithPoolCidrs(const Aws::Vector<Aws::String>& value) { SetPoolCidrs(value); return *this;}
109 
113  inline CoipPool& WithPoolCidrs(Aws::Vector<Aws::String>&& value) { SetPoolCidrs(std::move(value)); return *this;}
114 
118  inline CoipPool& AddPoolCidrs(const Aws::String& value) { m_poolCidrsHasBeenSet = true; m_poolCidrs.push_back(value); return *this; }
119 
123  inline CoipPool& AddPoolCidrs(Aws::String&& value) { m_poolCidrsHasBeenSet = true; m_poolCidrs.push_back(std::move(value)); return *this; }
124 
128  inline CoipPool& AddPoolCidrs(const char* value) { m_poolCidrsHasBeenSet = true; m_poolCidrs.push_back(value); return *this; }
129 
130 
134  inline const Aws::String& GetLocalGatewayRouteTableId() const{ return m_localGatewayRouteTableId; }
135 
139  inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
140 
144  inline void SetLocalGatewayRouteTableId(const Aws::String& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = value; }
145 
149  inline void SetLocalGatewayRouteTableId(Aws::String&& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = std::move(value); }
150 
154  inline void SetLocalGatewayRouteTableId(const char* value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId.assign(value); }
155 
159  inline CoipPool& WithLocalGatewayRouteTableId(const Aws::String& value) { SetLocalGatewayRouteTableId(value); return *this;}
160 
164  inline CoipPool& WithLocalGatewayRouteTableId(Aws::String&& value) { SetLocalGatewayRouteTableId(std::move(value)); return *this;}
165 
169  inline CoipPool& WithLocalGatewayRouteTableId(const char* value) { SetLocalGatewayRouteTableId(value); return *this;}
170 
171 
175  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
176 
180  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 
185  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
186 
190  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
191 
195  inline CoipPool& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
196 
200  inline CoipPool& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
201 
205  inline CoipPool& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
206 
210  inline CoipPool& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
211 
212 
216  inline const Aws::String& GetPoolArn() const{ return m_poolArn; }
217 
221  inline bool PoolArnHasBeenSet() const { return m_poolArnHasBeenSet; }
222 
226  inline void SetPoolArn(const Aws::String& value) { m_poolArnHasBeenSet = true; m_poolArn = value; }
227 
231  inline void SetPoolArn(Aws::String&& value) { m_poolArnHasBeenSet = true; m_poolArn = std::move(value); }
232 
236  inline void SetPoolArn(const char* value) { m_poolArnHasBeenSet = true; m_poolArn.assign(value); }
237 
241  inline CoipPool& WithPoolArn(const Aws::String& value) { SetPoolArn(value); return *this;}
242 
246  inline CoipPool& WithPoolArn(Aws::String&& value) { SetPoolArn(std::move(value)); return *this;}
247 
251  inline CoipPool& WithPoolArn(const char* value) { SetPoolArn(value); return *this;}
252 
253  private:
254 
255  Aws::String m_poolId;
256  bool m_poolIdHasBeenSet;
257 
258  Aws::Vector<Aws::String> m_poolCidrs;
259  bool m_poolCidrsHasBeenSet;
260 
261  Aws::String m_localGatewayRouteTableId;
262  bool m_localGatewayRouteTableIdHasBeenSet;
263 
264  Aws::Vector<Tag> m_tags;
265  bool m_tagsHasBeenSet;
266 
267  Aws::String m_poolArn;
268  bool m_poolArnHasBeenSet;
269  };
270 
271 } // namespace Model
272 } // namespace EC2
273 } // namespace Aws
Aws::EC2::Model::CoipPool::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CoipPool.h:190
Aws::EC2::Model::CoipPool::WithTags
CoipPool & WithTags(Aws::Vector< Tag > &&value)
Definition: CoipPool.h:200
Aws::EC2::Model::CoipPool::PoolIdHasBeenSet
bool PoolIdHasBeenSet() const
Definition: CoipPool.h:52
Aws::EC2::Model::CoipPool::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CoipPool.h:175
Aws::EC2::Model::CoipPool::SetPoolCidrs
void SetPoolCidrs(const Aws::Vector< Aws::String > &value)
Definition: CoipPool.h:98
Aws::EC2::Model::CoipPool::PoolCidrsHasBeenSet
bool PoolCidrsHasBeenSet() const
Definition: CoipPool.h:93
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::CoipPool::GetPoolId
const Aws::String & GetPoolId() const
Definition: CoipPool.h:47
Aws::EC2::Model::CoipPool::SetPoolArn
void SetPoolArn(const Aws::String &value)
Definition: CoipPool.h:226
Aws::EC2::Model::CoipPool::operator=
CoipPool & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CoipPool::GetPoolCidrs
const Aws::Vector< Aws::String > & GetPoolCidrs() const
Definition: CoipPool.h:88
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CoipPool::SetPoolId
void SetPoolId(const char *value)
Definition: CoipPool.h:67
AWSStreamFwd.h
Aws::EC2::Model::CoipPool::SetPoolCidrs
void SetPoolCidrs(Aws::Vector< Aws::String > &&value)
Definition: CoipPool.h:103
Aws::EC2::Model::CoipPool::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(Aws::String &&value)
Definition: CoipPool.h:149
AWSVector.h
Tag.h
Aws::EC2::Model::CoipPool::WithPoolCidrs
CoipPool & WithPoolCidrs(const Aws::Vector< Aws::String > &value)
Definition: CoipPool.h:108
Aws::EC2::Model::CoipPool::SetPoolId
void SetPoolId(Aws::String &&value)
Definition: CoipPool.h:62
Aws::EC2::Model::CoipPool::WithPoolArn
CoipPool & WithPoolArn(const Aws::String &value)
Definition: CoipPool.h:241
Aws::EC2::Model::CoipPool::WithPoolId
CoipPool & WithPoolId(const char *value)
Definition: CoipPool.h:82
Aws::EC2::Model::CoipPool::WithPoolArn
CoipPool & WithPoolArn(const char *value)
Definition: CoipPool.h:251
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CoipPool::WithTags
CoipPool & WithTags(const Aws::Vector< Tag > &value)
Definition: CoipPool.h:195
Aws::EC2::Model::CoipPool::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CoipPool.h:180
Aws::EC2::Model::CoipPool::SetPoolId
void SetPoolId(const Aws::String &value)
Definition: CoipPool.h:57
Aws::EC2::Model::CoipPool::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::CoipPool::WithPoolCidrs
CoipPool & WithPoolCidrs(Aws::Vector< Aws::String > &&value)
Definition: CoipPool.h:113
Aws::EC2::Model::CoipPool::SetPoolArn
void SetPoolArn(const char *value)
Definition: CoipPool.h:236
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CoipPool::WithPoolId
CoipPool & WithPoolId(const Aws::String &value)
Definition: CoipPool.h:72
Aws::EC2::Model::CoipPool::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CoipPool.h:185
Aws::EC2::Model::CoipPool::SetPoolArn
void SetPoolArn(Aws::String &&value)
Definition: CoipPool.h:231
Aws::EC2::Model::CoipPool::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CoipPool::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(const Aws::String &value)
Definition: CoipPool.h:144
Aws::EC2::Model::CoipPool::WithPoolArn
CoipPool & WithPoolArn(Aws::String &&value)
Definition: CoipPool.h:246
Aws::EC2::Model::CoipPool::WithLocalGatewayRouteTableId
CoipPool & WithLocalGatewayRouteTableId(const Aws::String &value)
Definition: CoipPool.h:159
Aws::EC2::Model::CoipPool::AddTags
CoipPool & AddTags(Tag &&value)
Definition: CoipPool.h:210
AWSString.h
Aws::EC2::Model::CoipPool::AddPoolCidrs
CoipPool & AddPoolCidrs(const Aws::String &value)
Definition: CoipPool.h:118
Aws::EC2::Model::CoipPool::CoipPool
CoipPool()
Aws::EC2::Model::CoipPool::LocalGatewayRouteTableIdHasBeenSet
bool LocalGatewayRouteTableIdHasBeenSet() const
Definition: CoipPool.h:139
Aws::EC2::Model::CoipPool::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(const char *value)
Definition: CoipPool.h:154
Aws::EC2::Model::CoipPool::PoolArnHasBeenSet
bool PoolArnHasBeenSet() const
Definition: CoipPool.h:221
Aws::EC2::Model::CoipPool::GetPoolArn
const Aws::String & GetPoolArn() const
Definition: CoipPool.h:216
Aws::EC2::Model::CoipPool::AddPoolCidrs
CoipPool & AddPoolCidrs(const char *value)
Definition: CoipPool.h:128
Aws::EC2::Model::CoipPool::GetLocalGatewayRouteTableId
const Aws::String & GetLocalGatewayRouteTableId() const
Definition: CoipPool.h:134
Aws::EC2::Model::CoipPool::AddPoolCidrs
CoipPool & AddPoolCidrs(Aws::String &&value)
Definition: CoipPool.h:123
Aws
Definition: AccessManagementClient.h:15
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::CoipPool
Definition: CoipPool.h:34
Aws::EC2::Model::CoipPool::WithLocalGatewayRouteTableId
CoipPool & WithLocalGatewayRouteTableId(Aws::String &&value)
Definition: CoipPool.h:164
Aws::EC2::Model::CoipPool::WithLocalGatewayRouteTableId
CoipPool & WithLocalGatewayRouteTableId(const char *value)
Definition: CoipPool.h:169
EC2_EXPORTS.h
Aws::EC2::Model::CoipPool::AddTags
CoipPool & AddTags(const Tag &value)
Definition: CoipPool.h:205
Aws::EC2::Model::CoipPool::WithPoolId
CoipPool & WithPoolId(Aws::String &&value)
Definition: CoipPool.h:77
Aws::EC2::Model::CoipPool::CoipPool
CoipPool(const Aws::Utils::Xml::XmlNode &xmlNode)