AWS SDK for C++  0.12.9
AWS SDK for C++
CreateRouteRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
19 
20 namespace Aws
21 {
22 namespace EC2
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
42  inline bool GetDryRun() const{ return m_dryRun; }
43 
50  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 
58  inline CreateRouteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
59 
63  inline const Aws::String& GetRouteTableId() const{ return m_routeTableId; }
64 
68  inline void SetRouteTableId(const Aws::String& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; }
69 
73  inline void SetRouteTableId(Aws::String&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; }
74 
78  inline void SetRouteTableId(const char* value) { m_routeTableIdHasBeenSet = true; m_routeTableId.assign(value); }
79 
83  inline CreateRouteRequest& WithRouteTableId(const Aws::String& value) { SetRouteTableId(value); return *this;}
84 
88  inline CreateRouteRequest& WithRouteTableId(Aws::String&& value) { SetRouteTableId(value); return *this;}
89 
93  inline CreateRouteRequest& WithRouteTableId(const char* value) { SetRouteTableId(value); return *this;}
94 
99  inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
100 
105  inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
106 
111  inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
112 
117  inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
118 
123  inline CreateRouteRequest& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
124 
129  inline CreateRouteRequest& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(value); return *this;}
130 
135  inline CreateRouteRequest& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
136 
141  inline const Aws::String& GetGatewayId() const{ return m_gatewayId; }
142 
147  inline void SetGatewayId(const Aws::String& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
148 
153  inline void SetGatewayId(Aws::String&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
154 
159  inline void SetGatewayId(const char* value) { m_gatewayIdHasBeenSet = true; m_gatewayId.assign(value); }
160 
165  inline CreateRouteRequest& WithGatewayId(const Aws::String& value) { SetGatewayId(value); return *this;}
166 
171  inline CreateRouteRequest& WithGatewayId(Aws::String&& value) { SetGatewayId(value); return *this;}
172 
177  inline CreateRouteRequest& WithGatewayId(const char* value) { SetGatewayId(value); return *this;}
178 
183  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
184 
189  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
190 
195  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
196 
201  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
202 
207  inline CreateRouteRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
208 
213  inline CreateRouteRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
214 
219  inline CreateRouteRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
220 
224  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
225 
229  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
230 
234  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
235 
239  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
240 
244  inline CreateRouteRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
245 
249  inline CreateRouteRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(value); return *this;}
250 
254  inline CreateRouteRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
255 
259  inline const Aws::String& GetVpcPeeringConnectionId() const{ return m_vpcPeeringConnectionId; }
260 
264  inline void SetVpcPeeringConnectionId(const Aws::String& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
265 
269  inline void SetVpcPeeringConnectionId(Aws::String&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
270 
274  inline void SetVpcPeeringConnectionId(const char* value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId.assign(value); }
275 
279  inline CreateRouteRequest& WithVpcPeeringConnectionId(const Aws::String& value) { SetVpcPeeringConnectionId(value); return *this;}
280 
284  inline CreateRouteRequest& WithVpcPeeringConnectionId(Aws::String&& value) { SetVpcPeeringConnectionId(value); return *this;}
285 
289  inline CreateRouteRequest& WithVpcPeeringConnectionId(const char* value) { SetVpcPeeringConnectionId(value); return *this;}
290 
294  inline const Aws::String& GetNatGatewayId() const{ return m_natGatewayId; }
295 
299  inline void SetNatGatewayId(const Aws::String& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = value; }
300 
304  inline void SetNatGatewayId(Aws::String&& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = value; }
305 
309  inline void SetNatGatewayId(const char* value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId.assign(value); }
310 
314  inline CreateRouteRequest& WithNatGatewayId(const Aws::String& value) { SetNatGatewayId(value); return *this;}
315 
319  inline CreateRouteRequest& WithNatGatewayId(Aws::String&& value) { SetNatGatewayId(value); return *this;}
320 
324  inline CreateRouteRequest& WithNatGatewayId(const char* value) { SetNatGatewayId(value); return *this;}
325 
326  private:
327  bool m_dryRun;
328  bool m_dryRunHasBeenSet;
329  Aws::String m_routeTableId;
330  bool m_routeTableIdHasBeenSet;
331  Aws::String m_destinationCidrBlock;
332  bool m_destinationCidrBlockHasBeenSet;
333  Aws::String m_gatewayId;
334  bool m_gatewayIdHasBeenSet;
335  Aws::String m_instanceId;
336  bool m_instanceIdHasBeenSet;
337  Aws::String m_networkInterfaceId;
338  bool m_networkInterfaceIdHasBeenSet;
339  Aws::String m_vpcPeeringConnectionId;
340  bool m_vpcPeeringConnectionIdHasBeenSet;
341  Aws::String m_natGatewayId;
342  bool m_natGatewayIdHasBeenSet;
343  };
344 
345 } // namespace Model
346 } // namespace EC2
347 } // namespace Aws
CreateRouteRequest & WithNetworkInterfaceId(const Aws::String &value)
void SetVpcPeeringConnectionId(const Aws::String &value)
CreateRouteRequest & WithVpcPeeringConnectionId(Aws::String &&value)
void SetNatGatewayId(const Aws::String &value)
CreateRouteRequest & WithNetworkInterfaceId(const char *value)
CreateRouteRequest & WithNatGatewayId(const char *value)
CreateRouteRequest & WithNatGatewayId(const Aws::String &value)
void SetNatGatewayId(const char *value)
void SetDestinationCidrBlock(const char *value)
CreateRouteRequest & WithRouteTableId(Aws::String &&value)
void SetDestinationCidrBlock(Aws::String &&value)
void SetVpcPeeringConnectionId(Aws::String &&value)
void SetRouteTableId(const char *value)
const Aws::String & GetVpcPeeringConnectionId() const
const Aws::String & GetNetworkInterfaceId() const
void SetNetworkInterfaceId(Aws::String &&value)
CreateRouteRequest & WithGatewayId(Aws::String &&value)
CreateRouteRequest & WithDryRun(bool value)
CreateRouteRequest & WithInstanceId(const char *value)
const Aws::String & GetRouteTableId() const
CreateRouteRequest & WithDestinationCidrBlock(Aws::String &&value)
void SetGatewayId(Aws::String &&value)
void SetRouteTableId(const Aws::String &value)
CreateRouteRequest & WithNatGatewayId(Aws::String &&value)
CreateRouteRequest & WithGatewayId(const Aws::String &value)
void SetNetworkInterfaceId(const Aws::String &value)
void SetDestinationCidrBlock(const Aws::String &value)
CreateRouteRequest & WithInstanceId(const Aws::String &value)
CreateRouteRequest & WithVpcPeeringConnectionId(const char *value)
void SetRouteTableId(Aws::String &&value)
const Aws::String & GetInstanceId() const
void SetGatewayId(const Aws::String &value)
void SetInstanceId(Aws::String &&value)
void SetNetworkInterfaceId(const char *value)
CreateRouteRequest & WithRouteTableId(const char *value)
void SetNatGatewayId(Aws::String &&value)
CreateRouteRequest & WithGatewayId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateRouteRequest & WithRouteTableId(const Aws::String &value)
CreateRouteRequest & WithDestinationCidrBlock(const char *value)
CreateRouteRequest & WithVpcPeeringConnectionId(const Aws::String &value)
const Aws::String & GetGatewayId() const
const Aws::String & GetDestinationCidrBlock() const
const Aws::String & GetNatGatewayId() const
CreateRouteRequest & WithInstanceId(Aws::String &&value)
void SetVpcPeeringConnectionId(const char *value)
CreateRouteRequest & WithDestinationCidrBlock(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
CreateRouteRequest & WithNetworkInterfaceId(Aws::String &&value)
void SetInstanceId(const Aws::String &value)
JSON (JavaScript Object Notation).