AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClientVpnEndpointRequest.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/ConnectionLogOptions.h>
12#include <aws/ec2/model/TransportProtocol.h>
13#include <aws/ec2/model/SelfServicePortal.h>
14#include <aws/ec2/model/ClientConnectOptions.h>
15#include <aws/ec2/model/ClientLoginBannerOptions.h>
16#include <aws/ec2/model/ClientVpnAuthenticationRequest.h>
17#include <aws/ec2/model/TagSpecification.h>
18#include <utility>
19#include <aws/core/utils/UUID.h>
20
21namespace Aws
22{
23namespace EC2
24{
25namespace Model
26{
27
31 {
32 public:
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateClientVpnEndpoint"; }
40
41 AWS_EC2_API Aws::String SerializePayload() const override;
42
43 protected:
44 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
45
46 public:
47
49
57 inline const Aws::String& GetClientCidrBlock() const{ return m_clientCidrBlock; }
58 inline bool ClientCidrBlockHasBeenSet() const { return m_clientCidrBlockHasBeenSet; }
59 inline void SetClientCidrBlock(const Aws::String& value) { m_clientCidrBlockHasBeenSet = true; m_clientCidrBlock = value; }
60 inline void SetClientCidrBlock(Aws::String&& value) { m_clientCidrBlockHasBeenSet = true; m_clientCidrBlock = std::move(value); }
61 inline void SetClientCidrBlock(const char* value) { m_clientCidrBlockHasBeenSet = true; m_clientCidrBlock.assign(value); }
63 inline CreateClientVpnEndpointRequest& WithClientCidrBlock(Aws::String&& value) { SetClientCidrBlock(std::move(value)); return *this;}
64 inline CreateClientVpnEndpointRequest& WithClientCidrBlock(const char* value) { SetClientCidrBlock(value); return *this;}
66
68
73 inline const Aws::String& GetServerCertificateArn() const{ return m_serverCertificateArn; }
74 inline bool ServerCertificateArnHasBeenSet() const { return m_serverCertificateArnHasBeenSet; }
75 inline void SetServerCertificateArn(const Aws::String& value) { m_serverCertificateArnHasBeenSet = true; m_serverCertificateArn = value; }
76 inline void SetServerCertificateArn(Aws::String&& value) { m_serverCertificateArnHasBeenSet = true; m_serverCertificateArn = std::move(value); }
77 inline void SetServerCertificateArn(const char* value) { m_serverCertificateArnHasBeenSet = true; m_serverCertificateArn.assign(value); }
80 inline CreateClientVpnEndpointRequest& WithServerCertificateArn(const char* value) { SetServerCertificateArn(value); return *this;}
82
84
88 inline const Aws::Vector<ClientVpnAuthenticationRequest>& GetAuthenticationOptions() const{ return m_authenticationOptions; }
89 inline bool AuthenticationOptionsHasBeenSet() const { return m_authenticationOptionsHasBeenSet; }
90 inline void SetAuthenticationOptions(const Aws::Vector<ClientVpnAuthenticationRequest>& value) { m_authenticationOptionsHasBeenSet = true; m_authenticationOptions = value; }
91 inline void SetAuthenticationOptions(Aws::Vector<ClientVpnAuthenticationRequest>&& value) { m_authenticationOptionsHasBeenSet = true; m_authenticationOptions = std::move(value); }
94 inline CreateClientVpnEndpointRequest& AddAuthenticationOptions(const ClientVpnAuthenticationRequest& value) { m_authenticationOptionsHasBeenSet = true; m_authenticationOptions.push_back(value); return *this; }
95 inline CreateClientVpnEndpointRequest& AddAuthenticationOptions(ClientVpnAuthenticationRequest&& value) { m_authenticationOptionsHasBeenSet = true; m_authenticationOptions.push_back(std::move(value)); return *this; }
97
99
107 inline const ConnectionLogOptions& GetConnectionLogOptions() const{ return m_connectionLogOptions; }
108 inline bool ConnectionLogOptionsHasBeenSet() const { return m_connectionLogOptionsHasBeenSet; }
109 inline void SetConnectionLogOptions(const ConnectionLogOptions& value) { m_connectionLogOptionsHasBeenSet = true; m_connectionLogOptions = value; }
110 inline void SetConnectionLogOptions(ConnectionLogOptions&& value) { m_connectionLogOptionsHasBeenSet = true; m_connectionLogOptions = std::move(value); }
114
116
121 inline const Aws::Vector<Aws::String>& GetDnsServers() const{ return m_dnsServers; }
122 inline bool DnsServersHasBeenSet() const { return m_dnsServersHasBeenSet; }
123 inline void SetDnsServers(const Aws::Vector<Aws::String>& value) { m_dnsServersHasBeenSet = true; m_dnsServers = value; }
124 inline void SetDnsServers(Aws::Vector<Aws::String>&& value) { m_dnsServersHasBeenSet = true; m_dnsServers = std::move(value); }
126 inline CreateClientVpnEndpointRequest& WithDnsServers(Aws::Vector<Aws::String>&& value) { SetDnsServers(std::move(value)); return *this;}
127 inline CreateClientVpnEndpointRequest& AddDnsServers(const Aws::String& value) { m_dnsServersHasBeenSet = true; m_dnsServers.push_back(value); return *this; }
128 inline CreateClientVpnEndpointRequest& AddDnsServers(Aws::String&& value) { m_dnsServersHasBeenSet = true; m_dnsServers.push_back(std::move(value)); return *this; }
129 inline CreateClientVpnEndpointRequest& AddDnsServers(const char* value) { m_dnsServersHasBeenSet = true; m_dnsServers.push_back(value); return *this; }
131
133
137 inline const TransportProtocol& GetTransportProtocol() const{ return m_transportProtocol; }
138 inline bool TransportProtocolHasBeenSet() const { return m_transportProtocolHasBeenSet; }
139 inline void SetTransportProtocol(const TransportProtocol& value) { m_transportProtocolHasBeenSet = true; m_transportProtocol = value; }
140 inline void SetTransportProtocol(TransportProtocol&& value) { m_transportProtocolHasBeenSet = true; m_transportProtocol = std::move(value); }
144
146
151 inline int GetVpnPort() const{ return m_vpnPort; }
152 inline bool VpnPortHasBeenSet() const { return m_vpnPortHasBeenSet; }
153 inline void SetVpnPort(int value) { m_vpnPortHasBeenSet = true; m_vpnPort = value; }
154 inline CreateClientVpnEndpointRequest& WithVpnPort(int value) { SetVpnPort(value); return *this;}
156
158
161 inline const Aws::String& GetDescription() const{ return m_description; }
162 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
163 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
164 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
165 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
166 inline CreateClientVpnEndpointRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
167 inline CreateClientVpnEndpointRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
168 inline CreateClientVpnEndpointRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
170
172
179 inline bool GetSplitTunnel() const{ return m_splitTunnel; }
180 inline bool SplitTunnelHasBeenSet() const { return m_splitTunnelHasBeenSet; }
181 inline void SetSplitTunnel(bool value) { m_splitTunnelHasBeenSet = true; m_splitTunnel = value; }
182 inline CreateClientVpnEndpointRequest& WithSplitTunnel(bool value) { SetSplitTunnel(value); return *this;}
184
186
192 inline bool GetDryRun() const{ return m_dryRun; }
193 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
194 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
195 inline CreateClientVpnEndpointRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
197
199
205 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
206 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
207 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
208 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
209 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
210 inline CreateClientVpnEndpointRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
211 inline CreateClientVpnEndpointRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
212 inline CreateClientVpnEndpointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
214
216
219 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
220 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
221 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
222 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
225 inline CreateClientVpnEndpointRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
226 inline CreateClientVpnEndpointRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
228
230
234 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
235 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
236 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
237 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
240 inline CreateClientVpnEndpointRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
241 inline CreateClientVpnEndpointRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
242 inline CreateClientVpnEndpointRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
244
246
251 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
252 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
253 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
254 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
255 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
256 inline CreateClientVpnEndpointRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
257 inline CreateClientVpnEndpointRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
258 inline CreateClientVpnEndpointRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
260
262
266 inline const SelfServicePortal& GetSelfServicePortal() const{ return m_selfServicePortal; }
267 inline bool SelfServicePortalHasBeenSet() const { return m_selfServicePortalHasBeenSet; }
268 inline void SetSelfServicePortal(const SelfServicePortal& value) { m_selfServicePortalHasBeenSet = true; m_selfServicePortal = value; }
269 inline void SetSelfServicePortal(SelfServicePortal&& value) { m_selfServicePortalHasBeenSet = true; m_selfServicePortal = std::move(value); }
273
275
279 inline const ClientConnectOptions& GetClientConnectOptions() const{ return m_clientConnectOptions; }
280 inline bool ClientConnectOptionsHasBeenSet() const { return m_clientConnectOptionsHasBeenSet; }
281 inline void SetClientConnectOptions(const ClientConnectOptions& value) { m_clientConnectOptionsHasBeenSet = true; m_clientConnectOptions = value; }
282 inline void SetClientConnectOptions(ClientConnectOptions&& value) { m_clientConnectOptionsHasBeenSet = true; m_clientConnectOptions = std::move(value); }
286
288
292 inline int GetSessionTimeoutHours() const{ return m_sessionTimeoutHours; }
293 inline bool SessionTimeoutHoursHasBeenSet() const { return m_sessionTimeoutHoursHasBeenSet; }
294 inline void SetSessionTimeoutHours(int value) { m_sessionTimeoutHoursHasBeenSet = true; m_sessionTimeoutHours = value; }
297
299
303 inline const ClientLoginBannerOptions& GetClientLoginBannerOptions() const{ return m_clientLoginBannerOptions; }
304 inline bool ClientLoginBannerOptionsHasBeenSet() const { return m_clientLoginBannerOptionsHasBeenSet; }
305 inline void SetClientLoginBannerOptions(const ClientLoginBannerOptions& value) { m_clientLoginBannerOptionsHasBeenSet = true; m_clientLoginBannerOptions = value; }
306 inline void SetClientLoginBannerOptions(ClientLoginBannerOptions&& value) { m_clientLoginBannerOptionsHasBeenSet = true; m_clientLoginBannerOptions = std::move(value); }
310 private:
311
312 Aws::String m_clientCidrBlock;
313 bool m_clientCidrBlockHasBeenSet = false;
314
315 Aws::String m_serverCertificateArn;
316 bool m_serverCertificateArnHasBeenSet = false;
317
318 Aws::Vector<ClientVpnAuthenticationRequest> m_authenticationOptions;
319 bool m_authenticationOptionsHasBeenSet = false;
320
321 ConnectionLogOptions m_connectionLogOptions;
322 bool m_connectionLogOptionsHasBeenSet = false;
323
324 Aws::Vector<Aws::String> m_dnsServers;
325 bool m_dnsServersHasBeenSet = false;
326
327 TransportProtocol m_transportProtocol;
328 bool m_transportProtocolHasBeenSet = false;
329
330 int m_vpnPort;
331 bool m_vpnPortHasBeenSet = false;
332
333 Aws::String m_description;
334 bool m_descriptionHasBeenSet = false;
335
336 bool m_splitTunnel;
337 bool m_splitTunnelHasBeenSet = false;
338
339 bool m_dryRun;
340 bool m_dryRunHasBeenSet = false;
341
342 Aws::String m_clientToken;
343 bool m_clientTokenHasBeenSet = false;
344
345 Aws::Vector<TagSpecification> m_tagSpecifications;
346 bool m_tagSpecificationsHasBeenSet = false;
347
348 Aws::Vector<Aws::String> m_securityGroupIds;
349 bool m_securityGroupIdsHasBeenSet = false;
350
351 Aws::String m_vpcId;
352 bool m_vpcIdHasBeenSet = false;
353
354 SelfServicePortal m_selfServicePortal;
355 bool m_selfServicePortalHasBeenSet = false;
356
357 ClientConnectOptions m_clientConnectOptions;
358 bool m_clientConnectOptionsHasBeenSet = false;
359
360 int m_sessionTimeoutHours;
361 bool m_sessionTimeoutHoursHasBeenSet = false;
362
363 ClientLoginBannerOptions m_clientLoginBannerOptions;
364 bool m_clientLoginBannerOptionsHasBeenSet = false;
365 };
366
367} // namespace Model
368} // namespace EC2
369} // namespace Aws
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateClientVpnEndpointRequest & WithDescription(const char *value)
const Aws::Vector< Aws::String > & GetDnsServers() const
CreateClientVpnEndpointRequest & WithVpnPort(int value)
CreateClientVpnEndpointRequest & WithClientCidrBlock(Aws::String &&value)
CreateClientVpnEndpointRequest & WithClientLoginBannerOptions(const ClientLoginBannerOptions &value)
CreateClientVpnEndpointRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateClientVpnEndpointRequest & AddDnsServers(const char *value)
void SetClientLoginBannerOptions(ClientLoginBannerOptions &&value)
CreateClientVpnEndpointRequest & WithClientToken(const char *value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateClientVpnEndpointRequest & WithSelfServicePortal(const SelfServicePortal &value)
CreateClientVpnEndpointRequest & WithServerCertificateArn(const char *value)
CreateClientVpnEndpointRequest & AddSecurityGroupIds(const char *value)
CreateClientVpnEndpointRequest & WithDryRun(bool value)
CreateClientVpnEndpointRequest & WithClientToken(const Aws::String &value)
CreateClientVpnEndpointRequest & AddAuthenticationOptions(ClientVpnAuthenticationRequest &&value)
void SetClientLoginBannerOptions(const ClientLoginBannerOptions &value)
CreateClientVpnEndpointRequest & WithDescription(const Aws::String &value)
CreateClientVpnEndpointRequest & WithConnectionLogOptions(ConnectionLogOptions &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
CreateClientVpnEndpointRequest & WithSelfServicePortal(SelfServicePortal &&value)
CreateClientVpnEndpointRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateClientVpnEndpointRequest & AddDnsServers(const Aws::String &value)
void SetDnsServers(const Aws::Vector< Aws::String > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const ClientLoginBannerOptions & GetClientLoginBannerOptions() const
CreateClientVpnEndpointRequest & WithConnectionLogOptions(const ConnectionLogOptions &value)
CreateClientVpnEndpointRequest & WithDescription(Aws::String &&value)
CreateClientVpnEndpointRequest & AddTagSpecifications(const TagSpecification &value)
CreateClientVpnEndpointRequest & WithClientConnectOptions(const ClientConnectOptions &value)
CreateClientVpnEndpointRequest & AddDnsServers(Aws::String &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateClientVpnEndpointRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateClientVpnEndpointRequest & WithAuthenticationOptions(const Aws::Vector< ClientVpnAuthenticationRequest > &value)
void SetAuthenticationOptions(const Aws::Vector< ClientVpnAuthenticationRequest > &value)
CreateClientVpnEndpointRequest & WithClientConnectOptions(ClientConnectOptions &&value)
void SetClientConnectOptions(const ClientConnectOptions &value)
CreateClientVpnEndpointRequest & WithSessionTimeoutHours(int value)
CreateClientVpnEndpointRequest & WithClientCidrBlock(const Aws::String &value)
const Aws::Vector< ClientVpnAuthenticationRequest > & GetAuthenticationOptions() const
AWS_EC2_API Aws::String SerializePayload() const override
CreateClientVpnEndpointRequest & AddSecurityGroupIds(const Aws::String &value)
CreateClientVpnEndpointRequest & WithTransportProtocol(TransportProtocol &&value)
CreateClientVpnEndpointRequest & WithVpcId(Aws::String &&value)
CreateClientVpnEndpointRequest & WithSplitTunnel(bool value)
CreateClientVpnEndpointRequest & WithDnsServers(const Aws::Vector< Aws::String > &value)
CreateClientVpnEndpointRequest & WithServerCertificateArn(Aws::String &&value)
CreateClientVpnEndpointRequest & AddTagSpecifications(TagSpecification &&value)
CreateClientVpnEndpointRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateClientVpnEndpointRequest & WithVpcId(const char *value)
virtual const char * GetServiceRequestName() const override
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetAuthenticationOptions(Aws::Vector< ClientVpnAuthenticationRequest > &&value)
CreateClientVpnEndpointRequest & AddSecurityGroupIds(Aws::String &&value)
CreateClientVpnEndpointRequest & WithClientCidrBlock(const char *value)
CreateClientVpnEndpointRequest & WithVpcId(const Aws::String &value)
CreateClientVpnEndpointRequest & WithClientToken(Aws::String &&value)
CreateClientVpnEndpointRequest & WithClientLoginBannerOptions(ClientLoginBannerOptions &&value)
CreateClientVpnEndpointRequest & WithServerCertificateArn(const Aws::String &value)
CreateClientVpnEndpointRequest & WithDnsServers(Aws::Vector< Aws::String > &&value)
CreateClientVpnEndpointRequest & AddAuthenticationOptions(const ClientVpnAuthenticationRequest &value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetConnectionLogOptions(const ConnectionLogOptions &value)
CreateClientVpnEndpointRequest & WithAuthenticationOptions(Aws::Vector< ClientVpnAuthenticationRequest > &&value)
CreateClientVpnEndpointRequest & WithTransportProtocol(const TransportProtocol &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector