Interface DetectEntitiesResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, ComprehendResponse.Builder, CopyableBuilder<DetectEntitiesResponse.Builder,DetectEntitiesResponse>, SdkBuilder<DetectEntitiesResponse.Builder,DetectEntitiesResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
DetectEntitiesResponse

public static interface DetectEntitiesResponse.Builder extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<DetectEntitiesResponse.Builder,DetectEntitiesResponse>
  • Method Details

    • entities

      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.

      Parameters:
      entities - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entities

      DetectEntitiesResponse.Builder entities(Entity... entities)

      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.

      Parameters:
      entities - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entities

      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.

      This is a convenience method that creates an instance of the Entity.Builder avoiding the need to create one manually via Entity.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to entities(List<Entity>).

      Parameters:
      entities - a consumer that will call methods on Entity.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • documentMetadata

      DetectEntitiesResponse.Builder documentMetadata(DocumentMetadata documentMetadata)

      Information about the document, discovered during text extraction. This field is present in the response only if your request used the Byte parameter.

      Parameters:
      documentMetadata - Information about the document, discovered during text extraction. This field is present in the response only if your request used the Byte parameter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • documentMetadata

      default DetectEntitiesResponse.Builder documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)

      Information about the document, discovered during text extraction. This field is present in the response only if your request used the Byte parameter.

      This is a convenience method that creates an instance of the DocumentMetadata.Builder avoiding the need to create one manually via DocumentMetadata.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to documentMetadata(DocumentMetadata).

      Parameters:
      documentMetadata - a consumer that will call methods on DocumentMetadata.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • documentType

      The document type for each page in the input document. This field is present in the response only if your request used the Byte parameter.

      Parameters:
      documentType - The document type for each page in the input document. This field is present in the response only if your request used the Byte parameter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • documentType

      The document type for each page in the input document. This field is present in the response only if your request used the Byte parameter.

      Parameters:
      documentType - The document type for each page in the input document. This field is present in the response only if your request used the Byte parameter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • documentType

      The document type for each page in the input document. This field is present in the response only if your request used the Byte parameter.

      This is a convenience method that creates an instance of the DocumentTypeListItem.Builder avoiding the need to create one manually via DocumentTypeListItem.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to documentType(List<DocumentTypeListItem>).

      Parameters:
      documentType - a consumer that will call methods on DocumentTypeListItem.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • blocks

      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 Block content for a Word input document does not include a Geometry field.

      The Block field is not present in the response for plain-text inputs.

      Parameters:
      blocks - 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 Block content for a Word input document does not include a Geometry field.

      The Block field is not present in the response for plain-text inputs.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • blocks

      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 Block content for a Word input document does not include a Geometry field.

      The Block field is not present in the response for plain-text inputs.

      Parameters:
      blocks - 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 Block content for a Word input document does not include a Geometry field.

      The Block field is not present in the response for plain-text inputs.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • blocks

      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 Block content for a Word input document does not include a Geometry field.

      The Block field is not present in the response for plain-text inputs.

      This is a convenience method that creates an instance of the Block.Builder avoiding the need to create one manually via Block.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to blocks(List<Block>).

      Parameters:
      blocks - a consumer that will call methods on Block.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errors

      Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.

      Parameters:
      errors - Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.

      Parameters:
      errors - Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.

      This is a convenience method that creates an instance of the ErrorsListItem.Builder avoiding the need to create one manually via ErrorsListItem.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to errors(List<ErrorsListItem>).

      Parameters:
      errors - a consumer that will call methods on ErrorsListItem.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: