public static interface Entity.Builder extends SdkPojo, CopyableBuilder<Entity.Builder,Entity>
Modifier and Type | Method and Description |
---|---|
Entity.Builder |
attributes(Attribute... attributes)
The extracted attributes that relate to this entity.
|
Entity.Builder |
attributes(Collection<Attribute> attributes)
The extracted attributes that relate to this entity.
|
Entity.Builder |
attributes(Consumer<Attribute.Builder>... attributes)
The extracted attributes that relate to this entity.
|
Entity.Builder |
beginOffset(Integer beginOffset)
The 0-based character offset in the input text that shows where the entity begins.
|
Entity.Builder |
category(EntityType category)
The category of the entity.
|
Entity.Builder |
category(String category)
The category of the entity.
|
Entity.Builder |
endOffset(Integer endOffset)
The 0-based character offset in the input text that shows where the entity ends.
|
Entity.Builder |
id(Integer id)
The numeric identifier for the entity.
|
Entity.Builder |
score(Float score)
The level of confidence that Comprehend Medical has in the accuracy of the detection.
|
Entity.Builder |
text(String text)
The segment of input text extracted as this entity.
|
Entity.Builder |
traits(Collection<Trait> traits)
Contextual information for the entity
|
Entity.Builder |
traits(Consumer<Trait.Builder>... traits)
Contextual information for the entity
|
Entity.Builder |
traits(Trait... traits)
Contextual information for the entity
|
Entity.Builder |
type(EntitySubType type)
Describes the specific type of entity with category of entities.
|
Entity.Builder |
type(String type)
Describes the specific type of entity with category of entities.
|
copy
applyMutation, build
Entity.Builder id(Integer id)
The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
id
- The numeric identifier for the entity. This is a monotonically increasing id unique within this
response rather than a global unique identifier.Entity.Builder beginOffset(Integer beginOffset)
The 0-based character offset in the input text that shows where the entity begins. The offset returns the UTF-8 code point in the string.
beginOffset
- The 0-based character offset in the input text that shows where the entity begins. The offset returns
the UTF-8 code point in the string.Entity.Builder endOffset(Integer endOffset)
The 0-based character offset in the input text that shows where the entity ends. The offset returns the UTF-8 code point in the string.
endOffset
- The 0-based character offset in the input text that shows where the entity ends. The offset returns
the UTF-8 code point in the string.Entity.Builder score(Float score)
The level of confidence that Comprehend Medical has in the accuracy of the detection.
score
- The level of confidence that Comprehend Medical has in the accuracy of the detection.Entity.Builder text(String text)
The segment of input text extracted as this entity.
text
- The segment of input text extracted as this entity.Entity.Builder category(String category)
The category of the entity.
category
- The category of the entity.EntityType
,
EntityType
Entity.Builder category(EntityType category)
The category of the entity.
category
- The category of the entity.EntityType
,
EntityType
Entity.Builder type(String type)
Describes the specific type of entity with category of entities.
type
- Describes the specific type of entity with category of entities.EntitySubType
,
EntitySubType
Entity.Builder type(EntitySubType type)
Describes the specific type of entity with category of entities.
type
- Describes the specific type of entity with category of entities.EntitySubType
,
EntitySubType
Entity.Builder traits(Collection<Trait> traits)
Contextual information for the entity
traits
- Contextual information for the entityEntity.Builder traits(Trait... traits)
Contextual information for the entity
traits
- Contextual information for the entityEntity.Builder traits(Consumer<Trait.Builder>... traits)
Contextual information for the entity
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 #traits(List)
.traits
- a consumer that will call methods on List.Builder
#traits(List)
Entity.Builder attributes(Collection<Attribute> attributes)
The extracted attributes that relate to this entity.
attributes
- The extracted attributes that relate to this entity.Entity.Builder attributes(Attribute... attributes)
The extracted attributes that relate to this entity.
attributes
- The extracted attributes that relate to this entity.Entity.Builder attributes(Consumer<Attribute.Builder>... attributes)
The extracted attributes that relate to this entity.
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 #attributes(List)
.attributes
- a consumer that will call methods on List.Builder
#attributes(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.