Class CfnExperimentProps.Builder
java.lang.Object
software.amazon.awscdk.services.evidently.CfnExperimentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExperimentProps>
- Enclosing interface:
CfnExperimentProps
@Stability(Stable)
public static final class CfnExperimentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnExperimentProps>
A builder for
CfnExperimentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnExperimentProps.getDescription()
metricGoals
(List<? extends Object> metricGoals) Sets the value ofCfnExperimentProps.getMetricGoals()
metricGoals
(IResolvable metricGoals) Sets the value ofCfnExperimentProps.getMetricGoals()
Sets the value ofCfnExperimentProps.getName()
onlineAbConfig
(IResolvable onlineAbConfig) Sets the value ofCfnExperimentProps.getOnlineAbConfig()
onlineAbConfig
(CfnExperiment.OnlineAbConfigObjectProperty onlineAbConfig) Sets the value ofCfnExperimentProps.getOnlineAbConfig()
Sets the value ofCfnExperimentProps.getProject()
randomizationSalt
(String randomizationSalt) Sets the value ofCfnExperimentProps.getRandomizationSalt()
removeSegment
(Boolean removeSegment) Sets the value ofCfnExperimentProps.getRemoveSegment()
removeSegment
(IResolvable removeSegment) Sets the value ofCfnExperimentProps.getRemoveSegment()
runningStatus
(IResolvable runningStatus) Sets the value ofCfnExperimentProps.getRunningStatus()
runningStatus
(CfnExperiment.RunningStatusObjectProperty runningStatus) Sets the value ofCfnExperimentProps.getRunningStatus()
samplingRate
(Number samplingRate) Sets the value ofCfnExperimentProps.getSamplingRate()
Sets the value ofCfnExperimentProps.getSegment()
Sets the value ofCfnExperimentProps.getTags()
treatments
(List<? extends Object> treatments) Sets the value ofCfnExperimentProps.getTreatments()
treatments
(IResolvable treatments) Sets the value ofCfnExperimentProps.getTreatments()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricGoals
Sets the value ofCfnExperimentProps.getMetricGoals()
- Parameters:
metricGoals
- An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for each metric is the goal. This parameter is required. You can use up to three metrics in an experiment.- Returns:
this
-
metricGoals
@Stability(Stable) public CfnExperimentProps.Builder metricGoals(List<? extends Object> metricGoals) Sets the value ofCfnExperimentProps.getMetricGoals()
- Parameters:
metricGoals
- An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for each metric is the goal. This parameter is required. You can use up to three metrics in an experiment.- Returns:
this
-
name
Sets the value ofCfnExperimentProps.getName()
- Parameters:
name
- A name for the new experiment. This parameter is required.- Returns:
this
-
onlineAbConfig
Sets the value ofCfnExperimentProps.getOnlineAbConfig()
- Parameters:
onlineAbConfig
- A structure that contains the configuration of which variation to use as the "control" version. This parameter is required. The "control" version is used for comparison with other variations. This structure also specifies how much experiment traffic is allocated to each variation.- Returns:
this
-
onlineAbConfig
@Stability(Stable) public CfnExperimentProps.Builder onlineAbConfig(CfnExperiment.OnlineAbConfigObjectProperty onlineAbConfig) Sets the value ofCfnExperimentProps.getOnlineAbConfig()
- Parameters:
onlineAbConfig
- A structure that contains the configuration of which variation to use as the "control" version. This parameter is required. The "control" version is used for comparison with other variations. This structure also specifies how much experiment traffic is allocated to each variation.- Returns:
this
-
project
Sets the value ofCfnExperimentProps.getProject()
- Parameters:
project
- The name or the ARN of the project where this experiment is to be created. This parameter is required.- Returns:
this
-
treatments
Sets the value ofCfnExperimentProps.getTreatments()
- Parameters:
treatments
- An array of structures that describe the configuration of each feature variation used in the experiment. This parameter is required.- Returns:
this
-
treatments
Sets the value ofCfnExperimentProps.getTreatments()
- Parameters:
treatments
- An array of structures that describe the configuration of each feature variation used in the experiment. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnExperimentProps.getDescription()
- Parameters:
description
- An optional description of the experiment.- Returns:
this
-
randomizationSalt
Sets the value ofCfnExperimentProps.getRandomizationSalt()
- Parameters:
randomizationSalt
- When Evidently assigns a particular user session to an experiment, it must use a randomization ID to determine which variation the user session is served. This randomization ID is a combination of the entity ID andrandomizationSalt
. If you omitrandomizationSalt
, Evidently uses the experiment name as therandomizationSalt
.- Returns:
this
-
removeSegment
Sets the value ofCfnExperimentProps.getRemoveSegment()
- Parameters:
removeSegment
- Set this totrue
to remove the segment that is associated with this experiment. You can't use this parameter if the experiment is currently running.- Returns:
this
-
removeSegment
Sets the value ofCfnExperimentProps.getRemoveSegment()
- Parameters:
removeSegment
- Set this totrue
to remove the segment that is associated with this experiment. You can't use this parameter if the experiment is currently running.- Returns:
this
-
runningStatus
Sets the value ofCfnExperimentProps.getRunningStatus()
- Parameters:
runningStatus
- A structure that you can use to start and stop the experiment.- Returns:
this
-
runningStatus
@Stability(Stable) public CfnExperimentProps.Builder runningStatus(CfnExperiment.RunningStatusObjectProperty runningStatus) Sets the value ofCfnExperimentProps.getRunningStatus()
- Parameters:
runningStatus
- A structure that you can use to start and stop the experiment.- Returns:
this
-
samplingRate
Sets the value ofCfnExperimentProps.getSamplingRate()
- Parameters:
samplingRate
- The portion of the available audience that you want to allocate to this experiment, in thousandths of a percent. The available audience is the total audience minus the audience that you have allocated to overrides or current launches of this feature.This is represented in thousandths of a percent. For example, specify 10,000 to allocate 10% of the available audience.
- Returns:
this
-
segment
Sets the value ofCfnExperimentProps.getSegment()
- Parameters:
segment
- Specifies an audience segment to use in the experiment. When a segment is used in an experiment, only user sessions that match the segment pattern are used in the experiment.For more information, see Segment rule pattern syntax .
- Returns:
this
-
tags
Sets the value ofCfnExperimentProps.getTags()
- Parameters:
tags
- Assigns one or more tags (key-value pairs) to the experiment. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with an experiment.
For more information, see Tagging AWS resources .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnExperimentProps>
- Returns:
- a new instance of
CfnExperimentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-