@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Attribute extends Object implements Serializable, Cloneable, StructuredPojo
An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as the dosage of a medication taken. It contains information about the attribute such as id, begin and end offset within the input text, and the segment of the input text.
Constructor and Description |
---|
Attribute() |
Modifier and Type | Method and Description |
---|---|
Attribute |
clone() |
boolean |
equals(Object obj) |
Integer |
getBeginOffset()
The 0-based character offset in the input text that shows where the attribute begins.
|
Integer |
getEndOffset()
The 0-based character offset in the input text that shows where the attribute ends.
|
Integer |
getId()
The numeric identifier for this attribute.
|
Float |
getRelationshipScore()
The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this
entity.
|
Float |
getScore()
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an
attribute.
|
String |
getText()
The segment of input text extracted as this attribute.
|
List<Trait> |
getTraits()
Contextual information for this attribute.
|
String |
getType()
The type of attribute.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBeginOffset(Integer beginOffset)
The 0-based character offset in the input text that shows where the attribute begins.
|
void |
setEndOffset(Integer endOffset)
The 0-based character offset in the input text that shows where the attribute ends.
|
void |
setId(Integer id)
The numeric identifier for this attribute.
|
void |
setRelationshipScore(Float relationshipScore)
The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this
entity.
|
void |
setScore(Float score)
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an
attribute.
|
void |
setText(String text)
The segment of input text extracted as this attribute.
|
void |
setTraits(Collection<Trait> traits)
Contextual information for this attribute.
|
void |
setType(String type)
The type of attribute.
|
String |
toString()
Returns a string representation of this object.
|
Attribute |
withBeginOffset(Integer beginOffset)
The 0-based character offset in the input text that shows where the attribute begins.
|
Attribute |
withEndOffset(Integer endOffset)
The 0-based character offset in the input text that shows where the attribute ends.
|
Attribute |
withId(Integer id)
The numeric identifier for this attribute.
|
Attribute |
withRelationshipScore(Float relationshipScore)
The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this
entity.
|
Attribute |
withScore(Float score)
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an
attribute.
|
Attribute |
withText(String text)
The segment of input text extracted as this attribute.
|
Attribute |
withTraits(Collection<Trait> traits)
Contextual information for this attribute.
|
Attribute |
withTraits(Trait... traits)
Contextual information for this attribute.
|
Attribute |
withType(EntitySubType type)
The type of attribute.
|
Attribute |
withType(String type)
The type of attribute.
|
public void setType(String type)
The type of attribute.
type
- The type of attribute.EntitySubType
public String getType()
The type of attribute.
EntitySubType
public Attribute withType(String type)
The type of attribute.
type
- The type of attribute.EntitySubType
public Attribute withType(EntitySubType type)
The type of attribute.
type
- The type of attribute.EntitySubType
public void setScore(Float score)
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
score
- The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly
recognized as an attribute.public Float getScore()
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
public Attribute withScore(Float score)
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
score
- The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly
recognized as an attribute.public void setRelationshipScore(Float relationshipScore)
The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.
relationshipScore
- The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to
this entity.public Float getRelationshipScore()
The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.
public Attribute withRelationshipScore(Float relationshipScore)
The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.
relationshipScore
- The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to
this entity.public void setId(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.public Integer getId()
The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.
public Attribute withId(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.public void setBeginOffset(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.public Integer getBeginOffset()
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.
public Attribute withBeginOffset(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.public void setEndOffset(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.public Integer getEndOffset()
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.
public Attribute withEndOffset(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.public void setText(String text)
The segment of input text extracted as this attribute.
text
- The segment of input text extracted as this attribute.public String getText()
The segment of input text extracted as this attribute.
public Attribute withText(String text)
The segment of input text extracted as this attribute.
text
- The segment of input text extracted as this attribute.public List<Trait> getTraits()
Contextual information for this attribute.
public void setTraits(Collection<Trait> traits)
Contextual information for this attribute.
traits
- Contextual information for this attribute.public Attribute withTraits(Trait... traits)
Contextual information for this attribute.
NOTE: This method appends the values to the existing list (if any). Use
setTraits(java.util.Collection)
or withTraits(java.util.Collection)
if you want to override the
existing values.
traits
- Contextual information for this attribute.public Attribute withTraits(Collection<Trait> traits)
Contextual information for this attribute.
traits
- Contextual information for this attribute.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.