@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExpenseDocument extends Object implements Serializable, Cloneable, StructuredPojo
The structure holding all the information returned by AnalyzeExpense
Constructor and Description |
---|
ExpenseDocument() |
Modifier and Type | Method and Description |
---|---|
ExpenseDocument |
clone() |
boolean |
equals(Object obj) |
List<Block> |
getBlocks()
This is a block object, the same as reported when DetectDocumentText is run on a document.
|
Integer |
getExpenseIndex()
Denotes which invoice or receipt in the document the information is coming from.
|
List<LineItemGroup> |
getLineItemGroups()
Information detected on each table of a document, seperated into
LineItems . |
List<ExpenseField> |
getSummaryFields()
Any information found outside of a table by Amazon Textract.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBlocks(Collection<Block> blocks)
This is a block object, the same as reported when DetectDocumentText is run on a document.
|
void |
setExpenseIndex(Integer expenseIndex)
Denotes which invoice or receipt in the document the information is coming from.
|
void |
setLineItemGroups(Collection<LineItemGroup> lineItemGroups)
Information detected on each table of a document, seperated into
LineItems . |
void |
setSummaryFields(Collection<ExpenseField> summaryFields)
Any information found outside of a table by Amazon Textract.
|
String |
toString()
Returns a string representation of this object.
|
ExpenseDocument |
withBlocks(Block... blocks)
This is a block object, the same as reported when DetectDocumentText is run on a document.
|
ExpenseDocument |
withBlocks(Collection<Block> blocks)
This is a block object, the same as reported when DetectDocumentText is run on a document.
|
ExpenseDocument |
withExpenseIndex(Integer expenseIndex)
Denotes which invoice or receipt in the document the information is coming from.
|
ExpenseDocument |
withLineItemGroups(Collection<LineItemGroup> lineItemGroups)
Information detected on each table of a document, seperated into
LineItems . |
ExpenseDocument |
withLineItemGroups(LineItemGroup... lineItemGroups)
Information detected on each table of a document, seperated into
LineItems . |
ExpenseDocument |
withSummaryFields(Collection<ExpenseField> summaryFields)
Any information found outside of a table by Amazon Textract.
|
ExpenseDocument |
withSummaryFields(ExpenseField... summaryFields)
Any information found outside of a table by Amazon Textract.
|
public void setExpenseIndex(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.
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.public Integer getExpenseIndex()
Denotes which invoice or receipt in the document the information is coming from. First document will be 1, the second 2, and so on.
public ExpenseDocument withExpenseIndex(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.
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.public List<ExpenseField> getSummaryFields()
Any information found outside of a table by Amazon Textract.
public void setSummaryFields(Collection<ExpenseField> summaryFields)
Any information found outside of a table by Amazon Textract.
summaryFields
- Any information found outside of a table by Amazon Textract.public ExpenseDocument withSummaryFields(ExpenseField... summaryFields)
Any information found outside of a table by Amazon Textract.
NOTE: This method appends the values to the existing list (if any). Use
setSummaryFields(java.util.Collection)
or withSummaryFields(java.util.Collection)
if you want
to override the existing values.
summaryFields
- Any information found outside of a table by Amazon Textract.public ExpenseDocument withSummaryFields(Collection<ExpenseField> summaryFields)
Any information found outside of a table by Amazon Textract.
summaryFields
- Any information found outside of a table by Amazon Textract.public List<LineItemGroup> getLineItemGroups()
Information detected on each table of a document, seperated into LineItems
.
LineItems
.public void setLineItemGroups(Collection<LineItemGroup> lineItemGroups)
Information detected on each table of a document, seperated into LineItems
.
lineItemGroups
- Information detected on each table of a document, seperated into LineItems
.public ExpenseDocument withLineItemGroups(LineItemGroup... lineItemGroups)
Information detected on each table of a document, seperated into LineItems
.
NOTE: This method appends the values to the existing list (if any). Use
setLineItemGroups(java.util.Collection)
or withLineItemGroups(java.util.Collection)
if you want
to override the existing values.
lineItemGroups
- Information detected on each table of a document, seperated into LineItems
.public ExpenseDocument withLineItemGroups(Collection<LineItemGroup> lineItemGroups)
Information detected on each table of a document, seperated into LineItems
.
lineItemGroups
- Information detected on each table of a document, seperated into LineItems
.public List<Block> getBlocks()
This is a block object, the same as reported when DetectDocumentText is run on a document. It provides word level recognition of text.
public void setBlocks(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.
blocks
- This is a block object, the same as reported when DetectDocumentText is run on a document. It provides
word level recognition of text.public ExpenseDocument withBlocks(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.
NOTE: This method appends the values to the existing list (if any). Use
setBlocks(java.util.Collection)
or withBlocks(java.util.Collection)
if you want to override the
existing values.
blocks
- This is a block object, the same as reported when DetectDocumentText is run on a document. It provides
word level recognition of text.public ExpenseDocument withBlocks(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.
blocks
- This is a block object, the same as reported when DetectDocumentText is run on a document. It provides
word level recognition of text.public String toString()
toString
in class Object
Object.toString()
public ExpenseDocument clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.