Class CfnExperiment.TreatmentToWeightProperty.Builder
java.lang.Object
software.amazon.awscdk.services.evidently.CfnExperiment.TreatmentToWeightProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExperiment.TreatmentToWeightProperty>
- Enclosing interface:
CfnExperiment.TreatmentToWeightProperty
@Stability(Stable)
public static final class CfnExperiment.TreatmentToWeightProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnExperiment.TreatmentToWeightProperty>
A builder for
CfnExperiment.TreatmentToWeightProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.splitWeight
(Number splitWeight) Sets the value ofCfnExperiment.TreatmentToWeightProperty.getSplitWeight()
Sets the value ofCfnExperiment.TreatmentToWeightProperty.getTreatment()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
splitWeight
@Stability(Stable) public CfnExperiment.TreatmentToWeightProperty.Builder splitWeight(Number splitWeight) Sets the value ofCfnExperiment.TreatmentToWeightProperty.getSplitWeight()
- Parameters:
splitWeight
- The portion of experiment traffic to allocate to this treatment. This parameter is required. 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 CfnExperiment.TreatmentToWeightProperty.Builder treatment(String treatment) Sets the value ofCfnExperiment.TreatmentToWeightProperty.getTreatment()
- Parameters:
treatment
- The name of the treatment. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnExperiment.TreatmentToWeightProperty>
- Returns:
- a new instance of
CfnExperiment.TreatmentToWeightProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-