Interface TrafficSplitEntry.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TrafficSplitEntry.Builder,,TrafficSplitEntry> SdkBuilder<TrafficSplitEntry.Builder,,TrafficSplitEntry> SdkPojo
- Enclosing class:
TrafficSplitEntry
@Mutable
@NotThreadSafe
public static interface TrafficSplitEntry.Builder
extends SdkPojo, CopyableBuilder<TrafficSplitEntry.Builder,TrafficSplitEntry>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TrafficSplitEntry.BuilderconfigurationBundle(Consumer<ConfigurationBundleReference.Builder> configurationBundle) The configuration bundle reference for this variant.configurationBundle(ConfigurationBundleReference configurationBundle) The configuration bundle reference for this variant.description(String description) The description of this traffic split variant.Key-value metadata associated with this traffic split variant.The name of this traffic split variant.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
-
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. Weights across all entries must sum to 100.
- Parameters:
weight- The percentage of traffic to route to this variant. Weights across all entries must sum to 100.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationBundle
The configuration bundle reference for this variant.
- Parameters:
configurationBundle- The configuration bundle reference for this variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationBundle
default TrafficSplitEntry.Builder configurationBundle(Consumer<ConfigurationBundleReference.Builder> configurationBundle) The configuration bundle reference for this variant.
This is a convenience method that creates an instance of theConfigurationBundleReference.Builderavoiding the need to create one manually viaConfigurationBundleReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfigurationBundle(ConfigurationBundleReference).- Parameters:
configurationBundle- a consumer that will call methods onConfigurationBundleReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-