Interface CreateClientVpnEndpointRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<CreateClientVpnEndpointRequest.Builder,CreateClientVpnEndpointRequest>, Ec2Request.Builder, SdkBuilder<CreateClientVpnEndpointRequest.Builder,CreateClientVpnEndpointRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateClientVpnEndpointRequest

public static interface CreateClientVpnEndpointRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateClientVpnEndpointRequest.Builder,CreateClientVpnEndpointRequest>
  • Method Details

    • clientCidrBlock

      CreateClientVpnEndpointRequest.Builder clientCidrBlock(String 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

      CreateClientVpnEndpointRequest.Builder serverCertificateArn(String 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

      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

      Information about the authentication method to be used to authenticate clients.

      This is a convenience method that creates an instance of the ClientVpnAuthenticationRequest.Builder avoiding the need to create one manually via ClientVpnAuthenticationRequest.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to authenticationOptions(List<ClientVpnAuthenticationRequest>).

      Parameters:
      authenticationOptions - a consumer that will call methods on ClientVpnAuthenticationRequest.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

      This is a convenience method that creates an instance of the ConnectionLogOptions.Builder avoiding the need to create one manually via ConnectionLogOptions.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to connectionLogOptions(ConnectionLogOptions).

      Parameters:
      connectionLogOptions - a consumer that will call methods on ConnectionLogOptions.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

      CreateClientVpnEndpointRequest.Builder transportProtocol(String 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

      CreateClientVpnEndpointRequest.Builder transportProtocol(TransportProtocol 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 is UnauthorizedOperation.

      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 is DryRunOperation. Otherwise, it is UnauthorizedOperation.
      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

      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(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.

      This is a convenience method that creates an instance of the TagSpecification.Builder avoiding the need to create one manually via TagSpecification.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tagSpecifications(List<TagSpecification>).

      Parameters:
      tagSpecifications - a consumer that will call methods on TagSpecification.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • securityGroupIds

      CreateClientVpnEndpointRequest.Builder securityGroupIds(Collection<String> 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

      CreateClientVpnEndpointRequest.Builder securityGroupIds(String... 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

      CreateClientVpnEndpointRequest.Builder selfServicePortal(String 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

      CreateClientVpnEndpointRequest.Builder selfServicePortal(SelfServicePortal 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 the ClientConnectOptions.Builder avoiding the need to create one manually via ClientConnectOptions.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to clientConnectOptions(ClientConnectOptions).

      Parameters:
      clientConnectOptions - a consumer that will call methods on ClientConnectOptions.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sessionTimeoutHours

      CreateClientVpnEndpointRequest.Builder sessionTimeoutHours(Integer 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 the ClientLoginBannerOptions.Builder avoiding the need to create one manually via ClientLoginBannerOptions.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to clientLoginBannerOptions(ClientLoginBannerOptions).

      Parameters:
      clientLoginBannerOptions - a consumer that will call methods on ClientLoginBannerOptions.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 interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.