/* * 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; /** *
* Summary information about documents grouped by the same document type. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DocumentGroup implements Serializable, Cloneable, StructuredPojo { /** ** The type of document that Amazon Textract has detected. See Analyze Lending Response * Objects for a list of all types returned by Textract. *
*/ private String type; /** ** An array that contains information about the pages of a document, defined by logical boundary. *
*/ private java.util.List* A list of the detected signatures found in a document group. *
*/ private java.util.List* A list of any expected signatures not found in a document group. *
*/ private java.util.List* The type of document that Amazon Textract has detected. See Analyze Lending Response * Objects for a list of all types returned by Textract. *
* * @param type * The type of document that Amazon Textract has detected. See Analyze Lending * Response Objects for a list of all types returned by Textract. */ public void setType(String type) { this.type = type; } /** ** The type of document that Amazon Textract has detected. See Analyze Lending Response * Objects for a list of all types returned by Textract. *
* * @return The type of document that Amazon Textract has detected. See Analyze Lending * Response Objects for a list of all types returned by Textract. */ public String getType() { return this.type; } /** ** The type of document that Amazon Textract has detected. See Analyze Lending Response * Objects for a list of all types returned by Textract. *
* * @param type * The type of document that Amazon Textract has detected. See Analyze Lending * Response Objects for a list of all types returned by Textract. * @return Returns a reference to this object so that method calls can be chained together. */ public DocumentGroup withType(String type) { setType(type); return this; } /** ** An array that contains information about the pages of a document, defined by logical boundary. *
* * @return An array that contains information about the pages of a document, defined by logical boundary. */ public java.util.List* An array that contains information about the pages of a document, defined by logical boundary. *
* * @param splitDocuments * An array that contains information about the pages of a document, defined by logical boundary. */ public void setSplitDocuments(java.util.Collection* An array that contains information about the pages of a document, defined by logical boundary. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSplitDocuments(java.util.Collection)} or {@link #withSplitDocuments(java.util.Collection)} if you want * to override the existing values. *
* * @param splitDocuments * An array that contains information about the pages of a document, defined by logical boundary. * @return Returns a reference to this object so that method calls can be chained together. */ public DocumentGroup withSplitDocuments(SplitDocument... splitDocuments) { if (this.splitDocuments == null) { setSplitDocuments(new java.util.ArrayList* An array that contains information about the pages of a document, defined by logical boundary. *
* * @param splitDocuments * An array that contains information about the pages of a document, defined by logical boundary. * @return Returns a reference to this object so that method calls can be chained together. */ public DocumentGroup withSplitDocuments(java.util.Collection* A list of the detected signatures found in a document group. *
* * @return A list of the detected signatures found in a document group. */ public java.util.List* A list of the detected signatures found in a document group. *
* * @param detectedSignatures * A list of the detected signatures found in a document group. */ public void setDetectedSignatures(java.util.Collection* A list of the detected signatures found in a document group. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDetectedSignatures(java.util.Collection)} or {@link #withDetectedSignatures(java.util.Collection)} if * you want to override the existing values. *
* * @param detectedSignatures * A list of the detected signatures found in a document group. * @return Returns a reference to this object so that method calls can be chained together. */ public DocumentGroup withDetectedSignatures(DetectedSignature... detectedSignatures) { if (this.detectedSignatures == null) { setDetectedSignatures(new java.util.ArrayList* A list of the detected signatures found in a document group. *
* * @param detectedSignatures * A list of the detected signatures found in a document group. * @return Returns a reference to this object so that method calls can be chained together. */ public DocumentGroup withDetectedSignatures(java.util.Collection* A list of any expected signatures not found in a document group. *
* * @return A list of any expected signatures not found in a document group. */ public java.util.List* A list of any expected signatures not found in a document group. *
* * @param undetectedSignatures * A list of any expected signatures not found in a document group. */ public void setUndetectedSignatures(java.util.Collection* A list of any expected signatures not found in a document group. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUndetectedSignatures(java.util.Collection)} or {@link #withUndetectedSignatures(java.util.Collection)} * if you want to override the existing values. *
* * @param undetectedSignatures * A list of any expected signatures not found in a document group. * @return Returns a reference to this object so that method calls can be chained together. */ public DocumentGroup withUndetectedSignatures(UndetectedSignature... undetectedSignatures) { if (this.undetectedSignatures == null) { setUndetectedSignatures(new java.util.ArrayList* A list of any expected signatures not found in a document group. *
* * @param undetectedSignatures * A list of any expected signatures not found in a document group. * @return Returns a reference to this object so that method calls can be chained together. */ public DocumentGroup withUndetectedSignatures(java.util.Collection