Class CfnExperiment.OnlineAbConfigObjectProperty.Builder
java.lang.Object
software.amazon.awscdk.services.evidently.CfnExperiment.OnlineAbConfigObjectProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExperiment.OnlineAbConfigObjectProperty>
- Enclosing interface:
CfnExperiment.OnlineAbConfigObjectProperty
@Stability(Stable)
public static final class CfnExperiment.OnlineAbConfigObjectProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnExperiment.OnlineAbConfigObjectProperty>
A builder for
CfnExperiment.OnlineAbConfigObjectProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.controlTreatmentName(String controlTreatmentName) Sets the value ofCfnExperiment.OnlineAbConfigObjectProperty.getControlTreatmentName()treatmentWeights(List<? extends Object> treatmentWeights) Sets the value ofCfnExperiment.OnlineAbConfigObjectProperty.getTreatmentWeights()treatmentWeights(IResolvable treatmentWeights) Sets the value ofCfnExperiment.OnlineAbConfigObjectProperty.getTreatmentWeights()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
controlTreatmentName
@Stability(Stable) public CfnExperiment.OnlineAbConfigObjectProperty.Builder controlTreatmentName(String controlTreatmentName) Sets the value ofCfnExperiment.OnlineAbConfigObjectProperty.getControlTreatmentName()- Parameters:
controlTreatmentName- The name of the variation that is to be the default variation that the other variations are compared to.- Returns:
this
-
treatmentWeights
@Stability(Stable) public CfnExperiment.OnlineAbConfigObjectProperty.Builder treatmentWeights(IResolvable treatmentWeights) Sets the value ofCfnExperiment.OnlineAbConfigObjectProperty.getTreatmentWeights()- Parameters:
treatmentWeights- A set of key-value pairs. The keys are treatment names, and the values are the portion of experiment traffic to be assigned to that treatment. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.- Returns:
this
-
treatmentWeights
@Stability(Stable) public CfnExperiment.OnlineAbConfigObjectProperty.Builder treatmentWeights(List<? extends Object> treatmentWeights) Sets the value ofCfnExperiment.OnlineAbConfigObjectProperty.getTreatmentWeights()- Parameters:
treatmentWeights- A set of key-value pairs. The keys are treatment names, and the values are the portion of experiment traffic to be assigned to that treatment. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnExperiment.OnlineAbConfigObjectProperty>- Returns:
- a new instance of
CfnExperiment.OnlineAbConfigObjectProperty - Throws:
NullPointerException- if any required attribute was not provided
-