AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateNatGatewayRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/AvailabilityMode.h>
13#include <aws/ec2/model/AvailabilityZoneAddress.h>
14#include <aws/ec2/model/ConnectivityType.h>
15#include <aws/ec2/model/TagSpecification.h>
16
17#include <utility>
18
19namespace Aws {
20namespace EC2 {
21namespace Model {
22
26 public:
27 AWS_EC2_API CreateNatGatewayRequest() = default;
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 "CreateNatGateway"; }
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:
42
53 inline AvailabilityMode GetAvailabilityMode() const { return m_availabilityMode; }
54 inline bool AvailabilityModeHasBeenSet() const { return m_availabilityModeHasBeenSet; }
56 m_availabilityModeHasBeenSet = true;
57 m_availabilityMode = value;
58 }
61 return *this;
62 }
64
66
72 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
73 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
74 template <typename AllocationIdT = Aws::String>
75 void SetAllocationId(AllocationIdT&& value) {
76 m_allocationIdHasBeenSet = true;
77 m_allocationId = std::forward<AllocationIdT>(value);
78 }
79 template <typename AllocationIdT = Aws::String>
80 CreateNatGatewayRequest& WithAllocationId(AllocationIdT&& value) {
81 SetAllocationId(std::forward<AllocationIdT>(value));
82 return *this;
83 }
85
87
93 inline const Aws::String& GetClientToken() const { return m_clientToken; }
94 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
95 template <typename ClientTokenT = Aws::String>
96 void SetClientToken(ClientTokenT&& value) {
97 m_clientTokenHasBeenSet = true;
98 m_clientToken = std::forward<ClientTokenT>(value);
99 }
100 template <typename ClientTokenT = Aws::String>
102 SetClientToken(std::forward<ClientTokenT>(value));
103 return *this;
104 }
106
108
114 inline bool GetDryRun() const { return m_dryRun; }
115 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
116 inline void SetDryRun(bool value) {
117 m_dryRunHasBeenSet = true;
118 m_dryRun = value;
119 }
121 SetDryRun(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
131 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
132 template <typename SubnetIdT = Aws::String>
133 void SetSubnetId(SubnetIdT&& value) {
134 m_subnetIdHasBeenSet = true;
135 m_subnetId = std::forward<SubnetIdT>(value);
136 }
137 template <typename SubnetIdT = Aws::String>
139 SetSubnetId(std::forward<SubnetIdT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetVpcId() const { return m_vpcId; }
149 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
150 template <typename VpcIdT = Aws::String>
151 void SetVpcId(VpcIdT&& value) {
152 m_vpcIdHasBeenSet = true;
153 m_vpcId = std::forward<VpcIdT>(value);
154 }
155 template <typename VpcIdT = Aws::String>
157 SetVpcId(std::forward<VpcIdT>(value));
158 return *this;
159 }
161
163
178 inline const Aws::Vector<AvailabilityZoneAddress>& GetAvailabilityZoneAddresses() const { return m_availabilityZoneAddresses; }
179 inline bool AvailabilityZoneAddressesHasBeenSet() const { return m_availabilityZoneAddressesHasBeenSet; }
180 template <typename AvailabilityZoneAddressesT = Aws::Vector<AvailabilityZoneAddress>>
181 void SetAvailabilityZoneAddresses(AvailabilityZoneAddressesT&& value) {
182 m_availabilityZoneAddressesHasBeenSet = true;
183 m_availabilityZoneAddresses = std::forward<AvailabilityZoneAddressesT>(value);
184 }
185 template <typename AvailabilityZoneAddressesT = Aws::Vector<AvailabilityZoneAddress>>
186 CreateNatGatewayRequest& WithAvailabilityZoneAddresses(AvailabilityZoneAddressesT&& value) {
187 SetAvailabilityZoneAddresses(std::forward<AvailabilityZoneAddressesT>(value));
188 return *this;
189 }
190 template <typename AvailabilityZoneAddressesT = AvailabilityZoneAddress>
191 CreateNatGatewayRequest& AddAvailabilityZoneAddresses(AvailabilityZoneAddressesT&& value) {
192 m_availabilityZoneAddressesHasBeenSet = true;
193 m_availabilityZoneAddresses.emplace_back(std::forward<AvailabilityZoneAddressesT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
203 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
204 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
205 void SetTagSpecifications(TagSpecificationsT&& value) {
206 m_tagSpecificationsHasBeenSet = true;
207 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
208 }
209 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
210 CreateNatGatewayRequest& WithTagSpecifications(TagSpecificationsT&& value) {
211 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
212 return *this;
213 }
214 template <typename TagSpecificationsT = TagSpecification>
215 CreateNatGatewayRequest& AddTagSpecifications(TagSpecificationsT&& value) {
216 m_tagSpecificationsHasBeenSet = true;
217 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
218 return *this;
219 }
221
223
227 inline ConnectivityType GetConnectivityType() const { return m_connectivityType; }
228 inline bool ConnectivityTypeHasBeenSet() const { return m_connectivityTypeHasBeenSet; }
230 m_connectivityTypeHasBeenSet = true;
231 m_connectivityType = value;
232 }
234 SetConnectivityType(value);
235 return *this;
236 }
238
240
244 inline const Aws::String& GetPrivateIpAddress() const { return m_privateIpAddress; }
245 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
246 template <typename PrivateIpAddressT = Aws::String>
247 void SetPrivateIpAddress(PrivateIpAddressT&& value) {
248 m_privateIpAddressHasBeenSet = true;
249 m_privateIpAddress = std::forward<PrivateIpAddressT>(value);
250 }
251 template <typename PrivateIpAddressT = Aws::String>
252 CreateNatGatewayRequest& WithPrivateIpAddress(PrivateIpAddressT&& value) {
253 SetPrivateIpAddress(std::forward<PrivateIpAddressT>(value));
254 return *this;
255 }
257
259
264 inline const Aws::Vector<Aws::String>& GetSecondaryAllocationIds() const { return m_secondaryAllocationIds; }
265 inline bool SecondaryAllocationIdsHasBeenSet() const { return m_secondaryAllocationIdsHasBeenSet; }
266 template <typename SecondaryAllocationIdsT = Aws::Vector<Aws::String>>
267 void SetSecondaryAllocationIds(SecondaryAllocationIdsT&& value) {
268 m_secondaryAllocationIdsHasBeenSet = true;
269 m_secondaryAllocationIds = std::forward<SecondaryAllocationIdsT>(value);
270 }
271 template <typename SecondaryAllocationIdsT = Aws::Vector<Aws::String>>
272 CreateNatGatewayRequest& WithSecondaryAllocationIds(SecondaryAllocationIdsT&& value) {
273 SetSecondaryAllocationIds(std::forward<SecondaryAllocationIdsT>(value));
274 return *this;
275 }
276 template <typename SecondaryAllocationIdsT = Aws::String>
277 CreateNatGatewayRequest& AddSecondaryAllocationIds(SecondaryAllocationIdsT&& value) {
278 m_secondaryAllocationIdsHasBeenSet = true;
279 m_secondaryAllocationIds.emplace_back(std::forward<SecondaryAllocationIdsT>(value));
280 return *this;
281 }
283
285
291 inline const Aws::Vector<Aws::String>& GetSecondaryPrivateIpAddresses() const { return m_secondaryPrivateIpAddresses; }
292 inline bool SecondaryPrivateIpAddressesHasBeenSet() const { return m_secondaryPrivateIpAddressesHasBeenSet; }
293 template <typename SecondaryPrivateIpAddressesT = Aws::Vector<Aws::String>>
294 void SetSecondaryPrivateIpAddresses(SecondaryPrivateIpAddressesT&& value) {
295 m_secondaryPrivateIpAddressesHasBeenSet = true;
296 m_secondaryPrivateIpAddresses = std::forward<SecondaryPrivateIpAddressesT>(value);
297 }
298 template <typename SecondaryPrivateIpAddressesT = Aws::Vector<Aws::String>>
299 CreateNatGatewayRequest& WithSecondaryPrivateIpAddresses(SecondaryPrivateIpAddressesT&& value) {
300 SetSecondaryPrivateIpAddresses(std::forward<SecondaryPrivateIpAddressesT>(value));
301 return *this;
302 }
303 template <typename SecondaryPrivateIpAddressesT = Aws::String>
304 CreateNatGatewayRequest& AddSecondaryPrivateIpAddresses(SecondaryPrivateIpAddressesT&& value) {
305 m_secondaryPrivateIpAddressesHasBeenSet = true;
306 m_secondaryPrivateIpAddresses.emplace_back(std::forward<SecondaryPrivateIpAddressesT>(value));
307 return *this;
308 }
310
312
319 inline int GetSecondaryPrivateIpAddressCount() const { return m_secondaryPrivateIpAddressCount; }
320 inline bool SecondaryPrivateIpAddressCountHasBeenSet() const { return m_secondaryPrivateIpAddressCountHasBeenSet; }
321 inline void SetSecondaryPrivateIpAddressCount(int value) {
322 m_secondaryPrivateIpAddressCountHasBeenSet = true;
323 m_secondaryPrivateIpAddressCount = value;
324 }
327 return *this;
328 }
330 private:
332
333 Aws::String m_allocationId;
334
336
337 bool m_dryRun{false};
338
339 Aws::String m_subnetId;
340
341 Aws::String m_vpcId;
342
343 Aws::Vector<AvailabilityZoneAddress> m_availabilityZoneAddresses;
344
345 Aws::Vector<TagSpecification> m_tagSpecifications;
346
348
349 Aws::String m_privateIpAddress;
350
351 Aws::Vector<Aws::String> m_secondaryAllocationIds;
352
353 Aws::Vector<Aws::String> m_secondaryPrivateIpAddresses;
354
355 int m_secondaryPrivateIpAddressCount{0};
356 bool m_availabilityModeHasBeenSet = false;
357 bool m_allocationIdHasBeenSet = false;
358 bool m_clientTokenHasBeenSet = true;
359 bool m_dryRunHasBeenSet = false;
360 bool m_subnetIdHasBeenSet = false;
361 bool m_vpcIdHasBeenSet = false;
362 bool m_availabilityZoneAddressesHasBeenSet = false;
363 bool m_tagSpecificationsHasBeenSet = false;
364 bool m_connectivityTypeHasBeenSet = false;
365 bool m_privateIpAddressHasBeenSet = false;
366 bool m_secondaryAllocationIdsHasBeenSet = false;
367 bool m_secondaryPrivateIpAddressesHasBeenSet = false;
368 bool m_secondaryPrivateIpAddressCountHasBeenSet = false;
369};
370
371} // namespace Model
372} // namespace EC2
373} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetSecondaryPrivateIpAddresses() const
CreateNatGatewayRequest & WithAvailabilityZoneAddresses(AvailabilityZoneAddressesT &&value)
const Aws::Vector< AvailabilityZoneAddress > & GetAvailabilityZoneAddresses() const
CreateNatGatewayRequest & WithTagSpecifications(TagSpecificationsT &&value)
void SetPrivateIpAddress(PrivateIpAddressT &&value)
CreateNatGatewayRequest & AddSecondaryAllocationIds(SecondaryAllocationIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateNatGatewayRequest & AddAvailabilityZoneAddresses(AvailabilityZoneAddressesT &&value)
CreateNatGatewayRequest & WithConnectivityType(ConnectivityType value)
CreateNatGatewayRequest & WithVpcId(VpcIdT &&value)
void SetSecondaryAllocationIds(SecondaryAllocationIdsT &&value)
CreateNatGatewayRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetSecondaryAllocationIds() const
CreateNatGatewayRequest & WithClientToken(ClientTokenT &&value)
CreateNatGatewayRequest & WithSecondaryPrivateIpAddresses(SecondaryPrivateIpAddressesT &&value)
CreateNatGatewayRequest & WithAllocationId(AllocationIdT &&value)
AWS_EC2_API CreateNatGatewayRequest()=default
CreateNatGatewayRequest & WithSecondaryAllocationIds(SecondaryAllocationIdsT &&value)
CreateNatGatewayRequest & WithSecondaryPrivateIpAddressCount(int value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateNatGatewayRequest & WithPrivateIpAddress(PrivateIpAddressT &&value)
void SetTagSpecifications(TagSpecificationsT &&value)
void SetSecondaryPrivateIpAddresses(SecondaryPrivateIpAddressesT &&value)
void SetAvailabilityZoneAddresses(AvailabilityZoneAddressesT &&value)
CreateNatGatewayRequest & WithSubnetId(SubnetIdT &&value)
CreateNatGatewayRequest & WithAvailabilityMode(AvailabilityMode value)
CreateNatGatewayRequest & AddSecondaryPrivateIpAddresses(SecondaryPrivateIpAddressesT &&value)
CreateNatGatewayRequest & AddTagSpecifications(TagSpecificationsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector