AWS SDK for C++  1.9.157
AWS SDK for C++
CreateVpnConnectionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateVpnConnection"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  protected:
42  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43 
44  public:
45 
49  inline const Aws::String& GetCustomerGatewayId() const{ return m_customerGatewayId; }
50 
54  inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
55 
59  inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; }
60 
64  inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::move(value); }
65 
69  inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); }
70 
74  inline CreateVpnConnectionRequest& WithCustomerGatewayId(const Aws::String& value) { SetCustomerGatewayId(value); return *this;}
75 
79  inline CreateVpnConnectionRequest& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(std::move(value)); return *this;}
80 
84  inline CreateVpnConnectionRequest& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(value); return *this;}
85 
86 
90  inline const Aws::String& GetType() const{ return m_type; }
91 
95  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 
100  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
101 
105  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
106 
110  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
111 
115  inline CreateVpnConnectionRequest& WithType(const Aws::String& value) { SetType(value); return *this;}
116 
120  inline CreateVpnConnectionRequest& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
121 
125  inline CreateVpnConnectionRequest& WithType(const char* value) { SetType(value); return *this;}
126 
127 
132  inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; }
133 
138  inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
139 
144  inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; }
145 
150  inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::move(value); }
151 
156  inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); }
157 
162  inline CreateVpnConnectionRequest& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;}
163 
168  inline CreateVpnConnectionRequest& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(std::move(value)); return *this;}
169 
174  inline CreateVpnConnectionRequest& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;}
175 
176 
181  inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
182 
187  inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
188 
193  inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
194 
199  inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
200 
205  inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
206 
211  inline CreateVpnConnectionRequest& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
212 
217  inline CreateVpnConnectionRequest& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
218 
223  inline CreateVpnConnectionRequest& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
224 
225 
232  inline bool GetDryRun() const{ return m_dryRun; }
233 
240  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
241 
248  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
249 
256  inline CreateVpnConnectionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
257 
258 
262  inline const VpnConnectionOptionsSpecification& GetOptions() const{ return m_options; }
263 
267  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
268 
272  inline void SetOptions(const VpnConnectionOptionsSpecification& value) { m_optionsHasBeenSet = true; m_options = value; }
273 
277  inline void SetOptions(VpnConnectionOptionsSpecification&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
278 
282  inline CreateVpnConnectionRequest& WithOptions(const VpnConnectionOptionsSpecification& value) { SetOptions(value); return *this;}
283 
287  inline CreateVpnConnectionRequest& WithOptions(VpnConnectionOptionsSpecification&& value) { SetOptions(std::move(value)); return *this;}
288 
289 
293  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
294 
298  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
299 
303  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
304 
308  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
309 
313  inline CreateVpnConnectionRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
314 
318  inline CreateVpnConnectionRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
319 
323  inline CreateVpnConnectionRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
324 
328  inline CreateVpnConnectionRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
329 
330  private:
331 
332  Aws::String m_customerGatewayId;
333  bool m_customerGatewayIdHasBeenSet;
334 
335  Aws::String m_type;
336  bool m_typeHasBeenSet;
337 
338  Aws::String m_vpnGatewayId;
339  bool m_vpnGatewayIdHasBeenSet;
340 
341  Aws::String m_transitGatewayId;
342  bool m_transitGatewayIdHasBeenSet;
343 
344  bool m_dryRun;
345  bool m_dryRunHasBeenSet;
346 
348  bool m_optionsHasBeenSet;
349 
350  Aws::Vector<TagSpecification> m_tagSpecifications;
351  bool m_tagSpecificationsHasBeenSet;
352  };
353 
354 } // namespace Model
355 } // namespace EC2
356 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateVpnConnectionRequest::SetVpnGatewayId
void SetVpnGatewayId(Aws::String &&value)
Definition: CreateVpnConnectionRequest.h:150
Aws::EC2::Model::CreateVpnConnectionRequest::WithTransitGatewayId
CreateVpnConnectionRequest & WithTransitGatewayId(const char *value)
Definition: CreateVpnConnectionRequest.h:223
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateVpnConnectionRequest::SetCustomerGatewayId
void SetCustomerGatewayId(const Aws::String &value)
Definition: CreateVpnConnectionRequest.h:59
Aws::EC2::Model::CreateVpnConnectionRequest::SetCustomerGatewayId
void SetCustomerGatewayId(Aws::String &&value)
Definition: CreateVpnConnectionRequest.h:64
Aws::EC2::Model::CreateVpnConnectionRequest::WithCustomerGatewayId
CreateVpnConnectionRequest & WithCustomerGatewayId(Aws::String &&value)
Definition: CreateVpnConnectionRequest.h:79
Aws::EC2::Model::CreateVpnConnectionRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateVpnConnectionRequest.h:240
Aws::EC2::Model::CreateVpnConnectionRequest::GetType
const Aws::String & GetType() const
Definition: CreateVpnConnectionRequest.h:90
Aws::EC2::Model::CreateVpnConnectionRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateVpnConnectionRequest.h:293
Aws::EC2::Model::CreateVpnConnectionRequest::WithTagSpecifications
CreateVpnConnectionRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateVpnConnectionRequest.h:318
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateVpnConnectionRequest::WithType
CreateVpnConnectionRequest & WithType(const char *value)
Definition: CreateVpnConnectionRequest.h:125
Aws::EC2::Model::CreateVpnConnectionRequest::WithTransitGatewayId
CreateVpnConnectionRequest & WithTransitGatewayId(const Aws::String &value)
Definition: CreateVpnConnectionRequest.h:211
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateVpnConnectionRequest::GetVpnGatewayId
const Aws::String & GetVpnGatewayId() const
Definition: CreateVpnConnectionRequest.h:132
Aws::EC2::Model::CreateVpnConnectionRequest::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: CreateVpnConnectionRequest.h:267
Aws::EC2::Model::CreateVpnConnectionRequest::WithVpnGatewayId
CreateVpnConnectionRequest & WithVpnGatewayId(Aws::String &&value)
Definition: CreateVpnConnectionRequest.h:168
AWSVector.h
VpnConnectionOptionsSpecification.h
Aws::EC2::Model::CreateVpnConnectionRequest::GetOptions
const VpnConnectionOptionsSpecification & GetOptions() const
Definition: CreateVpnConnectionRequest.h:262
Aws::EC2::Model::CreateVpnConnectionRequest::TransitGatewayIdHasBeenSet
bool TransitGatewayIdHasBeenSet() const
Definition: CreateVpnConnectionRequest.h:187
Aws::EC2::Model::CreateVpnConnectionRequest::SetOptions
void SetOptions(VpnConnectionOptionsSpecification &&value)
Definition: CreateVpnConnectionRequest.h:277
Aws::EC2::Model::CreateVpnConnectionRequest::WithDryRun
CreateVpnConnectionRequest & WithDryRun(bool value)
Definition: CreateVpnConnectionRequest.h:256
Aws::EC2::Model::CreateVpnConnectionRequest::WithTagSpecifications
CreateVpnConnectionRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateVpnConnectionRequest.h:313
Aws::EC2::Model::CreateVpnConnectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateVpnConnectionRequest.h:37
Aws::EC2::Model::CreateVpnConnectionRequest::SetVpnGatewayId
void SetVpnGatewayId(const Aws::String &value)
Definition: CreateVpnConnectionRequest.h:144
Aws::EC2::Model::CreateVpnConnectionRequest::WithCustomerGatewayId
CreateVpnConnectionRequest & WithCustomerGatewayId(const char *value)
Definition: CreateVpnConnectionRequest.h:84
Aws::EC2::Model::CreateVpnConnectionRequest::SetType
void SetType(const char *value)
Definition: CreateVpnConnectionRequest.h:110
Aws::EC2::Model::CreateVpnConnectionRequest::WithType
CreateVpnConnectionRequest & WithType(Aws::String &&value)
Definition: CreateVpnConnectionRequest.h:120
Aws::EC2::Model::CreateVpnConnectionRequest::SetCustomerGatewayId
void SetCustomerGatewayId(const char *value)
Definition: CreateVpnConnectionRequest.h:69
Aws::EC2::Model::CreateVpnConnectionRequest::WithOptions
CreateVpnConnectionRequest & WithOptions(const VpnConnectionOptionsSpecification &value)
Definition: CreateVpnConnectionRequest.h:282
Aws::EC2::Model::CreateVpnConnectionRequest::SetVpnGatewayId
void SetVpnGatewayId(const char *value)
Definition: CreateVpnConnectionRequest.h:156
Aws::EC2::Model::CreateVpnConnectionRequest::SetType
void SetType(Aws::String &&value)
Definition: CreateVpnConnectionRequest.h:105
Aws::EC2::Model::CreateVpnConnectionRequest::AddTagSpecifications
CreateVpnConnectionRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateVpnConnectionRequest.h:328
EC2Request.h
Aws::EC2::Model::CreateVpnConnectionRequest::GetCustomerGatewayId
const Aws::String & GetCustomerGatewayId() const
Definition: CreateVpnConnectionRequest.h:49
Aws::EC2::Model::CreateVpnConnectionRequest::WithType
CreateVpnConnectionRequest & WithType(const Aws::String &value)
Definition: CreateVpnConnectionRequest.h:115
Aws::EC2::Model::CreateVpnConnectionRequest::CreateVpnConnectionRequest
CreateVpnConnectionRequest()
Aws::EC2::Model::CreateVpnConnectionRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateVpnConnectionRequest.h:308
Aws::EC2::Model::CreateVpnConnectionRequest
Definition: CreateVpnConnectionRequest.h:29
AWSString.h
Aws::EC2::Model::CreateVpnConnectionRequest::VpnGatewayIdHasBeenSet
bool VpnGatewayIdHasBeenSet() const
Definition: CreateVpnConnectionRequest.h:138
Aws::EC2::Model::CreateVpnConnectionRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateVpnConnectionRequest.h:303
Aws::EC2::Model::CreateVpnConnectionRequest::SetTransitGatewayId
void SetTransitGatewayId(const Aws::String &value)
Definition: CreateVpnConnectionRequest.h:193
Aws::EC2::Model::CreateVpnConnectionRequest::SetOptions
void SetOptions(const VpnConnectionOptionsSpecification &value)
Definition: CreateVpnConnectionRequest.h:272
Aws::EC2::Model::CreateVpnConnectionRequest::CustomerGatewayIdHasBeenSet
bool CustomerGatewayIdHasBeenSet() const
Definition: CreateVpnConnectionRequest.h:54
Aws::EC2::Model::CreateVpnConnectionRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateVpnConnectionRequest.h:248
Aws::EC2::Model::CreateVpnConnectionRequest::WithCustomerGatewayId
CreateVpnConnectionRequest & WithCustomerGatewayId(const Aws::String &value)
Definition: CreateVpnConnectionRequest.h:74
Aws::EC2::Model::CreateVpnConnectionRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateVpnConnectionRequest.h:298
Aws::EC2::Model::CreateVpnConnectionRequest::AddTagSpecifications
CreateVpnConnectionRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateVpnConnectionRequest.h:323
Aws::EC2::Model::CreateVpnConnectionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateVpnConnectionRequest::SetTransitGatewayId
void SetTransitGatewayId(Aws::String &&value)
Definition: CreateVpnConnectionRequest.h:199
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateVpnConnectionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateVpnConnectionRequest::WithTransitGatewayId
CreateVpnConnectionRequest & WithTransitGatewayId(Aws::String &&value)
Definition: CreateVpnConnectionRequest.h:217
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::VpnConnectionOptionsSpecification
Definition: VpnConnectionOptionsSpecification.h:35
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateVpnConnectionRequest::SetTransitGatewayId
void SetTransitGatewayId(const char *value)
Definition: CreateVpnConnectionRequest.h:205
Aws::EC2::Model::CreateVpnConnectionRequest::WithOptions
CreateVpnConnectionRequest & WithOptions(VpnConnectionOptionsSpecification &&value)
Definition: CreateVpnConnectionRequest.h:287
Aws::EC2::Model::CreateVpnConnectionRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateVpnConnectionRequest.h:95
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateVpnConnectionRequest::WithVpnGatewayId
CreateVpnConnectionRequest & WithVpnGatewayId(const char *value)
Definition: CreateVpnConnectionRequest.h:174
Aws::EC2::Model::CreateVpnConnectionRequest::SetType
void SetType(const Aws::String &value)
Definition: CreateVpnConnectionRequest.h:100
Aws::EC2::Model::CreateVpnConnectionRequest::GetDryRun
bool GetDryRun() const
Definition: CreateVpnConnectionRequest.h:232
Aws::EC2::Model::CreateVpnConnectionRequest::WithVpnGatewayId
CreateVpnConnectionRequest & WithVpnGatewayId(const Aws::String &value)
Definition: CreateVpnConnectionRequest.h:162
Aws::EC2::Model::CreateVpnConnectionRequest::GetTransitGatewayId
const Aws::String & GetTransitGatewayId() const
Definition: CreateVpnConnectionRequest.h:181