Interface TreatmentInput.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TreatmentInput.Builder,,TreatmentInput> SdkBuilder<TreatmentInput.Builder,,TreatmentInput> SdkPojo
- Enclosing class:
TreatmentInput
@Mutable
@NotThreadSafe
public static interface TreatmentInput.Builder
extends SdkPojo, CopyableBuilder<TreatmentInput.Builder,TreatmentInput>
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A description of the treatment.default TreatmentInput.BuilderflagValue(Consumer<FlagValue.Builder> flagValue) The feature flag value to serve to users assigned to this treatment.The feature flag value to serve to users assigned to this treatment.The traffic allocation weight for this treatment.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
-
weight
The traffic allocation weight for this treatment.
- Parameters:
weight- The traffic allocation weight for this treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the treatment.
- Parameters:
description- A description of the treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
flagValue
The feature flag value to serve to users assigned to this treatment.
- Parameters:
flagValue- The feature flag value to serve to users assigned to this treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
flagValue
The feature flag value to serve to users assigned to this treatment.
This is a convenience method that creates an instance of theFlagValue.Builderavoiding the need to create one manually viaFlagValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toflagValue(FlagValue).- Parameters:
flagValue- a consumer that will call methods onFlagValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-