Interface Attribute.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Attribute.Builder,Attribute>,SdkBuilder<Attribute.Builder,Attribute>,SdkPojo
- Enclosing class:
- Attribute
public static interface Attribute.Builder extends SdkPojo, CopyableBuilder<Attribute.Builder,Attribute>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Attribute.BuilderbeginOffset(Integer beginOffset)The 0-based character offset in the input text that shows where the attribute begins.Attribute.Buildercategory(String category)The category of attribute.Attribute.Buildercategory(EntityType category)The category of attribute.Attribute.BuilderendOffset(Integer endOffset)The 0-based character offset in the input text that shows where the attribute ends.Attribute.Builderid(Integer id)The numeric identifier for this attribute.Attribute.BuilderrelationshipScore(Float relationshipScore)The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.Attribute.BuilderrelationshipType(String relationshipType)The type of relationship between the entity and attribute.Attribute.BuilderrelationshipType(RelationshipType relationshipType)The type of relationship between the entity and attribute.Attribute.Builderscore(Float score)The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.Attribute.Buildertext(String text)The segment of input text extracted as this attribute.Attribute.Buildertraits(Collection<Trait> traits)Contextual information for this attribute.Attribute.Buildertraits(Consumer<Trait.Builder>... traits)Contextual information for this attribute.Attribute.Buildertraits(Trait... traits)Contextual information for this attribute.Attribute.Buildertype(String type)The type of attribute.Attribute.Buildertype(EntitySubType type)The type of attribute.-
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 Detail
-
type
Attribute.Builder type(String type)
The type of attribute.
- Parameters:
type- The type of attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EntitySubType,EntitySubType
-
type
Attribute.Builder type(EntitySubType type)
The type of attribute.
- Parameters:
type- The type of attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EntitySubType,EntitySubType
-
score
Attribute.Builder score(Float score)
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
- Parameters:
score- The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relationshipScore
Attribute.Builder relationshipScore(Float relationshipScore)
The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.
- Parameters:
relationshipScore- The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relationshipType
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 theDate_Expression.- Parameters:
relationshipType- The type of relationship between the entity and attribute. Type for the relationship isOVERLAP, indicating that the entity occurred at the same time as theDate_Expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RelationshipType,RelationshipType
-
relationshipType
Attribute.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 theDate_Expression.- Parameters:
relationshipType- The type of relationship between the entity and attribute. Type for the relationship isOVERLAP, indicating that the entity occurred at the same time as theDate_Expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RelationshipType,RelationshipType
-
id
Attribute.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.
- Parameters:
id- The numeric identifier for this attribute. 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
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endOffset
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
Attribute.Builder text(String text)
The segment of input text extracted as this attribute.
- Parameters:
text- The segment of input text extracted as this attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
category
Attribute.Builder category(String category)
The category of attribute.
- Parameters:
category- The category of attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EntityType,EntityType
-
category
Attribute.Builder category(EntityType category)
The category of attribute.
- Parameters:
category- The category of attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EntityType,EntityType
-
traits
Attribute.Builder traits(Collection<Trait> traits)
Contextual information for this attribute.
- Parameters:
traits- Contextual information for this attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traits
Attribute.Builder traits(Trait... traits)
Contextual information for this attribute.
- Parameters:
traits- Contextual information for this attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traits
Attribute.Builder traits(Consumer<Trait.Builder>... traits)
Contextual information for this attribute.
This is a convenience method that creates an instance of theTrait.Builderavoiding the need to create one manually viaTrait.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#traits(List.) - 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:
#traits(java.util.Collection)
-
-