AWS SDK for C++  0.12.9
AWS SDK for C++
ReplaceRouteRequest.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 ReplaceRouteRequest& 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 ReplaceRouteRequest& WithRouteTableId(const Aws::String& value) { SetRouteTableId(value); return *this;}
84 
88  inline ReplaceRouteRequest& WithRouteTableId(Aws::String&& value) { SetRouteTableId(value); return *this;}
89 
93  inline ReplaceRouteRequest& 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 ReplaceRouteRequest& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
124 
129  inline ReplaceRouteRequest& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(value); return *this;}
130 
135  inline ReplaceRouteRequest& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
136 
140  inline const Aws::String& GetGatewayId() const{ return m_gatewayId; }
141 
145  inline void SetGatewayId(const Aws::String& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
146 
150  inline void SetGatewayId(Aws::String&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
151 
155  inline void SetGatewayId(const char* value) { m_gatewayIdHasBeenSet = true; m_gatewayId.assign(value); }
156 
160  inline ReplaceRouteRequest& WithGatewayId(const Aws::String& value) { SetGatewayId(value); return *this;}
161 
165  inline ReplaceRouteRequest& WithGatewayId(Aws::String&& value) { SetGatewayId(value); return *this;}
166 
170  inline ReplaceRouteRequest& WithGatewayId(const char* value) { SetGatewayId(value); return *this;}
171 
175  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
176 
180  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
181 
185  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
186 
190  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
191 
195  inline ReplaceRouteRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
196 
200  inline ReplaceRouteRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
201 
205  inline ReplaceRouteRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
206 
210  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
211 
215  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
216 
220  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
221 
225  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
226 
230  inline ReplaceRouteRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
231 
235  inline ReplaceRouteRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(value); return *this;}
236 
240  inline ReplaceRouteRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
241 
245  inline const Aws::String& GetVpcPeeringConnectionId() const{ return m_vpcPeeringConnectionId; }
246 
250  inline void SetVpcPeeringConnectionId(const Aws::String& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
251 
255  inline void SetVpcPeeringConnectionId(Aws::String&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
256 
260  inline void SetVpcPeeringConnectionId(const char* value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId.assign(value); }
261 
265  inline ReplaceRouteRequest& WithVpcPeeringConnectionId(const Aws::String& value) { SetVpcPeeringConnectionId(value); return *this;}
266 
270  inline ReplaceRouteRequest& WithVpcPeeringConnectionId(Aws::String&& value) { SetVpcPeeringConnectionId(value); return *this;}
271 
275  inline ReplaceRouteRequest& WithVpcPeeringConnectionId(const char* value) { SetVpcPeeringConnectionId(value); return *this;}
276 
280  inline const Aws::String& GetNatGatewayId() const{ return m_natGatewayId; }
281 
285  inline void SetNatGatewayId(const Aws::String& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = value; }
286 
290  inline void SetNatGatewayId(Aws::String&& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = value; }
291 
295  inline void SetNatGatewayId(const char* value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId.assign(value); }
296 
300  inline ReplaceRouteRequest& WithNatGatewayId(const Aws::String& value) { SetNatGatewayId(value); return *this;}
301 
305  inline ReplaceRouteRequest& WithNatGatewayId(Aws::String&& value) { SetNatGatewayId(value); return *this;}
306 
310  inline ReplaceRouteRequest& WithNatGatewayId(const char* value) { SetNatGatewayId(value); return *this;}
311 
312  private:
313  bool m_dryRun;
314  bool m_dryRunHasBeenSet;
315  Aws::String m_routeTableId;
316  bool m_routeTableIdHasBeenSet;
317  Aws::String m_destinationCidrBlock;
318  bool m_destinationCidrBlockHasBeenSet;
319  Aws::String m_gatewayId;
320  bool m_gatewayIdHasBeenSet;
321  Aws::String m_instanceId;
322  bool m_instanceIdHasBeenSet;
323  Aws::String m_networkInterfaceId;
324  bool m_networkInterfaceIdHasBeenSet;
325  Aws::String m_vpcPeeringConnectionId;
326  bool m_vpcPeeringConnectionIdHasBeenSet;
327  Aws::String m_natGatewayId;
328  bool m_natGatewayIdHasBeenSet;
329  };
330 
331 } // namespace Model
332 } // namespace EC2
333 } // namespace Aws
ReplaceRouteRequest & WithNatGatewayId(const char *value)
ReplaceRouteRequest & WithDestinationCidrBlock(Aws::String &&value)
ReplaceRouteRequest & WithRouteTableId(Aws::String &&value)
void SetGatewayId(const Aws::String &value)
ReplaceRouteRequest & WithNatGatewayId(const Aws::String &value)
void SetDestinationCidrBlock(Aws::String &&value)
ReplaceRouteRequest & WithDryRun(bool value)
const Aws::String & GetRouteTableId() const
void SetNetworkInterfaceId(const char *value)
ReplaceRouteRequest & WithVpcPeeringConnectionId(const char *value)
void SetVpcPeeringConnectionId(const char *value)
const Aws::String & GetVpcPeeringConnectionId() const
void SetVpcPeeringConnectionId(Aws::String &&value)
ReplaceRouteRequest & WithDestinationCidrBlock(const char *value)
void SetRouteTableId(const Aws::String &value)
void SetNetworkInterfaceId(const Aws::String &value)
ReplaceRouteRequest & WithGatewayId(Aws::String &&value)
const Aws::String & GetDestinationCidrBlock() const
void SetVpcPeeringConnectionId(const Aws::String &value)
void SetInstanceId(Aws::String &&value)
ReplaceRouteRequest & WithNetworkInterfaceId(const Aws::String &value)
const Aws::String & GetNatGatewayId() const
const Aws::String & GetInstanceId() const
void SetInstanceId(const Aws::String &value)
ReplaceRouteRequest & WithNetworkInterfaceId(Aws::String &&value)
ReplaceRouteRequest & WithInstanceId(const Aws::String &value)
void SetDestinationCidrBlock(const char *value)
ReplaceRouteRequest & WithNetworkInterfaceId(const char *value)
ReplaceRouteRequest & WithInstanceId(Aws::String &&value)
const Aws::String & GetGatewayId() const
ReplaceRouteRequest & WithGatewayId(const char *value)
void SetGatewayId(Aws::String &&value)
ReplaceRouteRequest & WithVpcPeeringConnectionId(const Aws::String &value)
ReplaceRouteRequest & WithDestinationCidrBlock(const Aws::String &value)
void SetRouteTableId(Aws::String &&value)
void SetNatGatewayId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDestinationCidrBlock(const Aws::String &value)
ReplaceRouteRequest & WithRouteTableId(const Aws::String &value)
void SetNetworkInterfaceId(Aws::String &&value)
void SetNatGatewayId(const Aws::String &value)
ReplaceRouteRequest & WithRouteTableId(const char *value)
const Aws::String & GetNetworkInterfaceId() const
ReplaceRouteRequest & WithGatewayId(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
ReplaceRouteRequest & WithNatGatewayId(Aws::String &&value)
ReplaceRouteRequest & WithVpcPeeringConnectionId(Aws::String &&value)
JSON (JavaScript Object Notation).
ReplaceRouteRequest & WithInstanceId(const char *value)