Interface Status.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Status.Builder,
,Status> SdkBuilder<Status.Builder,
,Status> SdkPojo
- Enclosing class:
Status
@Mutable
@NotThreadSafe
public static interface Status.Builder
extends SdkPojo, CopyableBuilder<Status.Builder,Status>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Status.Builder
error
(Consumer<ErrorDetails.Builder> error) The error message.error
(ErrorDetails error) The error message.The current state of the entity, component, component type, or workspace.The current state of the entity, component, component type, or workspace.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 entity, component, component type, or workspace.
- Parameters:
state
- The current state of the entity, component, component type, or workspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of the entity, component, component type, or workspace.
- Parameters:
state
- The current state of the entity, component, component type, or workspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
error
The error message.
- Parameters:
error
- The error message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
The error message.
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:
-