Interface ClientVpnEndpoint.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ClientVpnEndpoint.Builder,ClientVpnEndpoint>
,SdkBuilder<ClientVpnEndpoint.Builder,ClientVpnEndpoint>
,SdkPojo
- Enclosing class:
- ClientVpnEndpoint
public static interface ClientVpnEndpoint.Builder extends SdkPojo, CopyableBuilder<ClientVpnEndpoint.Builder,ClientVpnEndpoint>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description ClientVpnEndpoint.Builder
associatedTargetNetworks(Collection<AssociatedTargetNetwork> associatedTargetNetworks)
Deprecated.This property is deprecated.ClientVpnEndpoint.Builder
associatedTargetNetworks(Consumer<AssociatedTargetNetwork.Builder>... associatedTargetNetworks)
Deprecated.This property is deprecated.ClientVpnEndpoint.Builder
associatedTargetNetworks(AssociatedTargetNetwork... associatedTargetNetworks)
Deprecated.This property is deprecated.ClientVpnEndpoint.Builder
authenticationOptions(Collection<ClientVpnAuthentication> authenticationOptions)
Information about the authentication method used by the Client VPN endpoint.ClientVpnEndpoint.Builder
authenticationOptions(Consumer<ClientVpnAuthentication.Builder>... authenticationOptions)
Information about the authentication method used by the Client VPN endpoint.ClientVpnEndpoint.Builder
authenticationOptions(ClientVpnAuthentication... authenticationOptions)
Information about the authentication method used by the Client VPN endpoint.ClientVpnEndpoint.Builder
clientCidrBlock(String clientCidrBlock)
The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.default ClientVpnEndpoint.Builder
clientConnectOptions(Consumer<ClientConnectResponseOptions.Builder> clientConnectOptions)
The options for managing connection authorization for new client connections.ClientVpnEndpoint.Builder
clientConnectOptions(ClientConnectResponseOptions clientConnectOptions)
The options for managing connection authorization for new client connections.default ClientVpnEndpoint.Builder
clientLoginBannerOptions(Consumer<ClientLoginBannerResponseOptions.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.ClientVpnEndpoint.Builder
clientLoginBannerOptions(ClientLoginBannerResponseOptions clientLoginBannerOptions)
Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.ClientVpnEndpoint.Builder
clientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint.default ClientVpnEndpoint.Builder
connectionLogOptions(Consumer<ConnectionLogResponseOptions.Builder> connectionLogOptions)
Information about the client connection logging options for the Client VPN endpoint.ClientVpnEndpoint.Builder
connectionLogOptions(ConnectionLogResponseOptions connectionLogOptions)
Information about the client connection logging options for the Client VPN endpoint.ClientVpnEndpoint.Builder
creationTime(String creationTime)
The date and time the Client VPN endpoint was created.ClientVpnEndpoint.Builder
deletionTime(String deletionTime)
The date and time the Client VPN endpoint was deleted, if applicable.ClientVpnEndpoint.Builder
description(String description)
A brief description of the endpoint.ClientVpnEndpoint.Builder
dnsName(String dnsName)
The DNS name to be used by clients when connecting to the Client VPN endpoint.ClientVpnEndpoint.Builder
dnsServers(String... dnsServers)
Information about the DNS servers to be used for DNS resolution.ClientVpnEndpoint.Builder
dnsServers(Collection<String> dnsServers)
Information about the DNS servers to be used for DNS resolution.ClientVpnEndpoint.Builder
securityGroupIds(String... securityGroupIds)
The IDs of the security groups for the target network.ClientVpnEndpoint.Builder
securityGroupIds(Collection<String> securityGroupIds)
The IDs of the security groups for the target network.ClientVpnEndpoint.Builder
selfServicePortalUrl(String selfServicePortalUrl)
The URL of the self-service portal.ClientVpnEndpoint.Builder
serverCertificateArn(String serverCertificateArn)
The ARN of the server certificate.ClientVpnEndpoint.Builder
sessionTimeoutHours(Integer sessionTimeoutHours)
The maximum VPN session duration time in hours.ClientVpnEndpoint.Builder
splitTunnel(Boolean splitTunnel)
Indicates whether split-tunnel is enabled in the Client VPN endpoint.default ClientVpnEndpoint.Builder
status(Consumer<ClientVpnEndpointStatus.Builder> status)
The current state of the Client VPN endpoint.ClientVpnEndpoint.Builder
status(ClientVpnEndpointStatus status)
The current state of the Client VPN endpoint.ClientVpnEndpoint.Builder
tags(Collection<Tag> tags)
Any tags assigned to the Client VPN endpoint.ClientVpnEndpoint.Builder
tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the Client VPN endpoint.ClientVpnEndpoint.Builder
tags(Tag... tags)
Any tags assigned to the Client VPN endpoint.ClientVpnEndpoint.Builder
transportProtocol(String transportProtocol)
The transport protocol used by the Client VPN endpoint.ClientVpnEndpoint.Builder
transportProtocol(TransportProtocol transportProtocol)
The transport protocol used by the Client VPN endpoint.ClientVpnEndpoint.Builder
vpcId(String vpcId)
The ID of the VPC.ClientVpnEndpoint.Builder
vpnPort(Integer vpnPort)
The port number for the Client VPN endpoint.ClientVpnEndpoint.Builder
vpnProtocol(String vpnProtocol)
The protocol used by the VPN session.ClientVpnEndpoint.Builder
vpnProtocol(VpnProtocol vpnProtocol)
The protocol used by the VPN session.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
clientVpnEndpointId
ClientVpnEndpoint.Builder clientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint.
- Parameters:
clientVpnEndpointId
- The ID of the Client VPN endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
ClientVpnEndpoint.Builder description(String description)
A brief description of the endpoint.
- Parameters:
description
- A brief description of the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
ClientVpnEndpoint.Builder status(ClientVpnEndpointStatus status)
The current state of the Client VPN endpoint.
- Parameters:
status
- The current state of the Client VPN endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default ClientVpnEndpoint.Builder status(Consumer<ClientVpnEndpointStatus.Builder> status)
The current state of the Client VPN endpoint.
This is a convenience method that creates an instance of theClientVpnEndpointStatus.Builder
avoiding the need to create one manually viaClientVpnEndpointStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(ClientVpnEndpointStatus)
.- Parameters:
status
- a consumer that will call methods onClientVpnEndpointStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
status(ClientVpnEndpointStatus)
-
creationTime
ClientVpnEndpoint.Builder creationTime(String creationTime)
The date and time the Client VPN endpoint was created.
- Parameters:
creationTime
- The date and time the Client VPN endpoint was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deletionTime
ClientVpnEndpoint.Builder deletionTime(String deletionTime)
The date and time the Client VPN endpoint was deleted, if applicable.
- Parameters:
deletionTime
- The date and time the Client VPN endpoint was deleted, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsName
ClientVpnEndpoint.Builder dnsName(String dnsName)
The DNS name to be used by clients when connecting to the Client VPN endpoint.
- Parameters:
dnsName
- The DNS name to be used by clients when connecting to the Client VPN endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientCidrBlock
ClientVpnEndpoint.Builder clientCidrBlock(String clientCidrBlock)
The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.
- Parameters:
clientCidrBlock
- The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsServers
ClientVpnEndpoint.Builder dnsServers(Collection<String> dnsServers)
Information about the DNS servers to be used for DNS resolution.
- Parameters:
dnsServers
- Information about the DNS servers to be used for DNS resolution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsServers
ClientVpnEndpoint.Builder dnsServers(String... dnsServers)
Information about the DNS servers to be used for DNS resolution.
- Parameters:
dnsServers
- Information about the DNS servers to be used for DNS resolution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
splitTunnel
ClientVpnEndpoint.Builder splitTunnel(Boolean splitTunnel)
Indicates whether split-tunnel is enabled in the Client VPN endpoint.
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 in the Client VPN endpoint.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.
-
vpnProtocol
ClientVpnEndpoint.Builder vpnProtocol(String vpnProtocol)
The protocol used by the VPN session.
- Parameters:
vpnProtocol
- The protocol used by the VPN session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VpnProtocol
,VpnProtocol
-
vpnProtocol
ClientVpnEndpoint.Builder vpnProtocol(VpnProtocol vpnProtocol)
The protocol used by the VPN session.
- Parameters:
vpnProtocol
- The protocol used by the VPN session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VpnProtocol
,VpnProtocol
-
transportProtocol
ClientVpnEndpoint.Builder transportProtocol(String transportProtocol)
The transport protocol used by the Client VPN endpoint.
- Parameters:
transportProtocol
- The transport protocol used by the Client VPN endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TransportProtocol
,TransportProtocol
-
transportProtocol
ClientVpnEndpoint.Builder transportProtocol(TransportProtocol transportProtocol)
The transport protocol used by the Client VPN endpoint.
- Parameters:
transportProtocol
- The transport protocol used by the Client VPN endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TransportProtocol
,TransportProtocol
-
vpnPort
ClientVpnEndpoint.Builder vpnPort(Integer vpnPort)
The port number for the Client VPN endpoint.
- Parameters:
vpnPort
- The port number for the Client VPN endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedTargetNetworks
@Deprecated ClientVpnEndpoint.Builder associatedTargetNetworks(Collection<AssociatedTargetNetwork> associatedTargetNetworks)
Deprecated.This property is deprecated. To view the target networks associated with a Client VPN endpoint, call DescribeClientVpnTargetNetworks and inspect the clientVpnTargetNetworks response element.Information about the associated target networks. A target network is a subnet in a VPC.
- Parameters:
associatedTargetNetworks
- Information about the associated target networks. A target network is a subnet in a VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedTargetNetworks
@Deprecated ClientVpnEndpoint.Builder associatedTargetNetworks(AssociatedTargetNetwork... associatedTargetNetworks)
Deprecated.This property is deprecated. To view the target networks associated with a Client VPN endpoint, call DescribeClientVpnTargetNetworks and inspect the clientVpnTargetNetworks response element.Information about the associated target networks. A target network is a subnet in a VPC.
- Parameters:
associatedTargetNetworks
- Information about the associated target networks. A target network is a subnet in a VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedTargetNetworks
@Deprecated ClientVpnEndpoint.Builder associatedTargetNetworks(Consumer<AssociatedTargetNetwork.Builder>... associatedTargetNetworks)
Deprecated.This property is deprecated. To view the target networks associated with a Client VPN endpoint, call DescribeClientVpnTargetNetworks and inspect the clientVpnTargetNetworks response element.Information about the associated target networks. A target network is a subnet in a VPC.
This is a convenience method that creates an instance of theAssociatedTargetNetwork.Builder
avoiding the need to create one manually viaAssociatedTargetNetwork.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#associatedTargetNetworks(List
.) - Parameters:
associatedTargetNetworks
- a consumer that will call methods onAssociatedTargetNetwork.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#associatedTargetNetworks(java.util.Collection
)
-
serverCertificateArn
ClientVpnEndpoint.Builder serverCertificateArn(String serverCertificateArn)
The ARN of the server certificate.
- Parameters:
serverCertificateArn
- The ARN of the server certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authenticationOptions
ClientVpnEndpoint.Builder authenticationOptions(Collection<ClientVpnAuthentication> authenticationOptions)
Information about the authentication method used by the Client VPN endpoint.
- Parameters:
authenticationOptions
- Information about the authentication method used by the Client VPN endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authenticationOptions
ClientVpnEndpoint.Builder authenticationOptions(ClientVpnAuthentication... authenticationOptions)
Information about the authentication method used by the Client VPN endpoint.
- Parameters:
authenticationOptions
- Information about the authentication method used by the Client VPN endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authenticationOptions
ClientVpnEndpoint.Builder authenticationOptions(Consumer<ClientVpnAuthentication.Builder>... authenticationOptions)
Information about the authentication method used by the Client VPN endpoint.
This is a convenience method that creates an instance of theClientVpnAuthentication.Builder
avoiding the need to create one manually viaClientVpnAuthentication.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#authenticationOptions(List
.) - Parameters:
authenticationOptions
- a consumer that will call methods onClientVpnAuthentication.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#authenticationOptions(java.util.Collection
)
-
connectionLogOptions
ClientVpnEndpoint.Builder connectionLogOptions(ConnectionLogResponseOptions connectionLogOptions)
Information about the client connection logging options for the Client VPN endpoint.
- Parameters:
connectionLogOptions
- Information about the client connection logging options for the Client VPN endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionLogOptions
default ClientVpnEndpoint.Builder connectionLogOptions(Consumer<ConnectionLogResponseOptions.Builder> connectionLogOptions)
Information about the client connection logging options for the Client VPN endpoint.
This is a convenience method that creates an instance of theConnectionLogResponseOptions.Builder
avoiding the need to create one manually viaConnectionLogResponseOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconnectionLogOptions(ConnectionLogResponseOptions)
.- Parameters:
connectionLogOptions
- a consumer that will call methods onConnectionLogResponseOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
connectionLogOptions(ConnectionLogResponseOptions)
-
tags
ClientVpnEndpoint.Builder tags(Collection<Tag> tags)
Any tags assigned to the Client VPN endpoint.
- Parameters:
tags
- Any tags assigned to the Client VPN endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
ClientVpnEndpoint.Builder tags(Tag... tags)
Any tags assigned to the Client VPN endpoint.
- Parameters:
tags
- Any tags assigned to the Client VPN endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
ClientVpnEndpoint.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the Client VPN endpoint.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tags(List
.) - Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection
)
-
securityGroupIds
ClientVpnEndpoint.Builder securityGroupIds(Collection<String> securityGroupIds)
The IDs of the security groups for the target network.
- Parameters:
securityGroupIds
- The IDs of the security groups for the target network.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
ClientVpnEndpoint.Builder securityGroupIds(String... securityGroupIds)
The IDs of the security groups for the target network.
- Parameters:
securityGroupIds
- The IDs of the security groups for the target network.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
ClientVpnEndpoint.Builder vpcId(String vpcId)
The ID of the VPC.
- Parameters:
vpcId
- The ID of the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selfServicePortalUrl
ClientVpnEndpoint.Builder selfServicePortalUrl(String selfServicePortalUrl)
The URL of the self-service portal.
- Parameters:
selfServicePortalUrl
- The URL of the self-service portal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientConnectOptions
ClientVpnEndpoint.Builder clientConnectOptions(ClientConnectResponseOptions 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 ClientVpnEndpoint.Builder clientConnectOptions(Consumer<ClientConnectResponseOptions.Builder> clientConnectOptions)
The options for managing connection authorization for new client connections.
This is a convenience method that creates an instance of theClientConnectResponseOptions.Builder
avoiding the need to create one manually viaClientConnectResponseOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toclientConnectOptions(ClientConnectResponseOptions)
.- Parameters:
clientConnectOptions
- a consumer that will call methods onClientConnectResponseOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
clientConnectOptions(ClientConnectResponseOptions)
-
sessionTimeoutHours
ClientVpnEndpoint.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
ClientVpnEndpoint.Builder clientLoginBannerOptions(ClientLoginBannerResponseOptions 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 ClientVpnEndpoint.Builder clientLoginBannerOptions(Consumer<ClientLoginBannerResponseOptions.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 theClientLoginBannerResponseOptions.Builder
avoiding the need to create one manually viaClientLoginBannerResponseOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toclientLoginBannerOptions(ClientLoginBannerResponseOptions)
.- Parameters:
clientLoginBannerOptions
- a consumer that will call methods onClientLoginBannerResponseOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
clientLoginBannerOptions(ClientLoginBannerResponseOptions)
-
-