AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IpamDiscoveredResourceCidr.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/IpamResourceCidrIpSource.h>
11#include <aws/ec2/model/IpamResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/IpamNetworkInterfaceAttachmentStatus.h>
14#include <aws/core/utils/DateTime.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
42 {
43 public:
47
48 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
50
51
53
56 inline const Aws::String& GetIpamResourceDiscoveryId() const{ return m_ipamResourceDiscoveryId; }
57 inline bool IpamResourceDiscoveryIdHasBeenSet() const { return m_ipamResourceDiscoveryIdHasBeenSet; }
58 inline void SetIpamResourceDiscoveryId(const Aws::String& value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId = value; }
59 inline void SetIpamResourceDiscoveryId(Aws::String&& value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId = std::move(value); }
60 inline void SetIpamResourceDiscoveryId(const char* value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId.assign(value); }
63 inline IpamDiscoveredResourceCidr& WithIpamResourceDiscoveryId(const char* value) { SetIpamResourceDiscoveryId(value); return *this;}
65
67
70 inline const Aws::String& GetResourceRegion() const{ return m_resourceRegion; }
71 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
72 inline void SetResourceRegion(const Aws::String& value) { m_resourceRegionHasBeenSet = true; m_resourceRegion = value; }
73 inline void SetResourceRegion(Aws::String&& value) { m_resourceRegionHasBeenSet = true; m_resourceRegion = std::move(value); }
74 inline void SetResourceRegion(const char* value) { m_resourceRegionHasBeenSet = true; m_resourceRegion.assign(value); }
75 inline IpamDiscoveredResourceCidr& WithResourceRegion(const Aws::String& value) { SetResourceRegion(value); return *this;}
76 inline IpamDiscoveredResourceCidr& WithResourceRegion(Aws::String&& value) { SetResourceRegion(std::move(value)); return *this;}
77 inline IpamDiscoveredResourceCidr& WithResourceRegion(const char* value) { SetResourceRegion(value); return *this;}
79
81
84 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
85 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
86 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
87 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
88 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
89 inline IpamDiscoveredResourceCidr& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
90 inline IpamDiscoveredResourceCidr& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
91 inline IpamDiscoveredResourceCidr& WithResourceId(const char* value) { SetResourceId(value); return *this;}
93
95
98 inline const Aws::String& GetResourceOwnerId() const{ return m_resourceOwnerId; }
99 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
100 inline void SetResourceOwnerId(const Aws::String& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = value; }
101 inline void SetResourceOwnerId(Aws::String&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::move(value); }
102 inline void SetResourceOwnerId(const char* value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId.assign(value); }
104 inline IpamDiscoveredResourceCidr& WithResourceOwnerId(Aws::String&& value) { SetResourceOwnerId(std::move(value)); return *this;}
105 inline IpamDiscoveredResourceCidr& WithResourceOwnerId(const char* value) { SetResourceOwnerId(value); return *this;}
107
109
112 inline const Aws::String& GetResourceCidr() const{ return m_resourceCidr; }
113 inline bool ResourceCidrHasBeenSet() const { return m_resourceCidrHasBeenSet; }
114 inline void SetResourceCidr(const Aws::String& value) { m_resourceCidrHasBeenSet = true; m_resourceCidr = value; }
115 inline void SetResourceCidr(Aws::String&& value) { m_resourceCidrHasBeenSet = true; m_resourceCidr = std::move(value); }
116 inline void SetResourceCidr(const char* value) { m_resourceCidrHasBeenSet = true; m_resourceCidr.assign(value); }
117 inline IpamDiscoveredResourceCidr& WithResourceCidr(const Aws::String& value) { SetResourceCidr(value); return *this;}
118 inline IpamDiscoveredResourceCidr& WithResourceCidr(Aws::String&& value) { SetResourceCidr(std::move(value)); return *this;}
119 inline IpamDiscoveredResourceCidr& WithResourceCidr(const char* value) { SetResourceCidr(value); return *this;}
121
123
129 inline const IpamResourceCidrIpSource& GetIpSource() const{ return m_ipSource; }
130 inline bool IpSourceHasBeenSet() const { return m_ipSourceHasBeenSet; }
131 inline void SetIpSource(const IpamResourceCidrIpSource& value) { m_ipSourceHasBeenSet = true; m_ipSource = value; }
132 inline void SetIpSource(IpamResourceCidrIpSource&& value) { m_ipSourceHasBeenSet = true; m_ipSource = std::move(value); }
134 inline IpamDiscoveredResourceCidr& WithIpSource(IpamResourceCidrIpSource&& value) { SetIpSource(std::move(value)); return *this;}
136
138
141 inline const IpamResourceType& GetResourceType() const{ return m_resourceType; }
142 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
143 inline void SetResourceType(const IpamResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
144 inline void SetResourceType(IpamResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
146 inline IpamDiscoveredResourceCidr& WithResourceType(IpamResourceType&& value) { SetResourceType(std::move(value)); return *this;}
148
150
153 inline const Aws::Vector<IpamResourceTag>& GetResourceTags() const{ return m_resourceTags; }
154 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
155 inline void SetResourceTags(const Aws::Vector<IpamResourceTag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
156 inline void SetResourceTags(Aws::Vector<IpamResourceTag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
159 inline IpamDiscoveredResourceCidr& AddResourceTags(const IpamResourceTag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
160 inline IpamDiscoveredResourceCidr& AddResourceTags(IpamResourceTag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; }
162
164
177 inline double GetIpUsage() const{ return m_ipUsage; }
178 inline bool IpUsageHasBeenSet() const { return m_ipUsageHasBeenSet; }
179 inline void SetIpUsage(double value) { m_ipUsageHasBeenSet = true; m_ipUsage = value; }
180 inline IpamDiscoveredResourceCidr& WithIpUsage(double value) { SetIpUsage(value); return *this;}
182
184
187 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
188 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
189 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
190 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
191 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
192 inline IpamDiscoveredResourceCidr& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
193 inline IpamDiscoveredResourceCidr& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
194 inline IpamDiscoveredResourceCidr& WithVpcId(const char* value) { SetVpcId(value); return *this;}
196
198
201 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
202 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
203 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
204 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
205 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
206 inline IpamDiscoveredResourceCidr& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
207 inline IpamDiscoveredResourceCidr& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
208 inline IpamDiscoveredResourceCidr& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
210
212
216 inline const IpamNetworkInterfaceAttachmentStatus& GetNetworkInterfaceAttachmentStatus() const{ return m_networkInterfaceAttachmentStatus; }
217 inline bool NetworkInterfaceAttachmentStatusHasBeenSet() const { return m_networkInterfaceAttachmentStatusHasBeenSet; }
218 inline void SetNetworkInterfaceAttachmentStatus(const IpamNetworkInterfaceAttachmentStatus& value) { m_networkInterfaceAttachmentStatusHasBeenSet = true; m_networkInterfaceAttachmentStatus = value; }
219 inline void SetNetworkInterfaceAttachmentStatus(IpamNetworkInterfaceAttachmentStatus&& value) { m_networkInterfaceAttachmentStatusHasBeenSet = true; m_networkInterfaceAttachmentStatus = std::move(value); }
223
225
228 inline const Aws::Utils::DateTime& GetSampleTime() const{ return m_sampleTime; }
229 inline bool SampleTimeHasBeenSet() const { return m_sampleTimeHasBeenSet; }
230 inline void SetSampleTime(const Aws::Utils::DateTime& value) { m_sampleTimeHasBeenSet = true; m_sampleTime = value; }
231 inline void SetSampleTime(Aws::Utils::DateTime&& value) { m_sampleTimeHasBeenSet = true; m_sampleTime = std::move(value); }
233 inline IpamDiscoveredResourceCidr& WithSampleTime(Aws::Utils::DateTime&& value) { SetSampleTime(std::move(value)); return *this;}
235
237
240 inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
241 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
242 inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
243 inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
244 inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
246 inline IpamDiscoveredResourceCidr& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
247 inline IpamDiscoveredResourceCidr& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
249 private:
250
251 Aws::String m_ipamResourceDiscoveryId;
252 bool m_ipamResourceDiscoveryIdHasBeenSet = false;
253
254 Aws::String m_resourceRegion;
255 bool m_resourceRegionHasBeenSet = false;
256
257 Aws::String m_resourceId;
258 bool m_resourceIdHasBeenSet = false;
259
260 Aws::String m_resourceOwnerId;
261 bool m_resourceOwnerIdHasBeenSet = false;
262
263 Aws::String m_resourceCidr;
264 bool m_resourceCidrHasBeenSet = false;
265
266 IpamResourceCidrIpSource m_ipSource;
267 bool m_ipSourceHasBeenSet = false;
268
269 IpamResourceType m_resourceType;
270 bool m_resourceTypeHasBeenSet = false;
271
272 Aws::Vector<IpamResourceTag> m_resourceTags;
273 bool m_resourceTagsHasBeenSet = false;
274
275 double m_ipUsage;
276 bool m_ipUsageHasBeenSet = false;
277
278 Aws::String m_vpcId;
279 bool m_vpcIdHasBeenSet = false;
280
281 Aws::String m_subnetId;
282 bool m_subnetIdHasBeenSet = false;
283
284 IpamNetworkInterfaceAttachmentStatus m_networkInterfaceAttachmentStatus;
285 bool m_networkInterfaceAttachmentStatusHasBeenSet = false;
286
287 Aws::Utils::DateTime m_sampleTime;
288 bool m_sampleTimeHasBeenSet = false;
289
290 Aws::String m_availabilityZoneId;
291 bool m_availabilityZoneIdHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace EC2
296} // namespace Aws
IpamDiscoveredResourceCidr & WithSampleTime(Aws::Utils::DateTime &&value)
IpamDiscoveredResourceCidr & WithIpSource(IpamResourceCidrIpSource &&value)
IpamDiscoveredResourceCidr & WithResourceId(const Aws::String &value)
AWS_EC2_API IpamDiscoveredResourceCidr(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamDiscoveredResourceCidr & WithVpcId(const char *value)
IpamDiscoveredResourceCidr & WithResourceTags(const Aws::Vector< IpamResourceTag > &value)
IpamDiscoveredResourceCidr & WithIpUsage(double value)
void SetIpSource(IpamResourceCidrIpSource &&value)
const Aws::Utils::DateTime & GetSampleTime() const
void SetIpamResourceDiscoveryId(const Aws::String &value)
IpamDiscoveredResourceCidr & WithResourceOwnerId(const Aws::String &value)
IpamDiscoveredResourceCidr & WithResourceRegion(const char *value)
void SetIpSource(const IpamResourceCidrIpSource &value)
IpamDiscoveredResourceCidr & WithIpamResourceDiscoveryId(const char *value)
IpamDiscoveredResourceCidr & WithSubnetId(Aws::String &&value)
IpamDiscoveredResourceCidr & WithResourceType(IpamResourceType &&value)
IpamDiscoveredResourceCidr & WithSubnetId(const Aws::String &value)
IpamDiscoveredResourceCidr & WithResourceRegion(const Aws::String &value)
IpamDiscoveredResourceCidr & WithIpamResourceDiscoveryId(const Aws::String &value)
const IpamNetworkInterfaceAttachmentStatus & GetNetworkInterfaceAttachmentStatus() const
IpamDiscoveredResourceCidr & WithAvailabilityZoneId(const char *value)
IpamDiscoveredResourceCidr & WithIpamResourceDiscoveryId(Aws::String &&value)
IpamDiscoveredResourceCidr & WithAvailabilityZoneId(const Aws::String &value)
IpamDiscoveredResourceCidr & WithResourceRegion(Aws::String &&value)
void SetNetworkInterfaceAttachmentStatus(IpamNetworkInterfaceAttachmentStatus &&value)
void SetSampleTime(const Aws::Utils::DateTime &value)
IpamDiscoveredResourceCidr & WithAvailabilityZoneId(Aws::String &&value)
IpamDiscoveredResourceCidr & WithResourceCidr(const Aws::String &value)
IpamDiscoveredResourceCidr & WithSampleTime(const Aws::Utils::DateTime &value)
IpamDiscoveredResourceCidr & WithIpSource(const IpamResourceCidrIpSource &value)
IpamDiscoveredResourceCidr & WithResourceType(const IpamResourceType &value)
void SetResourceTags(Aws::Vector< IpamResourceTag > &&value)
const IpamResourceCidrIpSource & GetIpSource() const
IpamDiscoveredResourceCidr & WithResourceOwnerId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< IpamResourceTag > & GetResourceTags() const
void SetNetworkInterfaceAttachmentStatus(const IpamNetworkInterfaceAttachmentStatus &value)
IpamDiscoveredResourceCidr & WithVpcId(const Aws::String &value)
IpamDiscoveredResourceCidr & WithResourceCidr(const char *value)
void SetResourceTags(const Aws::Vector< IpamResourceTag > &value)
IpamDiscoveredResourceCidr & AddResourceTags(IpamResourceTag &&value)
IpamDiscoveredResourceCidr & WithResourceId(const char *value)
IpamDiscoveredResourceCidr & WithResourceTags(Aws::Vector< IpamResourceTag > &&value)
IpamDiscoveredResourceCidr & WithResourceId(Aws::String &&value)
IpamDiscoveredResourceCidr & WithNetworkInterfaceAttachmentStatus(IpamNetworkInterfaceAttachmentStatus &&value)
IpamDiscoveredResourceCidr & WithResourceOwnerId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
IpamDiscoveredResourceCidr & AddResourceTags(const IpamResourceTag &value)
IpamDiscoveredResourceCidr & WithVpcId(Aws::String &&value)
AWS_EC2_API IpamDiscoveredResourceCidr & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceType(const IpamResourceType &value)
IpamDiscoveredResourceCidr & WithNetworkInterfaceAttachmentStatus(const IpamNetworkInterfaceAttachmentStatus &value)
IpamDiscoveredResourceCidr & WithSubnetId(const char *value)
IpamDiscoveredResourceCidr & WithResourceCidr(Aws::String &&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