Interface CreateExperimentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchOmniRequest.Builder,CopyableBuilder<CreateExperimentRequest.Builder,,CreateExperimentRequest> SdkBuilder<CreateExperimentRequest.Builder,,CreateExperimentRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateExperimentRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Idempotency token for safe retries.description(String description) An optional description of the experiment.default CreateExperimentRequest.BuilderexperimentConfig(Consumer<ExperimentConfig.Builder> experimentConfig) The configuration for the experiment's type.experimentConfig(ExperimentConfig experimentConfig) The configuration for the experiment's type.experimentType(String experimentType) The type of the experiment.experimentType(ExperimentType experimentType) The type of the experiment.The name of the experiment.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The tags to associate with the experiment.default CreateExperimentRequest.Buildertarget(Consumer<ExperimentTarget.Builder> target) The target that the experiment tests, including its service name, environment, and definition.target(ExperimentTarget target) The target that the experiment tests, including its service name, environment, and definition.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatchomni.model.CloudWatchOmniRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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 theExperimentTarget.Builderavoiding the need to create one manually viaExperimentTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totarget(ExperimentTarget).- Parameters:
target- a consumer that will call methods onExperimentTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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 theExperimentConfig.Builderavoiding the need to create one manually viaExperimentConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexperimentConfig(ExperimentConfig).- Parameters:
experimentConfig- a consumer that will call methods onExperimentConfig.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 reservedaws: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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateExperimentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-