AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSubnetRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API CreateSubnetRequest();
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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
46 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
47 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
48 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
51 inline CreateSubnetRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
52 inline CreateSubnetRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
54
56
67 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
68 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
69 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
70 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
71 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
72 inline CreateSubnetRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
73 inline CreateSubnetRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
74 inline CreateSubnetRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
76
78
81 inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
82 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
83 inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
84 inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
85 inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
86 inline CreateSubnetRequest& WithAvailabilityZoneId(const Aws::String& value) { SetAvailabilityZoneId(value); return *this;}
87 inline CreateSubnetRequest& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
88 inline CreateSubnetRequest& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
90
92
99 inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
100 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
101 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
102 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
103 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
104 inline CreateSubnetRequest& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
105 inline CreateSubnetRequest& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
106 inline CreateSubnetRequest& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
108
110
114 inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; }
115 inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
116 inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; }
117 inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); }
118 inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); }
119 inline CreateSubnetRequest& WithIpv6CidrBlock(const Aws::String& value) { SetIpv6CidrBlock(value); return *this;}
120 inline CreateSubnetRequest& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;}
121 inline CreateSubnetRequest& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;}
123
125
129 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
130 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
131 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
132 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
133 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
134 inline CreateSubnetRequest& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
135 inline CreateSubnetRequest& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
136 inline CreateSubnetRequest& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
138
140
143 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
144 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
145 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
146 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
147 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
148 inline CreateSubnetRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
149 inline CreateSubnetRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
150 inline CreateSubnetRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
152
154
157 inline bool GetIpv6Native() const{ return m_ipv6Native; }
158 inline bool Ipv6NativeHasBeenSet() const { return m_ipv6NativeHasBeenSet; }
159 inline void SetIpv6Native(bool value) { m_ipv6NativeHasBeenSet = true; m_ipv6Native = value; }
160 inline CreateSubnetRequest& WithIpv6Native(bool value) { SetIpv6Native(value); return *this;}
162
164
167 inline const Aws::String& GetIpv4IpamPoolId() const{ return m_ipv4IpamPoolId; }
168 inline bool Ipv4IpamPoolIdHasBeenSet() const { return m_ipv4IpamPoolIdHasBeenSet; }
169 inline void SetIpv4IpamPoolId(const Aws::String& value) { m_ipv4IpamPoolIdHasBeenSet = true; m_ipv4IpamPoolId = value; }
170 inline void SetIpv4IpamPoolId(Aws::String&& value) { m_ipv4IpamPoolIdHasBeenSet = true; m_ipv4IpamPoolId = std::move(value); }
171 inline void SetIpv4IpamPoolId(const char* value) { m_ipv4IpamPoolIdHasBeenSet = true; m_ipv4IpamPoolId.assign(value); }
172 inline CreateSubnetRequest& WithIpv4IpamPoolId(const Aws::String& value) { SetIpv4IpamPoolId(value); return *this;}
173 inline CreateSubnetRequest& WithIpv4IpamPoolId(Aws::String&& value) { SetIpv4IpamPoolId(std::move(value)); return *this;}
174 inline CreateSubnetRequest& WithIpv4IpamPoolId(const char* value) { SetIpv4IpamPoolId(value); return *this;}
176
178
181 inline int GetIpv4NetmaskLength() const{ return m_ipv4NetmaskLength; }
182 inline bool Ipv4NetmaskLengthHasBeenSet() const { return m_ipv4NetmaskLengthHasBeenSet; }
183 inline void SetIpv4NetmaskLength(int value) { m_ipv4NetmaskLengthHasBeenSet = true; m_ipv4NetmaskLength = value; }
184 inline CreateSubnetRequest& WithIpv4NetmaskLength(int value) { SetIpv4NetmaskLength(value); return *this;}
186
188
191 inline const Aws::String& GetIpv6IpamPoolId() const{ return m_ipv6IpamPoolId; }
192 inline bool Ipv6IpamPoolIdHasBeenSet() const { return m_ipv6IpamPoolIdHasBeenSet; }
193 inline void SetIpv6IpamPoolId(const Aws::String& value) { m_ipv6IpamPoolIdHasBeenSet = true; m_ipv6IpamPoolId = value; }
194 inline void SetIpv6IpamPoolId(Aws::String&& value) { m_ipv6IpamPoolIdHasBeenSet = true; m_ipv6IpamPoolId = std::move(value); }
195 inline void SetIpv6IpamPoolId(const char* value) { m_ipv6IpamPoolIdHasBeenSet = true; m_ipv6IpamPoolId.assign(value); }
196 inline CreateSubnetRequest& WithIpv6IpamPoolId(const Aws::String& value) { SetIpv6IpamPoolId(value); return *this;}
197 inline CreateSubnetRequest& WithIpv6IpamPoolId(Aws::String&& value) { SetIpv6IpamPoolId(std::move(value)); return *this;}
198 inline CreateSubnetRequest& WithIpv6IpamPoolId(const char* value) { SetIpv6IpamPoolId(value); return *this;}
200
202
205 inline int GetIpv6NetmaskLength() const{ return m_ipv6NetmaskLength; }
206 inline bool Ipv6NetmaskLengthHasBeenSet() const { return m_ipv6NetmaskLengthHasBeenSet; }
207 inline void SetIpv6NetmaskLength(int value) { m_ipv6NetmaskLengthHasBeenSet = true; m_ipv6NetmaskLength = value; }
208 inline CreateSubnetRequest& WithIpv6NetmaskLength(int value) { SetIpv6NetmaskLength(value); return *this;}
210
212
218 inline bool GetDryRun() const{ return m_dryRun; }
219 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
220 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
221 inline CreateSubnetRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
223 private:
224
225 Aws::Vector<TagSpecification> m_tagSpecifications;
226 bool m_tagSpecificationsHasBeenSet = false;
227
228 Aws::String m_availabilityZone;
229 bool m_availabilityZoneHasBeenSet = false;
230
231 Aws::String m_availabilityZoneId;
232 bool m_availabilityZoneIdHasBeenSet = false;
233
234 Aws::String m_cidrBlock;
235 bool m_cidrBlockHasBeenSet = false;
236
237 Aws::String m_ipv6CidrBlock;
238 bool m_ipv6CidrBlockHasBeenSet = false;
239
240 Aws::String m_outpostArn;
241 bool m_outpostArnHasBeenSet = false;
242
243 Aws::String m_vpcId;
244 bool m_vpcIdHasBeenSet = false;
245
246 bool m_ipv6Native;
247 bool m_ipv6NativeHasBeenSet = false;
248
249 Aws::String m_ipv4IpamPoolId;
250 bool m_ipv4IpamPoolIdHasBeenSet = false;
251
252 int m_ipv4NetmaskLength;
253 bool m_ipv4NetmaskLengthHasBeenSet = false;
254
255 Aws::String m_ipv6IpamPoolId;
256 bool m_ipv6IpamPoolIdHasBeenSet = false;
257
258 int m_ipv6NetmaskLength;
259 bool m_ipv6NetmaskLengthHasBeenSet = false;
260
261 bool m_dryRun;
262 bool m_dryRunHasBeenSet = false;
263 };
264
265} // namespace Model
266} // namespace EC2
267} // namespace Aws
void SetIpv4IpamPoolId(Aws::String &&value)
CreateSubnetRequest & WithAvailabilityZone(Aws::String &&value)
void SetVpcId(const Aws::String &value)
CreateSubnetRequest & WithIpv6IpamPoolId(const Aws::String &value)
CreateSubnetRequest & AddTagSpecifications(const TagSpecification &value)
void SetIpv6CidrBlock(Aws::String &&value)
void SetIpv6IpamPoolId(Aws::String &&value)
CreateSubnetRequest & WithOutpostArn(const char *value)
CreateSubnetRequest & WithOutpostArn(const Aws::String &value)
CreateSubnetRequest & WithVpcId(Aws::String &&value)
CreateSubnetRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateSubnetRequest & AddTagSpecifications(TagSpecification &&value)
void SetCidrBlock(const Aws::String &value)
CreateSubnetRequest & WithCidrBlock(Aws::String &&value)
CreateSubnetRequest & WithAvailabilityZoneId(Aws::String &&value)
const Aws::String & GetOutpostArn() const
const Aws::String & GetIpv6CidrBlock() const
void SetIpv6IpamPoolId(const Aws::String &value)
CreateSubnetRequest & WithIpv6IpamPoolId(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateSubnetRequest & WithCidrBlock(const char *value)
CreateSubnetRequest & WithIpv6IpamPoolId(const char *value)
CreateSubnetRequest & WithIpv6CidrBlock(const char *value)
CreateSubnetRequest & WithAvailabilityZone(const char *value)
const Aws::String & GetCidrBlock() const
CreateSubnetRequest & WithAvailabilityZoneId(const char *value)
CreateSubnetRequest & WithIpv4IpamPoolId(const char *value)
virtual const char * GetServiceRequestName() const override
CreateSubnetRequest & WithIpv4NetmaskLength(int value)
void SetAvailabilityZoneId(const Aws::String &value)
CreateSubnetRequest & WithIpv4IpamPoolId(const Aws::String &value)
void SetIpv4IpamPoolId(const Aws::String &value)
CreateSubnetRequest & WithOutpostArn(Aws::String &&value)
CreateSubnetRequest & WithAvailabilityZoneId(const Aws::String &value)
CreateSubnetRequest & WithIpv6Native(bool value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateSubnetRequest & WithIpv6CidrBlock(Aws::String &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetOutpostArn(const Aws::String &value)
void SetAvailabilityZoneId(const char *value)
CreateSubnetRequest & WithCidrBlock(const Aws::String &value)
const Aws::String & GetIpv4IpamPoolId() const
CreateSubnetRequest & WithIpv6NetmaskLength(int value)
CreateSubnetRequest & WithVpcId(const char *value)
CreateSubnetRequest & WithIpv6CidrBlock(const Aws::String &value)
CreateSubnetRequest & WithDryRun(bool value)
const Aws::String & GetAvailabilityZoneId() const
void SetAvailabilityZoneId(Aws::String &&value)
void SetAvailabilityZone(const Aws::String &value)
CreateSubnetRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateSubnetRequest & WithIpv4IpamPoolId(Aws::String &&value)
const Aws::String & GetIpv6IpamPoolId() const
void SetAvailabilityZone(Aws::String &&value)
void SetIpv6CidrBlock(const Aws::String &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateSubnetRequest & WithAvailabilityZone(const Aws::String &value)
void SetAvailabilityZone(const char *value)
const Aws::String & GetAvailabilityZone() const
CreateSubnetRequest & WithVpcId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector