/* * Copyright 2018-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; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The structure holding all the information returned by AnalyzeExpense *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ExpenseDocument implements Serializable, Cloneable, StructuredPojo { /** ** Denotes which invoice or receipt in the document the information is coming from. First document will be 1, the * second 2, and so on. *
*/ 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. *
* * @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. *
* * @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 this.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. *
* * @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 Returns a reference to this object so that method calls can be chained together. */ public ExpenseDocument withExpenseIndex(Integer expenseIndex) { setExpenseIndex(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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSummaryFields(java.util.Collection)} or {@link #withSummaryFields(java.util.Collection)} if you want * to override the existing values. *
* * @param summaryFields * Any information found outside of a table by Amazon Textract. * @return Returns a reference to this object so that method calls can be chained together. */ public ExpenseDocument withSummaryFields(ExpenseField... summaryFields) { if (this.summaryFields == null) { setSummaryFields(new java.util.ArrayList* Any information found outside of a table by Amazon Textract. *
* * @param summaryFields * Any information found outside of a table by Amazon Textract. * @return Returns a reference to this 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
.
*
LineItems
.
*/
public java.util.List
* Information detected on each table of a document, seperated into LineItems
.
*
LineItems
.
*/
public void setLineItemGroups(java.util.Collection
* Information detected on each table of a document, seperated into LineItems
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setLineItemGroups(java.util.Collection)} or {@link #withLineItemGroups(java.util.Collection)} if you want * to override the existing values. *
* * @param lineItemGroups * Information detected on each table of a document, seperated intoLineItems
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExpenseDocument withLineItemGroups(LineItemGroup... lineItemGroups) {
if (this.lineItemGroups == null) {
setLineItemGroups(new java.util.ArrayList
* Information detected on each table of a document, seperated into LineItems
.
*
LineItems
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExpenseDocument withLineItemGroups(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. *
* * @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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setBlocks(java.util.Collection)} or {@link #withBlocks(java.util.Collection)} if you want to override the * existing values. *
* * @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 Returns a reference to this object so that method calls can be chained together. */ public ExpenseDocument withBlocks(Block... blocks) { if (this.blocks == null) { setBlocks(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. *
* * @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 Returns a reference to this object so that method calls can be chained together. */ public ExpenseDocument withBlocks(java.util.Collection