/*
* 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 DetectEntitiesResult extends com.amazonaws.AmazonWebServiceResult
* A collection of entities identified in the input text. For each entity, the response provides the entity text,
* entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the
* detection.
*
* If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is
* trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend
* Developer Guide.
*
* Information about the document, discovered during text extraction. This field is present in the response only if
* your request used the
* The document type for each page in the input document. This field is present in the response only if your request
* used the
* Information about each block of text in the input document. Blocks are nested. A page block contains a block for
* each line of text, which contains a block for each word.
*
* The
* The
* Page-level errors that the system detected while processing the input document. The field is empty if the system
* encountered no errors.
*
* A collection of entities identified in the input text. For each entity, the response provides the entity text,
* entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the
* detection.
*
* If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is
* trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend
* Developer Guide.
* Byte
parameter.
* Byte
parameter.
* Block
content for a Word input document does not include a Geometry
field.
* Block
field is not present in the response for plain-text inputs.
*
* If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the
* model is trained to recognize. Otherwise, it detects the default entity types. For a list of default
* entity types, see Entities in the Comprehend
* Developer Guide.
*/
public java.util.List
* A collection of entities identified in the input text. For each entity, the response provides the entity text,
* entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the
* detection.
*
* If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is
* trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend
* Developer Guide.
*
* If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the
* model is trained to recognize. Otherwise, it detects the default entity types. For a list of default
* entity types, see Entities in the Comprehend
* Developer Guide.
*/
public void setEntities(java.util.Collection
* A collection of entities identified in the input text. For each entity, the response provides the entity text,
* entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the
* detection.
*
* If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is
* trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend
* Developer Guide.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setEntities(java.util.Collection)} or {@link #withEntities(java.util.Collection)} if you want to override
* the existing values.
*
* If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the
* model is trained to recognize. Otherwise, it detects the default entity types. For a list of default
* entity types, see Entities in the Comprehend
* Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DetectEntitiesResult withEntities(Entity... entities) {
if (this.entities == null) {
setEntities(new java.util.ArrayList
* A collection of entities identified in the input text. For each entity, the response provides the entity text,
* entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the
* detection.
*
* If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is
* trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend
* Developer Guide.
*
* If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the
* model is trained to recognize. Otherwise, it detects the default entity types. For a list of default
* entity types, see Entities in the Comprehend
* Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DetectEntitiesResult withEntities(java.util.Collection
* Information about the document, discovered during text extraction. This field is present in the response only if
* your request used the
* Information about the document, discovered during text extraction. This field is present in the response only if
* your request used the
* Information about the document, discovered during text extraction. This field is present in the response only if
* your request used the
* The document type for each page in the input document. This field is present in the response only if your request
* used the
* The document type for each page in the input document. This field is present in the response only if your request
* used the
* The document type for each page in the input document. This field is present in the response only if your request
* used 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
* used the
* Information about each block of text in the input document. Blocks are nested. A page block contains a block for
* each line of text, which contains a block for each word.
*
* The
* The 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 DetectEntitiesResult 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 DetectEntitiesResult 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 DetectEntitiesResult withDocumentType(java.util.CollectionBlock
content for a Word input document does not include a Geometry
field.
* Block
field is not present in the response for plain-text inputs.
*
* The Block
content for a Word input document does not include a Geometry
field.
*
* The
* Information about each block of text in the input document. Blocks are nested. A page block contains a block for
* each line of text, which contains a block for each word.
*
* The
* The Block
field is not present in the response for plain-text inputs.
*/
public java.util.ListBlock
content for a Word input document does not include a Geometry
field.
* Block
field is not present in the response for plain-text inputs.
*
* The Block
content for a Word input document does not include a Geometry
field.
*
* The
* Information about each block of text in the input document. Blocks are nested. A page block contains a block for
* each line of text, which contains a block for each word.
*
* The
* The
* 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.
* Block
field is not present in the response for plain-text inputs.
*/
public void setBlocks(java.util.CollectionBlock
content for a Word input document does not include a Geometry
field.
* Block
field is not present in the response for plain-text inputs.
*
* The Block
content for a Word input document does not include a Geometry
field.
*
* The
* Information about each block of text in the input document. Blocks are nested. A page block contains a block for
* each line of text, which contains a block for each word.
*
* The
* The Block
field is not present in the response for plain-text inputs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DetectEntitiesResult withBlocks(Block... blocks) {
if (this.blocks == null) {
setBlocks(new java.util.ArrayListBlock
content for a Word input document does not include a Geometry
field.
* Block
field is not present in the response for plain-text inputs.
*
* The Block
content for a Word input document does not include a Geometry
field.
*
* 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.
* Block
field is not present in the response for plain-text inputs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DetectEntitiesResult withBlocks(java.util.Collection