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.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildEntity.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,
EntityTypeEntity.Builder category(EntityType category)
The category of the entity.
category - The category of the entity.EntityType,
EntityTypeEntity.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,
EntitySubTypeEntity.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,
EntitySubTypeEntity.Builder traits(Collection<Trait> traits)
Contextual information for the entity.
traits - Contextual information for the entity.Entity.Builder traits(Trait... traits)
Contextual information for the entity.
traits - Contextual information for the entity.Entity.Builder traits(Consumer<Trait.Builder>... traits)
Contextual information for the entity.
This is a convenience method that creates an instance of theTrait.Builder avoiding the need to create one
manually via Trait.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #traits(List.
traits - a consumer that will call methods on
Trait.Builder#traits(java.util.Collection) 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 method that creates an instance of theAttribute.Builder avoiding the need to create
one manually via Attribute.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #attributes(List.
attributes - a consumer that will call methods on
Attribute.Builder#attributes(java.util.Collection) Copyright © 2023. All rights reserved.