AWS SDK for C++

AWS SDK for C++ Version 1.11.923

Loading...
Searching...
No Matches
ModifyClientVpnEndpointRequest.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/ClientConnectOptions.h>
12#include <aws/ec2/model/ClientLoginBannerOptions.h>
13#include <aws/ec2/model/ClientRouteEnforcementOptions.h>
14#include <aws/ec2/model/ConnectionLogOptions.h>
15#include <aws/ec2/model/DevicePostureOptions.h>
16#include <aws/ec2/model/DnsServersOptionsModifyStructure.h>
17#include <aws/ec2/model/SelfServicePortal.h>
18#include <aws/ec2/model/TransitGatewayConfigurationInputStructure.h>
19
20#include <utility>
21
22namespace Aws {
23namespace EC2 {
24namespace Model {
25
29 public:
30 AWS_EC2_API ModifyClientVpnEndpointRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ModifyClientVpnEndpoint"; }
37
38 AWS_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
42
43 public:
45
48 inline const Aws::String& GetClientVpnEndpointId() const { return m_clientVpnEndpointId; }
49 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
50 template <typename ClientVpnEndpointIdT = Aws::String>
51 void SetClientVpnEndpointId(ClientVpnEndpointIdT&& value) {
52 m_clientVpnEndpointIdHasBeenSet = true;
53 m_clientVpnEndpointId = std::forward<ClientVpnEndpointIdT>(value);
54 }
55 template <typename ClientVpnEndpointIdT = Aws::String>
57 SetClientVpnEndpointId(std::forward<ClientVpnEndpointIdT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetServerCertificateArn() const { return m_serverCertificateArn; }
68 inline bool ServerCertificateArnHasBeenSet() const { return m_serverCertificateArnHasBeenSet; }
69 template <typename ServerCertificateArnT = Aws::String>
70 void SetServerCertificateArn(ServerCertificateArnT&& value) {
71 m_serverCertificateArnHasBeenSet = true;
72 m_serverCertificateArn = std::forward<ServerCertificateArnT>(value);
73 }
74 template <typename ServerCertificateArnT = Aws::String>
76 SetServerCertificateArn(std::forward<ServerCertificateArnT>(value));
77 return *this;
78 }
80
82
90 inline const ConnectionLogOptions& GetConnectionLogOptions() const { return m_connectionLogOptions; }
91 inline bool ConnectionLogOptionsHasBeenSet() const { return m_connectionLogOptionsHasBeenSet; }
92 template <typename ConnectionLogOptionsT = ConnectionLogOptions>
93 void SetConnectionLogOptions(ConnectionLogOptionsT&& value) {
94 m_connectionLogOptionsHasBeenSet = true;
95 m_connectionLogOptions = std::forward<ConnectionLogOptionsT>(value);
96 }
97 template <typename ConnectionLogOptionsT = ConnectionLogOptions>
99 SetConnectionLogOptions(std::forward<ConnectionLogOptionsT>(value));
100 return *this;
101 }
103
105
109 inline const DnsServersOptionsModifyStructure& GetDnsServers() const { return m_dnsServers; }
110 inline bool DnsServersHasBeenSet() const { return m_dnsServersHasBeenSet; }
111 template <typename DnsServersT = DnsServersOptionsModifyStructure>
112 void SetDnsServers(DnsServersT&& value) {
113 m_dnsServersHasBeenSet = true;
114 m_dnsServers = std::forward<DnsServersT>(value);
115 }
116 template <typename DnsServersT = DnsServersOptionsModifyStructure>
118 SetDnsServers(std::forward<DnsServersT>(value));
119 return *this;
120 }
122
124
129 inline int GetVpnPort() const { return m_vpnPort; }
130 inline bool VpnPortHasBeenSet() const { return m_vpnPortHasBeenSet; }
131 inline void SetVpnPort(int value) {
132 m_vpnPortHasBeenSet = true;
133 m_vpnPort = value;
134 }
136 SetVpnPort(value);
137 return *this;
138 }
140
142
145 inline const Aws::String& GetDescription() const { return m_description; }
146 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
147 template <typename DescriptionT = Aws::String>
148 void SetDescription(DescriptionT&& value) {
149 m_descriptionHasBeenSet = true;
150 m_description = std::forward<DescriptionT>(value);
151 }
152 template <typename DescriptionT = Aws::String>
154 SetDescription(std::forward<DescriptionT>(value));
155 return *this;
156 }
158
160
166 inline bool GetSplitTunnel() const { return m_splitTunnel; }
167 inline bool SplitTunnelHasBeenSet() const { return m_splitTunnelHasBeenSet; }
168 inline void SetSplitTunnel(bool value) {
169 m_splitTunnelHasBeenSet = true;
170 m_splitTunnel = value;
171 }
173 SetSplitTunnel(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 Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
202 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
203 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
204 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
205 m_securityGroupIdsHasBeenSet = true;
206 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
207 }
208 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
210 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
211 return *this;
212 }
213 template <typename SecurityGroupIdsT = Aws::String>
215 m_securityGroupIdsHasBeenSet = true;
216 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::String& GetVpcId() const { return m_vpcId; }
226 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
227 template <typename VpcIdT = Aws::String>
228 void SetVpcId(VpcIdT&& value) {
229 m_vpcIdHasBeenSet = true;
230 m_vpcId = std::forward<VpcIdT>(value);
231 }
232 template <typename VpcIdT = Aws::String>
234 SetVpcId(std::forward<VpcIdT>(value));
235 return *this;
236 }
238
240
244 inline SelfServicePortal GetSelfServicePortal() const { return m_selfServicePortal; }
245 inline bool SelfServicePortalHasBeenSet() const { return m_selfServicePortalHasBeenSet; }
247 m_selfServicePortalHasBeenSet = true;
248 m_selfServicePortal = value;
249 }
252 return *this;
253 }
255
257
261 inline const ClientConnectOptions& GetClientConnectOptions() const { return m_clientConnectOptions; }
262 inline bool ClientConnectOptionsHasBeenSet() const { return m_clientConnectOptionsHasBeenSet; }
263 template <typename ClientConnectOptionsT = ClientConnectOptions>
264 void SetClientConnectOptions(ClientConnectOptionsT&& value) {
265 m_clientConnectOptionsHasBeenSet = true;
266 m_clientConnectOptions = std::forward<ClientConnectOptionsT>(value);
267 }
268 template <typename ClientConnectOptionsT = ClientConnectOptions>
270 SetClientConnectOptions(std::forward<ClientConnectOptionsT>(value));
271 return *this;
272 }
274
276
280 inline int GetSessionTimeoutHours() const { return m_sessionTimeoutHours; }
281 inline bool SessionTimeoutHoursHasBeenSet() const { return m_sessionTimeoutHoursHasBeenSet; }
282 inline void SetSessionTimeoutHours(int value) {
283 m_sessionTimeoutHoursHasBeenSet = true;
284 m_sessionTimeoutHours = value;
285 }
288 return *this;
289 }
291
293
297 inline const ClientLoginBannerOptions& GetClientLoginBannerOptions() const { return m_clientLoginBannerOptions; }
298 inline bool ClientLoginBannerOptionsHasBeenSet() const { return m_clientLoginBannerOptionsHasBeenSet; }
299 template <typename ClientLoginBannerOptionsT = ClientLoginBannerOptions>
300 void SetClientLoginBannerOptions(ClientLoginBannerOptionsT&& value) {
301 m_clientLoginBannerOptionsHasBeenSet = true;
302 m_clientLoginBannerOptions = std::forward<ClientLoginBannerOptionsT>(value);
303 }
304 template <typename ClientLoginBannerOptionsT = ClientLoginBannerOptions>
306 SetClientLoginBannerOptions(std::forward<ClientLoginBannerOptionsT>(value));
307 return *this;
308 }
310
312
323 inline const ClientRouteEnforcementOptions& GetClientRouteEnforcementOptions() const { return m_clientRouteEnforcementOptions; }
324 inline bool ClientRouteEnforcementOptionsHasBeenSet() const { return m_clientRouteEnforcementOptionsHasBeenSet; }
325 template <typename ClientRouteEnforcementOptionsT = ClientRouteEnforcementOptions>
326 void SetClientRouteEnforcementOptions(ClientRouteEnforcementOptionsT&& value) {
327 m_clientRouteEnforcementOptionsHasBeenSet = true;
328 m_clientRouteEnforcementOptions = std::forward<ClientRouteEnforcementOptionsT>(value);
329 }
330 template <typename ClientRouteEnforcementOptionsT = ClientRouteEnforcementOptions>
331 ModifyClientVpnEndpointRequest& WithClientRouteEnforcementOptions(ClientRouteEnforcementOptionsT&& value) {
332 SetClientRouteEnforcementOptions(std::forward<ClientRouteEnforcementOptionsT>(value));
333 return *this;
334 }
336
338
345 inline bool GetDisconnectOnSessionTimeout() const { return m_disconnectOnSessionTimeout; }
346 inline bool DisconnectOnSessionTimeoutHasBeenSet() const { return m_disconnectOnSessionTimeoutHasBeenSet; }
347 inline void SetDisconnectOnSessionTimeout(bool value) {
348 m_disconnectOnSessionTimeoutHasBeenSet = true;
349 m_disconnectOnSessionTimeout = value;
350 }
353 return *this;
354 }
356
358
362 inline const TransitGatewayConfigurationInputStructure& GetTransitGatewayConfiguration() const { return m_transitGatewayConfiguration; }
363 inline bool TransitGatewayConfigurationHasBeenSet() const { return m_transitGatewayConfigurationHasBeenSet; }
364 template <typename TransitGatewayConfigurationT = TransitGatewayConfigurationInputStructure>
365 void SetTransitGatewayConfiguration(TransitGatewayConfigurationT&& value) {
366 m_transitGatewayConfigurationHasBeenSet = true;
367 m_transitGatewayConfiguration = std::forward<TransitGatewayConfigurationT>(value);
368 }
369 template <typename TransitGatewayConfigurationT = TransitGatewayConfigurationInputStructure>
371 SetTransitGatewayConfiguration(std::forward<TransitGatewayConfigurationT>(value));
372 return *this;
373 }
375
377
383 inline const DevicePostureOptions& GetDevicePostureOptions() const { return m_devicePostureOptions; }
384 inline bool DevicePostureOptionsHasBeenSet() const { return m_devicePostureOptionsHasBeenSet; }
385 template <typename DevicePostureOptionsT = DevicePostureOptions>
386 void SetDevicePostureOptions(DevicePostureOptionsT&& value) {
387 m_devicePostureOptionsHasBeenSet = true;
388 m_devicePostureOptions = std::forward<DevicePostureOptionsT>(value);
389 }
390 template <typename DevicePostureOptionsT = DevicePostureOptions>
392 SetDevicePostureOptions(std::forward<DevicePostureOptionsT>(value));
393 return *this;
394 }
396 private:
397 Aws::String m_clientVpnEndpointId;
398
399 Aws::String m_serverCertificateArn;
400
401 ConnectionLogOptions m_connectionLogOptions;
402
404
405 int m_vpnPort{0};
406
407 Aws::String m_description;
408
409 bool m_splitTunnel{false};
410
411 bool m_dryRun{false};
412
413 Aws::Vector<Aws::String> m_securityGroupIds;
414
415 Aws::String m_vpcId;
416
418
419 ClientConnectOptions m_clientConnectOptions;
420
421 int m_sessionTimeoutHours{0};
422
423 ClientLoginBannerOptions m_clientLoginBannerOptions;
424
425 ClientRouteEnforcementOptions m_clientRouteEnforcementOptions;
426
427 bool m_disconnectOnSessionTimeout{false};
428
429 TransitGatewayConfigurationInputStructure m_transitGatewayConfiguration;
430
431 DevicePostureOptions m_devicePostureOptions;
432 bool m_clientVpnEndpointIdHasBeenSet = false;
433 bool m_serverCertificateArnHasBeenSet = false;
434 bool m_connectionLogOptionsHasBeenSet = false;
435 bool m_dnsServersHasBeenSet = false;
436 bool m_vpnPortHasBeenSet = false;
437 bool m_descriptionHasBeenSet = false;
438 bool m_splitTunnelHasBeenSet = false;
439 bool m_dryRunHasBeenSet = false;
440 bool m_securityGroupIdsHasBeenSet = false;
441 bool m_vpcIdHasBeenSet = false;
442 bool m_selfServicePortalHasBeenSet = false;
443 bool m_clientConnectOptionsHasBeenSet = false;
444 bool m_sessionTimeoutHoursHasBeenSet = false;
445 bool m_clientLoginBannerOptionsHasBeenSet = false;
446 bool m_clientRouteEnforcementOptionsHasBeenSet = false;
447 bool m_disconnectOnSessionTimeoutHasBeenSet = false;
448 bool m_transitGatewayConfigurationHasBeenSet = false;
449 bool m_devicePostureOptionsHasBeenSet = false;
450};
451
452} // namespace Model
453} // namespace EC2
454} // namespace Aws
ModifyClientVpnEndpointRequest & WithVpcId(VpcIdT &&value)
void SetClientLoginBannerOptions(ClientLoginBannerOptionsT &&value)
ModifyClientVpnEndpointRequest & WithDnsServers(DnsServersT &&value)
ModifyClientVpnEndpointRequest & WithClientConnectOptions(ClientConnectOptionsT &&value)
const DnsServersOptionsModifyStructure & GetDnsServers() const
const ClientLoginBannerOptions & GetClientLoginBannerOptions() const
const TransitGatewayConfigurationInputStructure & GetTransitGatewayConfiguration() const
ModifyClientVpnEndpointRequest & WithClientVpnEndpointId(ClientVpnEndpointIdT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
ModifyClientVpnEndpointRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
const ClientRouteEnforcementOptions & GetClientRouteEnforcementOptions() const
ModifyClientVpnEndpointRequest & WithClientLoginBannerOptions(ClientLoginBannerOptionsT &&value)
void SetClientRouteEnforcementOptions(ClientRouteEnforcementOptionsT &&value)
ModifyClientVpnEndpointRequest & WithSplitTunnel(bool value)
virtual const char * GetServiceRequestName() const override
ModifyClientVpnEndpointRequest & WithTransitGatewayConfiguration(TransitGatewayConfigurationT &&value)
ModifyClientVpnEndpointRequest & WithDryRun(bool value)
ModifyClientVpnEndpointRequest & WithConnectionLogOptions(ConnectionLogOptionsT &&value)
ModifyClientVpnEndpointRequest & WithSelfServicePortal(SelfServicePortal value)
ModifyClientVpnEndpointRequest & WithDisconnectOnSessionTimeout(bool value)
ModifyClientVpnEndpointRequest & WithClientRouteEnforcementOptions(ClientRouteEnforcementOptionsT &&value)
ModifyClientVpnEndpointRequest & WithDevicePostureOptions(DevicePostureOptionsT &&value)
void SetTransitGatewayConfiguration(TransitGatewayConfigurationT &&value)
ModifyClientVpnEndpointRequest & WithVpnPort(int value)
ModifyClientVpnEndpointRequest & WithDescription(DescriptionT &&value)
ModifyClientVpnEndpointRequest & WithSessionTimeoutHours(int value)
ModifyClientVpnEndpointRequest & WithServerCertificateArn(ServerCertificateArnT &&value)
ModifyClientVpnEndpointRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector