AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IpamScope.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/ec2/model/IpamScopeType.h>
11#include <aws/ec2/model/IpamScopeState.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
44 {
45 public:
46 AWS_EC2_API IpamScope() = default;
47 AWS_EC2_API IpamScope(const Aws::Utils::Xml::XmlNode& xmlNode);
48 AWS_EC2_API IpamScope& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49
50 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
52
53
55
58 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
59 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
60 template<typename OwnerIdT = Aws::String>
61 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
62 template<typename OwnerIdT = Aws::String>
63 IpamScope& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetIpamScopeId() const { return m_ipamScopeId; }
71 inline bool IpamScopeIdHasBeenSet() const { return m_ipamScopeIdHasBeenSet; }
72 template<typename IpamScopeIdT = Aws::String>
73 void SetIpamScopeId(IpamScopeIdT&& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = std::forward<IpamScopeIdT>(value); }
74 template<typename IpamScopeIdT = Aws::String>
75 IpamScope& WithIpamScopeId(IpamScopeIdT&& value) { SetIpamScopeId(std::forward<IpamScopeIdT>(value)); return *this;}
77
79
82 inline const Aws::String& GetIpamScopeArn() const { return m_ipamScopeArn; }
83 inline bool IpamScopeArnHasBeenSet() const { return m_ipamScopeArnHasBeenSet; }
84 template<typename IpamScopeArnT = Aws::String>
85 void SetIpamScopeArn(IpamScopeArnT&& value) { m_ipamScopeArnHasBeenSet = true; m_ipamScopeArn = std::forward<IpamScopeArnT>(value); }
86 template<typename IpamScopeArnT = Aws::String>
87 IpamScope& WithIpamScopeArn(IpamScopeArnT&& value) { SetIpamScopeArn(std::forward<IpamScopeArnT>(value)); return *this;}
89
91
94 inline const Aws::String& GetIpamArn() const { return m_ipamArn; }
95 inline bool IpamArnHasBeenSet() const { return m_ipamArnHasBeenSet; }
96 template<typename IpamArnT = Aws::String>
97 void SetIpamArn(IpamArnT&& value) { m_ipamArnHasBeenSet = true; m_ipamArn = std::forward<IpamArnT>(value); }
98 template<typename IpamArnT = Aws::String>
99 IpamScope& WithIpamArn(IpamArnT&& value) { SetIpamArn(std::forward<IpamArnT>(value)); return *this;}
101
103
106 inline const Aws::String& GetIpamRegion() const { return m_ipamRegion; }
107 inline bool IpamRegionHasBeenSet() const { return m_ipamRegionHasBeenSet; }
108 template<typename IpamRegionT = Aws::String>
109 void SetIpamRegion(IpamRegionT&& value) { m_ipamRegionHasBeenSet = true; m_ipamRegion = std::forward<IpamRegionT>(value); }
110 template<typename IpamRegionT = Aws::String>
111 IpamScope& WithIpamRegion(IpamRegionT&& value) { SetIpamRegion(std::forward<IpamRegionT>(value)); return *this;}
113
115
118 inline IpamScopeType GetIpamScopeType() const { return m_ipamScopeType; }
119 inline bool IpamScopeTypeHasBeenSet() const { return m_ipamScopeTypeHasBeenSet; }
120 inline void SetIpamScopeType(IpamScopeType value) { m_ipamScopeTypeHasBeenSet = true; m_ipamScopeType = value; }
121 inline IpamScope& WithIpamScopeType(IpamScopeType value) { SetIpamScopeType(value); return *this;}
123
125
128 inline bool GetIsDefault() const { return m_isDefault; }
129 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
130 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
131 inline IpamScope& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
133
135
138 inline const Aws::String& GetDescription() const { return m_description; }
139 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
140 template<typename DescriptionT = Aws::String>
141 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
142 template<typename DescriptionT = Aws::String>
143 IpamScope& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
145
147
150 inline int GetPoolCount() const { return m_poolCount; }
151 inline bool PoolCountHasBeenSet() const { return m_poolCountHasBeenSet; }
152 inline void SetPoolCount(int value) { m_poolCountHasBeenSet = true; m_poolCount = value; }
153 inline IpamScope& WithPoolCount(int value) { SetPoolCount(value); return *this;}
155
157
160 inline IpamScopeState GetState() const { return m_state; }
161 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
162 inline void SetState(IpamScopeState value) { m_stateHasBeenSet = true; m_state = value; }
163 inline IpamScope& WithState(IpamScopeState value) { SetState(value); return *this;}
165
167
174 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 template<typename TagsT = Aws::Vector<Tag>>
177 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
178 template<typename TagsT = Aws::Vector<Tag>>
179 IpamScope& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
180 template<typename TagsT = Tag>
181 IpamScope& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
183 private:
184
185 Aws::String m_ownerId;
186 bool m_ownerIdHasBeenSet = false;
187
188 Aws::String m_ipamScopeId;
189 bool m_ipamScopeIdHasBeenSet = false;
190
191 Aws::String m_ipamScopeArn;
192 bool m_ipamScopeArnHasBeenSet = false;
193
194 Aws::String m_ipamArn;
195 bool m_ipamArnHasBeenSet = false;
196
197 Aws::String m_ipamRegion;
198 bool m_ipamRegionHasBeenSet = false;
199
200 IpamScopeType m_ipamScopeType{IpamScopeType::NOT_SET};
201 bool m_ipamScopeTypeHasBeenSet = false;
202
203 bool m_isDefault{false};
204 bool m_isDefaultHasBeenSet = false;
205
206 Aws::String m_description;
207 bool m_descriptionHasBeenSet = false;
208
209 int m_poolCount{0};
210 bool m_poolCountHasBeenSet = false;
211
213 bool m_stateHasBeenSet = false;
214
215 Aws::Vector<Tag> m_tags;
216 bool m_tagsHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace EC2
221} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetIpamScopeId(IpamScopeIdT &&value)
Definition IpamScope.h:73
bool IpamRegionHasBeenSet() const
Definition IpamScope.h:107
bool IpamScopeArnHasBeenSet() const
Definition IpamScope.h:83
IpamScope & WithIsDefault(bool value)
Definition IpamScope.h:131
IpamScope & WithOwnerId(OwnerIdT &&value)
Definition IpamScope.h:63
const Aws::Vector< Tag > & GetTags() const
Definition IpamScope.h:174
AWS_EC2_API IpamScope(const Aws::Utils::Xml::XmlNode &xmlNode)
bool DescriptionHasBeenSet() const
Definition IpamScope.h:139
IpamScope & WithIpamScopeType(IpamScopeType value)
Definition IpamScope.h:121
void SetPoolCount(int value)
Definition IpamScope.h:152
bool PoolCountHasBeenSet() const
Definition IpamScope.h:151
void SetIpamRegion(IpamRegionT &&value)
Definition IpamScope.h:109
void SetOwnerId(OwnerIdT &&value)
Definition IpamScope.h:61
IpamScope & WithIpamArn(IpamArnT &&value)
Definition IpamScope.h:99
IpamScope & WithIpamScopeArn(IpamScopeArnT &&value)
Definition IpamScope.h:87
void SetIpamArn(IpamArnT &&value)
Definition IpamScope.h:97
bool IsDefaultHasBeenSet() const
Definition IpamScope.h:129
IpamScope & WithIpamRegion(IpamRegionT &&value)
Definition IpamScope.h:111
void SetIsDefault(bool value)
Definition IpamScope.h:130
IpamScope & WithIpamScopeId(IpamScopeIdT &&value)
Definition IpamScope.h:75
IpamScope & WithPoolCount(int value)
Definition IpamScope.h:153
const Aws::String & GetIpamArn() const
Definition IpamScope.h:94
bool TagsHasBeenSet() const
Definition IpamScope.h:175
void SetIpamScopeType(IpamScopeType value)
Definition IpamScope.h:120
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
IpamScope & AddTags(TagsT &&value)
Definition IpamScope.h:181
IpamScopeState GetState() const
Definition IpamScope.h:160
bool IpamArnHasBeenSet() const
Definition IpamScope.h:95
const Aws::String & GetIpamScopeArn() const
Definition IpamScope.h:82
void SetTags(TagsT &&value)
Definition IpamScope.h:177
bool StateHasBeenSet() const
Definition IpamScope.h:161
bool OwnerIdHasBeenSet() const
Definition IpamScope.h:59
bool IpamScopeIdHasBeenSet() const
Definition IpamScope.h:71
IpamScope & WithDescription(DescriptionT &&value)
Definition IpamScope.h:143
const Aws::String & GetIpamRegion() const
Definition IpamScope.h:106
void SetDescription(DescriptionT &&value)
Definition IpamScope.h:141
const Aws::String & GetIpamScopeId() const
Definition IpamScope.h:70
IpamScope & WithState(IpamScopeState value)
Definition IpamScope.h:163
IpamScope & WithTags(TagsT &&value)
Definition IpamScope.h:179
void SetIpamScopeArn(IpamScopeArnT &&value)
Definition IpamScope.h:85
IpamScopeType GetIpamScopeType() const
Definition IpamScope.h:118
bool IpamScopeTypeHasBeenSet() const
Definition IpamScope.h:119
AWS_EC2_API IpamScope & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetOwnerId() const
Definition IpamScope.h:58
AWS_EC2_API IpamScope()=default
void SetState(IpamScopeState value)
Definition IpamScope.h:162
const Aws::String & GetDescription() const
Definition IpamScope.h:138
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