/* * 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; /** *
* Summary information about documents grouped by the same document type. *
*/ public class DocumentGroup implements Serializable { /** ** The type of document that Amazon Textract has detected. See Analyze Lending Response Objects for a list of all types returned by * Textract. *
*
* Constraints:
* Pattern: .*\S.*
*/
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. *
*
* Constraints:
* Pattern: .*\S.*
*
* @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 type; } /** ** The type of document that Amazon Textract has detected. See Analyze Lending Response Objects for a list of all types returned by * Textract. *
*
* Constraints:
* Pattern: .*\S.*
*
* @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. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Pattern: .*\S.*
*
* @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 A reference to this updated object so that method calls can be * chained together. */ public DocumentGroup withType(String type) { this.type = 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param splitDocuments
* An array that contains information about the pages of a * document, defined by logical boundary. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DocumentGroup withSplitDocuments(SplitDocument... splitDocuments) { if (getSplitDocuments() == null) { this.splitDocuments = new java.util.ArrayList* An array that contains information about the pages of a document, defined * by logical boundary. *
** Returns a reference to this object so that method calls can be chained * together. * * @param splitDocuments
* An array that contains information about the pages of a * document, defined by logical boundary. *
* @return A reference to this updated 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param detectedSignatures
* A list of the detected signatures found in a document group. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DocumentGroup withDetectedSignatures(DetectedSignature... detectedSignatures) { if (getDetectedSignatures() == null) { this.detectedSignatures = new java.util.ArrayList* A list of the detected signatures found in a document group. *
** Returns a reference to this object so that method calls can be chained * together. * * @param detectedSignatures
* A list of the detected signatures found in a document group. *
* @return A reference to this updated 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param undetectedSignatures
* A list of any expected signatures not found in a document * group. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DocumentGroup withUndetectedSignatures(UndetectedSignature... undetectedSignatures) { if (getUndetectedSignatures() == null) { this.undetectedSignatures = new java.util.ArrayList* A list of any expected signatures not found in a document group. *
** Returns a reference to this object so that method calls can be chained * together. * * @param undetectedSignatures
* A list of any expected signatures not found in a document * group. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DocumentGroup withUndetectedSignatures( java.util.Collection