Class CfnExperimentPropsMixin.TreatmentToWeightProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.evidently.CfnExperimentPropsMixin.TreatmentToWeightProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExperimentPropsMixin.TreatmentToWeightProperty>
- Enclosing interface:
CfnExperimentPropsMixin.TreatmentToWeightProperty
@Stability(Stable)
public static final class CfnExperimentPropsMixin.TreatmentToWeightProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnExperimentPropsMixin.TreatmentToWeightProperty>
A builder for
CfnExperimentPropsMixin.TreatmentToWeightProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.splitWeight(Number splitWeight) Sets the value ofCfnExperimentPropsMixin.TreatmentToWeightProperty.getSplitWeight()Sets the value ofCfnExperimentPropsMixin.TreatmentToWeightProperty.getTreatment()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
splitWeight
@Stability(Stable) public CfnExperimentPropsMixin.TreatmentToWeightProperty.Builder splitWeight(Number splitWeight) Sets the value ofCfnExperimentPropsMixin.TreatmentToWeightProperty.getSplitWeight()- Parameters:
splitWeight- The portion of experiment traffic to allocate to this treatment. Specify the traffic portion in thousandths of a percent, so 20,000 allocated to a treatment would allocate 20% of the experiment traffic to that treatment.- Returns:
this
-
treatment
@Stability(Stable) public CfnExperimentPropsMixin.TreatmentToWeightProperty.Builder treatment(String treatment) Sets the value ofCfnExperimentPropsMixin.TreatmentToWeightProperty.getTreatment()- Parameters:
treatment- The name of the treatment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnExperimentPropsMixin.TreatmentToWeightProperty>- Returns:
- a new instance of
CfnExperimentPropsMixin.TreatmentToWeightProperty - Throws:
NullPointerException- if any required attribute was not provided
-