AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IpamResourceCidr.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/IpamResourceType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/IpamComplianceStatus.h>
13#include <aws/ec2/model/IpamManagementState.h>
14#include <aws/ec2/model/IpamOverlapStatus.h>
15#include <aws/ec2/model/IpamResourceTag.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
38 {
39 public:
40 AWS_EC2_API IpamResourceCidr();
41 AWS_EC2_API IpamResourceCidr(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetIpamId() const{ return m_ipamId; }
53 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
54 inline void SetIpamId(const Aws::String& value) { m_ipamIdHasBeenSet = true; m_ipamId = value; }
55 inline void SetIpamId(Aws::String&& value) { m_ipamIdHasBeenSet = true; m_ipamId = std::move(value); }
56 inline void SetIpamId(const char* value) { m_ipamIdHasBeenSet = true; m_ipamId.assign(value); }
57 inline IpamResourceCidr& WithIpamId(const Aws::String& value) { SetIpamId(value); return *this;}
58 inline IpamResourceCidr& WithIpamId(Aws::String&& value) { SetIpamId(std::move(value)); return *this;}
59 inline IpamResourceCidr& WithIpamId(const char* value) { SetIpamId(value); return *this;}
61
63
66 inline const Aws::String& GetIpamScopeId() const{ return m_ipamScopeId; }
67 inline bool IpamScopeIdHasBeenSet() const { return m_ipamScopeIdHasBeenSet; }
68 inline void SetIpamScopeId(const Aws::String& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = value; }
69 inline void SetIpamScopeId(Aws::String&& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = std::move(value); }
70 inline void SetIpamScopeId(const char* value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId.assign(value); }
71 inline IpamResourceCidr& WithIpamScopeId(const Aws::String& value) { SetIpamScopeId(value); return *this;}
72 inline IpamResourceCidr& WithIpamScopeId(Aws::String&& value) { SetIpamScopeId(std::move(value)); return *this;}
73 inline IpamResourceCidr& WithIpamScopeId(const char* value) { SetIpamScopeId(value); return *this;}
75
77
80 inline const Aws::String& GetIpamPoolId() const{ return m_ipamPoolId; }
81 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
82 inline void SetIpamPoolId(const Aws::String& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = value; }
83 inline void SetIpamPoolId(Aws::String&& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = std::move(value); }
84 inline void SetIpamPoolId(const char* value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId.assign(value); }
85 inline IpamResourceCidr& WithIpamPoolId(const Aws::String& value) { SetIpamPoolId(value); return *this;}
86 inline IpamResourceCidr& WithIpamPoolId(Aws::String&& value) { SetIpamPoolId(std::move(value)); return *this;}
87 inline IpamResourceCidr& WithIpamPoolId(const char* value) { SetIpamPoolId(value); return *this;}
89
91
94 inline const Aws::String& GetResourceRegion() const{ return m_resourceRegion; }
95 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
96 inline void SetResourceRegion(const Aws::String& value) { m_resourceRegionHasBeenSet = true; m_resourceRegion = value; }
97 inline void SetResourceRegion(Aws::String&& value) { m_resourceRegionHasBeenSet = true; m_resourceRegion = std::move(value); }
98 inline void SetResourceRegion(const char* value) { m_resourceRegionHasBeenSet = true; m_resourceRegion.assign(value); }
99 inline IpamResourceCidr& WithResourceRegion(const Aws::String& value) { SetResourceRegion(value); return *this;}
100 inline IpamResourceCidr& WithResourceRegion(Aws::String&& value) { SetResourceRegion(std::move(value)); return *this;}
101 inline IpamResourceCidr& WithResourceRegion(const char* value) { SetResourceRegion(value); return *this;}
103
105
108 inline const Aws::String& GetResourceOwnerId() const{ return m_resourceOwnerId; }
109 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
110 inline void SetResourceOwnerId(const Aws::String& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = value; }
111 inline void SetResourceOwnerId(Aws::String&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::move(value); }
112 inline void SetResourceOwnerId(const char* value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId.assign(value); }
113 inline IpamResourceCidr& WithResourceOwnerId(const Aws::String& value) { SetResourceOwnerId(value); return *this;}
114 inline IpamResourceCidr& WithResourceOwnerId(Aws::String&& value) { SetResourceOwnerId(std::move(value)); return *this;}
115 inline IpamResourceCidr& WithResourceOwnerId(const char* value) { SetResourceOwnerId(value); return *this;}
117
119
122 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
123 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
124 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
125 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
126 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
127 inline IpamResourceCidr& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
128 inline IpamResourceCidr& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
129 inline IpamResourceCidr& WithResourceId(const char* value) { SetResourceId(value); return *this;}
131
133
136 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
137 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
138 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
139 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
140 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
141 inline IpamResourceCidr& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
142 inline IpamResourceCidr& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
143 inline IpamResourceCidr& WithResourceName(const char* value) { SetResourceName(value); return *this;}
145
147
150 inline const Aws::String& GetResourceCidr() const{ return m_resourceCidr; }
151 inline bool ResourceCidrHasBeenSet() const { return m_resourceCidrHasBeenSet; }
152 inline void SetResourceCidr(const Aws::String& value) { m_resourceCidrHasBeenSet = true; m_resourceCidr = value; }
153 inline void SetResourceCidr(Aws::String&& value) { m_resourceCidrHasBeenSet = true; m_resourceCidr = std::move(value); }
154 inline void SetResourceCidr(const char* value) { m_resourceCidrHasBeenSet = true; m_resourceCidr.assign(value); }
155 inline IpamResourceCidr& WithResourceCidr(const Aws::String& value) { SetResourceCidr(value); return *this;}
156 inline IpamResourceCidr& WithResourceCidr(Aws::String&& value) { SetResourceCidr(std::move(value)); return *this;}
157 inline IpamResourceCidr& WithResourceCidr(const char* value) { SetResourceCidr(value); return *this;}
159
161
164 inline const IpamResourceType& GetResourceType() const{ return m_resourceType; }
165 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
166 inline void SetResourceType(const IpamResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
167 inline void SetResourceType(IpamResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
168 inline IpamResourceCidr& WithResourceType(const IpamResourceType& value) { SetResourceType(value); return *this;}
169 inline IpamResourceCidr& WithResourceType(IpamResourceType&& value) { SetResourceType(std::move(value)); return *this;}
171
173
176 inline const Aws::Vector<IpamResourceTag>& GetResourceTags() const{ return m_resourceTags; }
177 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
178 inline void SetResourceTags(const Aws::Vector<IpamResourceTag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
179 inline void SetResourceTags(Aws::Vector<IpamResourceTag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
181 inline IpamResourceCidr& WithResourceTags(Aws::Vector<IpamResourceTag>&& value) { SetResourceTags(std::move(value)); return *this;}
182 inline IpamResourceCidr& AddResourceTags(const IpamResourceTag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
183 inline IpamResourceCidr& AddResourceTags(IpamResourceTag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; }
185
187
200 inline double GetIpUsage() const{ return m_ipUsage; }
201 inline bool IpUsageHasBeenSet() const { return m_ipUsageHasBeenSet; }
202 inline void SetIpUsage(double value) { m_ipUsageHasBeenSet = true; m_ipUsage = value; }
203 inline IpamResourceCidr& WithIpUsage(double value) { SetIpUsage(value); return *this;}
205
207
213 inline const IpamComplianceStatus& GetComplianceStatus() const{ return m_complianceStatus; }
214 inline bool ComplianceStatusHasBeenSet() const { return m_complianceStatusHasBeenSet; }
215 inline void SetComplianceStatus(const IpamComplianceStatus& value) { m_complianceStatusHasBeenSet = true; m_complianceStatus = value; }
216 inline void SetComplianceStatus(IpamComplianceStatus&& value) { m_complianceStatusHasBeenSet = true; m_complianceStatus = std::move(value); }
218 inline IpamResourceCidr& WithComplianceStatus(IpamComplianceStatus&& value) { SetComplianceStatus(std::move(value)); return *this;}
220
222
228 inline const IpamManagementState& GetManagementState() const{ return m_managementState; }
229 inline bool ManagementStateHasBeenSet() const { return m_managementStateHasBeenSet; }
230 inline void SetManagementState(const IpamManagementState& value) { m_managementStateHasBeenSet = true; m_managementState = value; }
231 inline void SetManagementState(IpamManagementState&& value) { m_managementStateHasBeenSet = true; m_managementState = std::move(value); }
232 inline IpamResourceCidr& WithManagementState(const IpamManagementState& value) { SetManagementState(value); return *this;}
233 inline IpamResourceCidr& WithManagementState(IpamManagementState&& value) { SetManagementState(std::move(value)); return *this;}
235
237
244 inline const IpamOverlapStatus& GetOverlapStatus() const{ return m_overlapStatus; }
245 inline bool OverlapStatusHasBeenSet() const { return m_overlapStatusHasBeenSet; }
246 inline void SetOverlapStatus(const IpamOverlapStatus& value) { m_overlapStatusHasBeenSet = true; m_overlapStatus = value; }
247 inline void SetOverlapStatus(IpamOverlapStatus&& value) { m_overlapStatusHasBeenSet = true; m_overlapStatus = std::move(value); }
248 inline IpamResourceCidr& WithOverlapStatus(const IpamOverlapStatus& value) { SetOverlapStatus(value); return *this;}
249 inline IpamResourceCidr& WithOverlapStatus(IpamOverlapStatus&& value) { SetOverlapStatus(std::move(value)); return *this;}
251
253
256 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
257 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
258 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
259 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
260 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
261 inline IpamResourceCidr& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
262 inline IpamResourceCidr& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
263 inline IpamResourceCidr& WithVpcId(const char* value) { SetVpcId(value); return *this;}
265
267
270 inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
271 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
272 inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
273 inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
274 inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
275 inline IpamResourceCidr& WithAvailabilityZoneId(const Aws::String& value) { SetAvailabilityZoneId(value); return *this;}
276 inline IpamResourceCidr& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
277 inline IpamResourceCidr& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
279 private:
280
281 Aws::String m_ipamId;
282 bool m_ipamIdHasBeenSet = false;
283
284 Aws::String m_ipamScopeId;
285 bool m_ipamScopeIdHasBeenSet = false;
286
287 Aws::String m_ipamPoolId;
288 bool m_ipamPoolIdHasBeenSet = false;
289
290 Aws::String m_resourceRegion;
291 bool m_resourceRegionHasBeenSet = false;
292
293 Aws::String m_resourceOwnerId;
294 bool m_resourceOwnerIdHasBeenSet = false;
295
296 Aws::String m_resourceId;
297 bool m_resourceIdHasBeenSet = false;
298
299 Aws::String m_resourceName;
300 bool m_resourceNameHasBeenSet = false;
301
302 Aws::String m_resourceCidr;
303 bool m_resourceCidrHasBeenSet = false;
304
305 IpamResourceType m_resourceType;
306 bool m_resourceTypeHasBeenSet = false;
307
308 Aws::Vector<IpamResourceTag> m_resourceTags;
309 bool m_resourceTagsHasBeenSet = false;
310
311 double m_ipUsage;
312 bool m_ipUsageHasBeenSet = false;
313
314 IpamComplianceStatus m_complianceStatus;
315 bool m_complianceStatusHasBeenSet = false;
316
317 IpamManagementState m_managementState;
318 bool m_managementStateHasBeenSet = false;
319
320 IpamOverlapStatus m_overlapStatus;
321 bool m_overlapStatusHasBeenSet = false;
322
323 Aws::String m_vpcId;
324 bool m_vpcIdHasBeenSet = false;
325
326 Aws::String m_availabilityZoneId;
327 bool m_availabilityZoneIdHasBeenSet = false;
328 };
329
330} // namespace Model
331} // namespace EC2
332} // namespace Aws
IpamResourceCidr & WithResourceId(const Aws::String &value)
IpamResourceCidr & WithResourceRegion(const char *value)
const Aws::String & GetIpamScopeId() const
IpamResourceCidr & WithComplianceStatus(const IpamComplianceStatus &value)
IpamResourceCidr & WithResourceOwnerId(const char *value)
const Aws::String & GetResourceCidr() const
void SetResourceRegion(Aws::String &&value)
void SetIpamId(const char *value)
void SetVpcId(const Aws::String &value)
void SetIpamScopeId(const Aws::String &value)
void SetResourceType(const IpamResourceType &value)
IpamResourceCidr & WithAvailabilityZoneId(const Aws::String &value)
IpamResourceCidr & WithManagementState(const IpamManagementState &value)
void SetAvailabilityZoneId(const char *value)
IpamResourceCidr & WithIpamPoolId(Aws::String &&value)
void SetResourceTags(const Aws::Vector< IpamResourceTag > &value)
void SetOverlapStatus(IpamOverlapStatus &&value)
const Aws::Vector< IpamResourceTag > & GetResourceTags() const
IpamResourceCidr & WithResourceCidr(const Aws::String &value)
void SetIpamScopeId(const char *value)
IpamResourceCidr & WithResourceOwnerId(const Aws::String &value)
void SetIpamId(Aws::String &&value)
void SetResourceId(Aws::String &&value)
void SetResourceId(const char *value)
void SetResourceName(Aws::String &&value)
IpamResourceCidr & WithOverlapStatus(IpamOverlapStatus &&value)
IpamResourceCidr & WithResourceName(Aws::String &&value)
void SetComplianceStatus(IpamComplianceStatus &&value)
const Aws::String & GetIpamId() const
IpamResourceCidr & WithResourceRegion(const Aws::String &value)
void SetResourceName(const char *value)
IpamResourceCidr & AddResourceTags(const IpamResourceTag &value)
void SetResourceTags(Aws::Vector< IpamResourceTag > &&value)
void SetResourceId(const Aws::String &value)
IpamResourceCidr & WithIpamScopeId(Aws::String &&value)
IpamResourceCidr & WithIpamId(const char *value)
const IpamOverlapStatus & GetOverlapStatus() const
const Aws::String & GetAvailabilityZoneId() const
const Aws::String & GetVpcId() const
void SetAvailabilityZoneId(Aws::String &&value)
void SetResourceOwnerId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetResourceRegion(const char *value)
IpamResourceCidr & WithManagementState(IpamManagementState &&value)
IpamResourceCidr & WithResourceRegion(Aws::String &&value)
IpamResourceCidr & WithResourceOwnerId(Aws::String &&value)
AWS_EC2_API IpamResourceCidr & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamResourceCidr & WithResourceTags(const Aws::Vector< IpamResourceTag > &value)
const Aws::String & GetResourceRegion() const
void SetAvailabilityZoneId(const Aws::String &value)
const IpamComplianceStatus & GetComplianceStatus() const
void SetResourceType(IpamResourceType &&value)
void SetIpamPoolId(const Aws::String &value)
IpamResourceCidr & WithIpamScopeId(const Aws::String &value)
IpamResourceCidr & WithVpcId(const Aws::String &value)
IpamResourceCidr & WithResourceId(Aws::String &&value)
void SetIpamScopeId(Aws::String &&value)
IpamResourceCidr & WithResourceName(const Aws::String &value)
const Aws::String & GetResourceOwnerId() const
void SetOverlapStatus(const IpamOverlapStatus &value)
const IpamManagementState & GetManagementState() const
const Aws::String & GetResourceName() const
IpamResourceCidr & WithIpamId(Aws::String &&value)
IpamResourceCidr & WithResourceName(const char *value)
const Aws::String & GetResourceId() const
IpamResourceCidr & WithResourceType(IpamResourceType &&value)
IpamResourceCidr & WithResourceCidr(const char *value)
void SetIpamPoolId(Aws::String &&value)
IpamResourceCidr & WithComplianceStatus(IpamComplianceStatus &&value)
void SetManagementState(IpamManagementState &&value)
IpamResourceCidr & WithVpcId(const char *value)
void SetResourceOwnerId(const Aws::String &value)
IpamResourceCidr & AddResourceTags(IpamResourceTag &&value)
void SetResourceRegion(const Aws::String &value)
IpamResourceCidr & WithIpamScopeId(const char *value)
IpamResourceCidr & WithResourceId(const char *value)
IpamResourceCidr & WithResourceCidr(Aws::String &&value)
void SetResourceOwnerId(Aws::String &&value)
const IpamResourceType & GetResourceType() const
IpamResourceCidr & WithAvailabilityZoneId(const char *value)
void SetComplianceStatus(const IpamComplianceStatus &value)
const Aws::String & GetIpamPoolId() const
void SetResourceName(const Aws::String &value)
IpamResourceCidr & WithIpamPoolId(const Aws::String &value)
void SetManagementState(const IpamManagementState &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetIpamId(const Aws::String &value)
void SetIpamPoolId(const char *value)
void SetVpcId(Aws::String &&value)
AWS_EC2_API IpamResourceCidr(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceCidr(Aws::String &&value)
IpamResourceCidr & WithIpamPoolId(const char *value)
IpamResourceCidr & WithResourceType(const IpamResourceType &value)
IpamResourceCidr & WithVpcId(Aws::String &&value)
IpamResourceCidr & WithOverlapStatus(const IpamOverlapStatus &value)
IpamResourceCidr & WithAvailabilityZoneId(Aws::String &&value)
IpamResourceCidr & WithIpUsage(double value)
IpamResourceCidr & WithIpamId(const Aws::String &value)
void SetResourceCidr(const Aws::String &value)
void SetResourceCidr(const char *value)
IpamResourceCidr & WithResourceTags(Aws::Vector< IpamResourceTag > &&value)
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