AWS SDK for C++  1.9.71
AWS SDK for C++
CreateSubnetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateSubnet"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
45 
49  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
50 
54  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
55 
59  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
60 
64  inline CreateSubnetRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
65 
69  inline CreateSubnetRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
70 
74  inline CreateSubnetRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
75 
79  inline CreateSubnetRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
80 
81 
94  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
95 
108  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
109 
122  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
123 
136  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
137 
150  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
151 
164  inline CreateSubnetRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
165 
178  inline CreateSubnetRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
179 
192  inline CreateSubnetRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
193 
194 
198  inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
199 
203  inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
204 
208  inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
209 
213  inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
214 
218  inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
219 
223  inline CreateSubnetRequest& WithAvailabilityZoneId(const Aws::String& value) { SetAvailabilityZoneId(value); return *this;}
224 
228  inline CreateSubnetRequest& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
229 
233  inline CreateSubnetRequest& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
234 
235 
240  inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; }
241 
246  inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
247 
252  inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; }
253 
258  inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); }
259 
264  inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); }
265 
270  inline CreateSubnetRequest& WithIpv6CidrBlock(const Aws::String& value) { SetIpv6CidrBlock(value); return *this;}
271 
276  inline CreateSubnetRequest& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;}
277 
282  inline CreateSubnetRequest& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;}
283 
284 
289  inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
290 
295  inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
296 
301  inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
302 
307  inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
308 
313  inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
314 
319  inline CreateSubnetRequest& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
320 
325  inline CreateSubnetRequest& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
326 
331  inline CreateSubnetRequest& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
332 
333 
337  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
338 
342  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
343 
347  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
348 
352  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
353 
357  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
358 
362  inline CreateSubnetRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
363 
367  inline CreateSubnetRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
368 
372  inline CreateSubnetRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
373 
374 
381  inline bool GetDryRun() const{ return m_dryRun; }
382 
389  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
390 
397  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
398 
405  inline CreateSubnetRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
406 
407 
414  inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
415 
422  inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
423 
430  inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
431 
438  inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
439 
446  inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
447 
454  inline CreateSubnetRequest& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
455 
462  inline CreateSubnetRequest& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
463 
470  inline CreateSubnetRequest& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
471 
472  private:
473 
474  Aws::Vector<TagSpecification> m_tagSpecifications;
475  bool m_tagSpecificationsHasBeenSet;
476 
477  Aws::String m_availabilityZone;
478  bool m_availabilityZoneHasBeenSet;
479 
480  Aws::String m_availabilityZoneId;
481  bool m_availabilityZoneIdHasBeenSet;
482 
483  Aws::String m_ipv6CidrBlock;
484  bool m_ipv6CidrBlockHasBeenSet;
485 
486  Aws::String m_outpostArn;
487  bool m_outpostArnHasBeenSet;
488 
489  Aws::String m_vpcId;
490  bool m_vpcIdHasBeenSet;
491 
492  bool m_dryRun;
493  bool m_dryRunHasBeenSet;
494 
495  Aws::String m_cidrBlock;
496  bool m_cidrBlockHasBeenSet;
497  };
498 
499 } // namespace Model
500 } // namespace EC2
501 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateSubnetRequest::SetCidrBlock
void SetCidrBlock(const char *value)
Definition: CreateSubnetRequest.h:446
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateSubnetRequest
Definition: CreateSubnetRequest.h:24
Aws::EC2::Model::CreateSubnetRequest::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: CreateSubnetRequest.h:94
Aws::EC2::Model::CreateSubnetRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateSubnetRequest.h:49
Aws::EC2::Model::CreateSubnetRequest::WithAvailabilityZoneId
CreateSubnetRequest & WithAvailabilityZoneId(const char *value)
Definition: CreateSubnetRequest.h:233
Aws::EC2::Model::CreateSubnetRequest::GetDryRun
bool GetDryRun() const
Definition: CreateSubnetRequest.h:381
Aws::EC2::Model::CreateSubnetRequest::GetCidrBlock
const Aws::String & GetCidrBlock() const
Definition: CreateSubnetRequest.h:414
Aws::EC2::Model::CreateSubnetRequest::Ipv6CidrBlockHasBeenSet
bool Ipv6CidrBlockHasBeenSet() const
Definition: CreateSubnetRequest.h:246
Aws::EC2::Model::CreateSubnetRequest::WithVpcId
CreateSubnetRequest & WithVpcId(Aws::String &&value)
Definition: CreateSubnetRequest.h:367
Aws::EC2::Model::CreateSubnetRequest::WithOutpostArn
CreateSubnetRequest & WithOutpostArn(Aws::String &&value)
Definition: CreateSubnetRequest.h:325
Aws::EC2::Model::CreateSubnetRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateSubnetRequest.h:59
Aws::EC2::Model::CreateSubnetRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: CreateSubnetRequest.h:337
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateSubnetRequest::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: CreateSubnetRequest.h:122
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateSubnetRequest::WithAvailabilityZone
CreateSubnetRequest & WithAvailabilityZone(Aws::String &&value)
Definition: CreateSubnetRequest.h:178
Aws::EC2::Model::CreateSubnetRequest::SetCidrBlock
void SetCidrBlock(const Aws::String &value)
Definition: CreateSubnetRequest.h:430
Aws::EC2::Model::CreateSubnetRequest::WithAvailabilityZone
CreateSubnetRequest & WithAvailabilityZone(const char *value)
Definition: CreateSubnetRequest.h:192
Aws::EC2::Model::CreateSubnetRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: CreateSubnetRequest.h:347
AWSVector.h
Aws::EC2::Model::CreateSubnetRequest::WithIpv6CidrBlock
CreateSubnetRequest & WithIpv6CidrBlock(const char *value)
Definition: CreateSubnetRequest.h:282
Aws::EC2::Model::CreateSubnetRequest::SetOutpostArn
void SetOutpostArn(Aws::String &&value)
Definition: CreateSubnetRequest.h:307
Aws::EC2::Model::CreateSubnetRequest::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: CreateSubnetRequest.h:136
Aws::EC2::Model::CreateSubnetRequest::GetAvailabilityZoneId
const Aws::String & GetAvailabilityZoneId() const
Definition: CreateSubnetRequest.h:198
Aws::EC2::Model::CreateSubnetRequest::WithIpv6CidrBlock
CreateSubnetRequest & WithIpv6CidrBlock(Aws::String &&value)
Definition: CreateSubnetRequest.h:276
Aws::EC2::Model::CreateSubnetRequest::CidrBlockHasBeenSet
bool CidrBlockHasBeenSet() const
Definition: CreateSubnetRequest.h:422
Aws::EC2::Model::CreateSubnetRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateSubnetRequest::WithTagSpecifications
CreateSubnetRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateSubnetRequest.h:64
Aws::EC2::Model::CreateSubnetRequest::WithAvailabilityZoneId
CreateSubnetRequest & WithAvailabilityZoneId(const Aws::String &value)
Definition: CreateSubnetRequest.h:223
Aws::EC2::Model::CreateSubnetRequest::SetAvailabilityZoneId
void SetAvailabilityZoneId(Aws::String &&value)
Definition: CreateSubnetRequest.h:213
Aws::EC2::Model::CreateSubnetRequest::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: CreateSubnetRequest.h:108
Aws::EC2::Model::CreateSubnetRequest::WithDryRun
CreateSubnetRequest & WithDryRun(bool value)
Definition: CreateSubnetRequest.h:405
Aws::EC2::Model::CreateSubnetRequest::WithCidrBlock
CreateSubnetRequest & WithCidrBlock(Aws::String &&value)
Definition: CreateSubnetRequest.h:462
Aws::EC2::Model::CreateSubnetRequest::SetOutpostArn
void SetOutpostArn(const Aws::String &value)
Definition: CreateSubnetRequest.h:301
EC2Request.h
Aws::EC2::Model::CreateSubnetRequest::SetAvailabilityZoneId
void SetAvailabilityZoneId(const char *value)
Definition: CreateSubnetRequest.h:218
Aws::EC2::Model::CreateSubnetRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateSubnetRequest.h:54
Aws::EC2::Model::CreateSubnetRequest::SetOutpostArn
void SetOutpostArn(const char *value)
Definition: CreateSubnetRequest.h:313
Aws::EC2::Model::CreateSubnetRequest::WithVpcId
CreateSubnetRequest & WithVpcId(const char *value)
Definition: CreateSubnetRequest.h:372
AWSString.h
Aws::EC2::Model::CreateSubnetRequest::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: CreateSubnetRequest.h:150
Aws::EC2::Model::CreateSubnetRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateSubnetRequest.h:389
Aws::EC2::Model::CreateSubnetRequest::GetIpv6CidrBlock
const Aws::String & GetIpv6CidrBlock() const
Definition: CreateSubnetRequest.h:240
Aws::EC2::Model::CreateSubnetRequest::WithAvailabilityZone
CreateSubnetRequest & WithAvailabilityZone(const Aws::String &value)
Definition: CreateSubnetRequest.h:164
Aws::EC2::Model::CreateSubnetRequest::SetVpcId
void SetVpcId(const char *value)
Definition: CreateSubnetRequest.h:357
Aws::EC2::Model::CreateSubnetRequest::SetCidrBlock
void SetCidrBlock(Aws::String &&value)
Definition: CreateSubnetRequest.h:438
Aws::EC2::Model::CreateSubnetRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateSubnetRequest.h:44
Aws::EC2::Model::CreateSubnetRequest::WithOutpostArn
CreateSubnetRequest & WithOutpostArn(const Aws::String &value)
Definition: CreateSubnetRequest.h:319
Aws::EC2::Model::CreateSubnetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSubnetRequest.h:32
Aws::EC2::Model::CreateSubnetRequest::GetOutpostArn
const Aws::String & GetOutpostArn() const
Definition: CreateSubnetRequest.h:289
Aws::EC2::Model::CreateSubnetRequest::WithCidrBlock
CreateSubnetRequest & WithCidrBlock(const char *value)
Definition: CreateSubnetRequest.h:470
Aws::EC2::Model::CreateSubnetRequest::SetIpv6CidrBlock
void SetIpv6CidrBlock(const char *value)
Definition: CreateSubnetRequest.h:264
Aws::EC2::Model::CreateSubnetRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: CreateSubnetRequest.h:342
Aws::EC2::Model::CreateSubnetRequest::WithOutpostArn
CreateSubnetRequest & WithOutpostArn(const char *value)
Definition: CreateSubnetRequest.h:331
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateSubnetRequest::SetAvailabilityZoneId
void SetAvailabilityZoneId(const Aws::String &value)
Definition: CreateSubnetRequest.h:208
Aws::EC2::Model::CreateSubnetRequest::SetIpv6CidrBlock
void SetIpv6CidrBlock(Aws::String &&value)
Definition: CreateSubnetRequest.h:258
Aws::EC2::Model::CreateSubnetRequest::CreateSubnetRequest
CreateSubnetRequest()
Aws::EC2::Model::CreateSubnetRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateSubnetRequest.h:397
Aws::EC2::Model::CreateSubnetRequest::AddTagSpecifications
CreateSubnetRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateSubnetRequest.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateSubnetRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: CreateSubnetRequest.h:352
Aws::EC2::Model::CreateSubnetRequest::AvailabilityZoneIdHasBeenSet
bool AvailabilityZoneIdHasBeenSet() const
Definition: CreateSubnetRequest.h:203
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateSubnetRequest::AddTagSpecifications
CreateSubnetRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateSubnetRequest.h:74
Aws::EC2::Model::CreateSubnetRequest::WithVpcId
CreateSubnetRequest & WithVpcId(const Aws::String &value)
Definition: CreateSubnetRequest.h:362
Aws::EC2::Model::CreateSubnetRequest::WithAvailabilityZoneId
CreateSubnetRequest & WithAvailabilityZoneId(Aws::String &&value)
Definition: CreateSubnetRequest.h:228
Aws::EC2::Model::CreateSubnetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::CreateSubnetRequest::WithCidrBlock
CreateSubnetRequest & WithCidrBlock(const Aws::String &value)
Definition: CreateSubnetRequest.h:454
EC2_EXPORTS.h
Aws::EC2::Model::CreateSubnetRequest::SetIpv6CidrBlock
void SetIpv6CidrBlock(const Aws::String &value)
Definition: CreateSubnetRequest.h:252
Aws::EC2::Model::CreateSubnetRequest::OutpostArnHasBeenSet
bool OutpostArnHasBeenSet() const
Definition: CreateSubnetRequest.h:295
Aws::EC2::Model::CreateSubnetRequest::WithIpv6CidrBlock
CreateSubnetRequest & WithIpv6CidrBlock(const Aws::String &value)
Definition: CreateSubnetRequest.h:270
Aws::EC2::Model::CreateSubnetRequest::WithTagSpecifications
CreateSubnetRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateSubnetRequest.h:69