Interface CreateExperimentRequest.Builder

  • Method Details

    • clientToken

      CreateExperimentRequest.Builder clientToken(String clientToken)

      Idempotency token for safe retries. Repeated requests with the same token return the original result instead of creating a second experiment.

      Parameters:
      clientToken - Idempotency token for safe retries. Repeated requests with the same token return the original result instead of creating a second 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

      CreateExperimentRequest.Builder description(String description)

      An optional description of the experiment. Up to 1,024 characters, with no control characters.

      Parameters:
      description - An optional description of the experiment. Up to 1,024 characters, with no control characters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • target

      The target that the experiment tests, including its service name, environment, and definition. Cannot be changed after the experiment is created.

      Parameters:
      target - The target that the experiment tests, including its service name, environment, and definition. Cannot be changed after the experiment is created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • target

      The target that the experiment tests, including its service name, environment, and definition. Cannot be changed after the experiment is created.

      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

      CreateExperimentRequest.Builder experimentType(String experimentType)

      The type of the experiment. Cannot be changed after the experiment is created.

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

      CreateExperimentRequest.Builder experimentType(ExperimentType experimentType)

      The type of the experiment. Cannot be changed after the experiment is created.

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

      CreateExperimentRequest.Builder experimentConfig(ExperimentConfig experimentConfig)

      The configuration for the experiment's type. Its member must match experimentType: a DATASET experiment takes experimentConfig.dataset. The caller must have iam:PassRole on the execution role, the role must be assumable, and the results log group must exist and use the Standard log class.

      Parameters:
      experimentConfig - The configuration for the experiment's type. Its member must match experimentType: a DATASET experiment takes experimentConfig.dataset. The caller must have iam:PassRole on the execution role, the role must be assumable, and the results log group must exist and use the Standard log class.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • experimentConfig

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

      The configuration for the experiment's type. Its member must match experimentType: a DATASET experiment takes experimentConfig.dataset. The caller must have iam:PassRole on the execution role, the role must be assumable, and the results log group must exist and use the Standard log class.

      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:
    • tags

      The tags to associate with the experiment. Tag keys that begin with the reserved aws: prefix are rejected with a ValidationException.

      Parameters:
      tags - The tags to associate with the experiment. Tag keys that begin with the reserved aws: prefix are rejected with a ValidationException.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateExperimentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.