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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DetectEntitiesResponse.Builderblocks(Collection<Block> blocks)Information about each block of text in the input document.DetectEntitiesResponse.Builderblocks(Consumer<Block.Builder>... blocks)Information about each block of text in the input document.DetectEntitiesResponse.Builderblocks(Block... blocks)Information about each block of text in the input document.default DetectEntitiesResponse.BuilderdocumentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)Information about the document, discovered during text extraction.DetectEntitiesResponse.BuilderdocumentMetadata(DocumentMetadata documentMetadata)Information about the document, discovered during text extraction.DetectEntitiesResponse.BuilderdocumentType(Collection<DocumentTypeListItem> documentType)The document type for each page in the input document.DetectEntitiesResponse.BuilderdocumentType(Consumer<DocumentTypeListItem.Builder>... documentType)The document type for each page in the input document.DetectEntitiesResponse.BuilderdocumentType(DocumentTypeListItem... documentType)The document type for each page in the input document.DetectEntitiesResponse.Builderentities(Collection<Entity> entities)A collection of entities identified in the input text.DetectEntitiesResponse.Builderentities(Consumer<Entity.Builder>... entities)A collection of entities identified in the input text.DetectEntitiesResponse.Builderentities(Entity... entities)A collection of entities identified in the input text.DetectEntitiesResponse.Buildererrors(Collection<ErrorsListItem> errors)Page-level errors that the system detected while processing the input document.DetectEntitiesResponse.Buildererrors(Consumer<ErrorsListItem.Builder>... errors)Page-level errors that the system detected while processing the input document.DetectEntitiesResponse.Buildererrors(ErrorsListItem... errors)Page-level errors that the system detected while processing the input document.-
Methods inherited from interface software.amazon.awssdk.services.comprehend.model.ComprehendResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
entities
DetectEntitiesResponse.Builder entities(Collection<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
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
DetectEntitiesResponse.Builder entities(Consumer<Entity.Builder>... 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 theEntity.Builderavoiding the need to create one manually viaEntity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#entities(List.) - Parameters:
entities- a consumer that will call methods onEntity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#entities(java.util.Collection)
-
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
Byteparameter.- Parameters:
documentMetadata- Information about the document, discovered during text extraction. This field is present in the response only if your request used theByteparameter.- 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
This is a convenience method that creates an instance of theByteparameter.DocumentMetadata.Builderavoiding the need to create one manually viaDocumentMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocumentMetadata(DocumentMetadata).- Parameters:
documentMetadata- a consumer that will call methods onDocumentMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
documentMetadata(DocumentMetadata)
-
documentType
DetectEntitiesResponse.Builder documentType(Collection<DocumentTypeListItem> documentType)
The document type for each page in the input document. This field is present in the response only if your request used the
Byteparameter.- Parameters:
documentType- The document type for each page in the input document. This field is present in the response only if your request used theByteparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentType
DetectEntitiesResponse.Builder documentType(DocumentTypeListItem... documentType)
The document type for each page in the input document. This field is present in the response only if your request used the
Byteparameter.- Parameters:
documentType- The document type for each page in the input document. This field is present in the response only if your request used theByteparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentType
DetectEntitiesResponse.Builder documentType(Consumer<DocumentTypeListItem.Builder>... documentType)
The document type for each page in the input document. This field is present in the response only if your request used the
This is a convenience method that creates an instance of theByteparameter.DocumentTypeListItem.Builderavoiding the need to create one manually viaDocumentTypeListItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#documentType(List.) - Parameters:
documentType- a consumer that will call methods onDocumentTypeListItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#documentType(java.util.Collection)
-
blocks
DetectEntitiesResponse.Builder blocks(Collection<Block> 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
Blockcontent for a Word input document does not include aGeometryfield.The
Blockfield 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
Blockcontent for a Word input document does not include aGeometryfield.The
Blockfield 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
DetectEntitiesResponse.Builder blocks(Block... 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
Blockcontent for a Word input document does not include aGeometryfield.The
Blockfield 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
Blockcontent for a Word input document does not include aGeometryfield.The
Blockfield 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
DetectEntitiesResponse.Builder blocks(Consumer<Block.Builder>... 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
Blockcontent for a Word input document does not include aGeometryfield.The
This is a convenience method that creates an instance of theBlockfield is not present in the response for plain-text inputs.Block.Builderavoiding the need to create one manually viaBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#blocks(List.) - Parameters:
blocks- a consumer that will call methods onBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#blocks(java.util.Collection)
-
errors
DetectEntitiesResponse.Builder errors(Collection<ErrorsListItem> 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
DetectEntitiesResponse.Builder errors(ErrorsListItem... 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
DetectEntitiesResponse.Builder errors(Consumer<ErrorsListItem.Builder>... 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 theErrorsListItem.Builderavoiding the need to create one manually viaErrorsListItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#errors(List.) - Parameters:
errors- a consumer that will call methods onErrorsListItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#errors(java.util.Collection)
-
-