/* * 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.comprehend.model; import java.io.Serializable; public class ClassifyDocumentResult implements Serializable { /** *
* The classes used by the document being analyzed. These are used for * multi-class trained models. Individual classes are mutually exclusive and * each document is expected to have only a single class assigned to it. For * example, an animal can be a dog or a cat, but not both at the same time. *
*/ private java.util.List* The labels used the document being analyzed. These are used for * multi-label trained models. Individual labels represent different * categories that are related in some manner and are not mutually * exclusive. For example, a movie can be just an action movie, or it can be * an action movie, a science fiction movie, and a comedy, all at the same * time. *
*/ private java.util.List
* Extraction information about the document. This field is present in the
* response only if your request includes the Byte
parameter.
*
* The document type for each page in the input document. This field is
* present in the response only if your request includes the
* Byte
parameter.
*
* Page-level errors that the system detected while processing the input * document. The field is empty if the system encountered no errors. *
*/ private java.util.List* Warnings detected while processing the input document. The response * includes a warning if there is a mismatch between the input document type * and the model type associated with the endpoint that you specified. The * response can also include warnings for individual pages that have a * mismatch. *
** The field is empty if the system generated no warnings. *
*/ private java.util.List* The classes used by the document being analyzed. These are used for * multi-class trained models. Individual classes are mutually exclusive and * each document is expected to have only a single class assigned to it. For * example, an animal can be a dog or a cat, but not both at the same time. *
* * @return* The classes used by the document being analyzed. These are used * for multi-class trained models. Individual classes are mutually * exclusive and each document is expected to have only a single * class assigned to it. For example, an animal can be a dog or a * cat, but not both at the same time. *
*/ public java.util.List* The classes used by the document being analyzed. These are used for * multi-class trained models. Individual classes are mutually exclusive and * each document is expected to have only a single class assigned to it. For * example, an animal can be a dog or a cat, but not both at the same time. *
* * @param classes* The classes used by the document being analyzed. These are * used for multi-class trained models. Individual classes are * mutually exclusive and each document is expected to have only * a single class assigned to it. For example, an animal can be a * dog or a cat, but not both at the same time. *
*/ public void setClasses(java.util.Collection* The classes used by the document being analyzed. These are used for * multi-class trained models. Individual classes are mutually exclusive and * each document is expected to have only a single class assigned to it. For * example, an animal can be a dog or a cat, but not both at the same time. *
** Returns a reference to this object so that method calls can be chained * together. * * @param classes
* The classes used by the document being analyzed. These are * used for multi-class trained models. Individual classes are * mutually exclusive and each document is expected to have only * a single class assigned to it. For example, an animal can be a * dog or a cat, but not both at the same time. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ClassifyDocumentResult withClasses(DocumentClass... classes) { if (getClasses() == null) { this.classes = new java.util.ArrayList* The classes used by the document being analyzed. These are used for * multi-class trained models. Individual classes are mutually exclusive and * each document is expected to have only a single class assigned to it. For * example, an animal can be a dog or a cat, but not both at the same time. *
** Returns a reference to this object so that method calls can be chained * together. * * @param classes
* The classes used by the document being analyzed. These are * used for multi-class trained models. Individual classes are * mutually exclusive and each document is expected to have only * a single class assigned to it. For example, an animal can be a * dog or a cat, but not both at the same time. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ClassifyDocumentResult withClasses(java.util.Collection* The labels used the document being analyzed. These are used for * multi-label trained models. Individual labels represent different * categories that are related in some manner and are not mutually * exclusive. For example, a movie can be just an action movie, or it can be * an action movie, a science fiction movie, and a comedy, all at the same * time. *
* * @return* The labels used the document being analyzed. These are used for * multi-label trained models. Individual labels represent different * categories that are related in some manner and are not mutually * exclusive. For example, a movie can be just an action movie, or * it can be an action movie, a science fiction movie, and a comedy, * all at the same time. *
*/ public java.util.List* The labels used the document being analyzed. These are used for * multi-label trained models. Individual labels represent different * categories that are related in some manner and are not mutually * exclusive. For example, a movie can be just an action movie, or it can be * an action movie, a science fiction movie, and a comedy, all at the same * time. *
* * @param labels* The labels used the document being analyzed. These are used * for multi-label trained models. Individual labels represent * different categories that are related in some manner and are * not mutually exclusive. For example, a movie can be just an * action movie, or it can be an action movie, a science fiction * movie, and a comedy, all at the same time. *
*/ public void setLabels(java.util.Collection* The labels used the document being analyzed. These are used for * multi-label trained models. Individual labels represent different * categories that are related in some manner and are not mutually * exclusive. For example, a movie can be just an action movie, or it can be * an action movie, a science fiction movie, and a comedy, all at the same * time. *
** Returns a reference to this object so that method calls can be chained * together. * * @param labels
* The labels used the document being analyzed. These are used * for multi-label trained models. Individual labels represent * different categories that are related in some manner and are * not mutually exclusive. For example, a movie can be just an * action movie, or it can be an action movie, a science fiction * movie, and a comedy, all at the same time. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ClassifyDocumentResult withLabels(DocumentLabel... labels) { if (getLabels() == null) { this.labels = new java.util.ArrayList* The labels used the document being analyzed. These are used for * multi-label trained models. Individual labels represent different * categories that are related in some manner and are not mutually * exclusive. For example, a movie can be just an action movie, or it can be * an action movie, a science fiction movie, and a comedy, all at the same * time. *
** Returns a reference to this object so that method calls can be chained * together. * * @param labels
* The labels used the document being analyzed. These are used * for multi-label trained models. Individual labels represent * different categories that are related in some manner and are * not mutually exclusive. For example, a movie can be just an * action movie, or it can be an action movie, a science fiction * movie, and a comedy, all at the same time. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ClassifyDocumentResult withLabels(java.util.Collection
* Extraction information about the document. This field is present in the
* response only if your request includes the Byte
parameter.
*
* Extraction information about the document. This field is present
* in the response only if your request includes the
* Byte
parameter.
*
* Extraction information about the document. This field is present in the
* response only if your request includes the Byte
parameter.
*
* Extraction information about the document. This field is
* present in the response only if your request includes the
* Byte
parameter.
*
* Extraction information about the document. This field is present in the
* response only if your request includes the Byte
parameter.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param documentMetadata
* Extraction information about the document. This field is
* present in the response only if your request includes the
* Byte
parameter.
*
* The document type for each page in the input document. This field is
* present in the response only if your request includes the
* Byte
parameter.
*
* The document type for each page in the input document. This field
* is present in the response only if your request includes the
* Byte
parameter.
*
* The document type for each page in the input document. This field is
* present in the response only if your request includes the
* Byte
parameter.
*
* The document type for each page in the input document. This
* field is present in the response only if your request includes
* the Byte
parameter.
*
* The document type for each page in the input document. This field is
* present in the response only if your request includes the
* Byte
parameter.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param documentType
* The document type for each page in the input document. This
* field is present in the response only if your request includes
* the Byte
parameter.
*
* The document type for each page in the input document. This field is
* present in the response only if your request includes the
* Byte
parameter.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param documentType
* The document type for each page in the input document. This
* field is present in the response only if your request includes
* the Byte
parameter.
*
* Page-level errors that the system detected while processing the input * document. The field is empty if the system encountered no errors. *
* * @return* Page-level errors that the system detected while processing the * input document. The field is empty if the system encountered no * errors. *
*/ public java.util.List* Page-level errors that the system detected while processing the input * document. The field is empty if the system encountered no errors. *
* * @param errors* Page-level errors that the system detected while processing * the input document. The field is empty if the system * encountered no errors. *
*/ public void setErrors(java.util.Collection* Page-level errors that the system detected while processing the input * document. The field is empty if the system encountered no errors. *
** Returns a reference to this object so that method calls can be chained * together. * * @param errors
* Page-level errors that the system detected while processing * the input document. The field is empty if the system * encountered no errors. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ClassifyDocumentResult withErrors(ErrorsListItem... errors) { if (getErrors() == null) { this.errors = new java.util.ArrayList* Page-level errors that the system detected while processing the input * document. The field is empty if the system encountered no errors. *
** Returns a reference to this object so that method calls can be chained * together. * * @param errors
* Page-level errors that the system detected while processing * the input document. The field is empty if the system * encountered no errors. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ClassifyDocumentResult withErrors(java.util.Collection* Warnings detected while processing the input document. The response * includes a warning if there is a mismatch between the input document type * and the model type associated with the endpoint that you specified. The * response can also include warnings for individual pages that have a * mismatch. *
** The field is empty if the system generated no warnings. *
* * @return* Warnings detected while processing the input document. The * response includes a warning if there is a mismatch between the * input document type and the model type associated with the * endpoint that you specified. The response can also include * warnings for individual pages that have a mismatch. *
** The field is empty if the system generated no warnings. *
*/ public java.util.List* Warnings detected while processing the input document. The response * includes a warning if there is a mismatch between the input document type * and the model type associated with the endpoint that you specified. The * response can also include warnings for individual pages that have a * mismatch. *
** The field is empty if the system generated no warnings. *
* * @param warnings* Warnings detected while processing the input document. The * response includes a warning if there is a mismatch between the * input document type and the model type associated with the * endpoint that you specified. The response can also include * warnings for individual pages that have a mismatch. *
** The field is empty if the system generated no warnings. *
*/ public void setWarnings(java.util.Collection* Warnings detected while processing the input document. The response * includes a warning if there is a mismatch between the input document type * and the model type associated with the endpoint that you specified. The * response can also include warnings for individual pages that have a * mismatch. *
** The field is empty if the system generated no warnings. *
** Returns a reference to this object so that method calls can be chained * together. * * @param warnings
* Warnings detected while processing the input document. The * response includes a warning if there is a mismatch between the * input document type and the model type associated with the * endpoint that you specified. The response can also include * warnings for individual pages that have a mismatch. *
** The field is empty if the system generated no warnings. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ClassifyDocumentResult withWarnings(WarningsListItem... warnings) { if (getWarnings() == null) { this.warnings = new java.util.ArrayList* Warnings detected while processing the input document. The response * includes a warning if there is a mismatch between the input document type * and the model type associated with the endpoint that you specified. The * response can also include warnings for individual pages that have a * mismatch. *
** The field is empty if the system generated no warnings. *
** Returns a reference to this object so that method calls can be chained * together. * * @param warnings
* Warnings detected while processing the input document. The * response includes a warning if there is a mismatch between the * input document type and the model type associated with the * endpoint that you specified. The response can also include * warnings for individual pages that have a mismatch. *
** The field is empty if the system generated no warnings. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ClassifyDocumentResult withWarnings(java.util.Collection