public static interface Attribute.Builder extends SdkPojo, CopyableBuilder<Attribute.Builder,Attribute>
| Modifier and Type | Method and Description |
|---|---|
Attribute.Builder |
beginOffset(Integer beginOffset)
The 0-based character offset in the input text that shows where the attribute begins.
|
Attribute.Builder |
category(EntityType category)
The category of attribute.
|
Attribute.Builder |
category(String category)
The category of attribute.
|
Attribute.Builder |
endOffset(Integer endOffset)
The 0-based character offset in the input text that shows where the attribute ends.
|
Attribute.Builder |
id(Integer id)
The numeric identifier for this attribute.
|
Attribute.Builder |
relationshipScore(Float relationshipScore)
The level of confidence that Comprehend Medical; has that this attribute is correctly related to this entity.
|
Attribute.Builder |
relationshipType(RelationshipType relationshipType)
The type of relationship between the entity and attribute.
|
Attribute.Builder |
relationshipType(String relationshipType)
The type of relationship between the entity and attribute.
|
Attribute.Builder |
score(Float score)
The level of confidence that Comprehend Medical; has that the segment of text is correctly recognized as an
attribute.
|
Attribute.Builder |
text(String text)
The segment of input text extracted as this attribute.
|
Attribute.Builder |
traits(Collection<Trait> traits)
Contextual information for this attribute.
|
Attribute.Builder |
traits(Consumer<Trait.Builder>... traits)
Contextual information for this attribute.
|
Attribute.Builder |
traits(Trait... traits)
Contextual information for this attribute.
|
Attribute.Builder |
type(EntitySubType type)
The type of attribute.
|
Attribute.Builder |
type(String type)
The type of attribute.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAttribute.Builder type(String type)
The type of attribute.
type - The type of attribute.EntitySubType,
EntitySubTypeAttribute.Builder type(EntitySubType type)
The type of attribute.
type - The type of attribute.EntitySubType,
EntitySubTypeAttribute.Builder score(Float score)
The level of confidence that Comprehend Medical; has that the segment of text is correctly recognized as an attribute.
score - The level of confidence that Comprehend Medical; has that the segment of text is correctly recognized
as an attribute.Attribute.Builder relationshipScore(Float relationshipScore)
The level of confidence that Comprehend Medical; has that this attribute is correctly related to this entity.
relationshipScore - The level of confidence that Comprehend Medical; has that this attribute is correctly related to this
entity.Attribute.Builder relationshipType(String relationshipType)
The type of relationship between the entity and attribute. Type for the relationship is OVERLAP,
indicating that the entity occurred at the same time as the Date_Expression.
relationshipType - The type of relationship between the entity and attribute. Type for the relationship is
OVERLAP, indicating that the entity occurred at the same time as the
Date_Expression.RelationshipType,
RelationshipTypeAttribute.Builder relationshipType(RelationshipType relationshipType)
The type of relationship between the entity and attribute. Type for the relationship is OVERLAP,
indicating that the entity occurred at the same time as the Date_Expression.
relationshipType - The type of relationship between the entity and attribute. Type for the relationship is
OVERLAP, indicating that the entity occurred at the same time as the
Date_Expression.RelationshipType,
RelationshipTypeAttribute.Builder id(Integer id)
The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.
id - The numeric identifier for this attribute. This is a monotonically increasing id unique within this
response rather than a global unique identifier.Attribute.Builder beginOffset(Integer beginOffset)
The 0-based character offset in the input text that shows where the attribute 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 attribute begins. The offset
returns the UTF-8 code point in the string.Attribute.Builder endOffset(Integer endOffset)
The 0-based character offset in the input text that shows where the attribute 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 attribute ends. The offset returns
the UTF-8 code point in the string.Attribute.Builder text(String text)
The segment of input text extracted as this attribute.
text - The segment of input text extracted as this attribute.Attribute.Builder category(String category)
The category of attribute.
category - The category of attribute.EntityType,
EntityTypeAttribute.Builder category(EntityType category)
The category of attribute.
category - The category of attribute.EntityType,
EntityTypeAttribute.Builder traits(Collection<Trait> traits)
Contextual information for this attribute.
traits - Contextual information for this attribute.Attribute.Builder traits(Trait... traits)
Contextual information for this attribute.
traits - Contextual information for this attribute.Attribute.Builder traits(Consumer<Trait.Builder>... traits)
Contextual information for this attribute.
This is a convenience method 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) Copyright © 2022. All rights reserved.