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 Details

    • 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

      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 the ErrorDetail.Builder avoiding the need to create one manually via ErrorDetail.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to error(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:
    • 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.