Interface Entity.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Entity.Builder,
,Entity> SdkBuilder<Entity.Builder,
,Entity> SdkPojo
- Enclosing class:
Entity
-
Method Summary
Modifier and TypeMethodDescriptionattributes
(Collection<Attribute> attributes) The extracted attributes that relate to this entity.attributes
(Consumer<Attribute.Builder>... attributes) The extracted attributes that relate to this entity.attributes
(Attribute... attributes) The extracted attributes that relate to this entity.beginOffset
(Integer beginOffset) The 0-based character offset in the input text that shows where the entity begins.The category of the entity.category
(EntityType category) The category of the entity.The 0-based character offset in the input text that shows where the entity ends.The numeric identifier for the entity.The level of confidence that Amazon Comprehend Medical has in the accuracy of the detection.The segment of input text extracted as this entity.traits
(Collection<Trait> traits) Contextual information for the entity.traits
(Consumer<Trait.Builder>... traits) Contextual information for the entity.Contextual information for the entity.Describes the specific type of entity with category of entities.type
(EntitySubType type) Describes the specific type of entity with category of entities.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
-
Method Details
-
id
The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
- Parameters:
id
- The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
score
The level of confidence that Amazon Comprehend Medical has in the accuracy of the detection.
- Parameters:
score
- The level of confidence that Amazon Comprehend Medical has in the accuracy of the detection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
The segment of input text extracted as this entity.
- Parameters:
text
- The segment of input text extracted as this entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
category
The category of the entity.
- Parameters:
category
- The category of the entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
category
The category of the entity.
- Parameters:
category
- The category of the entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Describes the specific type of entity with category of entities.
- Parameters:
type
- Describes the specific type of entity with category of entities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Describes the specific type of entity with category of entities.
- Parameters:
type
- Describes the specific type of entity with category of entities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
traits
Contextual information for the entity.
- Parameters:
traits
- Contextual information for the entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traits
Contextual information for the entity.
- Parameters:
traits
- Contextual information for the entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaTrait.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totraits(List<Trait>)
.- Parameters:
traits
- a consumer that will call methods onTrait.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
attributes
The extracted attributes that relate to this entity.
- Parameters:
attributes
- The extracted attributes that relate to this entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
The extracted attributes that relate to this entity.
- Parameters:
attributes
- The extracted attributes that relate to this entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaAttribute.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattributes(List<Attribute>)
.- Parameters:
attributes
- a consumer that will call methods onAttribute.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-