Interface Status.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Status.Builder,Status>,SdkBuilder<Status.Builder,Status>,SdkPojo
- Enclosing class:
- Status
public static interface Status.Builder extends SdkPojo, CopyableBuilder<Status.Builder,Status>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Status.Buildererror(Consumer<ErrorDetails.Builder> error)The error message.Status.Buildererror(ErrorDetails error)The error message.Status.Builderstate(String state)The current state of the entity, component, component type, or workspace.Status.Builderstate(State state)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 Detail
-
state
Status.Builder state(String state)
The current state of the entity, component, component type, or workspace.
-
state
Status.Builder state(State state)
The current state of the entity, component, component type, or workspace.
-
error
Status.Builder error(ErrorDetails 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
default Status.Builder error(Consumer<ErrorDetails.Builder> error)
The error message.
This is a convenience method that creates an instance of theErrorDetails.Builderavoiding the need to create one manually viaErrorDetails.builder().When the
Consumercompletes,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:
error(ErrorDetails)
-
-