Interface DocumentDetails.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<DocumentDetails.Builder,,- DocumentDetails> - SdkBuilder<DocumentDetails.Builder,,- DocumentDetails> - SdkPojo
- Enclosing class:
- DocumentDetails
@Mutable
@NotThreadSafe
public static interface DocumentDetails.Builder
extends SdkPojo, CopyableBuilder<DocumentDetails.Builder,DocumentDetails> 
- 
Method SummaryModifier and TypeMethodDescriptionThe timestamp for when the document was created.documentId(String documentId) The identifier of the document.default DocumentDetails.Buildererror(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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
documentIdThe 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.
 
- 
statusThe 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:
 
- 
statusThe 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:
 
- 
errorAn 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.
 
- 
errorAn 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 on- ErrorDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
createdAtThe 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.
 
- 
updatedAtThe 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.
 
 
-