Interface Treatment.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Treatment.Builder,,Treatment> SdkBuilder<Treatment.Builder,,Treatment> SdkPojo
- Enclosing class:
Treatment
@Mutable
@NotThreadSafe
public static interface Treatment.Builder
extends SdkPojo, CopyableBuilder<Treatment.Builder,Treatment>
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A description of the treatment.default Treatment.BuilderflagValue(Consumer<FlagValue.Builder> flagValue) The feature flag value served to users assigned to this treatment.The feature flag value served to users assigned to this treatment.The unique key that identifies 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
-
key
The unique key that identifies this treatment.
- Parameters:
key- The unique key that identifies this treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 served to users assigned to this treatment.
- Parameters:
flagValue- The feature flag value served 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 served 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:
-