AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVpnConnectionRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/VpnConnectionOptionsSpecification.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace 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_EC2_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
50 inline const Aws::String& GetCustomerGatewayId() const{ return m_customerGatewayId; }
51 inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
52 inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; }
53 inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::move(value); }
54 inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); }
56 inline CreateVpnConnectionRequest& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(std::move(value)); return *this;}
57 inline CreateVpnConnectionRequest& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(value); return *this;}
59
61
64 inline const Aws::String& GetType() const{ return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
67 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
68 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
69 inline CreateVpnConnectionRequest& WithType(const Aws::String& value) { SetType(value); return *this;}
70 inline CreateVpnConnectionRequest& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
71 inline CreateVpnConnectionRequest& WithType(const char* value) { SetType(value); return *this;}
73
75
79 inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; }
80 inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
81 inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; }
82 inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::move(value); }
83 inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); }
84 inline CreateVpnConnectionRequest& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;}
85 inline CreateVpnConnectionRequest& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(std::move(value)); return *this;}
86 inline CreateVpnConnectionRequest& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;}
88
90
94 inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
95 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
96 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
97 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
98 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
100 inline CreateVpnConnectionRequest& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
101 inline CreateVpnConnectionRequest& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
103
105
108 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
109 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
110 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
111 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
114 inline CreateVpnConnectionRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
115 inline CreateVpnConnectionRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
117
119
125 inline bool GetDryRun() const{ return m_dryRun; }
126 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
127 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
128 inline CreateVpnConnectionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
130
132
135 inline const VpnConnectionOptionsSpecification& GetOptions() const{ return m_options; }
136 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
137 inline void SetOptions(const VpnConnectionOptionsSpecification& value) { m_optionsHasBeenSet = true; m_options = value; }
138 inline void SetOptions(VpnConnectionOptionsSpecification&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
140 inline CreateVpnConnectionRequest& WithOptions(VpnConnectionOptionsSpecification&& value) { SetOptions(std::move(value)); return *this;}
142 private:
143
144 Aws::String m_customerGatewayId;
145 bool m_customerGatewayIdHasBeenSet = false;
146
147 Aws::String m_type;
148 bool m_typeHasBeenSet = false;
149
150 Aws::String m_vpnGatewayId;
151 bool m_vpnGatewayIdHasBeenSet = false;
152
153 Aws::String m_transitGatewayId;
154 bool m_transitGatewayIdHasBeenSet = false;
155
156 Aws::Vector<TagSpecification> m_tagSpecifications;
157 bool m_tagSpecificationsHasBeenSet = false;
158
159 bool m_dryRun;
160 bool m_dryRunHasBeenSet = false;
161
163 bool m_optionsHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace EC2
168} // namespace Aws
CreateVpnConnectionRequest & WithType(const char *value)
CreateVpnConnectionRequest & WithTransitGatewayId(const char *value)
CreateVpnConnectionRequest & WithOptions(VpnConnectionOptionsSpecification &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateVpnConnectionRequest & WithVpnGatewayId(Aws::String &&value)
CreateVpnConnectionRequest & WithDryRun(bool value)
CreateVpnConnectionRequest & WithCustomerGatewayId(const char *value)
CreateVpnConnectionRequest & WithTransitGatewayId(const Aws::String &value)
CreateVpnConnectionRequest & WithVpnGatewayId(const Aws::String &value)
CreateVpnConnectionRequest & WithCustomerGatewayId(Aws::String &&value)
CreateVpnConnectionRequest & WithOptions(const VpnConnectionOptionsSpecification &value)
void SetOptions(const VpnConnectionOptionsSpecification &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateVpnConnectionRequest & WithVpnGatewayId(const char *value)
CreateVpnConnectionRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateVpnConnectionRequest & AddTagSpecifications(const TagSpecification &value)
CreateVpnConnectionRequest & WithCustomerGatewayId(const Aws::String &value)
CreateVpnConnectionRequest & WithTransitGatewayId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetOptions(VpnConnectionOptionsSpecification &&value)
CreateVpnConnectionRequest & WithType(Aws::String &&value)
const VpnConnectionOptionsSpecification & GetOptions() const
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateVpnConnectionRequest & AddTagSpecifications(TagSpecification &&value)
CreateVpnConnectionRequest & WithType(const Aws::String &value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateVpnConnectionRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector