Interface CreateClientVpnEndpointRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateClientVpnEndpointRequest.Builder,
,CreateClientVpnEndpointRequest> Ec2Request.Builder
,SdkBuilder<CreateClientVpnEndpointRequest.Builder,
,CreateClientVpnEndpointRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateClientVpnEndpointRequest
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationOptions
(Collection<ClientVpnAuthenticationRequest> authenticationOptions) Information about the authentication method to be used to authenticate clients.authenticationOptions
(Consumer<ClientVpnAuthenticationRequest.Builder>... authenticationOptions) Information about the authentication method to be used to authenticate clients.authenticationOptions
(ClientVpnAuthenticationRequest... authenticationOptions) Information about the authentication method to be used to authenticate clients.clientCidrBlock
(String clientCidrBlock) The IPv4 address range, in CIDR notation, from which to assign client IP addresses.clientConnectOptions
(Consumer<ClientConnectOptions.Builder> clientConnectOptions) The options for managing connection authorization for new client connections.clientConnectOptions
(ClientConnectOptions clientConnectOptions) The options for managing connection authorization for new client connections.clientLoginBannerOptions
(Consumer<ClientLoginBannerOptions.Builder> clientLoginBannerOptions) Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.clientLoginBannerOptions
(ClientLoginBannerOptions clientLoginBannerOptions) Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.clientToken
(String clientToken) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.connectionLogOptions
(Consumer<ConnectionLogOptions.Builder> connectionLogOptions) Information about the client connection logging options.connectionLogOptions
(ConnectionLogOptions connectionLogOptions) Information about the client connection logging options.description
(String description) A brief description of the Client VPN endpoint.dnsServers
(String... dnsServers) Information about the DNS servers to be used for DNS resolution.dnsServers
(Collection<String> dnsServers) Information about the DNS servers to be used for DNS resolution.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.securityGroupIds
(String... securityGroupIds) The IDs of one or more security groups to apply to the target network.securityGroupIds
(Collection<String> securityGroupIds) The IDs of one or more security groups to apply to the target network.selfServicePortal
(String selfServicePortal) Specify whether to enable the self-service portal for the Client VPN endpoint.selfServicePortal
(SelfServicePortal selfServicePortal) Specify whether to enable the self-service portal for the Client VPN endpoint.serverCertificateArn
(String serverCertificateArn) The ARN of the server certificate.sessionTimeoutHours
(Integer sessionTimeoutHours) The maximum VPN session duration time in hours.splitTunnel
(Boolean splitTunnel) Indicates whether split-tunnel is enabled on the Client VPN endpoint.tagSpecifications
(Collection<TagSpecification> tagSpecifications) The tags to apply to the Client VPN endpoint during creation.tagSpecifications
(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the Client VPN endpoint during creation.tagSpecifications
(TagSpecification... tagSpecifications) The tags to apply to the Client VPN endpoint during creation.transportProtocol
(String transportProtocol) The transport protocol to be used by the VPN session.transportProtocol
(TransportProtocol transportProtocol) The transport protocol to be used by the VPN session.The ID of the VPC to associate with the Client VPN endpoint.The port number to assign to the Client VPN endpoint for TCP and UDP traffic.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
clientCidrBlock
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. Client CIDR range must have a size of at least /22 and must not be greater than /12.
- Parameters:
clientCidrBlock
- 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. Client CIDR range must have a size of at least /22 and must not be greater than /12.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverCertificateArn
The ARN of the server certificate. For more information, see the Certificate Manager User Guide.
- Parameters:
serverCertificateArn
- The ARN of the server certificate. For more information, see the Certificate Manager User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authenticationOptions
CreateClientVpnEndpointRequest.Builder authenticationOptions(Collection<ClientVpnAuthenticationRequest> authenticationOptions) Information about the authentication method to be used to authenticate clients.
- Parameters:
authenticationOptions
- Information about the authentication method to be used to authenticate clients.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authenticationOptions
CreateClientVpnEndpointRequest.Builder authenticationOptions(ClientVpnAuthenticationRequest... authenticationOptions) Information about the authentication method to be used to authenticate clients.
- Parameters:
authenticationOptions
- Information about the authentication method to be used to authenticate clients.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authenticationOptions
CreateClientVpnEndpointRequest.Builder authenticationOptions(Consumer<ClientVpnAuthenticationRequest.Builder>... authenticationOptions) Information about the authentication method to be used to authenticate clients.
This is a convenience method that creates an instance of theClientVpnAuthenticationRequest.Builder
avoiding the need to create one manually viaClientVpnAuthenticationRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toauthenticationOptions(List<ClientVpnAuthenticationRequest>)
.- Parameters:
authenticationOptions
- a consumer that will call methods onClientVpnAuthenticationRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
connectionLogOptions
CreateClientVpnEndpointRequest.Builder connectionLogOptions(ConnectionLogOptions connectionLogOptions) Information about the client connection logging options.
If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. The following information is logged:
-
Client connection requests
-
Client connection results (successful and unsuccessful)
-
Reasons for unsuccessful client connection requests
-
Client connection termination time
- Parameters:
connectionLogOptions
- Information about the client connection logging options.If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. The following information is logged:
-
Client connection requests
-
Client connection results (successful and unsuccessful)
-
Reasons for unsuccessful client connection requests
-
Client connection termination time
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
connectionLogOptions
default CreateClientVpnEndpointRequest.Builder connectionLogOptions(Consumer<ConnectionLogOptions.Builder> connectionLogOptions) Information about the client connection logging options.
If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. The following information is logged:
-
Client connection requests
-
Client connection results (successful and unsuccessful)
-
Reasons for unsuccessful client connection requests
-
Client connection termination time
ConnectionLogOptions.Builder
avoiding the need to create one manually viaConnectionLogOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconnectionLogOptions(ConnectionLogOptions)
.- Parameters:
connectionLogOptions
- a consumer that will call methods onConnectionLogOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
dnsServers
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.
- Parameters:
dnsServers
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsServers
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.
- Parameters:
dnsServers
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transportProtocol
The transport protocol to be used by the VPN session.
Default value:
udp
- Parameters:
transportProtocol
- The transport protocol to be used by the VPN session.Default value:
udp
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
transportProtocol
The transport protocol to be used by the VPN session.
Default value:
udp
- Parameters:
transportProtocol
- The transport protocol to be used by the VPN session.Default value:
udp
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpnPort
The port number to assign to the Client VPN endpoint for TCP and UDP traffic.
Valid Values:
443
|1194
Default Value:
443
- Parameters:
vpnPort
- The port number to assign to the Client VPN endpoint for TCP and UDP traffic.Valid Values:
443
|1194
Default Value:
443
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A brief description of the Client VPN endpoint.
- Parameters:
description
- A brief description of the Client VPN endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
splitTunnel
Indicates whether split-tunnel is enabled on the Client VPN endpoint.
By default, split-tunnel on a VPN endpoint is disabled.
For information about split-tunnel VPN endpoints, see Split-tunnel Client VPN endpoint in the Client VPN Administrator Guide.
- Parameters:
splitTunnel
- Indicates whether split-tunnel is enabled on the Client VPN endpoint.By default, split-tunnel on a VPN endpoint is disabled.
For information about split-tunnel VPN endpoints, see Split-tunnel Client VPN endpoint in the Client VPN Administrator Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
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
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
- Parameters:
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateClientVpnEndpointRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications) The tags to apply to the Client VPN endpoint during creation.
- Parameters:
tagSpecifications
- The tags to apply to the Client VPN endpoint during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
The tags to apply to the Client VPN endpoint during creation.
- Parameters:
tagSpecifications
- The tags to apply to the Client VPN endpoint during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateClientVpnEndpointRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the Client VPN endpoint during creation.
This is a convenience method that creates an instance of theTagSpecification.Builder
avoiding the need to create one manually viaTagSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagSpecifications(List<TagSpecification>)
.- Parameters:
tagSpecifications
- a consumer that will call methods onTagSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
securityGroupIds
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.
- Parameters:
securityGroupIds
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
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.
- Parameters:
securityGroupIds
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
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.
- Parameters:
vpcId
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selfServicePortal
Specify whether to enable the self-service portal for the Client VPN endpoint.
Default Value:
enabled
- Parameters:
selfServicePortal
- Specify whether to enable the self-service portal for the Client VPN endpoint.Default Value:
enabled
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
selfServicePortal
Specify whether to enable the self-service portal for the Client VPN endpoint.
Default Value:
enabled
- Parameters:
selfServicePortal
- Specify whether to enable the self-service portal for the Client VPN endpoint.Default Value:
enabled
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientConnectOptions
CreateClientVpnEndpointRequest.Builder clientConnectOptions(ClientConnectOptions clientConnectOptions) The options for managing connection authorization for new client connections.
- Parameters:
clientConnectOptions
- The options for managing connection authorization for new client connections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientConnectOptions
default CreateClientVpnEndpointRequest.Builder clientConnectOptions(Consumer<ClientConnectOptions.Builder> clientConnectOptions) The options for managing connection authorization for new client connections.
This is a convenience method that creates an instance of theClientConnectOptions.Builder
avoiding the need to create one manually viaClientConnectOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toclientConnectOptions(ClientConnectOptions)
.- Parameters:
clientConnectOptions
- a consumer that will call methods onClientConnectOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sessionTimeoutHours
The maximum VPN session duration time in hours.
Valid values:
8 | 10 | 12 | 24
Default value:
24
- Parameters:
sessionTimeoutHours
- The maximum VPN session duration time in hours.Valid values:
8 | 10 | 12 | 24
Default value:
24
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientLoginBannerOptions
CreateClientVpnEndpointRequest.Builder clientLoginBannerOptions(ClientLoginBannerOptions clientLoginBannerOptions) Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.
- Parameters:
clientLoginBannerOptions
- Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientLoginBannerOptions
default CreateClientVpnEndpointRequest.Builder clientLoginBannerOptions(Consumer<ClientLoginBannerOptions.Builder> clientLoginBannerOptions) Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.
This is a convenience method that creates an instance of theClientLoginBannerOptions.Builder
avoiding the need to create one manually viaClientLoginBannerOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toclientLoginBannerOptions(ClientLoginBannerOptions)
.- Parameters:
clientLoginBannerOptions
- a consumer that will call methods onClientLoginBannerOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateClientVpnEndpointRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateClientVpnEndpointRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-