Interface ExpenseDocument.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ExpenseDocument.Builder,,ExpenseDocument> SdkBuilder<ExpenseDocument.Builder,,ExpenseDocument> SdkPojo
- Enclosing class:
ExpenseDocument
-
Method Summary
Modifier and TypeMethodDescriptionblocks(Collection<Block> blocks) This is a block object, the same as reported when DetectDocumentText is run on a document.blocks(Consumer<Block.Builder>... blocks) This is a block object, the same as reported when DetectDocumentText is run on a document.This is a block object, the same as reported when DetectDocumentText is run on a document.expenseIndex(Integer expenseIndex) Denotes which invoice or receipt in the document the information is coming from.lineItemGroups(Collection<LineItemGroup> lineItemGroups) Information detected on each table of a document, seperated intoLineItems.lineItemGroups(Consumer<LineItemGroup.Builder>... lineItemGroups) Information detected on each table of a document, seperated intoLineItems.lineItemGroups(LineItemGroup... lineItemGroups) Information detected on each table of a document, seperated intoLineItems.summaryFields(Collection<ExpenseField> summaryFields) Any information found outside of a table by Amazon Textract.summaryFields(Consumer<ExpenseField.Builder>... summaryFields) Any information found outside of a table by Amazon Textract.summaryFields(ExpenseField... summaryFields) Any information found outside of a table by Amazon Textract.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
Any information found outside of a table by Amazon Textract.
This is a convenience method that creates an instance of theExpenseField.Builderavoiding the need to create one manually viaExpenseField.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosummaryFields(List<ExpenseField>).- Parameters:
summaryFields- a consumer that will call methods onExpenseField.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lineItemGroups
Information detected on each table of a document, seperated into
LineItems.- Parameters:
lineItemGroups- Information detected on each table of a document, seperated intoLineItems.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lineItemGroups
Information detected on each table of a document, seperated into
LineItems.- Parameters:
lineItemGroups- Information detected on each table of a document, seperated intoLineItems.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lineItemGroups
Information detected on each table of a document, seperated into
This is a convenience method that creates an instance of theLineItems.LineItemGroup.Builderavoiding the need to create one manually viaLineItemGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolineItemGroups(List<LineItemGroup>).- Parameters:
lineItemGroups- a consumer that will call methods onLineItemGroup.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
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 theBlock.Builderavoiding the need to create one manually viaBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toblocks(List<Block>).- Parameters:
blocks- a consumer that will call methods onBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-