AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRouteRequest.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 CreateRouteRequest() = 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 "CreateRoute"; }
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 CreateRouteRequest& 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 CreateRouteRequest& WithVpcEndpointId(VpcEndpointIdT&& value) { SetVpcEndpointId(std::forward<VpcEndpointIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
69 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
70 template<typename TransitGatewayIdT = Aws::String>
71 void SetTransitGatewayId(TransitGatewayIdT&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::forward<TransitGatewayIdT>(value); }
72 template<typename TransitGatewayIdT = Aws::String>
73 CreateRouteRequest& WithTransitGatewayId(TransitGatewayIdT&& value) { SetTransitGatewayId(std::forward<TransitGatewayIdT>(value)); return *this;}
75
77
80 inline const Aws::String& GetLocalGatewayId() const { return m_localGatewayId; }
81 inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; }
82 template<typename LocalGatewayIdT = Aws::String>
83 void SetLocalGatewayId(LocalGatewayIdT&& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = std::forward<LocalGatewayIdT>(value); }
84 template<typename LocalGatewayIdT = Aws::String>
85 CreateRouteRequest& WithLocalGatewayId(LocalGatewayIdT&& value) { SetLocalGatewayId(std::forward<LocalGatewayIdT>(value)); return *this;}
87
89
93 inline const Aws::String& GetCarrierGatewayId() const { return m_carrierGatewayId; }
94 inline bool CarrierGatewayIdHasBeenSet() const { return m_carrierGatewayIdHasBeenSet; }
95 template<typename CarrierGatewayIdT = Aws::String>
96 void SetCarrierGatewayId(CarrierGatewayIdT&& value) { m_carrierGatewayIdHasBeenSet = true; m_carrierGatewayId = std::forward<CarrierGatewayIdT>(value); }
97 template<typename CarrierGatewayIdT = Aws::String>
98 CreateRouteRequest& WithCarrierGatewayId(CarrierGatewayIdT&& value) { SetCarrierGatewayId(std::forward<CarrierGatewayIdT>(value)); return *this;}
100
102
105 inline const Aws::String& GetCoreNetworkArn() const { return m_coreNetworkArn; }
106 inline bool CoreNetworkArnHasBeenSet() const { return m_coreNetworkArnHasBeenSet; }
107 template<typename CoreNetworkArnT = Aws::String>
108 void SetCoreNetworkArn(CoreNetworkArnT&& value) { m_coreNetworkArnHasBeenSet = true; m_coreNetworkArn = std::forward<CoreNetworkArnT>(value); }
109 template<typename CoreNetworkArnT = Aws::String>
110 CreateRouteRequest& WithCoreNetworkArn(CoreNetworkArnT&& value) { SetCoreNetworkArn(std::forward<CoreNetworkArnT>(value)); return *this;}
112
114
117 inline const Aws::String& GetOdbNetworkArn() const { return m_odbNetworkArn; }
118 inline bool OdbNetworkArnHasBeenSet() const { return m_odbNetworkArnHasBeenSet; }
119 template<typename OdbNetworkArnT = Aws::String>
120 void SetOdbNetworkArn(OdbNetworkArnT&& value) { m_odbNetworkArnHasBeenSet = true; m_odbNetworkArn = std::forward<OdbNetworkArnT>(value); }
121 template<typename OdbNetworkArnT = Aws::String>
122 CreateRouteRequest& WithOdbNetworkArn(OdbNetworkArnT&& value) { SetOdbNetworkArn(std::forward<OdbNetworkArnT>(value)); return *this;}
124
126
132 inline bool GetDryRun() const { return m_dryRun; }
133 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
134 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
135 inline CreateRouteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
137
139
142 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
143 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
144 template<typename RouteTableIdT = Aws::String>
145 void SetRouteTableId(RouteTableIdT&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::forward<RouteTableIdT>(value); }
146 template<typename RouteTableIdT = Aws::String>
147 CreateRouteRequest& WithRouteTableId(RouteTableIdT&& value) { SetRouteTableId(std::forward<RouteTableIdT>(value)); return *this;}
149
151
157 inline const Aws::String& GetDestinationCidrBlock() const { return m_destinationCidrBlock; }
158 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
159 template<typename DestinationCidrBlockT = Aws::String>
160 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value); }
161 template<typename DestinationCidrBlockT = Aws::String>
162 CreateRouteRequest& WithDestinationCidrBlock(DestinationCidrBlockT&& value) { SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value)); return *this;}
164
166
170 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
171 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
172 template<typename GatewayIdT = Aws::String>
173 void SetGatewayId(GatewayIdT&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::forward<GatewayIdT>(value); }
174 template<typename GatewayIdT = Aws::String>
175 CreateRouteRequest& WithGatewayId(GatewayIdT&& value) { SetGatewayId(std::forward<GatewayIdT>(value)); return *this;}
177
179
183 inline const Aws::String& GetDestinationIpv6CidrBlock() const { return m_destinationIpv6CidrBlock; }
184 inline bool DestinationIpv6CidrBlockHasBeenSet() const { return m_destinationIpv6CidrBlockHasBeenSet; }
185 template<typename DestinationIpv6CidrBlockT = Aws::String>
186 void SetDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT&& value) { m_destinationIpv6CidrBlockHasBeenSet = true; m_destinationIpv6CidrBlock = std::forward<DestinationIpv6CidrBlockT>(value); }
187 template<typename DestinationIpv6CidrBlockT = Aws::String>
188 CreateRouteRequest& WithDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT&& value) { SetDestinationIpv6CidrBlock(std::forward<DestinationIpv6CidrBlockT>(value)); return *this;}
190
192
195 inline const Aws::String& GetEgressOnlyInternetGatewayId() const { return m_egressOnlyInternetGatewayId; }
196 inline bool EgressOnlyInternetGatewayIdHasBeenSet() const { return m_egressOnlyInternetGatewayIdHasBeenSet; }
197 template<typename EgressOnlyInternetGatewayIdT = Aws::String>
198 void SetEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT&& value) { m_egressOnlyInternetGatewayIdHasBeenSet = true; m_egressOnlyInternetGatewayId = std::forward<EgressOnlyInternetGatewayIdT>(value); }
199 template<typename EgressOnlyInternetGatewayIdT = Aws::String>
200 CreateRouteRequest& WithEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT&& value) { SetEgressOnlyInternetGatewayId(std::forward<EgressOnlyInternetGatewayIdT>(value)); return *this;}
202
204
208 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
209 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
210 template<typename InstanceIdT = Aws::String>
211 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
212 template<typename InstanceIdT = Aws::String>
213 CreateRouteRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
215
217
220 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
221 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
222 template<typename NetworkInterfaceIdT = Aws::String>
223 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
224 template<typename NetworkInterfaceIdT = Aws::String>
225 CreateRouteRequest& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
227
229
232 inline const Aws::String& GetVpcPeeringConnectionId() const { return m_vpcPeeringConnectionId; }
233 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
234 template<typename VpcPeeringConnectionIdT = Aws::String>
235 void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::forward<VpcPeeringConnectionIdT>(value); }
236 template<typename VpcPeeringConnectionIdT = Aws::String>
237 CreateRouteRequest& WithVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) { SetVpcPeeringConnectionId(std::forward<VpcPeeringConnectionIdT>(value)); return *this;}
239
241
244 inline const Aws::String& GetNatGatewayId() const { return m_natGatewayId; }
245 inline bool NatGatewayIdHasBeenSet() const { return m_natGatewayIdHasBeenSet; }
246 template<typename NatGatewayIdT = Aws::String>
247 void SetNatGatewayId(NatGatewayIdT&& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = std::forward<NatGatewayIdT>(value); }
248 template<typename NatGatewayIdT = Aws::String>
249 CreateRouteRequest& WithNatGatewayId(NatGatewayIdT&& value) { SetNatGatewayId(std::forward<NatGatewayIdT>(value)); return *this;}
251 private:
252
253 Aws::String m_destinationPrefixListId;
254 bool m_destinationPrefixListIdHasBeenSet = false;
255
256 Aws::String m_vpcEndpointId;
257 bool m_vpcEndpointIdHasBeenSet = false;
258
259 Aws::String m_transitGatewayId;
260 bool m_transitGatewayIdHasBeenSet = false;
261
262 Aws::String m_localGatewayId;
263 bool m_localGatewayIdHasBeenSet = false;
264
265 Aws::String m_carrierGatewayId;
266 bool m_carrierGatewayIdHasBeenSet = false;
267
268 Aws::String m_coreNetworkArn;
269 bool m_coreNetworkArnHasBeenSet = false;
270
271 Aws::String m_odbNetworkArn;
272 bool m_odbNetworkArnHasBeenSet = false;
273
274 bool m_dryRun{false};
275 bool m_dryRunHasBeenSet = false;
276
277 Aws::String m_routeTableId;
278 bool m_routeTableIdHasBeenSet = false;
279
280 Aws::String m_destinationCidrBlock;
281 bool m_destinationCidrBlockHasBeenSet = false;
282
283 Aws::String m_gatewayId;
284 bool m_gatewayIdHasBeenSet = false;
285
286 Aws::String m_destinationIpv6CidrBlock;
287 bool m_destinationIpv6CidrBlockHasBeenSet = false;
288
289 Aws::String m_egressOnlyInternetGatewayId;
290 bool m_egressOnlyInternetGatewayIdHasBeenSet = false;
291
292 Aws::String m_instanceId;
293 bool m_instanceIdHasBeenSet = false;
294
295 Aws::String m_networkInterfaceId;
296 bool m_networkInterfaceIdHasBeenSet = false;
297
298 Aws::String m_vpcPeeringConnectionId;
299 bool m_vpcPeeringConnectionIdHasBeenSet = false;
300
301 Aws::String m_natGatewayId;
302 bool m_natGatewayIdHasBeenSet = false;
303 };
304
305} // namespace Model
306} // namespace EC2
307} // 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