AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Ipam.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/IpamState.h>
12#include <aws/ec2/model/IpamTier.h>
13#include <aws/ec2/model/IpamMeteredAccount.h>
14#include <aws/ec2/model/IpamOperatingRegion.h>
15#include <aws/ec2/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
31
42 class Ipam
43 {
44 public:
45 AWS_EC2_API Ipam() = default;
46 AWS_EC2_API Ipam(const Aws::Utils::Xml::XmlNode& xmlNode);
47 AWS_EC2_API Ipam& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48
49 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
50 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
51
52
54
57 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
58 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
59 template<typename OwnerIdT = Aws::String>
60 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
61 template<typename OwnerIdT = Aws::String>
62 Ipam& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetIpamId() const { return m_ipamId; }
70 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
71 template<typename IpamIdT = Aws::String>
72 void SetIpamId(IpamIdT&& value) { m_ipamIdHasBeenSet = true; m_ipamId = std::forward<IpamIdT>(value); }
73 template<typename IpamIdT = Aws::String>
74 Ipam& WithIpamId(IpamIdT&& value) { SetIpamId(std::forward<IpamIdT>(value)); return *this;}
76
78
81 inline const Aws::String& GetIpamArn() const { return m_ipamArn; }
82 inline bool IpamArnHasBeenSet() const { return m_ipamArnHasBeenSet; }
83 template<typename IpamArnT = Aws::String>
84 void SetIpamArn(IpamArnT&& value) { m_ipamArnHasBeenSet = true; m_ipamArn = std::forward<IpamArnT>(value); }
85 template<typename IpamArnT = Aws::String>
86 Ipam& WithIpamArn(IpamArnT&& value) { SetIpamArn(std::forward<IpamArnT>(value)); return *this;}
88
90
93 inline const Aws::String& GetIpamRegion() const { return m_ipamRegion; }
94 inline bool IpamRegionHasBeenSet() const { return m_ipamRegionHasBeenSet; }
95 template<typename IpamRegionT = Aws::String>
96 void SetIpamRegion(IpamRegionT&& value) { m_ipamRegionHasBeenSet = true; m_ipamRegion = std::forward<IpamRegionT>(value); }
97 template<typename IpamRegionT = Aws::String>
98 Ipam& WithIpamRegion(IpamRegionT&& value) { SetIpamRegion(std::forward<IpamRegionT>(value)); return *this;}
100
102
105 inline const Aws::String& GetPublicDefaultScopeId() const { return m_publicDefaultScopeId; }
106 inline bool PublicDefaultScopeIdHasBeenSet() const { return m_publicDefaultScopeIdHasBeenSet; }
107 template<typename PublicDefaultScopeIdT = Aws::String>
108 void SetPublicDefaultScopeId(PublicDefaultScopeIdT&& value) { m_publicDefaultScopeIdHasBeenSet = true; m_publicDefaultScopeId = std::forward<PublicDefaultScopeIdT>(value); }
109 template<typename PublicDefaultScopeIdT = Aws::String>
110 Ipam& WithPublicDefaultScopeId(PublicDefaultScopeIdT&& value) { SetPublicDefaultScopeId(std::forward<PublicDefaultScopeIdT>(value)); return *this;}
112
114
117 inline const Aws::String& GetPrivateDefaultScopeId() const { return m_privateDefaultScopeId; }
118 inline bool PrivateDefaultScopeIdHasBeenSet() const { return m_privateDefaultScopeIdHasBeenSet; }
119 template<typename PrivateDefaultScopeIdT = Aws::String>
120 void SetPrivateDefaultScopeId(PrivateDefaultScopeIdT&& value) { m_privateDefaultScopeIdHasBeenSet = true; m_privateDefaultScopeId = std::forward<PrivateDefaultScopeIdT>(value); }
121 template<typename PrivateDefaultScopeIdT = Aws::String>
122 Ipam& WithPrivateDefaultScopeId(PrivateDefaultScopeIdT&& value) { SetPrivateDefaultScopeId(std::forward<PrivateDefaultScopeIdT>(value)); return *this;}
124
126
132 inline int GetScopeCount() const { return m_scopeCount; }
133 inline bool ScopeCountHasBeenSet() const { return m_scopeCountHasBeenSet; }
134 inline void SetScopeCount(int value) { m_scopeCountHasBeenSet = true; m_scopeCount = value; }
135 inline Ipam& WithScopeCount(int value) { SetScopeCount(value); return *this;}
137
139
142 inline const Aws::String& GetDescription() const { return m_description; }
143 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
144 template<typename DescriptionT = Aws::String>
145 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
146 template<typename DescriptionT = Aws::String>
147 Ipam& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
149
151
159 inline const Aws::Vector<IpamOperatingRegion>& GetOperatingRegions() const { return m_operatingRegions; }
160 inline bool OperatingRegionsHasBeenSet() const { return m_operatingRegionsHasBeenSet; }
161 template<typename OperatingRegionsT = Aws::Vector<IpamOperatingRegion>>
162 void SetOperatingRegions(OperatingRegionsT&& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions = std::forward<OperatingRegionsT>(value); }
163 template<typename OperatingRegionsT = Aws::Vector<IpamOperatingRegion>>
164 Ipam& WithOperatingRegions(OperatingRegionsT&& value) { SetOperatingRegions(std::forward<OperatingRegionsT>(value)); return *this;}
165 template<typename OperatingRegionsT = IpamOperatingRegion>
166 Ipam& AddOperatingRegions(OperatingRegionsT&& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions.emplace_back(std::forward<OperatingRegionsT>(value)); return *this; }
168
170
173 inline IpamState GetState() const { return m_state; }
174 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
175 inline void SetState(IpamState value) { m_stateHasBeenSet = true; m_state = value; }
176 inline Ipam& WithState(IpamState value) { SetState(value); return *this;}
178
180
187 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
188 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
189 template<typename TagsT = Aws::Vector<Tag>>
190 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
191 template<typename TagsT = Aws::Vector<Tag>>
192 Ipam& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
193 template<typename TagsT = Tag>
194 Ipam& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
196
198
201 inline const Aws::String& GetDefaultResourceDiscoveryId() const { return m_defaultResourceDiscoveryId; }
202 inline bool DefaultResourceDiscoveryIdHasBeenSet() const { return m_defaultResourceDiscoveryIdHasBeenSet; }
203 template<typename DefaultResourceDiscoveryIdT = Aws::String>
204 void SetDefaultResourceDiscoveryId(DefaultResourceDiscoveryIdT&& value) { m_defaultResourceDiscoveryIdHasBeenSet = true; m_defaultResourceDiscoveryId = std::forward<DefaultResourceDiscoveryIdT>(value); }
205 template<typename DefaultResourceDiscoveryIdT = Aws::String>
206 Ipam& WithDefaultResourceDiscoveryId(DefaultResourceDiscoveryIdT&& value) { SetDefaultResourceDiscoveryId(std::forward<DefaultResourceDiscoveryIdT>(value)); return *this;}
208
210
213 inline const Aws::String& GetDefaultResourceDiscoveryAssociationId() const { return m_defaultResourceDiscoveryAssociationId; }
214 inline bool DefaultResourceDiscoveryAssociationIdHasBeenSet() const { return m_defaultResourceDiscoveryAssociationIdHasBeenSet; }
215 template<typename DefaultResourceDiscoveryAssociationIdT = Aws::String>
216 void SetDefaultResourceDiscoveryAssociationId(DefaultResourceDiscoveryAssociationIdT&& value) { m_defaultResourceDiscoveryAssociationIdHasBeenSet = true; m_defaultResourceDiscoveryAssociationId = std::forward<DefaultResourceDiscoveryAssociationIdT>(value); }
217 template<typename DefaultResourceDiscoveryAssociationIdT = Aws::String>
218 Ipam& WithDefaultResourceDiscoveryAssociationId(DefaultResourceDiscoveryAssociationIdT&& value) { SetDefaultResourceDiscoveryAssociationId(std::forward<DefaultResourceDiscoveryAssociationIdT>(value)); return *this;}
220
222
225 inline int GetResourceDiscoveryAssociationCount() const { return m_resourceDiscoveryAssociationCount; }
226 inline bool ResourceDiscoveryAssociationCountHasBeenSet() const { return m_resourceDiscoveryAssociationCountHasBeenSet; }
227 inline void SetResourceDiscoveryAssociationCount(int value) { m_resourceDiscoveryAssociationCountHasBeenSet = true; m_resourceDiscoveryAssociationCount = value; }
230
232
235 inline const Aws::String& GetStateMessage() const { return m_stateMessage; }
236 inline bool StateMessageHasBeenSet() const { return m_stateMessageHasBeenSet; }
237 template<typename StateMessageT = Aws::String>
238 void SetStateMessage(StateMessageT&& value) { m_stateMessageHasBeenSet = true; m_stateMessage = std::forward<StateMessageT>(value); }
239 template<typename StateMessageT = Aws::String>
240 Ipam& WithStateMessage(StateMessageT&& value) { SetStateMessage(std::forward<StateMessageT>(value)); return *this;}
242
244
250 inline IpamTier GetTier() const { return m_tier; }
251 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
252 inline void SetTier(IpamTier value) { m_tierHasBeenSet = true; m_tier = value; }
253 inline Ipam& WithTier(IpamTier value) { SetTier(value); return *this;}
255
257
261 inline bool GetEnablePrivateGua() const { return m_enablePrivateGua; }
262 inline bool EnablePrivateGuaHasBeenSet() const { return m_enablePrivateGuaHasBeenSet; }
263 inline void SetEnablePrivateGua(bool value) { m_enablePrivateGuaHasBeenSet = true; m_enablePrivateGua = value; }
264 inline Ipam& WithEnablePrivateGua(bool value) { SetEnablePrivateGua(value); return *this;}
266
268
279 inline IpamMeteredAccount GetMeteredAccount() const { return m_meteredAccount; }
280 inline bool MeteredAccountHasBeenSet() const { return m_meteredAccountHasBeenSet; }
281 inline void SetMeteredAccount(IpamMeteredAccount value) { m_meteredAccountHasBeenSet = true; m_meteredAccount = value; }
282 inline Ipam& WithMeteredAccount(IpamMeteredAccount value) { SetMeteredAccount(value); return *this;}
284 private:
285
286 Aws::String m_ownerId;
287 bool m_ownerIdHasBeenSet = false;
288
289 Aws::String m_ipamId;
290 bool m_ipamIdHasBeenSet = false;
291
292 Aws::String m_ipamArn;
293 bool m_ipamArnHasBeenSet = false;
294
295 Aws::String m_ipamRegion;
296 bool m_ipamRegionHasBeenSet = false;
297
298 Aws::String m_publicDefaultScopeId;
299 bool m_publicDefaultScopeIdHasBeenSet = false;
300
301 Aws::String m_privateDefaultScopeId;
302 bool m_privateDefaultScopeIdHasBeenSet = false;
303
304 int m_scopeCount{0};
305 bool m_scopeCountHasBeenSet = false;
306
307 Aws::String m_description;
308 bool m_descriptionHasBeenSet = false;
309
310 Aws::Vector<IpamOperatingRegion> m_operatingRegions;
311 bool m_operatingRegionsHasBeenSet = false;
312
314 bool m_stateHasBeenSet = false;
315
316 Aws::Vector<Tag> m_tags;
317 bool m_tagsHasBeenSet = false;
318
319 Aws::String m_defaultResourceDiscoveryId;
320 bool m_defaultResourceDiscoveryIdHasBeenSet = false;
321
322 Aws::String m_defaultResourceDiscoveryAssociationId;
323 bool m_defaultResourceDiscoveryAssociationIdHasBeenSet = false;
324
325 int m_resourceDiscoveryAssociationCount{0};
326 bool m_resourceDiscoveryAssociationCountHasBeenSet = false;
327
328 Aws::String m_stateMessage;
329 bool m_stateMessageHasBeenSet = false;
330
332 bool m_tierHasBeenSet = false;
333
334 bool m_enablePrivateGua{false};
335 bool m_enablePrivateGuaHasBeenSet = false;
336
338 bool m_meteredAccountHasBeenSet = false;
339 };
340
341} // namespace Model
342} // namespace EC2
343} // namespace Aws
IpamTier GetTier() const
Definition Ipam.h:250
Ipam & WithMeteredAccount(IpamMeteredAccount value)
Definition Ipam.h:282
void SetStateMessage(StateMessageT &&value)
Definition Ipam.h:238
bool TierHasBeenSet() const
Definition Ipam.h:251
bool DescriptionHasBeenSet() const
Definition Ipam.h:143
const Aws::String & GetOwnerId() const
Definition Ipam.h:57
IpamState GetState() const
Definition Ipam.h:173
void SetIpamId(IpamIdT &&value)
Definition Ipam.h:72
void SetDefaultResourceDiscoveryId(DefaultResourceDiscoveryIdT &&value)
Definition Ipam.h:204
void SetIpamArn(IpamArnT &&value)
Definition Ipam.h:84
Ipam & WithDefaultResourceDiscoveryAssociationId(DefaultResourceDiscoveryAssociationIdT &&value)
Definition Ipam.h:218
bool GetEnablePrivateGua() const
Definition Ipam.h:261
const Aws::String & GetDefaultResourceDiscoveryId() const
Definition Ipam.h:201
bool DefaultResourceDiscoveryIdHasBeenSet() const
Definition Ipam.h:202
void SetDescription(DescriptionT &&value)
Definition Ipam.h:145
void SetResourceDiscoveryAssociationCount(int value)
Definition Ipam.h:227
bool OwnerIdHasBeenSet() const
Definition Ipam.h:58
void SetEnablePrivateGua(bool value)
Definition Ipam.h:263
bool EnablePrivateGuaHasBeenSet() const
Definition Ipam.h:262
Ipam & WithDefaultResourceDiscoveryId(DefaultResourceDiscoveryIdT &&value)
Definition Ipam.h:206
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API Ipam(const Aws::Utils::Xml::XmlNode &xmlNode)
Ipam & WithResourceDiscoveryAssociationCount(int value)
Definition Ipam.h:228
const Aws::String & GetIpamId() const
Definition Ipam.h:69
bool PrivateDefaultScopeIdHasBeenSet() const
Definition Ipam.h:118
void SetOperatingRegions(OperatingRegionsT &&value)
Definition Ipam.h:162
int GetScopeCount() const
Definition Ipam.h:132
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool DefaultResourceDiscoveryAssociationIdHasBeenSet() const
Definition Ipam.h:214
AWS_EC2_API Ipam & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Tag > & GetTags() const
Definition Ipam.h:187
bool OperatingRegionsHasBeenSet() const
Definition Ipam.h:160
Ipam & WithIpamRegion(IpamRegionT &&value)
Definition Ipam.h:98
IpamMeteredAccount GetMeteredAccount() const
Definition Ipam.h:279
bool IpamArnHasBeenSet() const
Definition Ipam.h:82
Ipam & WithTags(TagsT &&value)
Definition Ipam.h:192
Ipam & WithStateMessage(StateMessageT &&value)
Definition Ipam.h:240
void SetPrivateDefaultScopeId(PrivateDefaultScopeIdT &&value)
Definition Ipam.h:120
Ipam & WithOperatingRegions(OperatingRegionsT &&value)
Definition Ipam.h:164
void SetScopeCount(int value)
Definition Ipam.h:134
void SetPublicDefaultScopeId(PublicDefaultScopeIdT &&value)
Definition Ipam.h:108
Ipam & WithIpamArn(IpamArnT &&value)
Definition Ipam.h:86
const Aws::String & GetIpamArn() const
Definition Ipam.h:81
bool TagsHasBeenSet() const
Definition Ipam.h:188
const Aws::String & GetPublicDefaultScopeId() const
Definition Ipam.h:105
Ipam & AddTags(TagsT &&value)
Definition Ipam.h:194
void SetIpamRegion(IpamRegionT &&value)
Definition Ipam.h:96
Ipam & WithState(IpamState value)
Definition Ipam.h:176
Ipam & WithPrivateDefaultScopeId(PrivateDefaultScopeIdT &&value)
Definition Ipam.h:122
Ipam & WithScopeCount(int value)
Definition Ipam.h:135
const Aws::String & GetStateMessage() const
Definition Ipam.h:235
bool IpamIdHasBeenSet() const
Definition Ipam.h:70
const Aws::String & GetIpamRegion() const
Definition Ipam.h:93
bool StateHasBeenSet() const
Definition Ipam.h:174
Ipam & WithDescription(DescriptionT &&value)
Definition Ipam.h:147
bool ResourceDiscoveryAssociationCountHasBeenSet() const
Definition Ipam.h:226
Ipam & WithIpamId(IpamIdT &&value)
Definition Ipam.h:74
AWS_EC2_API Ipam()=default
Ipam & WithOwnerId(OwnerIdT &&value)
Definition Ipam.h:62
const Aws::String & GetPrivateDefaultScopeId() const
Definition Ipam.h:117
bool StateMessageHasBeenSet() const
Definition Ipam.h:236
Ipam & WithTier(IpamTier value)
Definition Ipam.h:253
Ipam & WithEnablePrivateGua(bool value)
Definition Ipam.h:264
bool ScopeCountHasBeenSet() const
Definition Ipam.h:133
void SetDefaultResourceDiscoveryAssociationId(DefaultResourceDiscoveryAssociationIdT &&value)
Definition Ipam.h:216
void SetMeteredAccount(IpamMeteredAccount value)
Definition Ipam.h:281
void SetOwnerId(OwnerIdT &&value)
Definition Ipam.h:60
void SetTier(IpamTier value)
Definition Ipam.h:252
const Aws::String & GetDefaultResourceDiscoveryAssociationId() const
Definition Ipam.h:213
bool PublicDefaultScopeIdHasBeenSet() const
Definition Ipam.h:106
Ipam & WithPublicDefaultScopeId(PublicDefaultScopeIdT &&value)
Definition Ipam.h:110
Ipam & AddOperatingRegions(OperatingRegionsT &&value)
Definition Ipam.h:166
const Aws::Vector< IpamOperatingRegion > & GetOperatingRegions() const
Definition Ipam.h:159
void SetState(IpamState value)
Definition Ipam.h:175
bool IpamRegionHasBeenSet() const
Definition Ipam.h:94
int GetResourceDiscoveryAssociationCount() const
Definition Ipam.h:225
void SetTags(TagsT &&value)
Definition Ipam.h:190
bool MeteredAccountHasBeenSet() const
Definition Ipam.h:280
const Aws::String & GetDescription() const
Definition Ipam.h:142
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