Interface WeightedRoute.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<WeightedRoute.Builder,,WeightedRoute> SdkBuilder<WeightedRoute.Builder,,WeightedRoute> SdkPojo
- Enclosing class:
WeightedRoute
@Mutable
@NotThreadSafe
public static interface WeightedRoute.Builder
extends SdkPojo, CopyableBuilder<WeightedRoute.Builder,WeightedRoute>
-
Method Summary
Modifier and TypeMethodDescriptiontrafficSplit(Collection<TargetTrafficSplitEntry> trafficSplit) The traffic split entries defining how traffic is distributed between targets.trafficSplit(Consumer<TargetTrafficSplitEntry.Builder>... trafficSplit) The traffic split entries defining how traffic is distributed between targets.trafficSplit(TargetTrafficSplitEntry... trafficSplit) The traffic split entries defining how traffic is distributed between targets.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
-
trafficSplit
The traffic split entries defining how traffic is distributed between targets.
- Parameters:
trafficSplit- The traffic split entries defining how traffic is distributed between targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficSplit
The traffic split entries defining how traffic is distributed between targets.
- Parameters:
trafficSplit- The traffic split entries defining how traffic is distributed between targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficSplit
The traffic split entries defining how traffic is distributed between targets.
This is a convenience method that creates an instance of theTargetTrafficSplitEntry.Builderavoiding the need to create one manually viaTargetTrafficSplitEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totrafficSplit(List<TargetTrafficSplitEntry>).- Parameters:
trafficSplit- a consumer that will call methods onTargetTrafficSplitEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-