AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename PoolIdT = Aws::String>
51 void SetPoolId(PoolIdT&& value) { m_poolIdHasBeenSet = true; m_poolId = std::forward<PoolIdT>(value); }
52 template<typename PoolIdT = Aws::String>
53 CoipPool& WithPoolId(PoolIdT&& value) { SetPoolId(std::forward<PoolIdT>(value)); return *this;}
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) { m_poolCidrsHasBeenSet = true; m_poolCidrs = std::forward<PoolCidrsT>(value); }
64 template<typename PoolCidrsT = Aws::Vector<Aws::String>>
65 CoipPool& WithPoolCidrs(PoolCidrsT&& value) { SetPoolCidrs(std::forward<PoolCidrsT>(value)); return *this;}
66 template<typename PoolCidrsT = Aws::String>
67 CoipPool& AddPoolCidrs(PoolCidrsT&& value) { m_poolCidrsHasBeenSet = true; m_poolCidrs.emplace_back(std::forward<PoolCidrsT>(value)); return *this; }
69
71
74 inline const Aws::String& GetLocalGatewayRouteTableId() const { return m_localGatewayRouteTableId; }
75 inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
76 template<typename LocalGatewayRouteTableIdT = Aws::String>
77 void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = std::forward<LocalGatewayRouteTableIdT>(value); }
78 template<typename LocalGatewayRouteTableIdT = Aws::String>
79 CoipPool& WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) { SetLocalGatewayRouteTableId(std::forward<LocalGatewayRouteTableIdT>(value)); return *this;}
81
83
86 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 template<typename TagsT = Aws::Vector<Tag>>
89 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
90 template<typename TagsT = Aws::Vector<Tag>>
91 CoipPool& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
92 template<typename TagsT = Tag>
93 CoipPool& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
95
97
100 inline const Aws::String& GetPoolArn() const { return m_poolArn; }
101 inline bool PoolArnHasBeenSet() const { return m_poolArnHasBeenSet; }
102 template<typename PoolArnT = Aws::String>
103 void SetPoolArn(PoolArnT&& value) { m_poolArnHasBeenSet = true; m_poolArn = std::forward<PoolArnT>(value); }
104 template<typename PoolArnT = Aws::String>
105 CoipPool& WithPoolArn(PoolArnT&& value) { SetPoolArn(std::forward<PoolArnT>(value)); return *this;}
107 private:
108
109 Aws::String m_poolId;
110 bool m_poolIdHasBeenSet = false;
111
112 Aws::Vector<Aws::String> m_poolCidrs;
113 bool m_poolCidrsHasBeenSet = false;
114
115 Aws::String m_localGatewayRouteTableId;
116 bool m_localGatewayRouteTableIdHasBeenSet = false;
117
118 Aws::Vector<Tag> m_tags;
119 bool m_tagsHasBeenSet = false;
120
121 Aws::String m_poolArn;
122 bool m_poolArnHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace EC2
127} // namespace Aws
CoipPool & WithPoolCidrs(PoolCidrsT &&value)
Definition CoipPool.h:65
void SetTags(TagsT &&value)
Definition CoipPool.h:89
const Aws::String & GetPoolArn() const
Definition CoipPool.h:100
const Aws::String & GetLocalGatewayRouteTableId() const
Definition CoipPool.h:74
AWS_EC2_API CoipPool()=default
AWS_EC2_API CoipPool(const Aws::Utils::Xml::XmlNode &xmlNode)
CoipPool & WithTags(TagsT &&value)
Definition CoipPool.h:91
bool PoolArnHasBeenSet() const
Definition CoipPool.h:101
void SetPoolId(PoolIdT &&value)
Definition CoipPool.h:51
void SetPoolArn(PoolArnT &&value)
Definition CoipPool.h:103
bool TagsHasBeenSet() const
Definition CoipPool.h:87
bool PoolIdHasBeenSet() const
Definition CoipPool.h:49
bool PoolCidrsHasBeenSet() const
Definition CoipPool.h:61
CoipPool & WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
Definition CoipPool.h:79
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CoipPool & WithPoolArn(PoolArnT &&value)
Definition CoipPool.h:105
bool LocalGatewayRouteTableIdHasBeenSet() const
Definition CoipPool.h:75
const Aws::Vector< Aws::String > & GetPoolCidrs() const
Definition CoipPool.h:60
void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
Definition CoipPool.h:77
const Aws::Vector< Tag > & GetTags() const
Definition CoipPool.h:86
CoipPool & AddTags(TagsT &&value)
Definition CoipPool.h:93
void SetPoolCidrs(PoolCidrsT &&value)
Definition CoipPool.h:63
const Aws::String & GetPoolId() const
Definition CoipPool.h:48
AWS_EC2_API CoipPool & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CoipPool & AddPoolCidrs(PoolCidrsT &&value)
Definition CoipPool.h:67
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CoipPool & WithPoolId(PoolIdT &&value)
Definition CoipPool.h:53
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