Interface StaticRoute.Builder

  • Method Details

    • targetName

      StaticRoute.Builder targetName(String targetName)

      The name of the target to route requests to.

      Parameters:
      targetName - The name of the target to route requests to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • model

      The model ID to send to the target. Supported only for inference targets. If you don't specify a model, the gateway sends the model from the original request.

      Parameters:
      model - The model ID to send to the target. Supported only for inference targets. If you don't specify a model, the gateway sends the model from the original request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fallback

      StaticRoute.Builder fallback(Fallback fallback)

      The fallback configuration for this route. Supported only for inference targets.

      Parameters:
      fallback - The fallback configuration for this route. Supported only for inference targets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fallback

      default StaticRoute.Builder fallback(Consumer<Fallback.Builder> fallback)

      The fallback configuration for this route. Supported only for inference targets.

      This is a convenience method that creates an instance of the Fallback.Builder avoiding the need to create one manually via Fallback.builder().

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

      Parameters:
      fallback - a consumer that will call methods on Fallback.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: