Interface GlobalInferenceGatewayRouting.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GlobalInferenceGatewayRouting.Builder,,GlobalInferenceGatewayRouting> SdkBuilder<GlobalInferenceGatewayRouting.Builder,,GlobalInferenceGatewayRouting> SdkPojo
- Enclosing class:
GlobalInferenceGatewayRouting
@Mutable
@NotThreadSafe
public static interface GlobalInferenceGatewayRouting.Builder
extends SdkPojo, CopyableBuilder<GlobalInferenceGatewayRouting.Builder,GlobalInferenceGatewayRouting>
-
Method Summary
Modifier and TypeMethodDescriptionThe weights that the global inference gateway applies to each routing signal when it scores the in-cluster inference gateways for a request.The weights that the global inference gateway applies to each routing signal when it scores the in-cluster inference gateways for a request.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
-
weights
The weights that the global inference gateway applies to each routing signal when it scores the in-cluster inference gateways for a request.
- Parameters:
weights- The weights that the global inference gateway applies to each routing signal when it scores the in-cluster inference gateways for a request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weights
default GlobalInferenceGatewayRouting.Builder weights(Consumer<GlobalInferenceGatewayRoutingWeights.Builder> weights) The weights that the global inference gateway applies to each routing signal when it scores the in-cluster inference gateways for a request.
This is a convenience method that creates an instance of theGlobalInferenceGatewayRoutingWeights.Builderavoiding the need to create one manually viaGlobalInferenceGatewayRoutingWeights.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toweights(GlobalInferenceGatewayRoutingWeights).- Parameters:
weights- a consumer that will call methods onGlobalInferenceGatewayRoutingWeights.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-