AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Ipv6Pool.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/PoolCidrBlock.h>
12#include <aws/ec2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
30class Ipv6Pool {
31 public:
32 AWS_EC2_API Ipv6Pool() = default;
33 AWS_EC2_API Ipv6Pool(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_EC2_API Ipv6Pool& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetPoolId() const { return m_poolId; }
44 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
45 template <typename PoolIdT = Aws::String>
46 void SetPoolId(PoolIdT&& value) {
47 m_poolIdHasBeenSet = true;
48 m_poolId = std::forward<PoolIdT>(value);
49 }
50 template <typename PoolIdT = Aws::String>
51 Ipv6Pool& WithPoolId(PoolIdT&& value) {
52 SetPoolId(std::forward<PoolIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 Ipv6Pool& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<PoolCidrBlock>& GetPoolCidrBlocks() const { return m_poolCidrBlocks; }
80 inline bool PoolCidrBlocksHasBeenSet() const { return m_poolCidrBlocksHasBeenSet; }
81 template <typename PoolCidrBlocksT = Aws::Vector<PoolCidrBlock>>
82 void SetPoolCidrBlocks(PoolCidrBlocksT&& value) {
83 m_poolCidrBlocksHasBeenSet = true;
84 m_poolCidrBlocks = std::forward<PoolCidrBlocksT>(value);
85 }
86 template <typename PoolCidrBlocksT = Aws::Vector<PoolCidrBlock>>
87 Ipv6Pool& WithPoolCidrBlocks(PoolCidrBlocksT&& value) {
88 SetPoolCidrBlocks(std::forward<PoolCidrBlocksT>(value));
89 return *this;
90 }
91 template <typename PoolCidrBlocksT = PoolCidrBlock>
92 Ipv6Pool& AddPoolCidrBlocks(PoolCidrBlocksT&& value) {
93 m_poolCidrBlocksHasBeenSet = true;
94 m_poolCidrBlocks.emplace_back(std::forward<PoolCidrBlocksT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template <typename TagsT = Aws::Vector<Tag>>
106 void SetTags(TagsT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags = std::forward<TagsT>(value);
109 }
110 template <typename TagsT = Aws::Vector<Tag>>
111 Ipv6Pool& WithTags(TagsT&& value) {
112 SetTags(std::forward<TagsT>(value));
113 return *this;
114 }
115 template <typename TagsT = Tag>
116 Ipv6Pool& AddTags(TagsT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags.emplace_back(std::forward<TagsT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_poolId;
124
125 Aws::String m_description;
126
127 Aws::Vector<PoolCidrBlock> m_poolCidrBlocks;
128
129 Aws::Vector<Tag> m_tags;
130 bool m_poolIdHasBeenSet = false;
131 bool m_descriptionHasBeenSet = false;
132 bool m_poolCidrBlocksHasBeenSet = false;
133 bool m_tagsHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace EC2
138} // namespace Aws
Ipv6Pool & AddTags(TagsT &&value)
Definition Ipv6Pool.h:116
Ipv6Pool & WithDescription(DescriptionT &&value)
Definition Ipv6Pool.h:69
bool PoolCidrBlocksHasBeenSet() const
Definition Ipv6Pool.h:80
void SetPoolCidrBlocks(PoolCidrBlocksT &&value)
Definition Ipv6Pool.h:82
AWS_EC2_API Ipv6Pool()=default
const Aws::Vector< Tag > & GetTags() const
Definition Ipv6Pool.h:103
const Aws::String & GetPoolId() const
Definition Ipv6Pool.h:43
const Aws::Vector< PoolCidrBlock > & GetPoolCidrBlocks() const
Definition Ipv6Pool.h:79
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Ipv6Pool & WithPoolCidrBlocks(PoolCidrBlocksT &&value)
Definition Ipv6Pool.h:87
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool PoolIdHasBeenSet() const
Definition Ipv6Pool.h:44
void SetDescription(DescriptionT &&value)
Definition Ipv6Pool.h:64
Ipv6Pool & WithPoolId(PoolIdT &&value)
Definition Ipv6Pool.h:51
const Aws::String & GetDescription() const
Definition Ipv6Pool.h:61
Ipv6Pool & AddPoolCidrBlocks(PoolCidrBlocksT &&value)
Definition Ipv6Pool.h:92
void SetTags(TagsT &&value)
Definition Ipv6Pool.h:106
AWS_EC2_API Ipv6Pool & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool TagsHasBeenSet() const
Definition Ipv6Pool.h:104
Ipv6Pool & WithTags(TagsT &&value)
Definition Ipv6Pool.h:111
bool DescriptionHasBeenSet() const
Definition Ipv6Pool.h:62
void SetPoolId(PoolIdT &&value)
Definition Ipv6Pool.h:46
AWS_EC2_API Ipv6Pool(const Aws::Utils::Xml::XmlNode &xmlNode)
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