Interface Experiment.Builder

    • Method Detail

      • arn

        Experiment.Builder arn​(String arn)

        The ARN of the experiment.

        Parameters:
        arn - The ARN of the experiment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • createdTime

        Experiment.Builder createdTime​(Instant createdTime)

        The date and time that the experiment is first created.

        Parameters:
        createdTime - The date and time that the experiment is first created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        Experiment.Builder description​(String description)

        A description of the experiment.

        Parameters:
        description - A description of the experiment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • execution

        Experiment.Builder execution​(ExperimentExecution execution)

        A structure that contains the date and time that the experiment started and ended.

        Parameters:
        execution - A structure that contains the date and time that the experiment started and ended.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastUpdatedTime

        Experiment.Builder lastUpdatedTime​(Instant lastUpdatedTime)

        The date and time that the experiment was most recently updated.

        Parameters:
        lastUpdatedTime - The date and time that the experiment was most recently updated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricGoals

        Experiment.Builder metricGoals​(Collection<MetricGoal> 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.

        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricGoals

        Experiment.Builder metricGoals​(MetricGoal... 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.

        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricGoals

        Experiment.Builder metricGoals​(Consumer<MetricGoal.Builder>... 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 is a convenience method that creates an instance of the MetricGoal.Builder avoiding the need to create one manually via MetricGoal.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #metricGoals(List).

        Parameters:
        metricGoals - a consumer that will call methods on MetricGoal.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #metricGoals(java.util.Collection)
      • name

        Experiment.Builder name​(String name)

        The name of the experiment.

        Parameters:
        name - The name of the experiment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • onlineAbDefinition

        Experiment.Builder onlineAbDefinition​(OnlineAbDefinition onlineAbDefinition)

        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:
        onlineAbDefinition - 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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • project

        Experiment.Builder project​(String project)

        The name or ARN of the project that contains this experiment.

        Parameters:
        project - The name or ARN of the project that contains this experiment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • randomizationSalt

        Experiment.Builder randomizationSalt​(String randomizationSalt)

        This value is used when Evidently assigns a particular user session to the experiment. It helps create a randomization ID to determine which variation the user session is served. This randomization ID is a combination of the entity ID and randomizationSalt.

        Parameters:
        randomizationSalt - This value is used when Evidently assigns a particular user session to the experiment. It helps create a randomization ID to determine which variation the user session is served. This randomization ID is a combination of the entity ID and randomizationSalt.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • samplingRate

        Experiment.Builder samplingRate​(Long samplingRate)

        In thousandths of a percent, the amount of the available audience that is allocated to this experiment. 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, so a value of 10,000 is 10% of the available audience.

        Parameters:
        samplingRate - In thousandths of a percent, the amount of the available audience that is allocated to this experiment. 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, so a value of 10,000 is 10% of the available audience.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • schedule

        Experiment.Builder schedule​(ExperimentSchedule schedule)

        A structure that contains the time and date that Evidently completed the analysis of the experiment.

        Parameters:
        schedule - A structure that contains the time and date that Evidently completed the analysis of the experiment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • segment

        Experiment.Builder segment​(String segment)

        The audience segment being used for the experiment, if a segment is being used.

        Parameters:
        segment - The audience segment being used for the experiment, if a segment is being used.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        Experiment.Builder status​(String status)

        The current state of the experiment.

        Parameters:
        status - The current state of the experiment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ExperimentStatus, ExperimentStatus
      • statusReason

        Experiment.Builder statusReason​(String statusReason)

        If the experiment was stopped, this is the string that was entered by the person who stopped the experiment, to explain why it was stopped.

        Parameters:
        statusReason - If the experiment was stopped, this is the string that was entered by the person who stopped the experiment, to explain why it was stopped.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        Experiment.Builder tags​(Map<String,​String> tags)

        The list of tag keys and values associated with this experiment.

        Parameters:
        tags - The list of tag keys and values associated with this experiment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • treatments

        Experiment.Builder treatments​(Collection<Treatment> 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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • treatments

        Experiment.Builder treatments​(Treatment... 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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • treatments

        Experiment.Builder treatments​(Consumer<Treatment.Builder>... treatments)

        An array of structures that describe the configuration of each feature variation used in the experiment.

        This is a convenience method that creates an instance of the Treatment.Builder avoiding the need to create one manually via Treatment.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #treatments(List).

        Parameters:
        treatments - a consumer that will call methods on Treatment.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #treatments(java.util.Collection)
      • type

        Experiment.Builder type​(String type)

        The type of this experiment. Currently, this value must be aws.experiment.onlineab.

        Parameters:
        type - The type of this experiment. Currently, this value must be aws.experiment.onlineab.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ExperimentType, ExperimentType
      • type

        Experiment.Builder type​(ExperimentType type)

        The type of this experiment. Currently, this value must be aws.experiment.onlineab.

        Parameters:
        type - The type of this experiment. Currently, this value must be aws.experiment.onlineab.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ExperimentType, ExperimentType