public static interface DetectEntitiesResponse.Builder extends ComprehendResponse.Builder, CopyableBuilder<DetectEntitiesResponse.Builder,DetectEntitiesResponse>
Modifier and Type | Method and Description |
---|---|
DetectEntitiesResponse.Builder |
entities(Collection<Entity> entities)
A collection of entities identified in the input text.
|
DetectEntitiesResponse.Builder |
entities(Consumer<Entity.Builder>... entities)
A collection of entities identified in the input text.
|
DetectEntitiesResponse.Builder |
entities(Entity... entities)
A collection of entities identified in the input text.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
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. For a list of entity types, see how-entities.
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. For a list of entity types, see how-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. For a list of entity types, see how-entities.
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. For a list of entity types, see how-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. For a list of entity types, see how-entities.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #entities(List)
.entities
- a consumer that will call methods on List.Builder
#entities(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.