AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateRouteRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
20 public:
21 AWS_EC2_API CreateRouteRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateRoute"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetDestinationPrefixListId() const { return m_destinationPrefixListId; }
40 inline bool DestinationPrefixListIdHasBeenSet() const { return m_destinationPrefixListIdHasBeenSet; }
41 template <typename DestinationPrefixListIdT = Aws::String>
42 void SetDestinationPrefixListId(DestinationPrefixListIdT&& value) {
43 m_destinationPrefixListIdHasBeenSet = true;
44 m_destinationPrefixListId = std::forward<DestinationPrefixListIdT>(value);
45 }
46 template <typename DestinationPrefixListIdT = Aws::String>
47 CreateRouteRequest& WithDestinationPrefixListId(DestinationPrefixListIdT&& value) {
48 SetDestinationPrefixListId(std::forward<DestinationPrefixListIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
59 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
60 template <typename VpcEndpointIdT = Aws::String>
61 void SetVpcEndpointId(VpcEndpointIdT&& value) {
62 m_vpcEndpointIdHasBeenSet = true;
63 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
64 }
65 template <typename VpcEndpointIdT = Aws::String>
66 CreateRouteRequest& WithVpcEndpointId(VpcEndpointIdT&& value) {
67 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
77 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
78 template <typename TransitGatewayIdT = Aws::String>
79 void SetTransitGatewayId(TransitGatewayIdT&& value) {
80 m_transitGatewayIdHasBeenSet = true;
81 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
82 }
83 template <typename TransitGatewayIdT = Aws::String>
84 CreateRouteRequest& WithTransitGatewayId(TransitGatewayIdT&& value) {
85 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetLocalGatewayId() const { return m_localGatewayId; }
95 inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; }
96 template <typename LocalGatewayIdT = Aws::String>
97 void SetLocalGatewayId(LocalGatewayIdT&& value) {
98 m_localGatewayIdHasBeenSet = true;
99 m_localGatewayId = std::forward<LocalGatewayIdT>(value);
100 }
101 template <typename LocalGatewayIdT = Aws::String>
102 CreateRouteRequest& WithLocalGatewayId(LocalGatewayIdT&& value) {
103 SetLocalGatewayId(std::forward<LocalGatewayIdT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetCarrierGatewayId() const { return m_carrierGatewayId; }
114 inline bool CarrierGatewayIdHasBeenSet() const { return m_carrierGatewayIdHasBeenSet; }
115 template <typename CarrierGatewayIdT = Aws::String>
116 void SetCarrierGatewayId(CarrierGatewayIdT&& value) {
117 m_carrierGatewayIdHasBeenSet = true;
118 m_carrierGatewayId = std::forward<CarrierGatewayIdT>(value);
119 }
120 template <typename CarrierGatewayIdT = Aws::String>
121 CreateRouteRequest& WithCarrierGatewayId(CarrierGatewayIdT&& value) {
122 SetCarrierGatewayId(std::forward<CarrierGatewayIdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetCoreNetworkArn() const { return m_coreNetworkArn; }
132 inline bool CoreNetworkArnHasBeenSet() const { return m_coreNetworkArnHasBeenSet; }
133 template <typename CoreNetworkArnT = Aws::String>
134 void SetCoreNetworkArn(CoreNetworkArnT&& value) {
135 m_coreNetworkArnHasBeenSet = true;
136 m_coreNetworkArn = std::forward<CoreNetworkArnT>(value);
137 }
138 template <typename CoreNetworkArnT = Aws::String>
139 CreateRouteRequest& WithCoreNetworkArn(CoreNetworkArnT&& value) {
140 SetCoreNetworkArn(std::forward<CoreNetworkArnT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetOdbNetworkArn() const { return m_odbNetworkArn; }
150 inline bool OdbNetworkArnHasBeenSet() const { return m_odbNetworkArnHasBeenSet; }
151 template <typename OdbNetworkArnT = Aws::String>
152 void SetOdbNetworkArn(OdbNetworkArnT&& value) {
153 m_odbNetworkArnHasBeenSet = true;
154 m_odbNetworkArn = std::forward<OdbNetworkArnT>(value);
155 }
156 template <typename OdbNetworkArnT = Aws::String>
157 CreateRouteRequest& WithOdbNetworkArn(OdbNetworkArnT&& value) {
158 SetOdbNetworkArn(std::forward<OdbNetworkArnT>(value));
159 return *this;
160 }
162
164
170 inline bool GetDryRun() const { return m_dryRun; }
171 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
172 inline void SetDryRun(bool value) {
173 m_dryRunHasBeenSet = true;
174 m_dryRun = value;
175 }
176 inline CreateRouteRequest& WithDryRun(bool value) {
177 SetDryRun(value);
178 return *this;
179 }
181
183
186 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
187 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
188 template <typename RouteTableIdT = Aws::String>
189 void SetRouteTableId(RouteTableIdT&& value) {
190 m_routeTableIdHasBeenSet = true;
191 m_routeTableId = std::forward<RouteTableIdT>(value);
192 }
193 template <typename RouteTableIdT = Aws::String>
194 CreateRouteRequest& WithRouteTableId(RouteTableIdT&& value) {
195 SetRouteTableId(std::forward<RouteTableIdT>(value));
196 return *this;
197 }
199
201
207 inline const Aws::String& GetDestinationCidrBlock() const { return m_destinationCidrBlock; }
208 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
209 template <typename DestinationCidrBlockT = Aws::String>
210 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) {
211 m_destinationCidrBlockHasBeenSet = true;
212 m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value);
213 }
214 template <typename DestinationCidrBlockT = Aws::String>
215 CreateRouteRequest& WithDestinationCidrBlock(DestinationCidrBlockT&& value) {
216 SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value));
217 return *this;
218 }
220
222
226 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
227 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
228 template <typename GatewayIdT = Aws::String>
229 void SetGatewayId(GatewayIdT&& value) {
230 m_gatewayIdHasBeenSet = true;
231 m_gatewayId = std::forward<GatewayIdT>(value);
232 }
233 template <typename GatewayIdT = Aws::String>
234 CreateRouteRequest& WithGatewayId(GatewayIdT&& value) {
235 SetGatewayId(std::forward<GatewayIdT>(value));
236 return *this;
237 }
239
241
245 inline const Aws::String& GetDestinationIpv6CidrBlock() const { return m_destinationIpv6CidrBlock; }
246 inline bool DestinationIpv6CidrBlockHasBeenSet() const { return m_destinationIpv6CidrBlockHasBeenSet; }
247 template <typename DestinationIpv6CidrBlockT = Aws::String>
248 void SetDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT&& value) {
249 m_destinationIpv6CidrBlockHasBeenSet = true;
250 m_destinationIpv6CidrBlock = std::forward<DestinationIpv6CidrBlockT>(value);
251 }
252 template <typename DestinationIpv6CidrBlockT = Aws::String>
253 CreateRouteRequest& WithDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT&& value) {
254 SetDestinationIpv6CidrBlock(std::forward<DestinationIpv6CidrBlockT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::String& GetEgressOnlyInternetGatewayId() const { return m_egressOnlyInternetGatewayId; }
264 inline bool EgressOnlyInternetGatewayIdHasBeenSet() const { return m_egressOnlyInternetGatewayIdHasBeenSet; }
265 template <typename EgressOnlyInternetGatewayIdT = Aws::String>
266 void SetEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT&& value) {
267 m_egressOnlyInternetGatewayIdHasBeenSet = true;
268 m_egressOnlyInternetGatewayId = std::forward<EgressOnlyInternetGatewayIdT>(value);
269 }
270 template <typename EgressOnlyInternetGatewayIdT = Aws::String>
271 CreateRouteRequest& WithEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT&& value) {
272 SetEgressOnlyInternetGatewayId(std::forward<EgressOnlyInternetGatewayIdT>(value));
273 return *this;
274 }
276
278
282 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
283 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
284 template <typename InstanceIdT = Aws::String>
285 void SetInstanceId(InstanceIdT&& value) {
286 m_instanceIdHasBeenSet = true;
287 m_instanceId = std::forward<InstanceIdT>(value);
288 }
289 template <typename InstanceIdT = Aws::String>
290 CreateRouteRequest& WithInstanceId(InstanceIdT&& value) {
291 SetInstanceId(std::forward<InstanceIdT>(value));
292 return *this;
293 }
295
297
300 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
301 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
302 template <typename NetworkInterfaceIdT = Aws::String>
303 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) {
304 m_networkInterfaceIdHasBeenSet = true;
305 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
306 }
307 template <typename NetworkInterfaceIdT = Aws::String>
308 CreateRouteRequest& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) {
309 SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value));
310 return *this;
311 }
313
315
318 inline const Aws::String& GetVpcPeeringConnectionId() const { return m_vpcPeeringConnectionId; }
319 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
320 template <typename VpcPeeringConnectionIdT = Aws::String>
321 void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) {
322 m_vpcPeeringConnectionIdHasBeenSet = true;
323 m_vpcPeeringConnectionId = std::forward<VpcPeeringConnectionIdT>(value);
324 }
325 template <typename VpcPeeringConnectionIdT = Aws::String>
326 CreateRouteRequest& WithVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) {
327 SetVpcPeeringConnectionId(std::forward<VpcPeeringConnectionIdT>(value));
328 return *this;
329 }
331
333
336 inline const Aws::String& GetNatGatewayId() const { return m_natGatewayId; }
337 inline bool NatGatewayIdHasBeenSet() const { return m_natGatewayIdHasBeenSet; }
338 template <typename NatGatewayIdT = Aws::String>
339 void SetNatGatewayId(NatGatewayIdT&& value) {
340 m_natGatewayIdHasBeenSet = true;
341 m_natGatewayId = std::forward<NatGatewayIdT>(value);
342 }
343 template <typename NatGatewayIdT = Aws::String>
344 CreateRouteRequest& WithNatGatewayId(NatGatewayIdT&& value) {
345 SetNatGatewayId(std::forward<NatGatewayIdT>(value));
346 return *this;
347 }
349 private:
350 Aws::String m_destinationPrefixListId;
351
352 Aws::String m_vpcEndpointId;
353
354 Aws::String m_transitGatewayId;
355
356 Aws::String m_localGatewayId;
357
358 Aws::String m_carrierGatewayId;
359
360 Aws::String m_coreNetworkArn;
361
362 Aws::String m_odbNetworkArn;
363
364 bool m_dryRun{false};
365
366 Aws::String m_routeTableId;
367
368 Aws::String m_destinationCidrBlock;
369
370 Aws::String m_gatewayId;
371
372 Aws::String m_destinationIpv6CidrBlock;
373
374 Aws::String m_egressOnlyInternetGatewayId;
375
376 Aws::String m_instanceId;
377
378 Aws::String m_networkInterfaceId;
379
380 Aws::String m_vpcPeeringConnectionId;
381
382 Aws::String m_natGatewayId;
383 bool m_destinationPrefixListIdHasBeenSet = false;
384 bool m_vpcEndpointIdHasBeenSet = false;
385 bool m_transitGatewayIdHasBeenSet = false;
386 bool m_localGatewayIdHasBeenSet = false;
387 bool m_carrierGatewayIdHasBeenSet = false;
388 bool m_coreNetworkArnHasBeenSet = false;
389 bool m_odbNetworkArnHasBeenSet = false;
390 bool m_dryRunHasBeenSet = false;
391 bool m_routeTableIdHasBeenSet = false;
392 bool m_destinationCidrBlockHasBeenSet = false;
393 bool m_gatewayIdHasBeenSet = false;
394 bool m_destinationIpv6CidrBlockHasBeenSet = false;
395 bool m_egressOnlyInternetGatewayIdHasBeenSet = false;
396 bool m_instanceIdHasBeenSet = false;
397 bool m_networkInterfaceIdHasBeenSet = false;
398 bool m_vpcPeeringConnectionIdHasBeenSet = false;
399 bool m_natGatewayIdHasBeenSet = false;
400};
401
402} // namespace Model
403} // namespace EC2
404} // namespace Aws
void SetTransitGatewayId(TransitGatewayIdT &&value)
const Aws::String & GetCarrierGatewayId() const
CreateRouteRequest & WithCarrierGatewayId(CarrierGatewayIdT &&value)
const Aws::String & GetCoreNetworkArn() const
virtual const char * GetServiceRequestName() const override
void SetDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT &&value)
CreateRouteRequest & WithEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT &&value)
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
const Aws::String & GetDestinationPrefixListId() const
void SetLocalGatewayId(LocalGatewayIdT &&value)
const Aws::String & GetNatGatewayId() const
const Aws::String & GetNetworkInterfaceId() const
CreateRouteRequest & WithInstanceId(InstanceIdT &&value)
void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT &&value)
CreateRouteRequest & WithVpcEndpointId(VpcEndpointIdT &&value)
CreateRouteRequest & WithGatewayId(GatewayIdT &&value)
const Aws::String & GetLocalGatewayId() const
void SetVpcEndpointId(VpcEndpointIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateRouteRequest & WithDestinationPrefixListId(DestinationPrefixListIdT &&value)
CreateRouteRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
CreateRouteRequest & WithLocalGatewayId(LocalGatewayIdT &&value)
const Aws::String & GetEgressOnlyInternetGatewayId() const
CreateRouteRequest & WithDryRun(bool value)
void SetCoreNetworkArn(CoreNetworkArnT &&value)
void SetDestinationPrefixListId(DestinationPrefixListIdT &&value)
const Aws::String & GetVpcEndpointId() const
void SetInstanceId(InstanceIdT &&value)
CreateRouteRequest & WithTransitGatewayId(TransitGatewayIdT &&value)
const Aws::String & GetTransitGatewayId() const
const Aws::String & GetDestinationIpv6CidrBlock() const
const Aws::String & GetDestinationCidrBlock() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::String & GetVpcPeeringConnectionId() const
CreateRouteRequest & WithNatGatewayId(NatGatewayIdT &&value)
void SetRouteTableId(RouteTableIdT &&value)
void SetOdbNetworkArn(OdbNetworkArnT &&value)
CreateRouteRequest & WithOdbNetworkArn(OdbNetworkArnT &&value)
void SetNatGatewayId(NatGatewayIdT &&value)
CreateRouteRequest & WithDestinationCidrBlock(DestinationCidrBlockT &&value)
const Aws::String & GetGatewayId() const
const Aws::String & GetInstanceId() const
CreateRouteRequest & WithVpcPeeringConnectionId(VpcPeeringConnectionIdT &&value)
CreateRouteRequest & WithDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT &&value)
void SetEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT &&value)
CreateRouteRequest & WithRouteTableId(RouteTableIdT &&value)
CreateRouteRequest & WithCoreNetworkArn(CoreNetworkArnT &&value)
void SetCarrierGatewayId(CarrierGatewayIdT &&value)
const Aws::String & GetOdbNetworkArn() const
const Aws::String & GetRouteTableId() const
AWS_EC2_API CreateRouteRequest()=default
void SetDestinationCidrBlock(DestinationCidrBlockT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String