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