Interface Variant.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Variant.Builder,,Variant> SdkBuilder<Variant.Builder,,Variant> SdkPojo
- Enclosing class:
Variant
@Mutable
@NotThreadSafe
public static interface Variant.Builder
extends SdkPojo, CopyableBuilder<Variant.Builder,Variant>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the variant.default Variant.BuildervariantConfiguration(Consumer<VariantConfiguration.Builder> variantConfiguration) The configuration for this variant, including the configuration bundle or target reference.variantConfiguration(VariantConfiguration variantConfiguration) The configuration for this variant, including the configuration bundle or target reference.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 the variant. Must be
Cfor control orT1for treatment.- Parameters:
name- The name of the variant. Must beCfor control orT1for treatment.- 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 variants must sum to 100.
- Parameters:
weight- The percentage of traffic to route to this variant. Weights across all variants must sum to 100.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variantConfiguration
The configuration for this variant, including the configuration bundle or target reference.
- Parameters:
variantConfiguration- The configuration for this variant, including the configuration bundle or target reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variantConfiguration
default Variant.Builder variantConfiguration(Consumer<VariantConfiguration.Builder> variantConfiguration) The configuration for this variant, including the configuration bundle or target reference.
This is a convenience method that creates an instance of theVariantConfiguration.Builderavoiding the need to create one manually viaVariantConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovariantConfiguration(VariantConfiguration).- Parameters:
variantConfiguration- a consumer that will call methods onVariantConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-