AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateVpnConnectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <aws/ec2/model/VpnConnectionOptionsSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
27 public:
28 AWS_EC2_API CreateVpnConnectionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateVpnConnection"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
40
41 public:
43
46 inline const Aws::String& GetCustomerGatewayId() const { return m_customerGatewayId; }
47 inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
48 template <typename CustomerGatewayIdT = Aws::String>
49 void SetCustomerGatewayId(CustomerGatewayIdT&& value) {
50 m_customerGatewayIdHasBeenSet = true;
51 m_customerGatewayId = std::forward<CustomerGatewayIdT>(value);
52 }
53 template <typename CustomerGatewayIdT = Aws::String>
55 SetCustomerGatewayId(std::forward<CustomerGatewayIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetType() const { return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 template <typename TypeT = Aws::String>
67 void SetType(TypeT&& value) {
68 m_typeHasBeenSet = true;
69 m_type = std::forward<TypeT>(value);
70 }
71 template <typename TypeT = Aws::String>
73 SetType(std::forward<TypeT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetVpnGatewayId() const { return m_vpnGatewayId; }
84 inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
85 template <typename VpnGatewayIdT = Aws::String>
86 void SetVpnGatewayId(VpnGatewayIdT&& value) {
87 m_vpnGatewayIdHasBeenSet = true;
88 m_vpnGatewayId = std::forward<VpnGatewayIdT>(value);
89 }
90 template <typename VpnGatewayIdT = Aws::String>
92 SetVpnGatewayId(std::forward<VpnGatewayIdT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
103 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
104 template <typename TransitGatewayIdT = Aws::String>
105 void SetTransitGatewayId(TransitGatewayIdT&& value) {
106 m_transitGatewayIdHasBeenSet = true;
107 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
108 }
109 template <typename TransitGatewayIdT = Aws::String>
111 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetVpnConcentratorId() const { return m_vpnConcentratorId; }
121 inline bool VpnConcentratorIdHasBeenSet() const { return m_vpnConcentratorIdHasBeenSet; }
122 template <typename VpnConcentratorIdT = Aws::String>
123 void SetVpnConcentratorId(VpnConcentratorIdT&& value) {
124 m_vpnConcentratorIdHasBeenSet = true;
125 m_vpnConcentratorId = std::forward<VpnConcentratorIdT>(value);
126 }
127 template <typename VpnConcentratorIdT = Aws::String>
129 SetVpnConcentratorId(std::forward<VpnConcentratorIdT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
139 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
140 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
141 void SetTagSpecifications(TagSpecificationsT&& value) {
142 m_tagSpecificationsHasBeenSet = true;
143 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
144 }
145 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
147 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
148 return *this;
149 }
150 template <typename TagSpecificationsT = TagSpecification>
152 m_tagSpecificationsHasBeenSet = true;
153 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
154 return *this;
155 }
157
159
164 inline const Aws::String& GetPreSharedKeyStorage() const { return m_preSharedKeyStorage; }
165 inline bool PreSharedKeyStorageHasBeenSet() const { return m_preSharedKeyStorageHasBeenSet; }
166 template <typename PreSharedKeyStorageT = Aws::String>
167 void SetPreSharedKeyStorage(PreSharedKeyStorageT&& value) {
168 m_preSharedKeyStorageHasBeenSet = true;
169 m_preSharedKeyStorage = std::forward<PreSharedKeyStorageT>(value);
170 }
171 template <typename PreSharedKeyStorageT = Aws::String>
173 SetPreSharedKeyStorage(std::forward<PreSharedKeyStorageT>(value));
174 return *this;
175 }
177
179
185 inline bool GetDryRun() const { return m_dryRun; }
186 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
187 inline void SetDryRun(bool value) {
188 m_dryRunHasBeenSet = true;
189 m_dryRun = value;
190 }
192 SetDryRun(value);
193 return *this;
194 }
196
198
201 inline const VpnConnectionOptionsSpecification& GetOptions() const { return m_options; }
202 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
203 template <typename OptionsT = VpnConnectionOptionsSpecification>
204 void SetOptions(OptionsT&& value) {
205 m_optionsHasBeenSet = true;
206 m_options = std::forward<OptionsT>(value);
207 }
208 template <typename OptionsT = VpnConnectionOptionsSpecification>
210 SetOptions(std::forward<OptionsT>(value));
211 return *this;
212 }
214 private:
215 Aws::String m_customerGatewayId;
216
217 Aws::String m_type;
218
219 Aws::String m_vpnGatewayId;
220
221 Aws::String m_transitGatewayId;
222
223 Aws::String m_vpnConcentratorId;
224
225 Aws::Vector<TagSpecification> m_tagSpecifications;
226
227 Aws::String m_preSharedKeyStorage;
228
229 bool m_dryRun{false};
230
231 VpnConnectionOptionsSpecification m_options;
232 bool m_customerGatewayIdHasBeenSet = false;
233 bool m_typeHasBeenSet = false;
234 bool m_vpnGatewayIdHasBeenSet = false;
235 bool m_transitGatewayIdHasBeenSet = false;
236 bool m_vpnConcentratorIdHasBeenSet = false;
237 bool m_tagSpecificationsHasBeenSet = false;
238 bool m_preSharedKeyStorageHasBeenSet = false;
239 bool m_dryRunHasBeenSet = false;
240 bool m_optionsHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace EC2
245} // namespace Aws
CreateVpnConnectionRequest & WithCustomerGatewayId(CustomerGatewayIdT &&value)
CreateVpnConnectionRequest & AddTagSpecifications(TagSpecificationsT &&value)
void SetPreSharedKeyStorage(PreSharedKeyStorageT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateVpnConnectionRequest & WithType(TypeT &&value)
CreateVpnConnectionRequest & WithDryRun(bool value)
CreateVpnConnectionRequest & WithTransitGatewayId(TransitGatewayIdT &&value)
AWS_EC2_API CreateVpnConnectionRequest()=default
CreateVpnConnectionRequest & WithOptions(OptionsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateVpnConnectionRequest & WithVpnGatewayId(VpnGatewayIdT &&value)
CreateVpnConnectionRequest & WithVpnConcentratorId(VpnConcentratorIdT &&value)
CreateVpnConnectionRequest & WithPreSharedKeyStorage(PreSharedKeyStorageT &&value)
virtual const char * GetServiceRequestName() const override
const VpnConnectionOptionsSpecification & GetOptions() const
CreateVpnConnectionRequest & WithTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetCustomerGatewayId(CustomerGatewayIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector