AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CoipPool.h
1
6#pragma once
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/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API CoipPool();
37 AWS_EC2_API CoipPool(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_EC2_API CoipPool& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetPoolId() const{ return m_poolId; }
49 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
50 inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
51 inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
52 inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
53 inline CoipPool& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
54 inline CoipPool& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
55 inline CoipPool& WithPoolId(const char* value) { SetPoolId(value); return *this;}
57
59
62 inline const Aws::Vector<Aws::String>& GetPoolCidrs() const{ return m_poolCidrs; }
63 inline bool PoolCidrsHasBeenSet() const { return m_poolCidrsHasBeenSet; }
64 inline void SetPoolCidrs(const Aws::Vector<Aws::String>& value) { m_poolCidrsHasBeenSet = true; m_poolCidrs = value; }
65 inline void SetPoolCidrs(Aws::Vector<Aws::String>&& value) { m_poolCidrsHasBeenSet = true; m_poolCidrs = std::move(value); }
66 inline CoipPool& WithPoolCidrs(const Aws::Vector<Aws::String>& value) { SetPoolCidrs(value); return *this;}
67 inline CoipPool& WithPoolCidrs(Aws::Vector<Aws::String>&& value) { SetPoolCidrs(std::move(value)); return *this;}
68 inline CoipPool& AddPoolCidrs(const Aws::String& value) { m_poolCidrsHasBeenSet = true; m_poolCidrs.push_back(value); return *this; }
69 inline CoipPool& AddPoolCidrs(Aws::String&& value) { m_poolCidrsHasBeenSet = true; m_poolCidrs.push_back(std::move(value)); return *this; }
70 inline CoipPool& AddPoolCidrs(const char* value) { m_poolCidrsHasBeenSet = true; m_poolCidrs.push_back(value); return *this; }
72
74
77 inline const Aws::String& GetLocalGatewayRouteTableId() const{ return m_localGatewayRouteTableId; }
78 inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
79 inline void SetLocalGatewayRouteTableId(const Aws::String& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = value; }
80 inline void SetLocalGatewayRouteTableId(Aws::String&& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = std::move(value); }
81 inline void SetLocalGatewayRouteTableId(const char* value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId.assign(value); }
83 inline CoipPool& WithLocalGatewayRouteTableId(Aws::String&& value) { SetLocalGatewayRouteTableId(std::move(value)); return *this;}
84 inline CoipPool& WithLocalGatewayRouteTableId(const char* value) { SetLocalGatewayRouteTableId(value); return *this;}
86
88
91 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
95 inline CoipPool& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
96 inline CoipPool& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
97 inline CoipPool& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
98 inline CoipPool& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
100
102
105 inline const Aws::String& GetPoolArn() const{ return m_poolArn; }
106 inline bool PoolArnHasBeenSet() const { return m_poolArnHasBeenSet; }
107 inline void SetPoolArn(const Aws::String& value) { m_poolArnHasBeenSet = true; m_poolArn = value; }
108 inline void SetPoolArn(Aws::String&& value) { m_poolArnHasBeenSet = true; m_poolArn = std::move(value); }
109 inline void SetPoolArn(const char* value) { m_poolArnHasBeenSet = true; m_poolArn.assign(value); }
110 inline CoipPool& WithPoolArn(const Aws::String& value) { SetPoolArn(value); return *this;}
111 inline CoipPool& WithPoolArn(Aws::String&& value) { SetPoolArn(std::move(value)); return *this;}
112 inline CoipPool& WithPoolArn(const char* value) { SetPoolArn(value); return *this;}
114 private:
115
116 Aws::String m_poolId;
117 bool m_poolIdHasBeenSet = false;
118
119 Aws::Vector<Aws::String> m_poolCidrs;
120 bool m_poolCidrsHasBeenSet = false;
121
122 Aws::String m_localGatewayRouteTableId;
123 bool m_localGatewayRouteTableIdHasBeenSet = false;
124
125 Aws::Vector<Tag> m_tags;
126 bool m_tagsHasBeenSet = false;
127
128 Aws::String m_poolArn;
129 bool m_poolArnHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace EC2
134} // namespace Aws
const Aws::String & GetPoolArn() const
Definition CoipPool.h:105
const Aws::String & GetLocalGatewayRouteTableId() const
Definition CoipPool.h:77
CoipPool & WithPoolArn(const Aws::String &value)
Definition CoipPool.h:110
AWS_EC2_API CoipPool(const Aws::Utils::Xml::XmlNode &xmlNode)
bool PoolArnHasBeenSet() const
Definition CoipPool.h:106
bool TagsHasBeenSet() const
Definition CoipPool.h:92
void SetLocalGatewayRouteTableId(const char *value)
Definition CoipPool.h:81
CoipPool & WithTags(Aws::Vector< Tag > &&value)
Definition CoipPool.h:96
CoipPool & WithTags(const Aws::Vector< Tag > &value)
Definition CoipPool.h:95
CoipPool & WithPoolId(Aws::String &&value)
Definition CoipPool.h:54
CoipPool & AddTags(Tag &&value)
Definition CoipPool.h:98
bool PoolIdHasBeenSet() const
Definition CoipPool.h:49
bool PoolCidrsHasBeenSet() const
Definition CoipPool.h:63
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CoipPool & AddPoolCidrs(const Aws::String &value)
Definition CoipPool.h:68
void SetPoolArn(Aws::String &&value)
Definition CoipPool.h:108
void SetTags(const Aws::Vector< Tag > &value)
Definition CoipPool.h:93
bool LocalGatewayRouteTableIdHasBeenSet() const
Definition CoipPool.h:78
const Aws::Vector< Aws::String > & GetPoolCidrs() const
Definition CoipPool.h:62
const Aws::Vector< Tag > & GetTags() const
Definition CoipPool.h:91
void SetPoolArn(const Aws::String &value)
Definition CoipPool.h:107
CoipPool & WithPoolArn(Aws::String &&value)
Definition CoipPool.h:111
CoipPool & WithPoolId(const Aws::String &value)
Definition CoipPool.h:53
void SetLocalGatewayRouteTableId(const Aws::String &value)
Definition CoipPool.h:79
CoipPool & WithPoolId(const char *value)
Definition CoipPool.h:55
CoipPool & WithPoolCidrs(const Aws::Vector< Aws::String > &value)
Definition CoipPool.h:66
const Aws::String & GetPoolId() const
Definition CoipPool.h:48
void SetPoolCidrs(Aws::Vector< Aws::String > &&value)
Definition CoipPool.h:65
void SetLocalGatewayRouteTableId(Aws::String &&value)
Definition CoipPool.h:80
void SetPoolId(const Aws::String &value)
Definition CoipPool.h:50
void SetPoolArn(const char *value)
Definition CoipPool.h:109
CoipPool & AddPoolCidrs(const char *value)
Definition CoipPool.h:70
CoipPool & AddPoolCidrs(Aws::String &&value)
Definition CoipPool.h:69
CoipPool & AddTags(const Tag &value)
Definition CoipPool.h:97
CoipPool & WithPoolArn(const char *value)
Definition CoipPool.h:112
AWS_EC2_API CoipPool & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CoipPool & WithLocalGatewayRouteTableId(const Aws::String &value)
Definition CoipPool.h:82
CoipPool & WithLocalGatewayRouteTableId(Aws::String &&value)
Definition CoipPool.h:83
void SetPoolCidrs(const Aws::Vector< Aws::String > &value)
Definition CoipPool.h:64
CoipPool & WithPoolCidrs(Aws::Vector< Aws::String > &&value)
Definition CoipPool.h:67
CoipPool & WithLocalGatewayRouteTableId(const char *value)
Definition CoipPool.h:84
void SetPoolId(Aws::String &&value)
Definition CoipPool.h:51
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTags(Aws::Vector< Tag > &&value)
Definition CoipPool.h:94
void SetPoolId(const char *value)
Definition CoipPool.h:52
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