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 |
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 |
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.
|
copy
applyMutation, build
Attribute.Builder type(String type)
The type of attribute.
type
- The type of attribute.EntitySubType
,
EntitySubType
Attribute.Builder type(EntitySubType type)
The type of attribute.
type
- The type of attribute.EntitySubType
,
EntitySubType
Attribute.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 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 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 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 © 2017 Amazon Web Services, Inc. All Rights Reserved.