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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DocumentDetails.BuildercreatedAt(Instant createdAt)The timestamp for when the document was created.DocumentDetails.BuilderdocumentId(String documentId)The identifier of the document.default DocumentDetails.Buildererror(Consumer<ErrorDetail.Builder> error)An error message associated with the document.DocumentDetails.Buildererror(ErrorDetail error)An error message associated with the document.DocumentDetails.Builderstatus(String status)The current status of the document.DocumentDetails.Builderstatus(DocumentStatus status)The current status of the document.DocumentDetails.BuilderupdatedAt(Instant updatedAt)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 Detail
-
documentId
DocumentDetails.Builder documentId(String 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
DocumentDetails.Builder status(String 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:
DocumentStatus,DocumentStatus
-
status
DocumentDetails.Builder status(DocumentStatus 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:
DocumentStatus,DocumentStatus
-
error
DocumentDetails.Builder error(ErrorDetail 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
default DocumentDetails.Builder error(Consumer<ErrorDetail.Builder> error)
An error message associated with the document.
This is a convenience method that creates an instance of theErrorDetail.Builderavoiding the need to create one manually viaErrorDetail.builder().When the
Consumercompletes,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:
error(ErrorDetail)
-
createdAt
DocumentDetails.Builder createdAt(Instant 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
DocumentDetails.Builder updatedAt(Instant 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.
-
-