Interface ClientVpnConnection.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ClientVpnConnection.Builder,ClientVpnConnection>
,SdkBuilder<ClientVpnConnection.Builder,ClientVpnConnection>
,SdkPojo
- Enclosing class:
- ClientVpnConnection
public static interface ClientVpnConnection.Builder extends SdkPojo, CopyableBuilder<ClientVpnConnection.Builder,ClientVpnConnection>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ClientVpnConnection.Builder
clientIp(String clientIp)
The IP address of the client.ClientVpnConnection.Builder
clientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint to which the client is connected.ClientVpnConnection.Builder
commonName(String commonName)
The common name associated with the client.ClientVpnConnection.Builder
connectionEndTime(String connectionEndTime)
The date and time the client connection was terminated.ClientVpnConnection.Builder
connectionEstablishedTime(String connectionEstablishedTime)
The date and time the client connection was established.ClientVpnConnection.Builder
connectionId(String connectionId)
The ID of the client connection.ClientVpnConnection.Builder
egressBytes(String egressBytes)
The number of bytes received by the client.ClientVpnConnection.Builder
egressPackets(String egressPackets)
The number of packets received by the client.ClientVpnConnection.Builder
ingressBytes(String ingressBytes)
The number of bytes sent by the client.ClientVpnConnection.Builder
ingressPackets(String ingressPackets)
The number of packets sent by the client.ClientVpnConnection.Builder
postureComplianceStatuses(String... postureComplianceStatuses)
The statuses returned by the client connect handler for posture compliance, if applicable.ClientVpnConnection.Builder
postureComplianceStatuses(Collection<String> postureComplianceStatuses)
The statuses returned by the client connect handler for posture compliance, if applicable.default ClientVpnConnection.Builder
status(Consumer<ClientVpnConnectionStatus.Builder> status)
The current state of the client connection.ClientVpnConnection.Builder
status(ClientVpnConnectionStatus status)
The current state of the client connection.ClientVpnConnection.Builder
timestamp(String timestamp)
The current date and time.ClientVpnConnection.Builder
username(String username)
The username of the client who established the client connection.-
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
ClientVpnConnection.Builder clientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint to which the client is connected.
- Parameters:
clientVpnEndpointId
- The ID of the Client VPN endpoint to which the client is connected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamp
ClientVpnConnection.Builder timestamp(String timestamp)
The current date and time.
- Parameters:
timestamp
- The current date and time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionId
ClientVpnConnection.Builder connectionId(String connectionId)
The ID of the client connection.
- Parameters:
connectionId
- The ID of the client connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
username
ClientVpnConnection.Builder username(String username)
The username of the client who established the client connection. This information is only provided if Active Directory client authentication is used.
- Parameters:
username
- The username of the client who established the client connection. This information is only provided if Active Directory client authentication is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionEstablishedTime
ClientVpnConnection.Builder connectionEstablishedTime(String connectionEstablishedTime)
The date and time the client connection was established.
- Parameters:
connectionEstablishedTime
- The date and time the client connection was established.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ingressBytes
ClientVpnConnection.Builder ingressBytes(String ingressBytes)
The number of bytes sent by the client.
- Parameters:
ingressBytes
- The number of bytes sent by the client.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
egressBytes
ClientVpnConnection.Builder egressBytes(String egressBytes)
The number of bytes received by the client.
- Parameters:
egressBytes
- The number of bytes received by the client.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ingressPackets
ClientVpnConnection.Builder ingressPackets(String ingressPackets)
The number of packets sent by the client.
- Parameters:
ingressPackets
- The number of packets sent by the client.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
egressPackets
ClientVpnConnection.Builder egressPackets(String egressPackets)
The number of packets received by the client.
- Parameters:
egressPackets
- The number of packets received by the client.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientIp
ClientVpnConnection.Builder clientIp(String clientIp)
The IP address of the client.
- Parameters:
clientIp
- The IP address of the client.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commonName
ClientVpnConnection.Builder commonName(String commonName)
The common name associated with the client. This is either the name of the client certificate, or the Active Directory user name.
- Parameters:
commonName
- The common name associated with the client. This is either the name of the client certificate, or the Active Directory user name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
ClientVpnConnection.Builder status(ClientVpnConnectionStatus status)
The current state of the client connection.
- Parameters:
status
- The current state of the client connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default ClientVpnConnection.Builder status(Consumer<ClientVpnConnectionStatus.Builder> status)
The current state of the client connection.
This is a convenience method that creates an instance of theClientVpnConnectionStatus.Builder
avoiding the need to create one manually viaClientVpnConnectionStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(ClientVpnConnectionStatus)
.- Parameters:
status
- a consumer that will call methods onClientVpnConnectionStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
status(ClientVpnConnectionStatus)
-
connectionEndTime
ClientVpnConnection.Builder connectionEndTime(String connectionEndTime)
The date and time the client connection was terminated.
- Parameters:
connectionEndTime
- The date and time the client connection was terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
postureComplianceStatuses
ClientVpnConnection.Builder postureComplianceStatuses(Collection<String> postureComplianceStatuses)
The statuses returned by the client connect handler for posture compliance, if applicable.
- Parameters:
postureComplianceStatuses
- The statuses returned by the client connect handler for posture compliance, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
postureComplianceStatuses
ClientVpnConnection.Builder postureComplianceStatuses(String... postureComplianceStatuses)
The statuses returned by the client connect handler for posture compliance, if applicable.
- Parameters:
postureComplianceStatuses
- The statuses returned by the client connect handler for posture compliance, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-