Class CfnExperimentDefinition.TreatmentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appconfig.CfnExperimentDefinition.TreatmentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExperimentDefinition.TreatmentProperty>
- Enclosing interface:
CfnExperimentDefinition.TreatmentProperty
@Stability(Stable)
public static final class CfnExperimentDefinition.TreatmentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnExperimentDefinition.TreatmentProperty>
A builder for
CfnExperimentDefinition.TreatmentProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeValues(Map<String, ? extends Object> attributeValues) Sets the value ofCfnExperimentDefinition.TreatmentProperty.getAttributeValues()attributeValues(IResolvable attributeValues) Sets the value ofCfnExperimentDefinition.TreatmentProperty.getAttributeValues()build()Builds the configured instance.description(String description) Sets the value ofCfnExperimentDefinition.TreatmentProperty.getDescription()Sets the value ofCfnExperimentDefinition.TreatmentProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnExperimentDefinition.TreatmentProperty.getEnabled()Sets the value ofCfnExperimentDefinition.TreatmentProperty.getKey()Sets the value ofCfnExperimentDefinition.TreatmentProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnExperimentDefinition.TreatmentProperty.Builder enabled(Boolean enabled) Sets the value ofCfnExperimentDefinition.TreatmentProperty.getEnabled()- Parameters:
enabled- Whether the flag is enabled for this variant. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public CfnExperimentDefinition.TreatmentProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnExperimentDefinition.TreatmentProperty.getEnabled()- Parameters:
enabled- Whether the flag is enabled for this variant. This parameter is required.- Returns:
this
-
weight
Sets the value ofCfnExperimentDefinition.TreatmentProperty.getWeight()- Parameters:
weight- Traffic weight percentage. This parameter is required.- Returns:
this
-
attributeValues
@Stability(Stable) public CfnExperimentDefinition.TreatmentProperty.Builder attributeValues(IResolvable attributeValues) Sets the value ofCfnExperimentDefinition.TreatmentProperty.getAttributeValues()- Parameters:
attributeValues- Map of attribute name to attribute value.- Returns:
this
-
attributeValues
@Stability(Stable) public CfnExperimentDefinition.TreatmentProperty.Builder attributeValues(Map<String, ? extends Object> attributeValues) Sets the value ofCfnExperimentDefinition.TreatmentProperty.getAttributeValues()- Parameters:
attributeValues- Map of attribute name to attribute value.- Returns:
this
-
description
@Stability(Stable) public CfnExperimentDefinition.TreatmentProperty.Builder description(String description) Sets the value ofCfnExperimentDefinition.TreatmentProperty.getDescription()- Parameters:
description- the value to be set.- Returns:
this
-
key
Sets the value ofCfnExperimentDefinition.TreatmentProperty.getKey()- Parameters:
key- The treatment key (read-only, auto-generated by service).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnExperimentDefinition.TreatmentProperty>- Returns:
- a new instance of
CfnExperimentDefinition.TreatmentProperty - Throws:
NullPointerException- if any required attribute was not provided
-