AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename PoolIdT = Aws::String>
52 void SetPoolId(PoolIdT&& value) { m_poolIdHasBeenSet = true; m_poolId = std::forward<PoolIdT>(value); }
53 template<typename PoolIdT = Aws::String>
54 Ipv6Pool& WithPoolId(PoolIdT&& value) { SetPoolId(std::forward<PoolIdT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 Ipv6Pool& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline const Aws::Vector<PoolCidrBlock>& GetPoolCidrBlocks() const { return m_poolCidrBlocks; }
74 inline bool PoolCidrBlocksHasBeenSet() const { return m_poolCidrBlocksHasBeenSet; }
75 template<typename PoolCidrBlocksT = Aws::Vector<PoolCidrBlock>>
76 void SetPoolCidrBlocks(PoolCidrBlocksT&& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks = std::forward<PoolCidrBlocksT>(value); }
77 template<typename PoolCidrBlocksT = Aws::Vector<PoolCidrBlock>>
78 Ipv6Pool& WithPoolCidrBlocks(PoolCidrBlocksT&& value) { SetPoolCidrBlocks(std::forward<PoolCidrBlocksT>(value)); return *this;}
79 template<typename PoolCidrBlocksT = PoolCidrBlock>
80 Ipv6Pool& AddPoolCidrBlocks(PoolCidrBlocksT&& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks.emplace_back(std::forward<PoolCidrBlocksT>(value)); return *this; }
82
84
87 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 template<typename TagsT = Aws::Vector<Tag>>
90 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
91 template<typename TagsT = Aws::Vector<Tag>>
92 Ipv6Pool& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
93 template<typename TagsT = Tag>
94 Ipv6Pool& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
96 private:
97
98 Aws::String m_poolId;
99 bool m_poolIdHasBeenSet = false;
100
101 Aws::String m_description;
102 bool m_descriptionHasBeenSet = false;
103
104 Aws::Vector<PoolCidrBlock> m_poolCidrBlocks;
105 bool m_poolCidrBlocksHasBeenSet = false;
106
107 Aws::Vector<Tag> m_tags;
108 bool m_tagsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace EC2
113} // namespace Aws
Ipv6Pool & AddTags(TagsT &&value)
Definition Ipv6Pool.h:94
Ipv6Pool & WithDescription(DescriptionT &&value)
Definition Ipv6Pool.h:66
bool PoolCidrBlocksHasBeenSet() const
Definition Ipv6Pool.h:74
void SetPoolCidrBlocks(PoolCidrBlocksT &&value)
Definition Ipv6Pool.h:76
AWS_EC2_API Ipv6Pool()=default
const Aws::Vector< Tag > & GetTags() const
Definition Ipv6Pool.h:87
const Aws::String & GetPoolId() const
Definition Ipv6Pool.h:49
const Aws::Vector< PoolCidrBlock > & GetPoolCidrBlocks() const
Definition Ipv6Pool.h:73
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Ipv6Pool & WithPoolCidrBlocks(PoolCidrBlocksT &&value)
Definition Ipv6Pool.h:78
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool PoolIdHasBeenSet() const
Definition Ipv6Pool.h:50
void SetDescription(DescriptionT &&value)
Definition Ipv6Pool.h:64
Ipv6Pool & WithPoolId(PoolIdT &&value)
Definition Ipv6Pool.h:54
const Aws::String & GetDescription() const
Definition Ipv6Pool.h:61
Ipv6Pool & AddPoolCidrBlocks(PoolCidrBlocksT &&value)
Definition Ipv6Pool.h:80
void SetTags(TagsT &&value)
Definition Ipv6Pool.h:90
AWS_EC2_API Ipv6Pool & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool TagsHasBeenSet() const
Definition Ipv6Pool.h:88
Ipv6Pool & WithTags(TagsT &&value)
Definition Ipv6Pool.h:92
bool DescriptionHasBeenSet() const
Definition Ipv6Pool.h:62
void SetPoolId(PoolIdT &&value)
Definition Ipv6Pool.h:52
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