Interface ExpenseDocument.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ExpenseDocument.Builder,ExpenseDocument>,SdkBuilder<ExpenseDocument.Builder,ExpenseDocument>,SdkPojo
- Enclosing class:
- ExpenseDocument
@Mutable @NotThreadSafe public static interface ExpenseDocument.Builder extends SdkPojo, CopyableBuilder<ExpenseDocument.Builder,ExpenseDocument>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpenseDocument.Builderblocks(Collection<Block> blocks)This is a block object, the same as reported when DetectDocumentText is run on a document.ExpenseDocument.Builderblocks(Consumer<Block.Builder>... blocks)This is a block object, the same as reported when DetectDocumentText is run on a document.ExpenseDocument.Builderblocks(Block... blocks)This is a block object, the same as reported when DetectDocumentText is run on a document.ExpenseDocument.BuilderexpenseIndex(Integer expenseIndex)Denotes which invoice or receipt in the document the information is coming from.ExpenseDocument.BuilderlineItemGroups(Collection<LineItemGroup> lineItemGroups)Information detected on each table of a document, seperated intoLineItems.ExpenseDocument.BuilderlineItemGroups(Consumer<LineItemGroup.Builder>... lineItemGroups)Information detected on each table of a document, seperated intoLineItems.ExpenseDocument.BuilderlineItemGroups(LineItemGroup... lineItemGroups)Information detected on each table of a document, seperated intoLineItems.ExpenseDocument.BuildersummaryFields(Collection<ExpenseField> summaryFields)Any information found outside of a table by Amazon Textract.ExpenseDocument.BuildersummaryFields(Consumer<ExpenseField.Builder>... summaryFields)Any information found outside of a table by Amazon Textract.ExpenseDocument.BuildersummaryFields(ExpenseField... summaryFields)Any information found outside of a table by Amazon Textract.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
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.
-
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 theExpenseField.Builderavoiding the need to create one manually viaExpenseField.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#summaryFields(List.) - 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:
#summaryFields(java.util.Collection)
-
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 intoLineItems.- 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 intoLineItems.- 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
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 to#lineItemGroups(List.) - 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:
#lineItemGroups(java.util.Collection)
-
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 theBlock.Builderavoiding the need to create one manually viaBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#blocks(List.) - 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:
#blocks(java.util.Collection)
-
-