AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ReplaceRouteRequest.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 ReplaceRouteRequest() = 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 "ReplaceRoute"; }
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 ReplaceRouteRequest& 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 ReplaceRouteRequest& WithVpcEndpointId(VpcEndpointIdT&& value) {
67 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
68 return *this;
69 }
71
73
77 inline bool GetLocalTarget() const { return m_localTarget; }
78 inline bool LocalTargetHasBeenSet() const { return m_localTargetHasBeenSet; }
79 inline void SetLocalTarget(bool value) {
80 m_localTargetHasBeenSet = true;
81 m_localTarget = value;
82 }
84 SetLocalTarget(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
94 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
95 template <typename TransitGatewayIdT = Aws::String>
96 void SetTransitGatewayId(TransitGatewayIdT&& value) {
97 m_transitGatewayIdHasBeenSet = true;
98 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
99 }
100 template <typename TransitGatewayIdT = Aws::String>
101 ReplaceRouteRequest& WithTransitGatewayId(TransitGatewayIdT&& value) {
102 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetLocalGatewayId() const { return m_localGatewayId; }
112 inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; }
113 template <typename LocalGatewayIdT = Aws::String>
114 void SetLocalGatewayId(LocalGatewayIdT&& value) {
115 m_localGatewayIdHasBeenSet = true;
116 m_localGatewayId = std::forward<LocalGatewayIdT>(value);
117 }
118 template <typename LocalGatewayIdT = Aws::String>
119 ReplaceRouteRequest& WithLocalGatewayId(LocalGatewayIdT&& value) {
120 SetLocalGatewayId(std::forward<LocalGatewayIdT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetCarrierGatewayId() const { return m_carrierGatewayId; }
130 inline bool CarrierGatewayIdHasBeenSet() const { return m_carrierGatewayIdHasBeenSet; }
131 template <typename CarrierGatewayIdT = Aws::String>
132 void SetCarrierGatewayId(CarrierGatewayIdT&& value) {
133 m_carrierGatewayIdHasBeenSet = true;
134 m_carrierGatewayId = std::forward<CarrierGatewayIdT>(value);
135 }
136 template <typename CarrierGatewayIdT = Aws::String>
137 ReplaceRouteRequest& WithCarrierGatewayId(CarrierGatewayIdT&& value) {
138 SetCarrierGatewayId(std::forward<CarrierGatewayIdT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetCoreNetworkArn() const { return m_coreNetworkArn; }
148 inline bool CoreNetworkArnHasBeenSet() const { return m_coreNetworkArnHasBeenSet; }
149 template <typename CoreNetworkArnT = Aws::String>
150 void SetCoreNetworkArn(CoreNetworkArnT&& value) {
151 m_coreNetworkArnHasBeenSet = true;
152 m_coreNetworkArn = std::forward<CoreNetworkArnT>(value);
153 }
154 template <typename CoreNetworkArnT = Aws::String>
155 ReplaceRouteRequest& WithCoreNetworkArn(CoreNetworkArnT&& value) {
156 SetCoreNetworkArn(std::forward<CoreNetworkArnT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetOdbNetworkArn() const { return m_odbNetworkArn; }
166 inline bool OdbNetworkArnHasBeenSet() const { return m_odbNetworkArnHasBeenSet; }
167 template <typename OdbNetworkArnT = Aws::String>
168 void SetOdbNetworkArn(OdbNetworkArnT&& value) {
169 m_odbNetworkArnHasBeenSet = true;
170 m_odbNetworkArn = std::forward<OdbNetworkArnT>(value);
171 }
172 template <typename OdbNetworkArnT = Aws::String>
173 ReplaceRouteRequest& WithOdbNetworkArn(OdbNetworkArnT&& value) {
174 SetOdbNetworkArn(std::forward<OdbNetworkArnT>(value));
175 return *this;
176 }
178
180
186 inline bool GetDryRun() const { return m_dryRun; }
187 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
188 inline void SetDryRun(bool value) {
189 m_dryRunHasBeenSet = true;
190 m_dryRun = value;
191 }
192 inline ReplaceRouteRequest& WithDryRun(bool value) {
193 SetDryRun(value);
194 return *this;
195 }
197
199
202 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
203 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
204 template <typename RouteTableIdT = Aws::String>
205 void SetRouteTableId(RouteTableIdT&& value) {
206 m_routeTableIdHasBeenSet = true;
207 m_routeTableId = std::forward<RouteTableIdT>(value);
208 }
209 template <typename RouteTableIdT = Aws::String>
210 ReplaceRouteRequest& WithRouteTableId(RouteTableIdT&& value) {
211 SetRouteTableId(std::forward<RouteTableIdT>(value));
212 return *this;
213 }
215
217
221 inline const Aws::String& GetDestinationCidrBlock() const { return m_destinationCidrBlock; }
222 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
223 template <typename DestinationCidrBlockT = Aws::String>
224 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) {
225 m_destinationCidrBlockHasBeenSet = true;
226 m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value);
227 }
228 template <typename DestinationCidrBlockT = Aws::String>
229 ReplaceRouteRequest& WithDestinationCidrBlock(DestinationCidrBlockT&& value) {
230 SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value));
231 return *this;
232 }
234
236
239 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
240 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
241 template <typename GatewayIdT = Aws::String>
242 void SetGatewayId(GatewayIdT&& value) {
243 m_gatewayIdHasBeenSet = true;
244 m_gatewayId = std::forward<GatewayIdT>(value);
245 }
246 template <typename GatewayIdT = Aws::String>
247 ReplaceRouteRequest& WithGatewayId(GatewayIdT&& value) {
248 SetGatewayId(std::forward<GatewayIdT>(value));
249 return *this;
250 }
252
254
258 inline const Aws::String& GetDestinationIpv6CidrBlock() const { return m_destinationIpv6CidrBlock; }
259 inline bool DestinationIpv6CidrBlockHasBeenSet() const { return m_destinationIpv6CidrBlockHasBeenSet; }
260 template <typename DestinationIpv6CidrBlockT = Aws::String>
261 void SetDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT&& value) {
262 m_destinationIpv6CidrBlockHasBeenSet = true;
263 m_destinationIpv6CidrBlock = std::forward<DestinationIpv6CidrBlockT>(value);
264 }
265 template <typename DestinationIpv6CidrBlockT = Aws::String>
266 ReplaceRouteRequest& WithDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT&& value) {
267 SetDestinationIpv6CidrBlock(std::forward<DestinationIpv6CidrBlockT>(value));
268 return *this;
269 }
271
273
276 inline const Aws::String& GetEgressOnlyInternetGatewayId() const { return m_egressOnlyInternetGatewayId; }
277 inline bool EgressOnlyInternetGatewayIdHasBeenSet() const { return m_egressOnlyInternetGatewayIdHasBeenSet; }
278 template <typename EgressOnlyInternetGatewayIdT = Aws::String>
279 void SetEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT&& value) {
280 m_egressOnlyInternetGatewayIdHasBeenSet = true;
281 m_egressOnlyInternetGatewayId = std::forward<EgressOnlyInternetGatewayIdT>(value);
282 }
283 template <typename EgressOnlyInternetGatewayIdT = Aws::String>
284 ReplaceRouteRequest& WithEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT&& value) {
285 SetEgressOnlyInternetGatewayId(std::forward<EgressOnlyInternetGatewayIdT>(value));
286 return *this;
287 }
289
291
294 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
295 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
296 template <typename InstanceIdT = Aws::String>
297 void SetInstanceId(InstanceIdT&& value) {
298 m_instanceIdHasBeenSet = true;
299 m_instanceId = std::forward<InstanceIdT>(value);
300 }
301 template <typename InstanceIdT = Aws::String>
302 ReplaceRouteRequest& WithInstanceId(InstanceIdT&& value) {
303 SetInstanceId(std::forward<InstanceIdT>(value));
304 return *this;
305 }
307
309
312 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
313 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
314 template <typename NetworkInterfaceIdT = Aws::String>
315 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) {
316 m_networkInterfaceIdHasBeenSet = true;
317 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
318 }
319 template <typename NetworkInterfaceIdT = Aws::String>
320 ReplaceRouteRequest& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) {
321 SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value));
322 return *this;
323 }
325
327
330 inline const Aws::String& GetVpcPeeringConnectionId() const { return m_vpcPeeringConnectionId; }
331 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
332 template <typename VpcPeeringConnectionIdT = Aws::String>
333 void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) {
334 m_vpcPeeringConnectionIdHasBeenSet = true;
335 m_vpcPeeringConnectionId = std::forward<VpcPeeringConnectionIdT>(value);
336 }
337 template <typename VpcPeeringConnectionIdT = Aws::String>
338 ReplaceRouteRequest& WithVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) {
339 SetVpcPeeringConnectionId(std::forward<VpcPeeringConnectionIdT>(value));
340 return *this;
341 }
343
345
348 inline const Aws::String& GetNatGatewayId() const { return m_natGatewayId; }
349 inline bool NatGatewayIdHasBeenSet() const { return m_natGatewayIdHasBeenSet; }
350 template <typename NatGatewayIdT = Aws::String>
351 void SetNatGatewayId(NatGatewayIdT&& value) {
352 m_natGatewayIdHasBeenSet = true;
353 m_natGatewayId = std::forward<NatGatewayIdT>(value);
354 }
355 template <typename NatGatewayIdT = Aws::String>
356 ReplaceRouteRequest& WithNatGatewayId(NatGatewayIdT&& value) {
357 SetNatGatewayId(std::forward<NatGatewayIdT>(value));
358 return *this;
359 }
361 private:
362 Aws::String m_destinationPrefixListId;
363
364 Aws::String m_vpcEndpointId;
365
366 bool m_localTarget{false};
367
368 Aws::String m_transitGatewayId;
369
370 Aws::String m_localGatewayId;
371
372 Aws::String m_carrierGatewayId;
373
374 Aws::String m_coreNetworkArn;
375
376 Aws::String m_odbNetworkArn;
377
378 bool m_dryRun{false};
379
380 Aws::String m_routeTableId;
381
382 Aws::String m_destinationCidrBlock;
383
384 Aws::String m_gatewayId;
385
386 Aws::String m_destinationIpv6CidrBlock;
387
388 Aws::String m_egressOnlyInternetGatewayId;
389
390 Aws::String m_instanceId;
391
392 Aws::String m_networkInterfaceId;
393
394 Aws::String m_vpcPeeringConnectionId;
395
396 Aws::String m_natGatewayId;
397 bool m_destinationPrefixListIdHasBeenSet = false;
398 bool m_vpcEndpointIdHasBeenSet = false;
399 bool m_localTargetHasBeenSet = false;
400 bool m_transitGatewayIdHasBeenSet = false;
401 bool m_localGatewayIdHasBeenSet = false;
402 bool m_carrierGatewayIdHasBeenSet = false;
403 bool m_coreNetworkArnHasBeenSet = false;
404 bool m_odbNetworkArnHasBeenSet = false;
405 bool m_dryRunHasBeenSet = false;
406 bool m_routeTableIdHasBeenSet = false;
407 bool m_destinationCidrBlockHasBeenSet = false;
408 bool m_gatewayIdHasBeenSet = false;
409 bool m_destinationIpv6CidrBlockHasBeenSet = false;
410 bool m_egressOnlyInternetGatewayIdHasBeenSet = false;
411 bool m_instanceIdHasBeenSet = false;
412 bool m_networkInterfaceIdHasBeenSet = false;
413 bool m_vpcPeeringConnectionIdHasBeenSet = false;
414 bool m_natGatewayIdHasBeenSet = false;
415};
416
417} // namespace Model
418} // namespace EC2
419} // namespace Aws
virtual const char * GetServiceRequestName() const override
ReplaceRouteRequest & WithDestinationCidrBlock(DestinationCidrBlockT &&value)
ReplaceRouteRequest & WithGatewayId(GatewayIdT &&value)
const Aws::String & GetNetworkInterfaceId() const
void SetVpcEndpointId(VpcEndpointIdT &&value)
ReplaceRouteRequest & WithLocalTarget(bool value)
const Aws::String & GetGatewayId() const
AWS_EC2_API ReplaceRouteRequest()=default
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
const Aws::String & GetRouteTableId() const
ReplaceRouteRequest & WithDryRun(bool value)
void SetEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT &&value)
ReplaceRouteRequest & WithOdbNetworkArn(OdbNetworkArnT &&value)
ReplaceRouteRequest & WithDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT &&value)
ReplaceRouteRequest & WithInstanceId(InstanceIdT &&value)
ReplaceRouteRequest & WithVpcPeeringConnectionId(VpcPeeringConnectionIdT &&value)
ReplaceRouteRequest & WithCoreNetworkArn(CoreNetworkArnT &&value)
ReplaceRouteRequest & WithCarrierGatewayId(CarrierGatewayIdT &&value)
void SetLocalGatewayId(LocalGatewayIdT &&value)
ReplaceRouteRequest & WithLocalGatewayId(LocalGatewayIdT &&value)
const Aws::String & GetInstanceId() const
ReplaceRouteRequest & WithEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT &&value)
void SetDestinationPrefixListId(DestinationPrefixListIdT &&value)
ReplaceRouteRequest & WithNatGatewayId(NatGatewayIdT &&value)
const Aws::String & GetEgressOnlyInternetGatewayId() const
const Aws::String & GetDestinationCidrBlock() const
void SetOdbNetworkArn(OdbNetworkArnT &&value)
void SetDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT &&value)
void SetNatGatewayId(NatGatewayIdT &&value)
const Aws::String & GetLocalGatewayId() const
const Aws::String & GetDestinationIpv6CidrBlock() const
void SetRouteTableId(RouteTableIdT &&value)
const Aws::String & GetDestinationPrefixListId() const
void SetCarrierGatewayId(CarrierGatewayIdT &&value)
ReplaceRouteRequest & WithTransitGatewayId(TransitGatewayIdT &&value)
const Aws::String & GetVpcEndpointId() const
AWS_EC2_API Aws::String SerializePayload() const override
void SetDestinationCidrBlock(DestinationCidrBlockT &&value)
void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT &&value)
const Aws::String & GetTransitGatewayId() const
ReplaceRouteRequest & WithDestinationPrefixListId(DestinationPrefixListIdT &&value)
const Aws::String & GetCarrierGatewayId() const
void SetTransitGatewayId(TransitGatewayIdT &&value)
const Aws::String & GetOdbNetworkArn() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetCoreNetworkArn(CoreNetworkArnT &&value)
const Aws::String & GetNatGatewayId() const
ReplaceRouteRequest & WithVpcEndpointId(VpcEndpointIdT &&value)
ReplaceRouteRequest & WithRouteTableId(RouteTableIdT &&value)
const Aws::String & GetCoreNetworkArn() const
const Aws::String & GetVpcPeeringConnectionId() const
ReplaceRouteRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String