AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ReplaceRouteRequest.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 <utility>
11
12namespace Aws
13{
14namespace EC2
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_EC2_API ReplaceRouteRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ReplaceRoute"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetDestinationPrefixListId() const { return m_destinationPrefixListId; }
44 inline bool DestinationPrefixListIdHasBeenSet() const { return m_destinationPrefixListIdHasBeenSet; }
45 template<typename DestinationPrefixListIdT = Aws::String>
46 void SetDestinationPrefixListId(DestinationPrefixListIdT&& value) { m_destinationPrefixListIdHasBeenSet = true; m_destinationPrefixListId = std::forward<DestinationPrefixListIdT>(value); }
47 template<typename DestinationPrefixListIdT = Aws::String>
48 ReplaceRouteRequest& WithDestinationPrefixListId(DestinationPrefixListIdT&& value) { SetDestinationPrefixListId(std::forward<DestinationPrefixListIdT>(value)); return *this;}
50
52
56 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
57 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
58 template<typename VpcEndpointIdT = Aws::String>
59 void SetVpcEndpointId(VpcEndpointIdT&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::forward<VpcEndpointIdT>(value); }
60 template<typename VpcEndpointIdT = Aws::String>
61 ReplaceRouteRequest& WithVpcEndpointId(VpcEndpointIdT&& value) { SetVpcEndpointId(std::forward<VpcEndpointIdT>(value)); return *this;}
63
65
69 inline bool GetLocalTarget() const { return m_localTarget; }
70 inline bool LocalTargetHasBeenSet() const { return m_localTargetHasBeenSet; }
71 inline void SetLocalTarget(bool value) { m_localTargetHasBeenSet = true; m_localTarget = value; }
72 inline ReplaceRouteRequest& WithLocalTarget(bool value) { SetLocalTarget(value); return *this;}
74
76
79 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
80 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
81 template<typename TransitGatewayIdT = Aws::String>
82 void SetTransitGatewayId(TransitGatewayIdT&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::forward<TransitGatewayIdT>(value); }
83 template<typename TransitGatewayIdT = Aws::String>
84 ReplaceRouteRequest& WithTransitGatewayId(TransitGatewayIdT&& value) { SetTransitGatewayId(std::forward<TransitGatewayIdT>(value)); return *this;}
86
88
91 inline const Aws::String& GetLocalGatewayId() const { return m_localGatewayId; }
92 inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; }
93 template<typename LocalGatewayIdT = Aws::String>
94 void SetLocalGatewayId(LocalGatewayIdT&& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = std::forward<LocalGatewayIdT>(value); }
95 template<typename LocalGatewayIdT = Aws::String>
96 ReplaceRouteRequest& WithLocalGatewayId(LocalGatewayIdT&& value) { SetLocalGatewayId(std::forward<LocalGatewayIdT>(value)); return *this;}
98
100
103 inline const Aws::String& GetCarrierGatewayId() const { return m_carrierGatewayId; }
104 inline bool CarrierGatewayIdHasBeenSet() const { return m_carrierGatewayIdHasBeenSet; }
105 template<typename CarrierGatewayIdT = Aws::String>
106 void SetCarrierGatewayId(CarrierGatewayIdT&& value) { m_carrierGatewayIdHasBeenSet = true; m_carrierGatewayId = std::forward<CarrierGatewayIdT>(value); }
107 template<typename CarrierGatewayIdT = Aws::String>
108 ReplaceRouteRequest& WithCarrierGatewayId(CarrierGatewayIdT&& value) { SetCarrierGatewayId(std::forward<CarrierGatewayIdT>(value)); return *this;}
110
112
115 inline const Aws::String& GetCoreNetworkArn() const { return m_coreNetworkArn; }
116 inline bool CoreNetworkArnHasBeenSet() const { return m_coreNetworkArnHasBeenSet; }
117 template<typename CoreNetworkArnT = Aws::String>
118 void SetCoreNetworkArn(CoreNetworkArnT&& value) { m_coreNetworkArnHasBeenSet = true; m_coreNetworkArn = std::forward<CoreNetworkArnT>(value); }
119 template<typename CoreNetworkArnT = Aws::String>
120 ReplaceRouteRequest& WithCoreNetworkArn(CoreNetworkArnT&& value) { SetCoreNetworkArn(std::forward<CoreNetworkArnT>(value)); return *this;}
122
124
127 inline const Aws::String& GetOdbNetworkArn() const { return m_odbNetworkArn; }
128 inline bool OdbNetworkArnHasBeenSet() const { return m_odbNetworkArnHasBeenSet; }
129 template<typename OdbNetworkArnT = Aws::String>
130 void SetOdbNetworkArn(OdbNetworkArnT&& value) { m_odbNetworkArnHasBeenSet = true; m_odbNetworkArn = std::forward<OdbNetworkArnT>(value); }
131 template<typename OdbNetworkArnT = Aws::String>
132 ReplaceRouteRequest& WithOdbNetworkArn(OdbNetworkArnT&& value) { SetOdbNetworkArn(std::forward<OdbNetworkArnT>(value)); return *this;}
134
136
142 inline bool GetDryRun() const { return m_dryRun; }
143 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
144 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
145 inline ReplaceRouteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
147
149
152 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
153 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
154 template<typename RouteTableIdT = Aws::String>
155 void SetRouteTableId(RouteTableIdT&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::forward<RouteTableIdT>(value); }
156 template<typename RouteTableIdT = Aws::String>
157 ReplaceRouteRequest& WithRouteTableId(RouteTableIdT&& value) { SetRouteTableId(std::forward<RouteTableIdT>(value)); return *this;}
159
161
165 inline const Aws::String& GetDestinationCidrBlock() const { return m_destinationCidrBlock; }
166 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
167 template<typename DestinationCidrBlockT = Aws::String>
168 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value); }
169 template<typename DestinationCidrBlockT = Aws::String>
170 ReplaceRouteRequest& WithDestinationCidrBlock(DestinationCidrBlockT&& value) { SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value)); return *this;}
172
174
177 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
178 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
179 template<typename GatewayIdT = Aws::String>
180 void SetGatewayId(GatewayIdT&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::forward<GatewayIdT>(value); }
181 template<typename GatewayIdT = Aws::String>
182 ReplaceRouteRequest& WithGatewayId(GatewayIdT&& value) { SetGatewayId(std::forward<GatewayIdT>(value)); return *this;}
184
186
190 inline const Aws::String& GetDestinationIpv6CidrBlock() const { return m_destinationIpv6CidrBlock; }
191 inline bool DestinationIpv6CidrBlockHasBeenSet() const { return m_destinationIpv6CidrBlockHasBeenSet; }
192 template<typename DestinationIpv6CidrBlockT = Aws::String>
193 void SetDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT&& value) { m_destinationIpv6CidrBlockHasBeenSet = true; m_destinationIpv6CidrBlock = std::forward<DestinationIpv6CidrBlockT>(value); }
194 template<typename DestinationIpv6CidrBlockT = Aws::String>
195 ReplaceRouteRequest& WithDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT&& value) { SetDestinationIpv6CidrBlock(std::forward<DestinationIpv6CidrBlockT>(value)); return *this;}
197
199
202 inline const Aws::String& GetEgressOnlyInternetGatewayId() const { return m_egressOnlyInternetGatewayId; }
203 inline bool EgressOnlyInternetGatewayIdHasBeenSet() const { return m_egressOnlyInternetGatewayIdHasBeenSet; }
204 template<typename EgressOnlyInternetGatewayIdT = Aws::String>
205 void SetEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT&& value) { m_egressOnlyInternetGatewayIdHasBeenSet = true; m_egressOnlyInternetGatewayId = std::forward<EgressOnlyInternetGatewayIdT>(value); }
206 template<typename EgressOnlyInternetGatewayIdT = Aws::String>
207 ReplaceRouteRequest& WithEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT&& value) { SetEgressOnlyInternetGatewayId(std::forward<EgressOnlyInternetGatewayIdT>(value)); return *this;}
209
211
214 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
215 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
216 template<typename InstanceIdT = Aws::String>
217 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
218 template<typename InstanceIdT = Aws::String>
219 ReplaceRouteRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
221
223
226 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
227 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
228 template<typename NetworkInterfaceIdT = Aws::String>
229 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
230 template<typename NetworkInterfaceIdT = Aws::String>
231 ReplaceRouteRequest& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
233
235
238 inline const Aws::String& GetVpcPeeringConnectionId() const { return m_vpcPeeringConnectionId; }
239 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
240 template<typename VpcPeeringConnectionIdT = Aws::String>
241 void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::forward<VpcPeeringConnectionIdT>(value); }
242 template<typename VpcPeeringConnectionIdT = Aws::String>
243 ReplaceRouteRequest& WithVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) { SetVpcPeeringConnectionId(std::forward<VpcPeeringConnectionIdT>(value)); return *this;}
245
247
250 inline const Aws::String& GetNatGatewayId() const { return m_natGatewayId; }
251 inline bool NatGatewayIdHasBeenSet() const { return m_natGatewayIdHasBeenSet; }
252 template<typename NatGatewayIdT = Aws::String>
253 void SetNatGatewayId(NatGatewayIdT&& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = std::forward<NatGatewayIdT>(value); }
254 template<typename NatGatewayIdT = Aws::String>
255 ReplaceRouteRequest& WithNatGatewayId(NatGatewayIdT&& value) { SetNatGatewayId(std::forward<NatGatewayIdT>(value)); return *this;}
257 private:
258
259 Aws::String m_destinationPrefixListId;
260 bool m_destinationPrefixListIdHasBeenSet = false;
261
262 Aws::String m_vpcEndpointId;
263 bool m_vpcEndpointIdHasBeenSet = false;
264
265 bool m_localTarget{false};
266 bool m_localTargetHasBeenSet = false;
267
268 Aws::String m_transitGatewayId;
269 bool m_transitGatewayIdHasBeenSet = false;
270
271 Aws::String m_localGatewayId;
272 bool m_localGatewayIdHasBeenSet = false;
273
274 Aws::String m_carrierGatewayId;
275 bool m_carrierGatewayIdHasBeenSet = false;
276
277 Aws::String m_coreNetworkArn;
278 bool m_coreNetworkArnHasBeenSet = false;
279
280 Aws::String m_odbNetworkArn;
281 bool m_odbNetworkArnHasBeenSet = false;
282
283 bool m_dryRun{false};
284 bool m_dryRunHasBeenSet = false;
285
286 Aws::String m_routeTableId;
287 bool m_routeTableIdHasBeenSet = false;
288
289 Aws::String m_destinationCidrBlock;
290 bool m_destinationCidrBlockHasBeenSet = false;
291
292 Aws::String m_gatewayId;
293 bool m_gatewayIdHasBeenSet = false;
294
295 Aws::String m_destinationIpv6CidrBlock;
296 bool m_destinationIpv6CidrBlockHasBeenSet = false;
297
298 Aws::String m_egressOnlyInternetGatewayId;
299 bool m_egressOnlyInternetGatewayIdHasBeenSet = false;
300
301 Aws::String m_instanceId;
302 bool m_instanceIdHasBeenSet = false;
303
304 Aws::String m_networkInterfaceId;
305 bool m_networkInterfaceIdHasBeenSet = false;
306
307 Aws::String m_vpcPeeringConnectionId;
308 bool m_vpcPeeringConnectionIdHasBeenSet = false;
309
310 Aws::String m_natGatewayId;
311 bool m_natGatewayIdHasBeenSet = false;
312 };
313
314} // namespace Model
315} // namespace EC2
316} // 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