Interface TargetTrafficSplitEntry.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TargetTrafficSplitEntry.Builder,,TargetTrafficSplitEntry> SdkBuilder<TargetTrafficSplitEntry.Builder,,TargetTrafficSplitEntry> SdkPojo
- Enclosing class:
TargetTrafficSplitEntry
@Mutable
@NotThreadSafe
public static interface TargetTrafficSplitEntry.Builder
extends SdkPojo, CopyableBuilder<TargetTrafficSplitEntry.Builder,TargetTrafficSplitEntry>
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) The description of this traffic split variant.default TargetTrafficSplitEntry.Builderfallback(Consumer<Fallback.Builder> fallback) The fallback configuration for this variant.The fallback configuration for this variant.Key-value metadata associated with this traffic split variant.The model ID to send to the target for this variant.The name of this traffic split variant.targetName(String targetName) The name of the target to route traffic to.The percentage of traffic to route to this variant.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 traffic to.
- Parameters:
targetName- The name of the target to route traffic 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 for this variant. 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 for this variant. 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 variant. Supported only for inference targets.
- Parameters:
fallback- The fallback configuration for this variant. 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 variant. 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:
-
name
The name of this traffic split variant.
- Parameters:
name- The name of this traffic split variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weight
The percentage of traffic to route to this variant.
- Parameters:
weight- The percentage of traffic to route to this variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of this traffic split variant.
- Parameters:
description- The description of this traffic split variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
Key-value metadata associated with this traffic split variant.
- Parameters:
metadata- Key-value metadata associated with this traffic split variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-