Interface ExpenseDocument.Builder

    • Method Detail

      • 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.
      • 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.
      • blocks

        ExpenseDocument.Builder blocks​(Collection<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

        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

        ExpenseDocument.Builder blocks​(Consumer<Block.Builder>... 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).

        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:
        #blocks(java.util.Collection)