AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Subnet.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/PrivateDnsNameOptionsOnLaunch.h>
12#include <aws/ec2/model/SubnetState.h>
13#include <aws/ec2/model/SubnetIpv6CidrBlockAssociation.h>
14#include <aws/ec2/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
36 class Subnet
37 {
38 public:
39 AWS_EC2_API Subnet();
40 AWS_EC2_API Subnet(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_EC2_API Subnet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
52 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
53 inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
54 inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
55 inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
56 inline Subnet& WithAvailabilityZoneId(const Aws::String& value) { SetAvailabilityZoneId(value); return *this;}
57 inline Subnet& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
58 inline Subnet& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
60
62
67 inline int GetEnableLniAtDeviceIndex() const{ return m_enableLniAtDeviceIndex; }
68 inline bool EnableLniAtDeviceIndexHasBeenSet() const { return m_enableLniAtDeviceIndexHasBeenSet; }
69 inline void SetEnableLniAtDeviceIndex(int value) { m_enableLniAtDeviceIndexHasBeenSet = true; m_enableLniAtDeviceIndex = value; }
70 inline Subnet& WithEnableLniAtDeviceIndex(int value) { SetEnableLniAtDeviceIndex(value); return *this;}
72
74
79 inline bool GetMapCustomerOwnedIpOnLaunch() const{ return m_mapCustomerOwnedIpOnLaunch; }
80 inline bool MapCustomerOwnedIpOnLaunchHasBeenSet() const { return m_mapCustomerOwnedIpOnLaunchHasBeenSet; }
81 inline void SetMapCustomerOwnedIpOnLaunch(bool value) { m_mapCustomerOwnedIpOnLaunchHasBeenSet = true; m_mapCustomerOwnedIpOnLaunch = value; }
82 inline Subnet& WithMapCustomerOwnedIpOnLaunch(bool value) { SetMapCustomerOwnedIpOnLaunch(value); return *this;}
84
86
89 inline const Aws::String& GetCustomerOwnedIpv4Pool() const{ return m_customerOwnedIpv4Pool; }
90 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
91 inline void SetCustomerOwnedIpv4Pool(const Aws::String& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = value; }
92 inline void SetCustomerOwnedIpv4Pool(Aws::String&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::move(value); }
93 inline void SetCustomerOwnedIpv4Pool(const char* value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool.assign(value); }
94 inline Subnet& WithCustomerOwnedIpv4Pool(const Aws::String& value) { SetCustomerOwnedIpv4Pool(value); return *this;}
95 inline Subnet& WithCustomerOwnedIpv4Pool(Aws::String&& value) { SetCustomerOwnedIpv4Pool(std::move(value)); return *this;}
96 inline Subnet& WithCustomerOwnedIpv4Pool(const char* value) { SetCustomerOwnedIpv4Pool(value); return *this;}
98
100
103 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
104 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
105 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
106 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
107 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
108 inline Subnet& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
109 inline Subnet& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
110 inline Subnet& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
112
114
118 inline bool GetAssignIpv6AddressOnCreation() const{ return m_assignIpv6AddressOnCreation; }
119 inline bool AssignIpv6AddressOnCreationHasBeenSet() const { return m_assignIpv6AddressOnCreationHasBeenSet; }
120 inline void SetAssignIpv6AddressOnCreation(bool value) { m_assignIpv6AddressOnCreationHasBeenSet = true; m_assignIpv6AddressOnCreation = value; }
121 inline Subnet& WithAssignIpv6AddressOnCreation(bool value) { SetAssignIpv6AddressOnCreation(value); return *this;}
123
125
128 inline const Aws::Vector<SubnetIpv6CidrBlockAssociation>& GetIpv6CidrBlockAssociationSet() const{ return m_ipv6CidrBlockAssociationSet; }
129 inline bool Ipv6CidrBlockAssociationSetHasBeenSet() const { return m_ipv6CidrBlockAssociationSetHasBeenSet; }
130 inline void SetIpv6CidrBlockAssociationSet(const Aws::Vector<SubnetIpv6CidrBlockAssociation>& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet = value; }
131 inline void SetIpv6CidrBlockAssociationSet(Aws::Vector<SubnetIpv6CidrBlockAssociation>&& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet = std::move(value); }
134 inline Subnet& AddIpv6CidrBlockAssociationSet(const SubnetIpv6CidrBlockAssociation& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet.push_back(value); return *this; }
135 inline Subnet& AddIpv6CidrBlockAssociationSet(SubnetIpv6CidrBlockAssociation&& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet.push_back(std::move(value)); return *this; }
137
139
142 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
145 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
146 inline Subnet& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
147 inline Subnet& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
148 inline Subnet& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
149 inline Subnet& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
151
153
156 inline const Aws::String& GetSubnetArn() const{ return m_subnetArn; }
157 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
158 inline void SetSubnetArn(const Aws::String& value) { m_subnetArnHasBeenSet = true; m_subnetArn = value; }
159 inline void SetSubnetArn(Aws::String&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::move(value); }
160 inline void SetSubnetArn(const char* value) { m_subnetArnHasBeenSet = true; m_subnetArn.assign(value); }
161 inline Subnet& WithSubnetArn(const Aws::String& value) { SetSubnetArn(value); return *this;}
162 inline Subnet& WithSubnetArn(Aws::String&& value) { SetSubnetArn(std::move(value)); return *this;}
163 inline Subnet& WithSubnetArn(const char* value) { SetSubnetArn(value); return *this;}
165
167
170 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
171 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
172 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
173 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
174 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
175 inline Subnet& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
176 inline Subnet& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
177 inline Subnet& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
179
181
186 inline bool GetEnableDns64() const{ return m_enableDns64; }
187 inline bool EnableDns64HasBeenSet() const { return m_enableDns64HasBeenSet; }
188 inline void SetEnableDns64(bool value) { m_enableDns64HasBeenSet = true; m_enableDns64 = value; }
189 inline Subnet& WithEnableDns64(bool value) { SetEnableDns64(value); return *this;}
191
193
196 inline bool GetIpv6Native() const{ return m_ipv6Native; }
197 inline bool Ipv6NativeHasBeenSet() const { return m_ipv6NativeHasBeenSet; }
198 inline void SetIpv6Native(bool value) { m_ipv6NativeHasBeenSet = true; m_ipv6Native = value; }
199 inline Subnet& WithIpv6Native(bool value) { SetIpv6Native(value); return *this;}
201
203
207 inline const PrivateDnsNameOptionsOnLaunch& GetPrivateDnsNameOptionsOnLaunch() const{ return m_privateDnsNameOptionsOnLaunch; }
208 inline bool PrivateDnsNameOptionsOnLaunchHasBeenSet() const { return m_privateDnsNameOptionsOnLaunchHasBeenSet; }
209 inline void SetPrivateDnsNameOptionsOnLaunch(const PrivateDnsNameOptionsOnLaunch& value) { m_privateDnsNameOptionsOnLaunchHasBeenSet = true; m_privateDnsNameOptionsOnLaunch = value; }
210 inline void SetPrivateDnsNameOptionsOnLaunch(PrivateDnsNameOptionsOnLaunch&& value) { m_privateDnsNameOptionsOnLaunchHasBeenSet = true; m_privateDnsNameOptionsOnLaunch = std::move(value); }
214
216
219 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
220 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
221 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
222 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
223 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
224 inline Subnet& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
225 inline Subnet& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
226 inline Subnet& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
228
230
233 inline const SubnetState& GetState() const{ return m_state; }
234 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
235 inline void SetState(const SubnetState& value) { m_stateHasBeenSet = true; m_state = value; }
236 inline void SetState(SubnetState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
237 inline Subnet& WithState(const SubnetState& value) { SetState(value); return *this;}
238 inline Subnet& WithState(SubnetState&& value) { SetState(std::move(value)); return *this;}
240
242
245 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
246 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
247 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
248 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
249 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
250 inline Subnet& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
251 inline Subnet& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
252 inline Subnet& WithVpcId(const char* value) { SetVpcId(value); return *this;}
254
256
259 inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
260 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
261 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
262 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
263 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
264 inline Subnet& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
265 inline Subnet& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
266 inline Subnet& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
268
270
274 inline int GetAvailableIpAddressCount() const{ return m_availableIpAddressCount; }
275 inline bool AvailableIpAddressCountHasBeenSet() const { return m_availableIpAddressCountHasBeenSet; }
276 inline void SetAvailableIpAddressCount(int value) { m_availableIpAddressCountHasBeenSet = true; m_availableIpAddressCount = value; }
277 inline Subnet& WithAvailableIpAddressCount(int value) { SetAvailableIpAddressCount(value); return *this;}
279
281
284 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
285 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
286 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
287 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
288 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
289 inline Subnet& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
290 inline Subnet& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
291 inline Subnet& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
293
295
298 inline bool GetDefaultForAz() const{ return m_defaultForAz; }
299 inline bool DefaultForAzHasBeenSet() const { return m_defaultForAzHasBeenSet; }
300 inline void SetDefaultForAz(bool value) { m_defaultForAzHasBeenSet = true; m_defaultForAz = value; }
301 inline Subnet& WithDefaultForAz(bool value) { SetDefaultForAz(value); return *this;}
303
305
312 inline bool GetMapPublicIpOnLaunch() const{ return m_mapPublicIpOnLaunch; }
313 inline bool MapPublicIpOnLaunchHasBeenSet() const { return m_mapPublicIpOnLaunchHasBeenSet; }
314 inline void SetMapPublicIpOnLaunch(bool value) { m_mapPublicIpOnLaunchHasBeenSet = true; m_mapPublicIpOnLaunch = value; }
315 inline Subnet& WithMapPublicIpOnLaunch(bool value) { SetMapPublicIpOnLaunch(value); return *this;}
317 private:
318
319 Aws::String m_availabilityZoneId;
320 bool m_availabilityZoneIdHasBeenSet = false;
321
322 int m_enableLniAtDeviceIndex;
323 bool m_enableLniAtDeviceIndexHasBeenSet = false;
324
325 bool m_mapCustomerOwnedIpOnLaunch;
326 bool m_mapCustomerOwnedIpOnLaunchHasBeenSet = false;
327
328 Aws::String m_customerOwnedIpv4Pool;
329 bool m_customerOwnedIpv4PoolHasBeenSet = false;
330
331 Aws::String m_ownerId;
332 bool m_ownerIdHasBeenSet = false;
333
334 bool m_assignIpv6AddressOnCreation;
335 bool m_assignIpv6AddressOnCreationHasBeenSet = false;
336
337 Aws::Vector<SubnetIpv6CidrBlockAssociation> m_ipv6CidrBlockAssociationSet;
338 bool m_ipv6CidrBlockAssociationSetHasBeenSet = false;
339
340 Aws::Vector<Tag> m_tags;
341 bool m_tagsHasBeenSet = false;
342
343 Aws::String m_subnetArn;
344 bool m_subnetArnHasBeenSet = false;
345
346 Aws::String m_outpostArn;
347 bool m_outpostArnHasBeenSet = false;
348
349 bool m_enableDns64;
350 bool m_enableDns64HasBeenSet = false;
351
352 bool m_ipv6Native;
353 bool m_ipv6NativeHasBeenSet = false;
354
355 PrivateDnsNameOptionsOnLaunch m_privateDnsNameOptionsOnLaunch;
356 bool m_privateDnsNameOptionsOnLaunchHasBeenSet = false;
357
358 Aws::String m_subnetId;
359 bool m_subnetIdHasBeenSet = false;
360
361 SubnetState m_state;
362 bool m_stateHasBeenSet = false;
363
364 Aws::String m_vpcId;
365 bool m_vpcIdHasBeenSet = false;
366
367 Aws::String m_cidrBlock;
368 bool m_cidrBlockHasBeenSet = false;
369
370 int m_availableIpAddressCount;
371 bool m_availableIpAddressCountHasBeenSet = false;
372
373 Aws::String m_availabilityZone;
374 bool m_availabilityZoneHasBeenSet = false;
375
376 bool m_defaultForAz;
377 bool m_defaultForAzHasBeenSet = false;
378
379 bool m_mapPublicIpOnLaunch;
380 bool m_mapPublicIpOnLaunchHasBeenSet = false;
381 };
382
383} // namespace Model
384} // namespace EC2
385} // namespace Aws
void SetOutpostArn(Aws::String &&value)
Definition Subnet.h:173
AWS_EC2_API Subnet(const Aws::Utils::Xml::XmlNode &xmlNode)
bool AvailabilityZoneIdHasBeenSet() const
Definition Subnet.h:52
const Aws::String & GetOutpostArn() const
Definition Subnet.h:170
Subnet & WithVpcId(Aws::String &&value)
Definition Subnet.h:251
const Aws::String & GetCidrBlock() const
Definition Subnet.h:259
Subnet & WithSubnetArn(const char *value)
Definition Subnet.h:163
bool GetMapCustomerOwnedIpOnLaunch() const
Definition Subnet.h:79
void SetCidrBlock(const char *value)
Definition Subnet.h:263
void SetCidrBlock(Aws::String &&value)
Definition Subnet.h:262
const Aws::Vector< Tag > & GetTags() const
Definition Subnet.h:142
Subnet & AddTags(Tag &&value)
Definition Subnet.h:149
void SetSubnetArn(const char *value)
Definition Subnet.h:160
Subnet & WithSubnetArn(Aws::String &&value)
Definition Subnet.h:162
bool MapPublicIpOnLaunchHasBeenSet() const
Definition Subnet.h:313
Subnet & WithSubnetId(Aws::String &&value)
Definition Subnet.h:225
bool EnableLniAtDeviceIndexHasBeenSet() const
Definition Subnet.h:68
void SetIpv6CidrBlockAssociationSet(const Aws::Vector< SubnetIpv6CidrBlockAssociation > &value)
Definition Subnet.h:130
Subnet & WithOwnerId(const Aws::String &value)
Definition Subnet.h:108
Subnet & WithMapPublicIpOnLaunch(bool value)
Definition Subnet.h:315
void SetOutpostArn(const char *value)
Definition Subnet.h:174
Subnet & WithIpv6Native(bool value)
Definition Subnet.h:199
Subnet & WithCidrBlock(const Aws::String &value)
Definition Subnet.h:264
Subnet & WithAvailabilityZone(const char *value)
Definition Subnet.h:291
void SetVpcId(const char *value)
Definition Subnet.h:249
bool GetIpv6Native() const
Definition Subnet.h:196
Subnet & WithIpv6CidrBlockAssociationSet(Aws::Vector< SubnetIpv6CidrBlockAssociation > &&value)
Definition Subnet.h:133
void SetCustomerOwnedIpv4Pool(const Aws::String &value)
Definition Subnet.h:91
Subnet & WithPrivateDnsNameOptionsOnLaunch(const PrivateDnsNameOptionsOnLaunch &value)
Definition Subnet.h:211
bool AvailabilityZoneHasBeenSet() const
Definition Subnet.h:285
Subnet & WithCidrBlock(Aws::String &&value)
Definition Subnet.h:265
Subnet & WithAvailabilityZone(Aws::String &&value)
Definition Subnet.h:290
AWS_EC2_API Subnet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetIpv6Native(bool value)
Definition Subnet.h:198
Subnet & WithAvailabilityZoneId(const char *value)
Definition Subnet.h:58
void SetAvailabilityZone(Aws::String &&value)
Definition Subnet.h:287
const Aws::Vector< SubnetIpv6CidrBlockAssociation > & GetIpv6CidrBlockAssociationSet() const
Definition Subnet.h:128
Subnet & WithSubnetId(const Aws::String &value)
Definition Subnet.h:224
const PrivateDnsNameOptionsOnLaunch & GetPrivateDnsNameOptionsOnLaunch() const
Definition Subnet.h:207
const Aws::String & GetSubnetArn() const
Definition Subnet.h:156
bool Ipv6NativeHasBeenSet() const
Definition Subnet.h:197
void SetSubnetArn(const Aws::String &value)
Definition Subnet.h:158
bool CustomerOwnedIpv4PoolHasBeenSet() const
Definition Subnet.h:90
void SetCustomerOwnedIpv4Pool(Aws::String &&value)
Definition Subnet.h:92
Subnet & WithOutpostArn(const Aws::String &value)
Definition Subnet.h:175
bool TagsHasBeenSet() const
Definition Subnet.h:143
void SetMapCustomerOwnedIpOnLaunch(bool value)
Definition Subnet.h:81
const Aws::String & GetAvailabilityZone() const
Definition Subnet.h:284
Subnet & WithOutpostArn(const char *value)
Definition Subnet.h:177
void SetAvailabilityZoneId(Aws::String &&value)
Definition Subnet.h:54
Subnet & WithCustomerOwnedIpv4Pool(const Aws::String &value)
Definition Subnet.h:94
void SetOwnerId(Aws::String &&value)
Definition Subnet.h:106
bool GetEnableDns64() const
Definition Subnet.h:186
void SetDefaultForAz(bool value)
Definition Subnet.h:300
bool SubnetIdHasBeenSet() const
Definition Subnet.h:220
void SetTags(const Aws::Vector< Tag > &value)
Definition Subnet.h:144
void SetVpcId(const Aws::String &value)
Definition Subnet.h:247
void SetIpv6CidrBlockAssociationSet(Aws::Vector< SubnetIpv6CidrBlockAssociation > &&value)
Definition Subnet.h:131
Subnet & WithDefaultForAz(bool value)
Definition Subnet.h:301
Subnet & WithVpcId(const Aws::String &value)
Definition Subnet.h:250
Subnet & WithAvailabilityZoneId(const Aws::String &value)
Definition Subnet.h:56
const Aws::String & GetCustomerOwnedIpv4Pool() const
Definition Subnet.h:89
Subnet & WithState(SubnetState &&value)
Definition Subnet.h:238
void SetAvailableIpAddressCount(int value)
Definition Subnet.h:276
Subnet & WithIpv6CidrBlockAssociationSet(const Aws::Vector< SubnetIpv6CidrBlockAssociation > &value)
Definition Subnet.h:132
bool StateHasBeenSet() const
Definition Subnet.h:234
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetOwnerId() const
Definition Subnet.h:103
Subnet & WithMapCustomerOwnedIpOnLaunch(bool value)
Definition Subnet.h:82
void SetAvailabilityZone(const Aws::String &value)
Definition Subnet.h:286
const Aws::String & GetVpcId() const
Definition Subnet.h:245
void SetPrivateDnsNameOptionsOnLaunch(PrivateDnsNameOptionsOnLaunch &&value)
Definition Subnet.h:210
Subnet & WithTags(Aws::Vector< Tag > &&value)
Definition Subnet.h:147
void SetSubnetArn(Aws::String &&value)
Definition Subnet.h:159
const Aws::String & GetSubnetId() const
Definition Subnet.h:219
bool EnableDns64HasBeenSet() const
Definition Subnet.h:187
int GetEnableLniAtDeviceIndex() const
Definition Subnet.h:67
void SetState(SubnetState &&value)
Definition Subnet.h:236
void SetOwnerId(const Aws::String &value)
Definition Subnet.h:105
Subnet & AddIpv6CidrBlockAssociationSet(SubnetIpv6CidrBlockAssociation &&value)
Definition Subnet.h:135
bool SubnetArnHasBeenSet() const
Definition Subnet.h:157
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetOutpostArn(const Aws::String &value)
Definition Subnet.h:172
Subnet & WithAssignIpv6AddressOnCreation(bool value)
Definition Subnet.h:121
Subnet & WithTags(const Aws::Vector< Tag > &value)
Definition Subnet.h:146
Subnet & WithCustomerOwnedIpv4Pool(Aws::String &&value)
Definition Subnet.h:95
Subnet & AddIpv6CidrBlockAssociationSet(const SubnetIpv6CidrBlockAssociation &value)
Definition Subnet.h:134
Subnet & WithOwnerId(Aws::String &&value)
Definition Subnet.h:109
void SetAvailabilityZoneId(const Aws::String &value)
Definition Subnet.h:53
void SetCustomerOwnedIpv4Pool(const char *value)
Definition Subnet.h:93
void SetAssignIpv6AddressOnCreation(bool value)
Definition Subnet.h:120
Subnet & WithOutpostArn(Aws::String &&value)
Definition Subnet.h:176
void SetPrivateDnsNameOptionsOnLaunch(const PrivateDnsNameOptionsOnLaunch &value)
Definition Subnet.h:209
bool Ipv6CidrBlockAssociationSetHasBeenSet() const
Definition Subnet.h:129
Subnet & WithSubnetArn(const Aws::String &value)
Definition Subnet.h:161
bool AvailableIpAddressCountHasBeenSet() const
Definition Subnet.h:275
Subnet & WithCustomerOwnedIpv4Pool(const char *value)
Definition Subnet.h:96
bool OwnerIdHasBeenSet() const
Definition Subnet.h:104
void SetState(const SubnetState &value)
Definition Subnet.h:235
Subnet & WithState(const SubnetState &value)
Definition Subnet.h:237
bool AssignIpv6AddressOnCreationHasBeenSet() const
Definition Subnet.h:119
bool OutpostArnHasBeenSet() const
Definition Subnet.h:171
Subnet & WithAvailabilityZoneId(Aws::String &&value)
Definition Subnet.h:57
Subnet & WithEnableLniAtDeviceIndex(int value)
Definition Subnet.h:70
Subnet & WithSubnetId(const char *value)
Definition Subnet.h:226
void SetSubnetId(const char *value)
Definition Subnet.h:223
void SetAvailabilityZone(const char *value)
Definition Subnet.h:288
Subnet & WithAvailabilityZone(const Aws::String &value)
Definition Subnet.h:289
bool PrivateDnsNameOptionsOnLaunchHasBeenSet() const
Definition Subnet.h:208
bool DefaultForAzHasBeenSet() const
Definition Subnet.h:299
const SubnetState & GetState() const
Definition Subnet.h:233
void SetSubnetId(const Aws::String &value)
Definition Subnet.h:221
Subnet & WithOwnerId(const char *value)
Definition Subnet.h:110
void SetMapPublicIpOnLaunch(bool value)
Definition Subnet.h:314
bool VpcIdHasBeenSet() const
Definition Subnet.h:246
bool CidrBlockHasBeenSet() const
Definition Subnet.h:260
int GetAvailableIpAddressCount() const
Definition Subnet.h:274
void SetTags(Aws::Vector< Tag > &&value)
Definition Subnet.h:145
void SetOwnerId(const char *value)
Definition Subnet.h:107
Subnet & AddTags(const Tag &value)
Definition Subnet.h:148
const Aws::String & GetAvailabilityZoneId() const
Definition Subnet.h:51
void SetVpcId(Aws::String &&value)
Definition Subnet.h:248
void SetEnableLniAtDeviceIndex(int value)
Definition Subnet.h:69
void SetSubnetId(Aws::String &&value)
Definition Subnet.h:222
Subnet & WithAvailableIpAddressCount(int value)
Definition Subnet.h:277
void SetAvailabilityZoneId(const char *value)
Definition Subnet.h:55
Subnet & WithVpcId(const char *value)
Definition Subnet.h:252
bool GetDefaultForAz() const
Definition Subnet.h:298
Subnet & WithEnableDns64(bool value)
Definition Subnet.h:189
bool GetMapPublicIpOnLaunch() const
Definition Subnet.h:312
Subnet & WithPrivateDnsNameOptionsOnLaunch(PrivateDnsNameOptionsOnLaunch &&value)
Definition Subnet.h:212
void SetEnableDns64(bool value)
Definition Subnet.h:188
bool MapCustomerOwnedIpOnLaunchHasBeenSet() const
Definition Subnet.h:80
Subnet & WithCidrBlock(const char *value)
Definition Subnet.h:266
bool GetAssignIpv6AddressOnCreation() const
Definition Subnet.h:118
void SetCidrBlock(const Aws::String &value)
Definition Subnet.h:261
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