Interface ExperimentState.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ExperimentState.Builder,
,ExperimentState> SdkBuilder<ExperimentState.Builder,
,ExperimentState> SdkPojo
- Enclosing class:
ExperimentState
public static interface ExperimentState.Builder
extends SdkPojo, CopyableBuilder<ExperimentState.Builder,ExperimentState>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExperimentState.Builder
error
(Consumer<ExperimentError.Builder> error) The error information of the experiment when the action hasfailed
.error
(ExperimentError error) The error information of the experiment when the action hasfailed
.The reason for the state.The state of the experiment.status
(ExperimentStatus status) The state of the experiment.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
status
The state of the experiment.
- Parameters:
status
- The state of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The state of the experiment.
- Parameters:
status
- The state of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reason
The reason for the state.
- Parameters:
reason
- The reason for the state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
The error information of the experiment when the action has
failed
.- Parameters:
error
- The error information of the experiment when the action hasfailed
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
The error information of the experiment when the action has
This is a convenience method that creates an instance of thefailed
.ExperimentError.Builder
avoiding the need to create one manually viaExperimentError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerror(ExperimentError)
.- Parameters:
error
- a consumer that will call methods onExperimentError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-