/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.textract.model; import java.io.Serializable; /** *
* The structure holding all the information returned by AnalyzeExpense *
*/ public class ExpenseDocument implements Serializable { /** ** Denotes which invoice or receipt in the document the information is * coming from. First document will be 1, the second 2, and so on. *
*
* Constraints:
* Range: 0 -
*/
private Integer expenseIndex;
/**
*
* Any information found outside of a table by Amazon Textract. *
*/ private java.util.List
* Information detected on each table of a document, seperated into
* LineItems
.
*
* This is a block object, the same as reported when DetectDocumentText is * run on a document. It provides word level recognition of text. *
*/ private java.util.List* Denotes which invoice or receipt in the document the information is * coming from. First document will be 1, the second 2, and so on. *
*
* Constraints:
* Range: 0 -
*
* @return
* 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() { return 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. *
*
* Constraints:
* Range: 0 -
*
* @param 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 void setExpenseIndex(Integer expenseIndex) { this.expenseIndex = 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 a reference to this object so that method calls can be chained * together. *
* Constraints:
* Range: 0 -
*
* @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ExpenseDocument withExpenseIndex(Integer expenseIndex) { this.expenseIndex = expenseIndex; return this; } /** ** Any information found outside of a table by Amazon Textract. *
* * @return* Any information found outside of a table by Amazon Textract. *
*/ public java.util.List* Any information found outside of a table by Amazon Textract. *
* * @param summaryFields* Any information found outside of a table by Amazon Textract. *
*/ public void setSummaryFields(java.util.Collection* Any information found outside of a table by Amazon Textract. *
** Returns a reference to this object so that method calls can be chained * together. * * @param summaryFields
* Any information found outside of a table by Amazon Textract. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ExpenseDocument withSummaryFields(ExpenseField... summaryFields) { if (getSummaryFields() == null) { this.summaryFields = new java.util.ArrayList* Any information found outside of a table by Amazon Textract. *
** Returns a reference to this object so that method calls can be chained * together. * * @param summaryFields
* Any information found outside of a table by Amazon Textract. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ExpenseDocument withSummaryFields(java.util.Collection
* Information detected on each table of a document, seperated into
* LineItems
.
*
* Information detected on each table of a document, seperated into
* LineItems
.
*
* Information detected on each table of a document, seperated into
* LineItems
.
*
* Information detected on each table of a document, seperated
* into LineItems
.
*
* Information detected on each table of a document, seperated into
* LineItems
.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param lineItemGroups
* Information detected on each table of a document, seperated
* into LineItems
.
*
* Information detected on each table of a document, seperated into
* LineItems
.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param lineItemGroups
* Information detected on each table of a document, seperated
* into LineItems
.
*
* This is a block object, the same as reported when DetectDocumentText is * run on a document. It provides word level recognition of text. *
* * @return* This is a block object, the same as reported when * DetectDocumentText is run on a document. It provides word level * recognition of text. *
*/ public java.util.List* This is a block object, the same as reported when DetectDocumentText is * run on a document. It provides word level recognition of text. *
* * @param 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 void setBlocks(java.util.Collection* This is a block object, the same as reported when DetectDocumentText is * run on a document. It provides word level recognition of text. *
** Returns a reference to this object so that method calls can be chained * together. * * @param blocks
* This is a block object, the same as reported when * DetectDocumentText is run on a document. It provides word * level recognition of text. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ExpenseDocument withBlocks(Block... blocks) { if (getBlocks() == null) { this.blocks = new java.util.ArrayList* This is a block object, the same as reported when DetectDocumentText is * run on a document. It provides word level recognition of text. *
** Returns a reference to this object so that method calls can be chained * together. * * @param blocks
* This is a block object, the same as reported when * DetectDocumentText is run on a document. It provides word * level recognition of text. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ExpenseDocument withBlocks(java.util.Collection