Class CfnLaunchPropsMixin.SegmentOverrideProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.evidently.CfnLaunchPropsMixin.SegmentOverrideProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchPropsMixin.SegmentOverrideProperty>
- Enclosing interface:
CfnLaunchPropsMixin.SegmentOverrideProperty
@Stability(Stable)
public static final class CfnLaunchPropsMixin.SegmentOverrideProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchPropsMixin.SegmentOverrideProperty>
A builder for
CfnLaunchPropsMixin.SegmentOverrideProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.evaluationOrder(Number evaluationOrder) Sets the value ofCfnLaunchPropsMixin.SegmentOverrideProperty.getEvaluationOrder()Sets the value ofCfnLaunchPropsMixin.SegmentOverrideProperty.getSegment()Sets the value ofCfnLaunchPropsMixin.SegmentOverrideProperty.getWeights()weights(IResolvable weights) Sets the value ofCfnLaunchPropsMixin.SegmentOverrideProperty.getWeights()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
evaluationOrder
@Stability(Stable) public CfnLaunchPropsMixin.SegmentOverrideProperty.Builder evaluationOrder(Number evaluationOrder) Sets the value ofCfnLaunchPropsMixin.SegmentOverrideProperty.getEvaluationOrder()- Parameters:
evaluationOrder- A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides with lower numbers are evaluated first.- Returns:
this
-
segment
@Stability(Stable) public CfnLaunchPropsMixin.SegmentOverrideProperty.Builder segment(String segment) Sets the value ofCfnLaunchPropsMixin.SegmentOverrideProperty.getSegment()- Parameters:
segment- The ARN of the segment to use for this override.- Returns:
this
-
weights
@Stability(Stable) public CfnLaunchPropsMixin.SegmentOverrideProperty.Builder weights(IResolvable weights) Sets the value ofCfnLaunchPropsMixin.SegmentOverrideProperty.getWeights()- Parameters:
weights- The traffic allocation percentages among the feature variations to assign to this segment. This is a set of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic.- Returns:
this
-
weights
@Stability(Stable) public CfnLaunchPropsMixin.SegmentOverrideProperty.Builder weights(List<? extends Object> weights) Sets the value ofCfnLaunchPropsMixin.SegmentOverrideProperty.getWeights()- Parameters:
weights- The traffic allocation percentages among the feature variations to assign to this segment. This is a set of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchPropsMixin.SegmentOverrideProperty>- Returns:
- a new instance of
CfnLaunchPropsMixin.SegmentOverrideProperty - Throws:
NullPointerException- if any required attribute was not provided
-