Interface ComputationModelStatus.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ComputationModelStatus.Builder,
,ComputationModelStatus> SdkBuilder<ComputationModelStatus.Builder,
,ComputationModelStatus> SdkPojo
- Enclosing class:
ComputationModelStatus
@Mutable
@NotThreadSafe
public static interface ComputationModelStatus.Builder
extends SdkPojo, CopyableBuilder<ComputationModelStatus.Builder,ComputationModelStatus>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ComputationModelStatus.Builder
error
(Consumer<ErrorDetails.Builder> error) Sets the value of the Error property for this object.error
(ErrorDetails error) Sets the value of the Error property for this object.The current state of the computation model.state
(ComputationModelState state) The current state of the computation model.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, sdkFieldNameToField, sdkFields
-
Method Details
-
state
The current state of the computation model.
- Parameters:
state
- The current state of the computation model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of the computation model.
- Parameters:
state
- The current state of the computation model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
error
Sets the value of the Error property for this object.- Parameters:
error
- The new value for the Error property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
Sets the value of the Error property for this object. This is a convenience method that creates an instance of theErrorDetails.Builder
avoiding the need to create one manually viaErrorDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerror(ErrorDetails)
.- Parameters:
error
- a consumer that will call methods onErrorDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-