Interface AssetStatus.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AssetStatus.Builder,
,AssetStatus> SdkBuilder<AssetStatus.Builder,
,AssetStatus> SdkPojo
- Enclosing class:
AssetStatus
public static interface AssetStatus.Builder
extends SdkPojo, CopyableBuilder<AssetStatus.Builder,AssetStatus>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AssetStatus.Builder
error
(Consumer<ErrorDetails.Builder> error) Contains associated error information, if any.error
(ErrorDetails error) Contains associated error information, if any.The current status of the asset.state
(AssetState state) The current status of the asset.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
-
state
The current status of the asset.
- Parameters:
state
- The current status of the asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current status of the asset.
- Parameters:
state
- The current status of the asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
error
Contains associated error information, if any.
- Parameters:
error
- Contains associated error information, if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
Contains associated error information, if any.
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:
-