AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Ipv6Pool.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/PoolCidrBlock.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API Ipv6Pool();
38 AWS_EC2_API Ipv6Pool(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_EC2_API Ipv6Pool& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetPoolId() const{ return m_poolId; }
50 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
51 inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
52 inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
53 inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
54 inline Ipv6Pool& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
55 inline Ipv6Pool& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
56 inline Ipv6Pool& WithPoolId(const char* value) { SetPoolId(value); return *this;}
58
60
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline Ipv6Pool& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline Ipv6Pool& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline Ipv6Pool& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
77 inline const Aws::Vector<PoolCidrBlock>& GetPoolCidrBlocks() const{ return m_poolCidrBlocks; }
78 inline bool PoolCidrBlocksHasBeenSet() const { return m_poolCidrBlocksHasBeenSet; }
79 inline void SetPoolCidrBlocks(const Aws::Vector<PoolCidrBlock>& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks = value; }
80 inline void SetPoolCidrBlocks(Aws::Vector<PoolCidrBlock>&& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks = std::move(value); }
81 inline Ipv6Pool& WithPoolCidrBlocks(const Aws::Vector<PoolCidrBlock>& value) { SetPoolCidrBlocks(value); return *this;}
82 inline Ipv6Pool& WithPoolCidrBlocks(Aws::Vector<PoolCidrBlock>&& value) { SetPoolCidrBlocks(std::move(value)); return *this;}
83 inline Ipv6Pool& AddPoolCidrBlocks(const PoolCidrBlock& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks.push_back(value); return *this; }
84 inline Ipv6Pool& AddPoolCidrBlocks(PoolCidrBlock&& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks.push_back(std::move(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 Ipv6Pool& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
96 inline Ipv6Pool& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
97 inline Ipv6Pool& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
98 inline Ipv6Pool& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_poolId;
103 bool m_poolIdHasBeenSet = false;
104
105 Aws::String m_description;
106 bool m_descriptionHasBeenSet = false;
107
108 Aws::Vector<PoolCidrBlock> m_poolCidrBlocks;
109 bool m_poolCidrBlocksHasBeenSet = false;
110
111 Aws::Vector<Tag> m_tags;
112 bool m_tagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace EC2
117} // namespace Aws
Ipv6Pool & WithDescription(const char *value)
Definition Ipv6Pool.h:70
void SetDescription(const char *value)
Definition Ipv6Pool.h:67
Ipv6Pool & AddPoolCidrBlocks(const PoolCidrBlock &value)
Definition Ipv6Pool.h:83
bool PoolCidrBlocksHasBeenSet() const
Definition Ipv6Pool.h:78
Ipv6Pool & WithDescription(Aws::String &&value)
Definition Ipv6Pool.h:69
Ipv6Pool & WithPoolCidrBlocks(Aws::Vector< PoolCidrBlock > &&value)
Definition Ipv6Pool.h:82
Ipv6Pool & WithPoolId(Aws::String &&value)
Definition Ipv6Pool.h:55
void SetPoolCidrBlocks(Aws::Vector< PoolCidrBlock > &&value)
Definition Ipv6Pool.h:80
void SetDescription(Aws::String &&value)
Definition Ipv6Pool.h:66
const Aws::Vector< Tag > & GetTags() const
Definition Ipv6Pool.h:91
const Aws::String & GetPoolId() const
Definition Ipv6Pool.h:49
const Aws::Vector< PoolCidrBlock > & GetPoolCidrBlocks() const
Definition Ipv6Pool.h:77
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Ipv6Pool & WithTags(const Aws::Vector< Tag > &value)
Definition Ipv6Pool.h:95
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Ipv6Pool & AddTags(Tag &&value)
Definition Ipv6Pool.h:98
bool PoolIdHasBeenSet() const
Definition Ipv6Pool.h:50
void SetDescription(const Aws::String &value)
Definition Ipv6Pool.h:65
const Aws::String & GetDescription() const
Definition Ipv6Pool.h:63
void SetPoolId(Aws::String &&value)
Definition Ipv6Pool.h:52
Ipv6Pool & AddTags(const Tag &value)
Definition Ipv6Pool.h:97
Ipv6Pool & WithPoolId(const Aws::String &value)
Definition Ipv6Pool.h:54
void SetPoolId(const Aws::String &value)
Definition Ipv6Pool.h:51
Ipv6Pool & WithDescription(const Aws::String &value)
Definition Ipv6Pool.h:68
AWS_EC2_API Ipv6Pool & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Ipv6Pool & WithPoolCidrBlocks(const Aws::Vector< PoolCidrBlock > &value)
Definition Ipv6Pool.h:81
bool TagsHasBeenSet() const
Definition Ipv6Pool.h:92
void SetTags(Aws::Vector< Tag > &&value)
Definition Ipv6Pool.h:94
Ipv6Pool & AddPoolCidrBlocks(PoolCidrBlock &&value)
Definition Ipv6Pool.h:84
Ipv6Pool & WithPoolId(const char *value)
Definition Ipv6Pool.h:56
void SetPoolId(const char *value)
Definition Ipv6Pool.h:53
Ipv6Pool & WithTags(Aws::Vector< Tag > &&value)
Definition Ipv6Pool.h:96
void SetTags(const Aws::Vector< Tag > &value)
Definition Ipv6Pool.h:93
void SetPoolCidrBlocks(const Aws::Vector< PoolCidrBlock > &value)
Definition Ipv6Pool.h:79
bool DescriptionHasBeenSet() const
Definition Ipv6Pool.h:64
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