Interface ResourceStatus.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResourceStatus.Builder,,ResourceStatus> SdkBuilder<ResourceStatus.Builder,,ResourceStatus> SdkPojo
- Enclosing class:
ResourceStatus
@Mutable
@NotThreadSafe
public static interface ResourceStatus.Builder
extends SdkPojo, CopyableBuilder<ResourceStatus.Builder,ResourceStatus>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResourceStatus.Buildererror(Consumer<ResourceError.Builder> error) Contains associated error information, if any.error(ResourceError error) Contains associated error information, if any.The current status of the resource.state(ResourceState state) The current status of the resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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 theResourceError.Builderavoiding the need to create one manually viaResourceError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(ResourceError).- Parameters:
error- a consumer that will call methods onResourceError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current status of the resource.
- Parameters:
state- The current status of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current status of the resource.
- Parameters:
state- The current status of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-