AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVpcRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/Tenancy.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EC2_API CreateVpcRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateVpc"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
49 inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
50 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
51 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
52 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
53 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
54 inline CreateVpcRequest& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
55 inline CreateVpcRequest& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
56 inline CreateVpcRequest& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
58
60
64 inline const Aws::String& GetIpv6Pool() const{ return m_ipv6Pool; }
65 inline bool Ipv6PoolHasBeenSet() const { return m_ipv6PoolHasBeenSet; }
66 inline void SetIpv6Pool(const Aws::String& value) { m_ipv6PoolHasBeenSet = true; m_ipv6Pool = value; }
67 inline void SetIpv6Pool(Aws::String&& value) { m_ipv6PoolHasBeenSet = true; m_ipv6Pool = std::move(value); }
68 inline void SetIpv6Pool(const char* value) { m_ipv6PoolHasBeenSet = true; m_ipv6Pool.assign(value); }
69 inline CreateVpcRequest& WithIpv6Pool(const Aws::String& value) { SetIpv6Pool(value); return *this;}
70 inline CreateVpcRequest& WithIpv6Pool(Aws::String&& value) { SetIpv6Pool(std::move(value)); return *this;}
71 inline CreateVpcRequest& WithIpv6Pool(const char* value) { SetIpv6Pool(value); return *this;}
73
75
80 inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; }
81 inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
82 inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; }
83 inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); }
84 inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); }
85 inline CreateVpcRequest& WithIpv6CidrBlock(const Aws::String& value) { SetIpv6CidrBlock(value); return *this;}
86 inline CreateVpcRequest& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;}
87 inline CreateVpcRequest& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;}
89
91
97 inline const Aws::String& GetIpv4IpamPoolId() const{ return m_ipv4IpamPoolId; }
98 inline bool Ipv4IpamPoolIdHasBeenSet() const { return m_ipv4IpamPoolIdHasBeenSet; }
99 inline void SetIpv4IpamPoolId(const Aws::String& value) { m_ipv4IpamPoolIdHasBeenSet = true; m_ipv4IpamPoolId = value; }
100 inline void SetIpv4IpamPoolId(Aws::String&& value) { m_ipv4IpamPoolIdHasBeenSet = true; m_ipv4IpamPoolId = std::move(value); }
101 inline void SetIpv4IpamPoolId(const char* value) { m_ipv4IpamPoolIdHasBeenSet = true; m_ipv4IpamPoolId.assign(value); }
102 inline CreateVpcRequest& WithIpv4IpamPoolId(const Aws::String& value) { SetIpv4IpamPoolId(value); return *this;}
103 inline CreateVpcRequest& WithIpv4IpamPoolId(Aws::String&& value) { SetIpv4IpamPoolId(std::move(value)); return *this;}
104 inline CreateVpcRequest& WithIpv4IpamPoolId(const char* value) { SetIpv4IpamPoolId(value); return *this;}
106
108
114 inline int GetIpv4NetmaskLength() const{ return m_ipv4NetmaskLength; }
115 inline bool Ipv4NetmaskLengthHasBeenSet() const { return m_ipv4NetmaskLengthHasBeenSet; }
116 inline void SetIpv4NetmaskLength(int value) { m_ipv4NetmaskLengthHasBeenSet = true; m_ipv4NetmaskLength = value; }
117 inline CreateVpcRequest& WithIpv4NetmaskLength(int value) { SetIpv4NetmaskLength(value); return *this;}
119
121
130 inline const Aws::String& GetIpv6IpamPoolId() const{ return m_ipv6IpamPoolId; }
131 inline bool Ipv6IpamPoolIdHasBeenSet() const { return m_ipv6IpamPoolIdHasBeenSet; }
132 inline void SetIpv6IpamPoolId(const Aws::String& value) { m_ipv6IpamPoolIdHasBeenSet = true; m_ipv6IpamPoolId = value; }
133 inline void SetIpv6IpamPoolId(Aws::String&& value) { m_ipv6IpamPoolIdHasBeenSet = true; m_ipv6IpamPoolId = std::move(value); }
134 inline void SetIpv6IpamPoolId(const char* value) { m_ipv6IpamPoolIdHasBeenSet = true; m_ipv6IpamPoolId.assign(value); }
135 inline CreateVpcRequest& WithIpv6IpamPoolId(const Aws::String& value) { SetIpv6IpamPoolId(value); return *this;}
136 inline CreateVpcRequest& WithIpv6IpamPoolId(Aws::String&& value) { SetIpv6IpamPoolId(std::move(value)); return *this;}
137 inline CreateVpcRequest& WithIpv6IpamPoolId(const char* value) { SetIpv6IpamPoolId(value); return *this;}
139
141
147 inline int GetIpv6NetmaskLength() const{ return m_ipv6NetmaskLength; }
148 inline bool Ipv6NetmaskLengthHasBeenSet() const { return m_ipv6NetmaskLengthHasBeenSet; }
149 inline void SetIpv6NetmaskLength(int value) { m_ipv6NetmaskLengthHasBeenSet = true; m_ipv6NetmaskLength = value; }
150 inline CreateVpcRequest& WithIpv6NetmaskLength(int value) { SetIpv6NetmaskLength(value); return *this;}
152
154
160 inline const Aws::String& GetIpv6CidrBlockNetworkBorderGroup() const{ return m_ipv6CidrBlockNetworkBorderGroup; }
161 inline bool Ipv6CidrBlockNetworkBorderGroupHasBeenSet() const { return m_ipv6CidrBlockNetworkBorderGroupHasBeenSet; }
162 inline void SetIpv6CidrBlockNetworkBorderGroup(const Aws::String& value) { m_ipv6CidrBlockNetworkBorderGroupHasBeenSet = true; m_ipv6CidrBlockNetworkBorderGroup = value; }
163 inline void SetIpv6CidrBlockNetworkBorderGroup(Aws::String&& value) { m_ipv6CidrBlockNetworkBorderGroupHasBeenSet = true; m_ipv6CidrBlockNetworkBorderGroup = std::move(value); }
164 inline void SetIpv6CidrBlockNetworkBorderGroup(const char* value) { m_ipv6CidrBlockNetworkBorderGroupHasBeenSet = true; m_ipv6CidrBlockNetworkBorderGroup.assign(value); }
169
171
174 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
175 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
176 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
177 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
180 inline CreateVpcRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
181 inline CreateVpcRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
183
185
191 inline bool GetDryRun() const{ return m_dryRun; }
192 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
193 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
194 inline CreateVpcRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
196
198
209 inline const Tenancy& GetInstanceTenancy() const{ return m_instanceTenancy; }
210 inline bool InstanceTenancyHasBeenSet() const { return m_instanceTenancyHasBeenSet; }
211 inline void SetInstanceTenancy(const Tenancy& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = value; }
212 inline void SetInstanceTenancy(Tenancy&& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = std::move(value); }
213 inline CreateVpcRequest& WithInstanceTenancy(const Tenancy& value) { SetInstanceTenancy(value); return *this;}
214 inline CreateVpcRequest& WithInstanceTenancy(Tenancy&& value) { SetInstanceTenancy(std::move(value)); return *this;}
216
218
223 inline bool GetAmazonProvidedIpv6CidrBlock() const{ return m_amazonProvidedIpv6CidrBlock; }
224 inline bool AmazonProvidedIpv6CidrBlockHasBeenSet() const { return m_amazonProvidedIpv6CidrBlockHasBeenSet; }
225 inline void SetAmazonProvidedIpv6CidrBlock(bool value) { m_amazonProvidedIpv6CidrBlockHasBeenSet = true; m_amazonProvidedIpv6CidrBlock = value; }
228 private:
229
230 Aws::String m_cidrBlock;
231 bool m_cidrBlockHasBeenSet = false;
232
233 Aws::String m_ipv6Pool;
234 bool m_ipv6PoolHasBeenSet = false;
235
236 Aws::String m_ipv6CidrBlock;
237 bool m_ipv6CidrBlockHasBeenSet = false;
238
239 Aws::String m_ipv4IpamPoolId;
240 bool m_ipv4IpamPoolIdHasBeenSet = false;
241
242 int m_ipv4NetmaskLength;
243 bool m_ipv4NetmaskLengthHasBeenSet = false;
244
245 Aws::String m_ipv6IpamPoolId;
246 bool m_ipv6IpamPoolIdHasBeenSet = false;
247
248 int m_ipv6NetmaskLength;
249 bool m_ipv6NetmaskLengthHasBeenSet = false;
250
251 Aws::String m_ipv6CidrBlockNetworkBorderGroup;
252 bool m_ipv6CidrBlockNetworkBorderGroupHasBeenSet = false;
253
254 Aws::Vector<TagSpecification> m_tagSpecifications;
255 bool m_tagSpecificationsHasBeenSet = false;
256
257 bool m_dryRun;
258 bool m_dryRunHasBeenSet = false;
259
260 Tenancy m_instanceTenancy;
261 bool m_instanceTenancyHasBeenSet = false;
262
263 bool m_amazonProvidedIpv6CidrBlock;
264 bool m_amazonProvidedIpv6CidrBlockHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace EC2
269} // namespace Aws
CreateVpcRequest & WithIpv6CidrBlockNetworkBorderGroup(Aws::String &&value)
void SetInstanceTenancy(const Tenancy &value)
void SetIpv6CidrBlockNetworkBorderGroup(Aws::String &&value)
void SetAmazonProvidedIpv6CidrBlock(bool value)
void SetCidrBlock(const Aws::String &value)
void SetIpv4IpamPoolId(const char *value)
const Aws::String & GetIpv6CidrBlockNetworkBorderGroup() const
const Aws::String & GetIpv4IpamPoolId() const
CreateVpcRequest & WithIpv4IpamPoolId(const char *value)
void SetInstanceTenancy(Tenancy &&value)
CreateVpcRequest & WithIpv6CidrBlockNetworkBorderGroup(const Aws::String &value)
CreateVpcRequest & WithIpv6Pool(const Aws::String &value)
CreateVpcRequest & AddTagSpecifications(const TagSpecification &value)
void SetIpv6IpamPoolId(const Aws::String &value)
CreateVpcRequest & WithIpv6Pool(Aws::String &&value)
CreateVpcRequest & WithCidrBlock(Aws::String &&value)
void SetIpv4IpamPoolId(Aws::String &&value)
CreateVpcRequest & WithIpv6CidrBlock(const Aws::String &value)
CreateVpcRequest & WithIpv6NetmaskLength(int value)
void SetIpv6Pool(const char *value)
CreateVpcRequest & WithIpv4NetmaskLength(int value)
const Aws::String & GetIpv6Pool() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateVpcRequest & WithCidrBlock(const char *value)
CreateVpcRequest & WithIpv4IpamPoolId(Aws::String &&value)
void SetCidrBlock(const char *value)
CreateVpcRequest & WithCidrBlock(const Aws::String &value)
void SetIpv6CidrBlockNetworkBorderGroup(const char *value)
const Aws::String & GetIpv6CidrBlock() const
CreateVpcRequest & WithIpv4IpamPoolId(const Aws::String &value)
void SetIpv6CidrBlock(const Aws::String &value)
CreateVpcRequest & WithDryRun(bool value)
void SetIpv6CidrBlock(Aws::String &&value)
const Aws::String & GetIpv6IpamPoolId() const
CreateVpcRequest & WithIpv6CidrBlockNetworkBorderGroup(const char *value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateVpcRequest & WithIpv6CidrBlock(const char *value)
void SetIpv6IpamPoolId(Aws::String &&value)
CreateVpcRequest & WithIpv6IpamPoolId(const Aws::String &value)
void SetIpv6Pool(const Aws::String &value)
void SetIpv4IpamPoolId(const Aws::String &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateVpcRequest & WithIpv6Pool(const char *value)
CreateVpcRequest & WithAmazonProvidedIpv6CidrBlock(bool value)
void SetIpv6CidrBlock(const char *value)
CreateVpcRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateVpcRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetCidrBlock(Aws::String &&value)
CreateVpcRequest & WithInstanceTenancy(const Tenancy &value)
CreateVpcRequest & WithInstanceTenancy(Tenancy &&value)
CreateVpcRequest & WithIpv6IpamPoolId(const char *value)
void SetIpv6IpamPoolId(const char *value)
const Aws::String & GetCidrBlock() const
CreateVpcRequest & WithIpv6IpamPoolId(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetIpv6Pool(Aws::String &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetIpv6CidrBlockNetworkBorderGroup(const Aws::String &value)
CreateVpcRequest & AddTagSpecifications(TagSpecification &&value)
const Tenancy & GetInstanceTenancy() const
CreateVpcRequest & WithIpv6CidrBlock(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector