Interface DocumentDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DocumentDetails.Builder,
,DocumentDetails> SdkBuilder<DocumentDetails.Builder,
,DocumentDetails> SdkPojo
- Enclosing class:
DocumentDetails
public static interface DocumentDetails.Builder
extends SdkPojo, CopyableBuilder<DocumentDetails.Builder,DocumentDetails>
-
Method Summary
Modifier and TypeMethodDescriptionThe timestamp for when the document was created.documentId
(String documentId) The identifier of the document.default DocumentDetails.Builder
error
(Consumer<ErrorDetail.Builder> error) An error message associated with the document.error
(ErrorDetail error) An error message associated with the document.The current status of the document.status
(DocumentStatus status) The current status of the document.The timestamp for when the document was last updated.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
-
documentId
The identifier of the document.
- Parameters:
documentId
- The identifier of the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the document.
- Parameters:
status
- The current status of the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the document.
- Parameters:
status
- The current status of the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
error
An error message associated with the document.
- Parameters:
error
- An error message associated with the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
An error message associated with the document.
This is a convenience method that creates an instance of theErrorDetail.Builder
avoiding the need to create one manually viaErrorDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerror(ErrorDetail)
.- Parameters:
error
- a consumer that will call methods onErrorDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The timestamp for when the document was created.
- Parameters:
createdAt
- The timestamp for when the document was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The timestamp for when the document was last updated.
- Parameters:
updatedAt
- The timestamp for when the document was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-