Interface ExpenseDocument.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ExpenseDocument.Builder,ExpenseDocument>, SdkBuilder<ExpenseDocument.Builder,ExpenseDocument>, SdkPojo
Enclosing class:
ExpenseDocument

public static interface ExpenseDocument.Builder extends SdkPojo, CopyableBuilder<ExpenseDocument.Builder,ExpenseDocument>
  • Method Details

    • expenseIndex

      ExpenseDocument.Builder expenseIndex(Integer expenseIndex)

      Denotes which invoice or receipt in the document the information is coming from. First document will be 1, the second 2, and so on.

      Parameters:
      expenseIndex - Denotes which invoice or receipt in the document the information is coming from. First document will be 1, the second 2, and so on.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • summaryFields

      ExpenseDocument.Builder summaryFields(Collection<ExpenseField> summaryFields)

      Any information found outside of a table by Amazon Textract.

      Parameters:
      summaryFields - Any information found outside of a table by Amazon Textract.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • summaryFields

      ExpenseDocument.Builder summaryFields(ExpenseField... summaryFields)

      Any information found outside of a table by Amazon Textract.

      Parameters:
      summaryFields - Any information found outside of a table by Amazon Textract.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • summaryFields

      ExpenseDocument.Builder summaryFields(Consumer<ExpenseField.Builder>... summaryFields)

      Any information found outside of a table by Amazon Textract.

      This is a convenience method that creates an instance of the ExpenseField.Builder avoiding the need to create one manually via ExpenseField.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to summaryFields(List<ExpenseField>).

      Parameters:
      summaryFields - a consumer that will call methods on ExpenseField.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lineItemGroups

      ExpenseDocument.Builder lineItemGroups(Collection<LineItemGroup> lineItemGroups)

      Information detected on each table of a document, seperated into LineItems.

      Parameters:
      lineItemGroups - Information detected on each table of a document, seperated into LineItems.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lineItemGroups

      ExpenseDocument.Builder lineItemGroups(LineItemGroup... lineItemGroups)

      Information detected on each table of a document, seperated into LineItems.

      Parameters:
      lineItemGroups - Information detected on each table of a document, seperated into LineItems.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lineItemGroups

      ExpenseDocument.Builder lineItemGroups(Consumer<LineItemGroup.Builder>... lineItemGroups)

      Information detected on each table of a document, seperated into LineItems.

      This is a convenience method that creates an instance of the LineItemGroup.Builder avoiding the need to create one manually via LineItemGroup.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to lineItemGroups(List<LineItemGroup>).

      Parameters:
      lineItemGroups - a consumer that will call methods on LineItemGroup.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • blocks

      This is a block object, the same as reported when DetectDocumentText is run on a document. It provides word level recognition of text.

      Parameters:
      blocks - This is a block object, the same as reported when DetectDocumentText is run on a document. It provides word level recognition of text.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • blocks

      ExpenseDocument.Builder blocks(Block... blocks)

      This is a block object, the same as reported when DetectDocumentText is run on a document. It provides word level recognition of text.

      Parameters:
      blocks - This is a block object, the same as reported when DetectDocumentText is run on a document. It provides word level recognition of text.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • blocks

      This is a block object, the same as reported when DetectDocumentText is run on a document. It provides word level recognition of text.

      This is a convenience method that creates an instance of the Block.Builder avoiding the need to create one manually via Block.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to blocks(List<Block>).

      Parameters:
      blocks - a consumer that will call methods on Block.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: