AWS SDK for C++  0.12.9
AWS SDK for C++
CreateVpnConnectionRequest.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>
20 
21 namespace Aws
22 {
23 namespace EC2
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
43  inline bool GetDryRun() const{ return m_dryRun; }
44 
51  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 
59  inline CreateVpnConnectionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
60 
64  inline const Aws::String& GetType() const{ return m_type; }
65 
69  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
70 
74  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = value; }
75 
79  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
80 
84  inline CreateVpnConnectionRequest& WithType(const Aws::String& value) { SetType(value); return *this;}
85 
89  inline CreateVpnConnectionRequest& WithType(Aws::String&& value) { SetType(value); return *this;}
90 
94  inline CreateVpnConnectionRequest& WithType(const char* value) { SetType(value); return *this;}
95 
99  inline const Aws::String& GetCustomerGatewayId() const{ return m_customerGatewayId; }
100 
104  inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; }
105 
109  inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; }
110 
114  inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); }
115 
119  inline CreateVpnConnectionRequest& WithCustomerGatewayId(const Aws::String& value) { SetCustomerGatewayId(value); return *this;}
120 
124  inline CreateVpnConnectionRequest& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(value); return *this;}
125 
129  inline CreateVpnConnectionRequest& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(value); return *this;}
130 
134  inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; }
135 
139  inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; }
140 
144  inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; }
145 
149  inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); }
150 
154  inline CreateVpnConnectionRequest& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;}
155 
159  inline CreateVpnConnectionRequest& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(value); return *this;}
160 
164  inline CreateVpnConnectionRequest& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;}
165 
171  inline const VpnConnectionOptionsSpecification& GetOptions() const{ return m_options; }
172 
178  inline void SetOptions(const VpnConnectionOptionsSpecification& value) { m_optionsHasBeenSet = true; m_options = value; }
179 
185  inline void SetOptions(VpnConnectionOptionsSpecification&& value) { m_optionsHasBeenSet = true; m_options = value; }
186 
192  inline CreateVpnConnectionRequest& WithOptions(const VpnConnectionOptionsSpecification& value) { SetOptions(value); return *this;}
193 
199  inline CreateVpnConnectionRequest& WithOptions(VpnConnectionOptionsSpecification&& value) { SetOptions(value); return *this;}
200 
201  private:
202  bool m_dryRun;
203  bool m_dryRunHasBeenSet;
204  Aws::String m_type;
205  bool m_typeHasBeenSet;
206  Aws::String m_customerGatewayId;
207  bool m_customerGatewayIdHasBeenSet;
208  Aws::String m_vpnGatewayId;
209  bool m_vpnGatewayIdHasBeenSet;
211  bool m_optionsHasBeenSet;
212  };
213 
214 } // namespace Model
215 } // namespace EC2
216 } // namespace Aws
CreateVpnConnectionRequest & WithVpnGatewayId(Aws::String &&value)
void SetOptions(VpnConnectionOptionsSpecification &&value)
CreateVpnConnectionRequest & WithDryRun(bool value)
CreateVpnConnectionRequest & WithCustomerGatewayId(Aws::String &&value)
CreateVpnConnectionRequest & WithType(const Aws::String &value)
const VpnConnectionOptionsSpecification & GetOptions() const
CreateVpnConnectionRequest & WithVpnGatewayId(const char *value)
CreateVpnConnectionRequest & WithOptions(const VpnConnectionOptionsSpecification &value)
CreateVpnConnectionRequest & WithType(Aws::String &&value)
CreateVpnConnectionRequest & WithType(const char *value)
CreateVpnConnectionRequest & WithOptions(VpnConnectionOptionsSpecification &&value)
void SetOptions(const VpnConnectionOptionsSpecification &value)
CreateVpnConnectionRequest & WithVpnGatewayId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateVpnConnectionRequest & WithCustomerGatewayId(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
JSON (JavaScript Object Notation).
CreateVpnConnectionRequest & WithCustomerGatewayId(const char *value)