Class CfnExperiment.Builder

java.lang.Object
software.amazon.awscdk.services.evidently.CfnExperiment.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExperiment>
Enclosing class:
CfnExperiment

@Stability(Stable) public static final class CfnExperiment.Builder extends Object implements software.amazon.jsii.Builder<CfnExperiment>
A fluent builder for CfnExperiment.
  • Method Details

    • create

      @Stability(Stable) public static CfnExperiment.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnExperiment.Builder.
    • metricGoals

      @Stability(Stable) public CfnExperiment.Builder metricGoals(IResolvable 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.

      You can use up to three metrics in an experiment.

      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.
      Returns:
      this
    • metricGoals

      @Stability(Stable) public CfnExperiment.Builder metricGoals(List<? extends Object> 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.

      You can use up to three metrics in an experiment.

      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.
      Returns:
      this
    • name

      @Stability(Stable) public CfnExperiment.Builder name(String name)
      A name for the new experiment.

      Parameters:
      name - A name for the new experiment. This parameter is required.
      Returns:
      this
    • onlineAbConfig

      @Stability(Stable) public CfnExperiment.Builder onlineAbConfig(IResolvable onlineAbConfig)
      A structure that contains the configuration of which variation to use as the "control" version.

      The "control" version is used for comparison with other variations. This structure also specifies how much experiment traffic is allocated to each variation.

      Parameters:
      onlineAbConfig - A structure that contains the configuration of which variation to use as the "control" version. This parameter is required.
      Returns:
      this
    • onlineAbConfig

      @Stability(Stable) public CfnExperiment.Builder onlineAbConfig(CfnExperiment.OnlineAbConfigObjectProperty onlineAbConfig)
      A structure that contains the configuration of which variation to use as the "control" version.

      The "control" version is used for comparison with other variations. This structure also specifies how much experiment traffic is allocated to each variation.

      Parameters:
      onlineAbConfig - A structure that contains the configuration of which variation to use as the "control" version. This parameter is required.
      Returns:
      this
    • project

      @Stability(Stable) public CfnExperiment.Builder project(String project)
      The name or the ARN of the project where this experiment is to be created.

      Parameters:
      project - The name or the ARN of the project where this experiment is to be created. This parameter is required.
      Returns:
      this
    • treatments

      @Stability(Stable) public CfnExperiment.Builder treatments(IResolvable treatments)
      An array of structures that describe the configuration of each feature variation used in the experiment.

      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

      @Stability(Stable) public CfnExperiment.Builder treatments(List<? extends Object> treatments)
      An array of structures that describe the configuration of each feature variation used in the experiment.

      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

      @Stability(Stable) public CfnExperiment.Builder description(String description)
      An optional description of the experiment.

      Parameters:
      description - An optional description of the experiment. This parameter is required.
      Returns:
      this
    • randomizationSalt

      @Stability(Stable) public CfnExperiment.Builder randomizationSalt(String 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 and randomizationSalt . If you omit randomizationSalt , Evidently uses the experiment name as the randomizationSalt .

      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 parameter is required.
      Returns:
      this
    • removeSegment

      @Stability(Stable) public CfnExperiment.Builder removeSegment(Boolean removeSegment)
      Set this to true to remove the segment that is associated with this experiment.

      You can't use this parameter if the experiment is currently running.

      Parameters:
      removeSegment - Set this to true to remove the segment that is associated with this experiment. This parameter is required.
      Returns:
      this
    • removeSegment

      @Stability(Stable) public CfnExperiment.Builder removeSegment(IResolvable removeSegment)
      Set this to true to remove the segment that is associated with this experiment.

      You can't use this parameter if the experiment is currently running.

      Parameters:
      removeSegment - Set this to true to remove the segment that is associated with this experiment. This parameter is required.
      Returns:
      this
    • runningStatus

      @Stability(Stable) public CfnExperiment.Builder runningStatus(IResolvable runningStatus)
      A structure that you can use to start and stop the experiment.

      Parameters:
      runningStatus - A structure that you can use to start and stop the experiment. This parameter is required.
      Returns:
      this
    • runningStatus

      @Stability(Stable) public CfnExperiment.Builder runningStatus(CfnExperiment.RunningStatusObjectProperty runningStatus)
      A structure that you can use to start and stop the experiment.

      Parameters:
      runningStatus - A structure that you can use to start and stop the experiment. This parameter is required.
      Returns:
      this
    • samplingRate

      @Stability(Stable) public CfnExperiment.Builder samplingRate(Number 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.

      Parameters:
      samplingRate - The portion of the available audience that you want to allocate to this experiment, in thousandths of a percent. This parameter is required.
      Returns:
      this
    • segment

      @Stability(Stable) public CfnExperiment.Builder segment(String 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 .

      Parameters:
      segment - Specifies an audience segment to use in the experiment. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnExperiment.Builder tags(List<? extends CfnTag> 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 .

      Parameters:
      tags - Assigns one or more tags (key-value pairs) to the experiment. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnExperiment build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnExperiment>
      Returns:
      a newly built instance of CfnExperiment.