Interface StaticRoute.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<StaticRoute.Builder,,StaticRoute> SdkBuilder<StaticRoute.Builder,,StaticRoute> SdkPojo
- Enclosing class:
StaticRoute
@Mutable
@NotThreadSafe
public static interface StaticRoute.Builder
extends SdkPojo, CopyableBuilder<StaticRoute.Builder,StaticRoute>
-
Method Summary
Modifier and TypeMethodDescriptiondefault StaticRoute.Builderfallback(Consumer<Fallback.Builder> fallback) The fallback configuration for this route.The fallback configuration for this route.The model ID to send to the target.targetName(String targetName) The name of the target to route requests to.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
-
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
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
The fallback configuration for this route. Supported only for inference targets.
This is a convenience method that creates an instance of theFallback.Builderavoiding the need to create one manually viaFallback.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofallback(Fallback).- Parameters:
fallback- a consumer that will call methods onFallback.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-