Interface ClientVpnRoute.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ClientVpnRoute.Builder,,ClientVpnRoute> SdkBuilder<ClientVpnRoute.Builder,,ClientVpnRoute> SdkPojo
- Enclosing class:
ClientVpnRoute
-
Method Summary
Modifier and TypeMethodDescriptionclientVpnEndpointId(String clientVpnEndpointId) The ID of the Client VPN endpoint with which the route is associated.description(String description) A brief description of the route.destinationCidr(String destinationCidr) The IPv4 address range, in CIDR notation, of the route destination.Indicates how the route was associated with the Client VPN endpoint.default ClientVpnRoute.Builderstatus(Consumer<ClientVpnRouteStatus.Builder> status) The current state of the route.status(ClientVpnRouteStatus status) The current state of the route.targetSubnet(String targetSubnet) The ID of the subnet through which traffic is routed.The route type.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
The route type.
- Parameters:
type- The route type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
origin
Indicates how the route was associated with the Client VPN endpoint.
associateindicates that the route was automatically added when the target network was associated with the Client VPN endpoint.add-routeindicates that the route was manually added using the CreateClientVpnRoute action.- Parameters:
origin- Indicates how the route was associated with the Client VPN endpoint.associateindicates that the route was automatically added when the target network was associated with the Client VPN endpoint.add-routeindicates 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
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
The current state of the route.
This is a convenience method that creates an instance of theClientVpnRouteStatus.Builderavoiding the need to create one manually viaClientVpnRouteStatus.builder().When the
Consumercompletes,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:
-
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.
-