Interface ClientVpnRoute.Builder

  • Method Details

    • 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

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

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

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

      Parameters:
      status - a consumer that will call methods on ClientVpnRouteStatus.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.