AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CoipPool.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
29class CoipPool {
30 public:
31 AWS_EC2_API CoipPool() = default;
32 AWS_EC2_API CoipPool(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_EC2_API CoipPool& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetPoolId() const { return m_poolId; }
43 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
44 template <typename PoolIdT = Aws::String>
45 void SetPoolId(PoolIdT&& value) {
46 m_poolIdHasBeenSet = true;
47 m_poolId = std::forward<PoolIdT>(value);
48 }
49 template <typename PoolIdT = Aws::String>
50 CoipPool& WithPoolId(PoolIdT&& value) {
51 SetPoolId(std::forward<PoolIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Aws::String>& GetPoolCidrs() const { return m_poolCidrs; }
61 inline bool PoolCidrsHasBeenSet() const { return m_poolCidrsHasBeenSet; }
62 template <typename PoolCidrsT = Aws::Vector<Aws::String>>
63 void SetPoolCidrs(PoolCidrsT&& value) {
64 m_poolCidrsHasBeenSet = true;
65 m_poolCidrs = std::forward<PoolCidrsT>(value);
66 }
67 template <typename PoolCidrsT = Aws::Vector<Aws::String>>
68 CoipPool& WithPoolCidrs(PoolCidrsT&& value) {
69 SetPoolCidrs(std::forward<PoolCidrsT>(value));
70 return *this;
71 }
72 template <typename PoolCidrsT = Aws::String>
73 CoipPool& AddPoolCidrs(PoolCidrsT&& value) {
74 m_poolCidrsHasBeenSet = true;
75 m_poolCidrs.emplace_back(std::forward<PoolCidrsT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetLocalGatewayRouteTableId() const { return m_localGatewayRouteTableId; }
85 inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
86 template <typename LocalGatewayRouteTableIdT = Aws::String>
87 void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) {
88 m_localGatewayRouteTableIdHasBeenSet = true;
89 m_localGatewayRouteTableId = std::forward<LocalGatewayRouteTableIdT>(value);
90 }
91 template <typename LocalGatewayRouteTableIdT = Aws::String>
92 CoipPool& WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) {
93 SetLocalGatewayRouteTableId(std::forward<LocalGatewayRouteTableIdT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 template <typename TagsT = Aws::Vector<Tag>>
105 void SetTags(TagsT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags = std::forward<TagsT>(value);
108 }
109 template <typename TagsT = Aws::Vector<Tag>>
110 CoipPool& WithTags(TagsT&& value) {
111 SetTags(std::forward<TagsT>(value));
112 return *this;
113 }
114 template <typename TagsT = Tag>
115 CoipPool& AddTags(TagsT&& value) {
116 m_tagsHasBeenSet = true;
117 m_tags.emplace_back(std::forward<TagsT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetPoolArn() const { return m_poolArn; }
127 inline bool PoolArnHasBeenSet() const { return m_poolArnHasBeenSet; }
128 template <typename PoolArnT = Aws::String>
129 void SetPoolArn(PoolArnT&& value) {
130 m_poolArnHasBeenSet = true;
131 m_poolArn = std::forward<PoolArnT>(value);
132 }
133 template <typename PoolArnT = Aws::String>
134 CoipPool& WithPoolArn(PoolArnT&& value) {
135 SetPoolArn(std::forward<PoolArnT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_poolId;
141
142 Aws::Vector<Aws::String> m_poolCidrs;
143
144 Aws::String m_localGatewayRouteTableId;
145
146 Aws::Vector<Tag> m_tags;
147
148 Aws::String m_poolArn;
149 bool m_poolIdHasBeenSet = false;
150 bool m_poolCidrsHasBeenSet = false;
151 bool m_localGatewayRouteTableIdHasBeenSet = false;
152 bool m_tagsHasBeenSet = false;
153 bool m_poolArnHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace EC2
158} // namespace Aws
CoipPool & WithPoolCidrs(PoolCidrsT &&value)
Definition CoipPool.h:68
void SetTags(TagsT &&value)
Definition CoipPool.h:105
const Aws::String & GetPoolArn() const
Definition CoipPool.h:126
const Aws::String & GetLocalGatewayRouteTableId() const
Definition CoipPool.h:84
AWS_EC2_API CoipPool()=default
AWS_EC2_API CoipPool(const Aws::Utils::Xml::XmlNode &xmlNode)
CoipPool & WithTags(TagsT &&value)
Definition CoipPool.h:110
bool PoolArnHasBeenSet() const
Definition CoipPool.h:127
void SetPoolId(PoolIdT &&value)
Definition CoipPool.h:45
void SetPoolArn(PoolArnT &&value)
Definition CoipPool.h:129
bool TagsHasBeenSet() const
Definition CoipPool.h:103
bool PoolIdHasBeenSet() const
Definition CoipPool.h:43
bool PoolCidrsHasBeenSet() const
Definition CoipPool.h:61
CoipPool & WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
Definition CoipPool.h:92
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CoipPool & WithPoolArn(PoolArnT &&value)
Definition CoipPool.h:134
bool LocalGatewayRouteTableIdHasBeenSet() const
Definition CoipPool.h:85
const Aws::Vector< Aws::String > & GetPoolCidrs() const
Definition CoipPool.h:60
void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
Definition CoipPool.h:87
const Aws::Vector< Tag > & GetTags() const
Definition CoipPool.h:102
CoipPool & AddTags(TagsT &&value)
Definition CoipPool.h:115
void SetPoolCidrs(PoolCidrsT &&value)
Definition CoipPool.h:63
const Aws::String & GetPoolId() const
Definition CoipPool.h:42
AWS_EC2_API CoipPool & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CoipPool & AddPoolCidrs(PoolCidrsT &&value)
Definition CoipPool.h:73
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CoipPool & WithPoolId(PoolIdT &&value)
Definition CoipPool.h:50
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