795 lines
37 KiB
C++
795 lines
37 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ec2/EC2_EXPORTS.h>
|
|
#include <aws/ec2/EC2Request.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/ec2/model/ConnectionLogOptions.h>
|
|
#include <aws/ec2/model/TransportProtocol.h>
|
|
#include <aws/ec2/model/ClientVpnAuthenticationRequest.h>
|
|
#include <aws/ec2/model/TagSpecification.h>
|
|
#include <utility>
|
|
#include <aws/core/utils/UUID.h>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace EC2
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_EC2_API CreateClientVpnEndpointRequest : public EC2Request
|
|
{
|
|
public:
|
|
CreateClientVpnEndpointRequest();
|
|
|
|
// Service request name is the Operation name which will send this request out,
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|
// so we can not get operation's name from response.
|
|
inline virtual const char* GetServiceRequestName() const override { return "CreateClientVpnEndpoint"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
protected:
|
|
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
|
|
|
|
public:
|
|
|
|
/**
|
|
* <p>The IPv4 address range, in CIDR notation, from which to assign client IP
|
|
* addresses. The address range cannot overlap with the local CIDR of the VPC in
|
|
* which the associated subnet is located, or the routes that you add manually. The
|
|
* address range cannot be changed after the Client VPN endpoint has been created.
|
|
* The CIDR block should be /22 or greater.</p>
|
|
*/
|
|
inline const Aws::String& GetClientCidrBlock() const{ return m_clientCidrBlock; }
|
|
|
|
/**
|
|
* <p>The IPv4 address range, in CIDR notation, from which to assign client IP
|
|
* addresses. The address range cannot overlap with the local CIDR of the VPC in
|
|
* which the associated subnet is located, or the routes that you add manually. The
|
|
* address range cannot be changed after the Client VPN endpoint has been created.
|
|
* The CIDR block should be /22 or greater.</p>
|
|
*/
|
|
inline bool ClientCidrBlockHasBeenSet() const { return m_clientCidrBlockHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The IPv4 address range, in CIDR notation, from which to assign client IP
|
|
* addresses. The address range cannot overlap with the local CIDR of the VPC in
|
|
* which the associated subnet is located, or the routes that you add manually. The
|
|
* address range cannot be changed after the Client VPN endpoint has been created.
|
|
* The CIDR block should be /22 or greater.</p>
|
|
*/
|
|
inline void SetClientCidrBlock(const Aws::String& value) { m_clientCidrBlockHasBeenSet = true; m_clientCidrBlock = value; }
|
|
|
|
/**
|
|
* <p>The IPv4 address range, in CIDR notation, from which to assign client IP
|
|
* addresses. The address range cannot overlap with the local CIDR of the VPC in
|
|
* which the associated subnet is located, or the routes that you add manually. The
|
|
* address range cannot be changed after the Client VPN endpoint has been created.
|
|
* The CIDR block should be /22 or greater.</p>
|
|
*/
|
|
inline void SetClientCidrBlock(Aws::String&& value) { m_clientCidrBlockHasBeenSet = true; m_clientCidrBlock = std::move(value); }
|
|
|
|
/**
|
|
* <p>The IPv4 address range, in CIDR notation, from which to assign client IP
|
|
* addresses. The address range cannot overlap with the local CIDR of the VPC in
|
|
* which the associated subnet is located, or the routes that you add manually. The
|
|
* address range cannot be changed after the Client VPN endpoint has been created.
|
|
* The CIDR block should be /22 or greater.</p>
|
|
*/
|
|
inline void SetClientCidrBlock(const char* value) { m_clientCidrBlockHasBeenSet = true; m_clientCidrBlock.assign(value); }
|
|
|
|
/**
|
|
* <p>The IPv4 address range, in CIDR notation, from which to assign client IP
|
|
* addresses. The address range cannot overlap with the local CIDR of the VPC in
|
|
* which the associated subnet is located, or the routes that you add manually. The
|
|
* address range cannot be changed after the Client VPN endpoint has been created.
|
|
* The CIDR block should be /22 or greater.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithClientCidrBlock(const Aws::String& value) { SetClientCidrBlock(value); return *this;}
|
|
|
|
/**
|
|
* <p>The IPv4 address range, in CIDR notation, from which to assign client IP
|
|
* addresses. The address range cannot overlap with the local CIDR of the VPC in
|
|
* which the associated subnet is located, or the routes that you add manually. The
|
|
* address range cannot be changed after the Client VPN endpoint has been created.
|
|
* The CIDR block should be /22 or greater.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithClientCidrBlock(Aws::String&& value) { SetClientCidrBlock(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The IPv4 address range, in CIDR notation, from which to assign client IP
|
|
* addresses. The address range cannot overlap with the local CIDR of the VPC in
|
|
* which the associated subnet is located, or the routes that you add manually. The
|
|
* address range cannot be changed after the Client VPN endpoint has been created.
|
|
* The CIDR block should be /22 or greater.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithClientCidrBlock(const char* value) { SetClientCidrBlock(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ARN of the server certificate. For more information, see the <a
|
|
* href="https://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager
|
|
* User Guide</a>.</p>
|
|
*/
|
|
inline const Aws::String& GetServerCertificateArn() const{ return m_serverCertificateArn; }
|
|
|
|
/**
|
|
* <p>The ARN of the server certificate. For more information, see the <a
|
|
* href="https://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager
|
|
* User Guide</a>.</p>
|
|
*/
|
|
inline bool ServerCertificateArnHasBeenSet() const { return m_serverCertificateArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of the server certificate. For more information, see the <a
|
|
* href="https://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager
|
|
* User Guide</a>.</p>
|
|
*/
|
|
inline void SetServerCertificateArn(const Aws::String& value) { m_serverCertificateArnHasBeenSet = true; m_serverCertificateArn = value; }
|
|
|
|
/**
|
|
* <p>The ARN of the server certificate. For more information, see the <a
|
|
* href="https://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager
|
|
* User Guide</a>.</p>
|
|
*/
|
|
inline void SetServerCertificateArn(Aws::String&& value) { m_serverCertificateArnHasBeenSet = true; m_serverCertificateArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the server certificate. For more information, see the <a
|
|
* href="https://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager
|
|
* User Guide</a>.</p>
|
|
*/
|
|
inline void SetServerCertificateArn(const char* value) { m_serverCertificateArnHasBeenSet = true; m_serverCertificateArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the server certificate. For more information, see the <a
|
|
* href="https://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager
|
|
* User Guide</a>.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithServerCertificateArn(const Aws::String& value) { SetServerCertificateArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the server certificate. For more information, see the <a
|
|
* href="https://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager
|
|
* User Guide</a>.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithServerCertificateArn(Aws::String&& value) { SetServerCertificateArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the server certificate. For more information, see the <a
|
|
* href="https://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager
|
|
* User Guide</a>.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithServerCertificateArn(const char* value) { SetServerCertificateArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Information about the authentication method to be used to authenticate
|
|
* clients.</p>
|
|
*/
|
|
inline const Aws::Vector<ClientVpnAuthenticationRequest>& GetAuthenticationOptions() const{ return m_authenticationOptions; }
|
|
|
|
/**
|
|
* <p>Information about the authentication method to be used to authenticate
|
|
* clients.</p>
|
|
*/
|
|
inline bool AuthenticationOptionsHasBeenSet() const { return m_authenticationOptionsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Information about the authentication method to be used to authenticate
|
|
* clients.</p>
|
|
*/
|
|
inline void SetAuthenticationOptions(const Aws::Vector<ClientVpnAuthenticationRequest>& value) { m_authenticationOptionsHasBeenSet = true; m_authenticationOptions = value; }
|
|
|
|
/**
|
|
* <p>Information about the authentication method to be used to authenticate
|
|
* clients.</p>
|
|
*/
|
|
inline void SetAuthenticationOptions(Aws::Vector<ClientVpnAuthenticationRequest>&& value) { m_authenticationOptionsHasBeenSet = true; m_authenticationOptions = std::move(value); }
|
|
|
|
/**
|
|
* <p>Information about the authentication method to be used to authenticate
|
|
* clients.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithAuthenticationOptions(const Aws::Vector<ClientVpnAuthenticationRequest>& value) { SetAuthenticationOptions(value); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the authentication method to be used to authenticate
|
|
* clients.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithAuthenticationOptions(Aws::Vector<ClientVpnAuthenticationRequest>&& value) { SetAuthenticationOptions(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the authentication method to be used to authenticate
|
|
* clients.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& AddAuthenticationOptions(const ClientVpnAuthenticationRequest& value) { m_authenticationOptionsHasBeenSet = true; m_authenticationOptions.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>Information about the authentication method to be used to authenticate
|
|
* clients.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& AddAuthenticationOptions(ClientVpnAuthenticationRequest&& value) { m_authenticationOptionsHasBeenSet = true; m_authenticationOptions.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>Information about the client connection logging options.</p> <p>If you enable
|
|
* client connection logging, data about client connections is sent to a Cloudwatch
|
|
* Logs log stream. The following information is logged:</p> <ul> <li> <p>Client
|
|
* connection requests</p> </li> <li> <p>Client connection results (successful and
|
|
* unsuccessful)</p> </li> <li> <p>Reasons for unsuccessful client connection
|
|
* requests</p> </li> <li> <p>Client connection termination time</p> </li> </ul>
|
|
*/
|
|
inline const ConnectionLogOptions& GetConnectionLogOptions() const{ return m_connectionLogOptions; }
|
|
|
|
/**
|
|
* <p>Information about the client connection logging options.</p> <p>If you enable
|
|
* client connection logging, data about client connections is sent to a Cloudwatch
|
|
* Logs log stream. The following information is logged:</p> <ul> <li> <p>Client
|
|
* connection requests</p> </li> <li> <p>Client connection results (successful and
|
|
* unsuccessful)</p> </li> <li> <p>Reasons for unsuccessful client connection
|
|
* requests</p> </li> <li> <p>Client connection termination time</p> </li> </ul>
|
|
*/
|
|
inline bool ConnectionLogOptionsHasBeenSet() const { return m_connectionLogOptionsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Information about the client connection logging options.</p> <p>If you enable
|
|
* client connection logging, data about client connections is sent to a Cloudwatch
|
|
* Logs log stream. The following information is logged:</p> <ul> <li> <p>Client
|
|
* connection requests</p> </li> <li> <p>Client connection results (successful and
|
|
* unsuccessful)</p> </li> <li> <p>Reasons for unsuccessful client connection
|
|
* requests</p> </li> <li> <p>Client connection termination time</p> </li> </ul>
|
|
*/
|
|
inline void SetConnectionLogOptions(const ConnectionLogOptions& value) { m_connectionLogOptionsHasBeenSet = true; m_connectionLogOptions = value; }
|
|
|
|
/**
|
|
* <p>Information about the client connection logging options.</p> <p>If you enable
|
|
* client connection logging, data about client connections is sent to a Cloudwatch
|
|
* Logs log stream. The following information is logged:</p> <ul> <li> <p>Client
|
|
* connection requests</p> </li> <li> <p>Client connection results (successful and
|
|
* unsuccessful)</p> </li> <li> <p>Reasons for unsuccessful client connection
|
|
* requests</p> </li> <li> <p>Client connection termination time</p> </li> </ul>
|
|
*/
|
|
inline void SetConnectionLogOptions(ConnectionLogOptions&& value) { m_connectionLogOptionsHasBeenSet = true; m_connectionLogOptions = std::move(value); }
|
|
|
|
/**
|
|
* <p>Information about the client connection logging options.</p> <p>If you enable
|
|
* client connection logging, data about client connections is sent to a Cloudwatch
|
|
* Logs log stream. The following information is logged:</p> <ul> <li> <p>Client
|
|
* connection requests</p> </li> <li> <p>Client connection results (successful and
|
|
* unsuccessful)</p> </li> <li> <p>Reasons for unsuccessful client connection
|
|
* requests</p> </li> <li> <p>Client connection termination time</p> </li> </ul>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithConnectionLogOptions(const ConnectionLogOptions& value) { SetConnectionLogOptions(value); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the client connection logging options.</p> <p>If you enable
|
|
* client connection logging, data about client connections is sent to a Cloudwatch
|
|
* Logs log stream. The following information is logged:</p> <ul> <li> <p>Client
|
|
* connection requests</p> </li> <li> <p>Client connection results (successful and
|
|
* unsuccessful)</p> </li> <li> <p>Reasons for unsuccessful client connection
|
|
* requests</p> </li> <li> <p>Client connection termination time</p> </li> </ul>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithConnectionLogOptions(ConnectionLogOptions&& value) { SetConnectionLogOptions(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Information about the DNS servers to be used for DNS resolution. A Client VPN
|
|
* endpoint can have up to two DNS servers. If no DNS server is specified, the DNS
|
|
* address configured on the device is used for the DNS server.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetDnsServers() const{ return m_dnsServers; }
|
|
|
|
/**
|
|
* <p>Information about the DNS servers to be used for DNS resolution. A Client VPN
|
|
* endpoint can have up to two DNS servers. If no DNS server is specified, the DNS
|
|
* address configured on the device is used for the DNS server.</p>
|
|
*/
|
|
inline bool DnsServersHasBeenSet() const { return m_dnsServersHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Information about the DNS servers to be used for DNS resolution. A Client VPN
|
|
* endpoint can have up to two DNS servers. If no DNS server is specified, the DNS
|
|
* address configured on the device is used for the DNS server.</p>
|
|
*/
|
|
inline void SetDnsServers(const Aws::Vector<Aws::String>& value) { m_dnsServersHasBeenSet = true; m_dnsServers = value; }
|
|
|
|
/**
|
|
* <p>Information about the DNS servers to be used for DNS resolution. A Client VPN
|
|
* endpoint can have up to two DNS servers. If no DNS server is specified, the DNS
|
|
* address configured on the device is used for the DNS server.</p>
|
|
*/
|
|
inline void SetDnsServers(Aws::Vector<Aws::String>&& value) { m_dnsServersHasBeenSet = true; m_dnsServers = std::move(value); }
|
|
|
|
/**
|
|
* <p>Information about the DNS servers to be used for DNS resolution. A Client VPN
|
|
* endpoint can have up to two DNS servers. If no DNS server is specified, the DNS
|
|
* address configured on the device is used for the DNS server.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithDnsServers(const Aws::Vector<Aws::String>& value) { SetDnsServers(value); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the DNS servers to be used for DNS resolution. A Client VPN
|
|
* endpoint can have up to two DNS servers. If no DNS server is specified, the DNS
|
|
* address configured on the device is used for the DNS server.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithDnsServers(Aws::Vector<Aws::String>&& value) { SetDnsServers(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the DNS servers to be used for DNS resolution. A Client VPN
|
|
* endpoint can have up to two DNS servers. If no DNS server is specified, the DNS
|
|
* address configured on the device is used for the DNS server.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& AddDnsServers(const Aws::String& value) { m_dnsServersHasBeenSet = true; m_dnsServers.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>Information about the DNS servers to be used for DNS resolution. A Client VPN
|
|
* endpoint can have up to two DNS servers. If no DNS server is specified, the DNS
|
|
* address configured on the device is used for the DNS server.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& AddDnsServers(Aws::String&& value) { m_dnsServersHasBeenSet = true; m_dnsServers.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>Information about the DNS servers to be used for DNS resolution. A Client VPN
|
|
* endpoint can have up to two DNS servers. If no DNS server is specified, the DNS
|
|
* address configured on the device is used for the DNS server.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& AddDnsServers(const char* value) { m_dnsServersHasBeenSet = true; m_dnsServers.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The transport protocol to be used by the VPN session.</p> <p>Default value:
|
|
* <code>udp</code> </p>
|
|
*/
|
|
inline const TransportProtocol& GetTransportProtocol() const{ return m_transportProtocol; }
|
|
|
|
/**
|
|
* <p>The transport protocol to be used by the VPN session.</p> <p>Default value:
|
|
* <code>udp</code> </p>
|
|
*/
|
|
inline bool TransportProtocolHasBeenSet() const { return m_transportProtocolHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The transport protocol to be used by the VPN session.</p> <p>Default value:
|
|
* <code>udp</code> </p>
|
|
*/
|
|
inline void SetTransportProtocol(const TransportProtocol& value) { m_transportProtocolHasBeenSet = true; m_transportProtocol = value; }
|
|
|
|
/**
|
|
* <p>The transport protocol to be used by the VPN session.</p> <p>Default value:
|
|
* <code>udp</code> </p>
|
|
*/
|
|
inline void SetTransportProtocol(TransportProtocol&& value) { m_transportProtocolHasBeenSet = true; m_transportProtocol = std::move(value); }
|
|
|
|
/**
|
|
* <p>The transport protocol to be used by the VPN session.</p> <p>Default value:
|
|
* <code>udp</code> </p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithTransportProtocol(const TransportProtocol& value) { SetTransportProtocol(value); return *this;}
|
|
|
|
/**
|
|
* <p>The transport protocol to be used by the VPN session.</p> <p>Default value:
|
|
* <code>udp</code> </p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithTransportProtocol(TransportProtocol&& value) { SetTransportProtocol(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The port number to assign to the Client VPN endpoint for TCP and UDP
|
|
* traffic.</p> <p>Valid Values: <code>443</code> | <code>1194</code> </p>
|
|
* <p>Default Value: <code>443</code> </p>
|
|
*/
|
|
inline int GetVpnPort() const{ return m_vpnPort; }
|
|
|
|
/**
|
|
* <p>The port number to assign to the Client VPN endpoint for TCP and UDP
|
|
* traffic.</p> <p>Valid Values: <code>443</code> | <code>1194</code> </p>
|
|
* <p>Default Value: <code>443</code> </p>
|
|
*/
|
|
inline bool VpnPortHasBeenSet() const { return m_vpnPortHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The port number to assign to the Client VPN endpoint for TCP and UDP
|
|
* traffic.</p> <p>Valid Values: <code>443</code> | <code>1194</code> </p>
|
|
* <p>Default Value: <code>443</code> </p>
|
|
*/
|
|
inline void SetVpnPort(int value) { m_vpnPortHasBeenSet = true; m_vpnPort = value; }
|
|
|
|
/**
|
|
* <p>The port number to assign to the Client VPN endpoint for TCP and UDP
|
|
* traffic.</p> <p>Valid Values: <code>443</code> | <code>1194</code> </p>
|
|
* <p>Default Value: <code>443</code> </p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithVpnPort(int value) { SetVpnPort(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A brief description of the Client VPN endpoint.</p>
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* <p>A brief description of the Client VPN endpoint.</p>
|
|
*/
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A brief description of the Client VPN endpoint.</p>
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|
|
|
/**
|
|
* <p>A brief description of the Client VPN endpoint.</p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p>A brief description of the Client VPN endpoint.</p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|
|
|
/**
|
|
* <p>A brief description of the Client VPN endpoint.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p>A brief description of the Client VPN endpoint.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A brief description of the Client VPN endpoint.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.</p>
|
|
* <p>By default, split-tunnel on a VPN endpoint is disabled.</p> <p>For
|
|
* information about split-tunnel VPN endpoints, see <a
|
|
* href="https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html">Split-Tunnel
|
|
* AWS Client VPN Endpoint</a> in the <i>AWS Client VPN Administrator
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline bool GetSplitTunnel() const{ return m_splitTunnel; }
|
|
|
|
/**
|
|
* <p>Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.</p>
|
|
* <p>By default, split-tunnel on a VPN endpoint is disabled.</p> <p>For
|
|
* information about split-tunnel VPN endpoints, see <a
|
|
* href="https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html">Split-Tunnel
|
|
* AWS Client VPN Endpoint</a> in the <i>AWS Client VPN Administrator
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline bool SplitTunnelHasBeenSet() const { return m_splitTunnelHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.</p>
|
|
* <p>By default, split-tunnel on a VPN endpoint is disabled.</p> <p>For
|
|
* information about split-tunnel VPN endpoints, see <a
|
|
* href="https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html">Split-Tunnel
|
|
* AWS Client VPN Endpoint</a> in the <i>AWS Client VPN Administrator
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline void SetSplitTunnel(bool value) { m_splitTunnelHasBeenSet = true; m_splitTunnel = value; }
|
|
|
|
/**
|
|
* <p>Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.</p>
|
|
* <p>By default, split-tunnel on a VPN endpoint is disabled.</p> <p>For
|
|
* information about split-tunnel VPN endpoints, see <a
|
|
* href="https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html">Split-Tunnel
|
|
* AWS Client VPN Endpoint</a> in the <i>AWS Client VPN Administrator
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithSplitTunnel(bool value) { SetSplitTunnel(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Checks whether you have the required permissions for the action, without
|
|
* actually making the request, and provides an error response. If you have the
|
|
* required permissions, the error response is <code>DryRunOperation</code>.
|
|
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
|
|
*/
|
|
inline bool GetDryRun() const{ return m_dryRun; }
|
|
|
|
/**
|
|
* <p>Checks whether you have the required permissions for the action, without
|
|
* actually making the request, and provides an error response. If you have the
|
|
* required permissions, the error response is <code>DryRunOperation</code>.
|
|
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
|
|
*/
|
|
inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Checks whether you have the required permissions for the action, without
|
|
* actually making the request, and provides an error response. If you have the
|
|
* required permissions, the error response is <code>DryRunOperation</code>.
|
|
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
|
|
*/
|
|
inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
|
|
|
|
/**
|
|
* <p>Checks whether you have the required permissions for the action, without
|
|
* actually making the request, and provides an error response. If you have the
|
|
* required permissions, the error response is <code>DryRunOperation</code>.
|
|
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|
* of the request. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How
|
|
* to Ensure Idempotency</a>.</p>
|
|
*/
|
|
inline const Aws::String& GetClientToken() const{ return m_clientToken; }
|
|
|
|
/**
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|
* of the request. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How
|
|
* to Ensure Idempotency</a>.</p>
|
|
*/
|
|
inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|
* of the request. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How
|
|
* to Ensure Idempotency</a>.</p>
|
|
*/
|
|
inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
|
|
|
|
/**
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|
* of the request. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How
|
|
* to Ensure Idempotency</a>.</p>
|
|
*/
|
|
inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|
* of the request. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How
|
|
* to Ensure Idempotency</a>.</p>
|
|
*/
|
|
inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
|
|
|
|
/**
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|
* of the request. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How
|
|
* to Ensure Idempotency</a>.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|
* of the request. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How
|
|
* to Ensure Idempotency</a>.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
|
|
* of the request. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How
|
|
* to Ensure Idempotency</a>.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The tags to apply to the Client VPN endpoint during creation.</p>
|
|
*/
|
|
inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
|
|
|
|
/**
|
|
* <p>The tags to apply to the Client VPN endpoint during creation.</p>
|
|
*/
|
|
inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The tags to apply to the Client VPN endpoint during creation.</p>
|
|
*/
|
|
inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
|
|
|
|
/**
|
|
* <p>The tags to apply to the Client VPN endpoint during creation.</p>
|
|
*/
|
|
inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
|
|
|
|
/**
|
|
* <p>The tags to apply to the Client VPN endpoint during creation.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
|
|
|
|
/**
|
|
* <p>The tags to apply to the Client VPN endpoint during creation.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The tags to apply to the Client VPN endpoint during creation.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The tags to apply to the Client VPN endpoint during creation.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The IDs of one or more security groups to apply to the target network. You
|
|
* must also specify the ID of the VPC that contains the security groups.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
|
|
|
|
/**
|
|
* <p>The IDs of one or more security groups to apply to the target network. You
|
|
* must also specify the ID of the VPC that contains the security groups.</p>
|
|
*/
|
|
inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The IDs of one or more security groups to apply to the target network. You
|
|
* must also specify the ID of the VPC that contains the security groups.</p>
|
|
*/
|
|
inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
|
|
|
|
/**
|
|
* <p>The IDs of one or more security groups to apply to the target network. You
|
|
* must also specify the ID of the VPC that contains the security groups.</p>
|
|
*/
|
|
inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
|
|
|
|
/**
|
|
* <p>The IDs of one or more security groups to apply to the target network. You
|
|
* must also specify the ID of the VPC that contains the security groups.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
|
|
|
|
/**
|
|
* <p>The IDs of one or more security groups to apply to the target network. You
|
|
* must also specify the ID of the VPC that contains the security groups.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The IDs of one or more security groups to apply to the target network. You
|
|
* must also specify the ID of the VPC that contains the security groups.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The IDs of one or more security groups to apply to the target network. You
|
|
* must also specify the ID of the VPC that contains the security groups.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The IDs of one or more security groups to apply to the target network. You
|
|
* must also specify the ID of the VPC that contains the security groups.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The ID of the VPC to associate with the Client VPN endpoint. If no security
|
|
* group IDs are specified in the request, the default security group for the VPC
|
|
* is applied.</p>
|
|
*/
|
|
inline const Aws::String& GetVpcId() const{ return m_vpcId; }
|
|
|
|
/**
|
|
* <p>The ID of the VPC to associate with the Client VPN endpoint. If no security
|
|
* group IDs are specified in the request, the default security group for the VPC
|
|
* is applied.</p>
|
|
*/
|
|
inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the VPC to associate with the Client VPN endpoint. If no security
|
|
* group IDs are specified in the request, the default security group for the VPC
|
|
* is applied.</p>
|
|
*/
|
|
inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the VPC to associate with the Client VPN endpoint. If no security
|
|
* group IDs are specified in the request, the default security group for the VPC
|
|
* is applied.</p>
|
|
*/
|
|
inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the VPC to associate with the Client VPN endpoint. If no security
|
|
* group IDs are specified in the request, the default security group for the VPC
|
|
* is applied.</p>
|
|
*/
|
|
inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the VPC to associate with the Client VPN endpoint. If no security
|
|
* group IDs are specified in the request, the default security group for the VPC
|
|
* is applied.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the VPC to associate with the Client VPN endpoint. If no security
|
|
* group IDs are specified in the request, the default security group for the VPC
|
|
* is applied.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the VPC to associate with the Client VPN endpoint. If no security
|
|
* group IDs are specified in the request, the default security group for the VPC
|
|
* is applied.</p>
|
|
*/
|
|
inline CreateClientVpnEndpointRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_clientCidrBlock;
|
|
bool m_clientCidrBlockHasBeenSet;
|
|
|
|
Aws::String m_serverCertificateArn;
|
|
bool m_serverCertificateArnHasBeenSet;
|
|
|
|
Aws::Vector<ClientVpnAuthenticationRequest> m_authenticationOptions;
|
|
bool m_authenticationOptionsHasBeenSet;
|
|
|
|
ConnectionLogOptions m_connectionLogOptions;
|
|
bool m_connectionLogOptionsHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_dnsServers;
|
|
bool m_dnsServersHasBeenSet;
|
|
|
|
TransportProtocol m_transportProtocol;
|
|
bool m_transportProtocolHasBeenSet;
|
|
|
|
int m_vpnPort;
|
|
bool m_vpnPortHasBeenSet;
|
|
|
|
Aws::String m_description;
|
|
bool m_descriptionHasBeenSet;
|
|
|
|
bool m_splitTunnel;
|
|
bool m_splitTunnelHasBeenSet;
|
|
|
|
bool m_dryRun;
|
|
bool m_dryRunHasBeenSet;
|
|
|
|
Aws::String m_clientToken;
|
|
bool m_clientTokenHasBeenSet;
|
|
|
|
Aws::Vector<TagSpecification> m_tagSpecifications;
|
|
bool m_tagSpecificationsHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_securityGroupIds;
|
|
bool m_securityGroupIdsHasBeenSet;
|
|
|
|
Aws::String m_vpcId;
|
|
bool m_vpcIdHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace EC2
|
|
} // namespace Aws
|