Class CfnLaunch.SegmentOverrideProperty.Builder
java.lang.Object
software.amazon.awscdk.services.evidently.CfnLaunch.SegmentOverrideProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunch.SegmentOverrideProperty>
- Enclosing interface:
CfnLaunch.SegmentOverrideProperty
@Stability(Stable)
public static final class CfnLaunch.SegmentOverrideProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunch.SegmentOverrideProperty>
A builder for
CfnLaunch.SegmentOverrideProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.evaluationOrder
(Number evaluationOrder) Sets the value ofCfnLaunch.SegmentOverrideProperty.getEvaluationOrder()
Sets the value ofCfnLaunch.SegmentOverrideProperty.getSegment()
Sets the value ofCfnLaunch.SegmentOverrideProperty.getWeights()
weights
(IResolvable weights) Sets the value ofCfnLaunch.SegmentOverrideProperty.getWeights()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
evaluationOrder
@Stability(Stable) public CfnLaunch.SegmentOverrideProperty.Builder evaluationOrder(Number evaluationOrder) Sets the value ofCfnLaunch.SegmentOverrideProperty.getEvaluationOrder()
- Parameters:
evaluationOrder
- A number indicating the order to use to evaluate segment overrides, if there are more than one. This parameter is required. Segment overrides with lower numbers are evaluated first.- Returns:
this
-
segment
Sets the value ofCfnLaunch.SegmentOverrideProperty.getSegment()
- Parameters:
segment
- The ARN of the segment to use for this override. This parameter is required.- Returns:
this
-
weights
Sets the value ofCfnLaunch.SegmentOverrideProperty.getWeights()
- Parameters:
weights
- The traffic allocation percentages among the feature variations to assign to this segment. This parameter is required. 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 CfnLaunch.SegmentOverrideProperty.Builder weights(List<? extends Object> weights) Sets the value ofCfnLaunch.SegmentOverrideProperty.getWeights()
- Parameters:
weights
- The traffic allocation percentages among the feature variations to assign to this segment. This parameter is required. 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnLaunch.SegmentOverrideProperty>
- Returns:
- a new instance of
CfnLaunch.SegmentOverrideProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-