Interface ClientVpnRoute.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ClientVpnRoute.Builder,ClientVpnRoute>
,SdkBuilder<ClientVpnRoute.Builder,ClientVpnRoute>
,SdkPojo
- Enclosing class:
- ClientVpnRoute
public static interface ClientVpnRoute.Builder extends SdkPojo, CopyableBuilder<ClientVpnRoute.Builder,ClientVpnRoute>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ClientVpnRoute.Builder
clientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the route is associated.ClientVpnRoute.Builder
description(String description)
A brief description of the route.ClientVpnRoute.Builder
destinationCidr(String destinationCidr)
The IPv4 address range, in CIDR notation, of the route destination.ClientVpnRoute.Builder
origin(String origin)
Indicates how the route was associated with the Client VPN endpoint.default ClientVpnRoute.Builder
status(Consumer<ClientVpnRouteStatus.Builder> status)
The current state of the route.ClientVpnRoute.Builder
status(ClientVpnRouteStatus status)
The current state of the route.ClientVpnRoute.Builder
targetSubnet(String targetSubnet)
The ID of the subnet through which traffic is routed.ClientVpnRoute.Builder
type(String type)
The route type.-
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
ClientVpnRoute.Builder clientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the route is associated.
- Parameters:
clientVpnEndpointId
- The ID of the Client VPN endpoint with which the route is associated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationCidr
ClientVpnRoute.Builder destinationCidr(String destinationCidr)
The IPv4 address range, in CIDR notation, of the route destination.
- Parameters:
destinationCidr
- The IPv4 address range, in CIDR notation, of the route destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetSubnet
ClientVpnRoute.Builder targetSubnet(String targetSubnet)
The ID of the subnet through which traffic is routed.
- Parameters:
targetSubnet
- The ID of the subnet through which traffic is routed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
ClientVpnRoute.Builder type(String type)
The route type.
- Parameters:
type
- The route type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
origin
ClientVpnRoute.Builder origin(String origin)
Indicates how the route was associated with the Client VPN endpoint.
associate
indicates that the route was automatically added when the target network was associated with the Client VPN endpoint.add-route
indicates that the route was manually added using the CreateClientVpnRoute action.- Parameters:
origin
- Indicates how the route was associated with the Client VPN endpoint.associate
indicates that the route was automatically added when the target network was associated with the Client VPN endpoint.add-route
indicates that the route was manually added using the CreateClientVpnRoute action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
ClientVpnRoute.Builder status(ClientVpnRouteStatus status)
The current state of the route.
- Parameters:
status
- The current state of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default ClientVpnRoute.Builder status(Consumer<ClientVpnRouteStatus.Builder> status)
The current state of the route.
This is a convenience method that creates an instance of theClientVpnRouteStatus.Builder
avoiding the need to create one manually viaClientVpnRouteStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(ClientVpnRouteStatus)
.- Parameters:
status
- a consumer that will call methods onClientVpnRouteStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
status(ClientVpnRouteStatus)
-
description
ClientVpnRoute.Builder description(String description)
A brief description of the route.
- Parameters:
description
- A brief description of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-