AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
IpamScope.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/IpamScopeExternalAuthorityConfiguration.h>
12#include <aws/ec2/model/IpamScopeState.h>
13#include <aws/ec2/model/IpamScopeType.h>
14#include <aws/ec2/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
26
40class IpamScope {
41 public:
42 AWS_EC2_API IpamScope() = default;
43 AWS_EC2_API IpamScope(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_EC2_API IpamScope& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
50
53 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
54 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
55 template <typename OwnerIdT = Aws::String>
56 void SetOwnerId(OwnerIdT&& value) {
57 m_ownerIdHasBeenSet = true;
58 m_ownerId = std::forward<OwnerIdT>(value);
59 }
60 template <typename OwnerIdT = Aws::String>
61 IpamScope& WithOwnerId(OwnerIdT&& value) {
62 SetOwnerId(std::forward<OwnerIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetIpamScopeId() const { return m_ipamScopeId; }
72 inline bool IpamScopeIdHasBeenSet() const { return m_ipamScopeIdHasBeenSet; }
73 template <typename IpamScopeIdT = Aws::String>
74 void SetIpamScopeId(IpamScopeIdT&& value) {
75 m_ipamScopeIdHasBeenSet = true;
76 m_ipamScopeId = std::forward<IpamScopeIdT>(value);
77 }
78 template <typename IpamScopeIdT = Aws::String>
79 IpamScope& WithIpamScopeId(IpamScopeIdT&& value) {
80 SetIpamScopeId(std::forward<IpamScopeIdT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetIpamScopeArn() const { return m_ipamScopeArn; }
90 inline bool IpamScopeArnHasBeenSet() const { return m_ipamScopeArnHasBeenSet; }
91 template <typename IpamScopeArnT = Aws::String>
92 void SetIpamScopeArn(IpamScopeArnT&& value) {
93 m_ipamScopeArnHasBeenSet = true;
94 m_ipamScopeArn = std::forward<IpamScopeArnT>(value);
95 }
96 template <typename IpamScopeArnT = Aws::String>
97 IpamScope& WithIpamScopeArn(IpamScopeArnT&& value) {
98 SetIpamScopeArn(std::forward<IpamScopeArnT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetIpamArn() const { return m_ipamArn; }
108 inline bool IpamArnHasBeenSet() const { return m_ipamArnHasBeenSet; }
109 template <typename IpamArnT = Aws::String>
110 void SetIpamArn(IpamArnT&& value) {
111 m_ipamArnHasBeenSet = true;
112 m_ipamArn = std::forward<IpamArnT>(value);
113 }
114 template <typename IpamArnT = Aws::String>
115 IpamScope& WithIpamArn(IpamArnT&& value) {
116 SetIpamArn(std::forward<IpamArnT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetIpamRegion() const { return m_ipamRegion; }
126 inline bool IpamRegionHasBeenSet() const { return m_ipamRegionHasBeenSet; }
127 template <typename IpamRegionT = Aws::String>
128 void SetIpamRegion(IpamRegionT&& value) {
129 m_ipamRegionHasBeenSet = true;
130 m_ipamRegion = std::forward<IpamRegionT>(value);
131 }
132 template <typename IpamRegionT = Aws::String>
133 IpamScope& WithIpamRegion(IpamRegionT&& value) {
134 SetIpamRegion(std::forward<IpamRegionT>(value));
135 return *this;
136 }
138
140
143 inline IpamScopeType GetIpamScopeType() const { return m_ipamScopeType; }
144 inline bool IpamScopeTypeHasBeenSet() const { return m_ipamScopeTypeHasBeenSet; }
145 inline void SetIpamScopeType(IpamScopeType value) {
146 m_ipamScopeTypeHasBeenSet = true;
147 m_ipamScopeType = value;
148 }
150 SetIpamScopeType(value);
151 return *this;
152 }
154
156
159 inline bool GetIsDefault() const { return m_isDefault; }
160 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
161 inline void SetIsDefault(bool value) {
162 m_isDefaultHasBeenSet = true;
163 m_isDefault = value;
164 }
165 inline IpamScope& WithIsDefault(bool value) {
166 SetIsDefault(value);
167 return *this;
168 }
170
172
175 inline const Aws::String& GetDescription() const { return m_description; }
176 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
177 template <typename DescriptionT = Aws::String>
178 void SetDescription(DescriptionT&& value) {
179 m_descriptionHasBeenSet = true;
180 m_description = std::forward<DescriptionT>(value);
181 }
182 template <typename DescriptionT = Aws::String>
183 IpamScope& WithDescription(DescriptionT&& value) {
184 SetDescription(std::forward<DescriptionT>(value));
185 return *this;
186 }
188
190
193 inline int GetPoolCount() const { return m_poolCount; }
194 inline bool PoolCountHasBeenSet() const { return m_poolCountHasBeenSet; }
195 inline void SetPoolCount(int value) {
196 m_poolCountHasBeenSet = true;
197 m_poolCount = value;
198 }
199 inline IpamScope& WithPoolCount(int value) {
200 SetPoolCount(value);
201 return *this;
202 }
204
206
209 inline IpamScopeState GetState() const { return m_state; }
210 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
211 inline void SetState(IpamScopeState value) {
212 m_stateHasBeenSet = true;
213 m_state = value;
214 }
216 SetState(value);
217 return *this;
218 }
220
222
229 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
230 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
231 template <typename TagsT = Aws::Vector<Tag>>
232 void SetTags(TagsT&& value) {
233 m_tagsHasBeenSet = true;
234 m_tags = std::forward<TagsT>(value);
235 }
236 template <typename TagsT = Aws::Vector<Tag>>
237 IpamScope& WithTags(TagsT&& value) {
238 SetTags(std::forward<TagsT>(value));
239 return *this;
240 }
241 template <typename TagsT = Tag>
242 IpamScope& AddTags(TagsT&& value) {
243 m_tagsHasBeenSet = true;
244 m_tags.emplace_back(std::forward<TagsT>(value));
245 return *this;
246 }
248
250
262 return m_externalAuthorityConfiguration;
263 }
264 inline bool ExternalAuthorityConfigurationHasBeenSet() const { return m_externalAuthorityConfigurationHasBeenSet; }
265 template <typename ExternalAuthorityConfigurationT = IpamScopeExternalAuthorityConfiguration>
266 void SetExternalAuthorityConfiguration(ExternalAuthorityConfigurationT&& value) {
267 m_externalAuthorityConfigurationHasBeenSet = true;
268 m_externalAuthorityConfiguration = std::forward<ExternalAuthorityConfigurationT>(value);
269 }
270 template <typename ExternalAuthorityConfigurationT = IpamScopeExternalAuthorityConfiguration>
271 IpamScope& WithExternalAuthorityConfiguration(ExternalAuthorityConfigurationT&& value) {
272 SetExternalAuthorityConfiguration(std::forward<ExternalAuthorityConfigurationT>(value));
273 return *this;
274 }
276 private:
277 Aws::String m_ownerId;
278
279 Aws::String m_ipamScopeId;
280
281 Aws::String m_ipamScopeArn;
282
283 Aws::String m_ipamArn;
284
285 Aws::String m_ipamRegion;
286
287 IpamScopeType m_ipamScopeType{IpamScopeType::NOT_SET};
288
289 bool m_isDefault{false};
290
291 Aws::String m_description;
292
293 int m_poolCount{0};
294
296
297 Aws::Vector<Tag> m_tags;
298
299 IpamScopeExternalAuthorityConfiguration m_externalAuthorityConfiguration;
300 bool m_ownerIdHasBeenSet = false;
301 bool m_ipamScopeIdHasBeenSet = false;
302 bool m_ipamScopeArnHasBeenSet = false;
303 bool m_ipamArnHasBeenSet = false;
304 bool m_ipamRegionHasBeenSet = false;
305 bool m_ipamScopeTypeHasBeenSet = false;
306 bool m_isDefaultHasBeenSet = false;
307 bool m_descriptionHasBeenSet = false;
308 bool m_poolCountHasBeenSet = false;
309 bool m_stateHasBeenSet = false;
310 bool m_tagsHasBeenSet = false;
311 bool m_externalAuthorityConfigurationHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace EC2
316} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetIpamScopeId(IpamScopeIdT &&value)
Definition IpamScope.h:74
bool IpamRegionHasBeenSet() const
Definition IpamScope.h:126
bool IpamScopeArnHasBeenSet() const
Definition IpamScope.h:90
void SetExternalAuthorityConfiguration(ExternalAuthorityConfigurationT &&value)
Definition IpamScope.h:266
IpamScope & WithIsDefault(bool value)
Definition IpamScope.h:165
IpamScope & WithOwnerId(OwnerIdT &&value)
Definition IpamScope.h:61
const Aws::Vector< Tag > & GetTags() const
Definition IpamScope.h:229
AWS_EC2_API IpamScope(const Aws::Utils::Xml::XmlNode &xmlNode)
bool DescriptionHasBeenSet() const
Definition IpamScope.h:176
IpamScope & WithIpamScopeType(IpamScopeType value)
Definition IpamScope.h:149
bool ExternalAuthorityConfigurationHasBeenSet() const
Definition IpamScope.h:264
void SetPoolCount(int value)
Definition IpamScope.h:195
bool PoolCountHasBeenSet() const
Definition IpamScope.h:194
void SetIpamRegion(IpamRegionT &&value)
Definition IpamScope.h:128
void SetOwnerId(OwnerIdT &&value)
Definition IpamScope.h:56
IpamScope & WithIpamArn(IpamArnT &&value)
Definition IpamScope.h:115
IpamScope & WithIpamScopeArn(IpamScopeArnT &&value)
Definition IpamScope.h:97
void SetIpamArn(IpamArnT &&value)
Definition IpamScope.h:110
bool IsDefaultHasBeenSet() const
Definition IpamScope.h:160
IpamScope & WithIpamRegion(IpamRegionT &&value)
Definition IpamScope.h:133
void SetIsDefault(bool value)
Definition IpamScope.h:161
IpamScope & WithIpamScopeId(IpamScopeIdT &&value)
Definition IpamScope.h:79
IpamScope & WithPoolCount(int value)
Definition IpamScope.h:199
const Aws::String & GetIpamArn() const
Definition IpamScope.h:107
bool TagsHasBeenSet() const
Definition IpamScope.h:230
void SetIpamScopeType(IpamScopeType value)
Definition IpamScope.h:145
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
IpamScope & AddTags(TagsT &&value)
Definition IpamScope.h:242
IpamScopeState GetState() const
Definition IpamScope.h:209
bool IpamArnHasBeenSet() const
Definition IpamScope.h:108
const Aws::String & GetIpamScopeArn() const
Definition IpamScope.h:89
void SetTags(TagsT &&value)
Definition IpamScope.h:232
bool StateHasBeenSet() const
Definition IpamScope.h:210
bool OwnerIdHasBeenSet() const
Definition IpamScope.h:54
bool IpamScopeIdHasBeenSet() const
Definition IpamScope.h:72
IpamScope & WithDescription(DescriptionT &&value)
Definition IpamScope.h:183
const Aws::String & GetIpamRegion() const
Definition IpamScope.h:125
const IpamScopeExternalAuthorityConfiguration & GetExternalAuthorityConfiguration() const
Definition IpamScope.h:261
void SetDescription(DescriptionT &&value)
Definition IpamScope.h:178
const Aws::String & GetIpamScopeId() const
Definition IpamScope.h:71
IpamScope & WithState(IpamScopeState value)
Definition IpamScope.h:215
IpamScope & WithTags(TagsT &&value)
Definition IpamScope.h:237
void SetIpamScopeArn(IpamScopeArnT &&value)
Definition IpamScope.h:92
IpamScopeType GetIpamScopeType() const
Definition IpamScope.h:143
bool IpamScopeTypeHasBeenSet() const
Definition IpamScope.h:144
AWS_EC2_API IpamScope & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetOwnerId() const
Definition IpamScope.h:53
AWS_EC2_API IpamScope()=default
void SetState(IpamScopeState value)
Definition IpamScope.h:211
const Aws::String & GetDescription() const
Definition IpamScope.h:175
IpamScope & WithExternalAuthorityConfiguration(ExternalAuthorityConfigurationT &&value)
Definition IpamScope.h:271
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