/*
* 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.comprehend.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ClassifyDocumentResult extends com.amazonaws.AmazonWebServiceResult
* 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.
*
* 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.
*
* Extraction information about the document. This field is present in the response only if your request includes
* the
* The document type for each page in the input document. This field is present in the response only if your request
* includes the
* Page-level errors that the system detected while processing the input document. The field is empty if the system
* encountered no errors.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setClasses(java.util.Collection)} or {@link #withClasses(java.util.Collection)} if you want to override
* the existing values.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setLabels(java.util.Collection)} or {@link #withLabels(java.util.Collection)} if you want to override the
* existing values.
*
* 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.
*
* Extraction information about the document. This field is present in the response only if your request includes
* the
* Extraction information about the document. This field is present in the response only if your request includes
* the
* Extraction information about the document. This field is present in the response only if your request includes
* the
* The document type for each page in the input document. This field is present in the response only if your request
* includes the
* The document type for each page in the input document. This field is present in the response only if your request
* includes the
* The document type for each page in the input document. This field is present in the response only if your request
* includes the
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDocumentType(java.util.Collection)} or {@link #withDocumentType(java.util.Collection)} if you want to
* override the existing values.
*
* The document type for each page in the input document. This field is present in the response only if your request
* includes the
* Page-level errors that the system detected while processing the input document. The field is empty if the system
* encountered no errors.
*
* Page-level errors that the system detected while processing the input document. The field is empty if the system
* encountered no errors.
*
* Page-level errors that the system detected while processing the input document. The field is empty if the system
* encountered no errors.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setErrors(java.util.Collection)} or {@link #withErrors(java.util.Collection)} if you want to override the
* existing values.
*
* Page-level errors that the system detected while processing the input document. The field is empty if the system
* encountered no errors.
*
* 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.
* Byte
parameter.
* Byte
parameter.
* Byte
parameter.
* Byte
parameter.
*/
public void setDocumentMetadata(DocumentMetadata documentMetadata) {
this.documentMetadata = documentMetadata;
}
/**
* Byte
parameter.
* Byte
parameter.
*/
public DocumentMetadata getDocumentMetadata() {
return this.documentMetadata;
}
/**
* Byte
parameter.
* Byte
parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ClassifyDocumentResult withDocumentMetadata(DocumentMetadata documentMetadata) {
setDocumentMetadata(documentMetadata);
return this;
}
/**
* Byte
parameter.
* Byte
parameter.
*/
public java.util.ListByte
parameter.
* Byte
parameter.
*/
public void setDocumentType(java.util.CollectionByte
parameter.
* Byte
parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ClassifyDocumentResult withDocumentType(DocumentTypeListItem... documentType) {
if (this.documentType == null) {
setDocumentType(new java.util.ArrayListByte
parameter.
* Byte
parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ClassifyDocumentResult withDocumentType(java.util.Collection
* 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.
*
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setWarnings(java.util.Collection)} or {@link #withWarnings(java.util.Collection)} if you want to override
* the existing values.
*
* The field is empty if the system generated no warnings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ClassifyDocumentResult withWarnings(WarningsListItem... warnings) {
if (this.warnings == null) {
setWarnings(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.
*
* The field is empty if the system generated no warnings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ClassifyDocumentResult withWarnings(java.util.Collection