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