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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ExperimentState.Buildererror(Consumer<ExperimentError.Builder> error)The error information of the experiment when the action hasfailed.ExperimentState.Buildererror(ExperimentError error)The error information of the experiment when the action hasfailed.ExperimentState.Builderreason(String reason)The reason for the state.ExperimentState.Builderstatus(String status)The state of the experiment.ExperimentState.Builderstatus(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 Detail
-
status
ExperimentState.Builder status(String 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:
ExperimentStatus,ExperimentStatus
-
status
ExperimentState.Builder status(ExperimentStatus 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:
ExperimentStatus,ExperimentStatus
-
reason
ExperimentState.Builder reason(String 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
ExperimentState.Builder error(ExperimentError 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
default ExperimentState.Builder error(Consumer<ExperimentError.Builder> error)
The error information of the experiment when the action has
This is a convenience method that creates an instance of thefailed.ExperimentError.Builderavoiding the need to create one manually viaExperimentError.builder().When the
Consumercompletes,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:
error(ExperimentError)
-
-