Interface ExperimentDetails.Builder

  • Method Details

    • experimentId

      ExperimentDetails.Builder experimentId(String experimentId)

      The ID of the experiment.

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

      ExperimentDetails.Builder experimentArn(String experimentArn)

      The ARN of the experiment.

      Parameters:
      experimentArn - The ARN of the experiment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.
    • description

      ExperimentDetails.Builder description(String description)

      The description of the experiment.

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

      What the experiment tests.

      Parameters:
      target - What the experiment tests.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • target

      What the experiment tests.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to target(ExperimentTarget).

      Parameters:
      target - a consumer that will call methods on ExperimentTarget.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • experimentType

      ExperimentDetails.Builder experimentType(String experimentType)

      The type of the experiment.

      Parameters:
      experimentType - The type of the experiment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • experimentType

      ExperimentDetails.Builder experimentType(ExperimentType experimentType)

      The type of the experiment.

      Parameters:
      experimentType - The type of the experiment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • experimentConfig

      ExperimentDetails.Builder experimentConfig(ExperimentConfig experimentConfig)

      The configuration for the experiment's type.

      Parameters:
      experimentConfig - The configuration for the experiment's type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • experimentConfig

      default ExperimentDetails.Builder experimentConfig(Consumer<ExperimentConfig.Builder> experimentConfig)

      The configuration for the experiment's type.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to experimentConfig(ExperimentConfig).

      Parameters:
      experimentConfig - a consumer that will call methods on ExperimentConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • runCount

      ExperimentDetails.Builder runCount(Integer runCount)

      The number of runs of the experiment, including live control runs.

      Parameters:
      runCount - The number of runs of the experiment, including live control runs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetRunCount

      ExperimentDetails.Builder targetRunCount(Integer targetRunCount)

      The number of runs of the experiment, excluding live control runs, which share the number of their target run.

      Parameters:
      targetRunCount - The number of runs of the experiment, excluding live control runs, which share the number of their target run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestRun

      The most recently started run, including its verdict when it has a rule.

      Parameters:
      latestRun - The most recently started run, including its verdict when it has a rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestRun

      The most recently started run, including its verdict when it has a rule.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to latestRun(ExperimentRunSummary).

      Parameters:
      latestRun - a consumer that will call methods on ExperimentRunSummary.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • baselineRunId

      ExperimentDetails.Builder baselineRunId(String baselineRunId)

      The ID of the run chosen as the experiment's baseline with UpdateExperiment. Always a COMPLETED target run, never a live control run. Absent when no baseline is set; deleting that run clears it.

      Parameters:
      baselineRunId - The ID of the run chosen as the experiment's baseline with UpdateExperiment. Always a COMPLETED target run, never a live control run. Absent when no baseline is set; deleting that run clears it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      ExperimentDetails.Builder createdAt(Instant createdAt)

      The time when the experiment was created.

      Parameters:
      createdAt - The time when the experiment was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      ExperimentDetails.Builder updatedAt(Instant updatedAt)

      The time when the experiment was last updated.

      Parameters:
      updatedAt - The time when the experiment was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.