@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Entity extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an extracted medical entity.
Constructor and Description |
---|
Entity() |
Modifier and Type | Method and Description |
---|---|
Entity |
clone() |
boolean |
equals(Object obj) |
List<Attribute> |
getAttributes()
The extracted attributes that relate to this entity.
|
Integer |
getBeginOffset()
The 0-based character offset in the input text that shows where the entity begins.
|
String |
getCategory()
The category of the entity.
|
Integer |
getEndOffset()
The 0-based character offset in the input text that shows where the entity ends.
|
Integer |
getId()
The numeric identifier for the entity.
|
Float |
getScore()
The level of confidence that Comprehend Medical; has in the accuracy of the detection.
|
String |
getText()
The segment of input text extracted as this entity.
|
List<Trait> |
getTraits()
Contextual information for the entity.
|
String |
getType()
Describes the specific type of entity with category of entities.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttributes(Collection<Attribute> attributes)
The extracted attributes that relate to this entity.
|
void |
setBeginOffset(Integer beginOffset)
The 0-based character offset in the input text that shows where the entity begins.
|
void |
setCategory(String category)
The category of the entity.
|
void |
setEndOffset(Integer endOffset)
The 0-based character offset in the input text that shows where the entity ends.
|
void |
setId(Integer id)
The numeric identifier for the entity.
|
void |
setScore(Float score)
The level of confidence that Comprehend Medical; has in the accuracy of the detection.
|
void |
setText(String text)
The segment of input text extracted as this entity.
|
void |
setTraits(Collection<Trait> traits)
Contextual information for the entity.
|
void |
setType(String type)
Describes the specific type of entity with category of entities.
|
String |
toString()
Returns a string representation of this object.
|
Entity |
withAttributes(Attribute... attributes)
The extracted attributes that relate to this entity.
|
Entity |
withAttributes(Collection<Attribute> attributes)
The extracted attributes that relate to this entity.
|
Entity |
withBeginOffset(Integer beginOffset)
The 0-based character offset in the input text that shows where the entity begins.
|
Entity |
withCategory(EntityType category)
The category of the entity.
|
Entity |
withCategory(String category)
The category of the entity.
|
Entity |
withEndOffset(Integer endOffset)
The 0-based character offset in the input text that shows where the entity ends.
|
Entity |
withId(Integer id)
The numeric identifier for the entity.
|
Entity |
withScore(Float score)
The level of confidence that Comprehend Medical; has in the accuracy of the detection.
|
Entity |
withText(String text)
The segment of input text extracted as this entity.
|
Entity |
withTraits(Collection<Trait> traits)
Contextual information for the entity.
|
Entity |
withTraits(Trait... traits)
Contextual information for the entity.
|
Entity |
withType(EntitySubType type)
Describes the specific type of entity with category of entities.
|
Entity |
withType(String type)
Describes the specific type of entity with category of entities.
|
public void setId(Integer id)
The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
id
- The numeric identifier for the entity. This is a monotonically increasing id unique within this response
rather than a global unique identifier.public Integer getId()
The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
public Entity withId(Integer id)
The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
id
- The numeric identifier for the entity. 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 entity 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 entity 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 entity begins. The offset returns the UTF-8 code point in the string.
public Entity withBeginOffset(Integer 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.
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.public void setEndOffset(Integer 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.
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.public Integer getEndOffset()
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.
public Entity withEndOffset(Integer 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.
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.public void setScore(Float score)
The level of confidence that Comprehend Medical; has in the accuracy of the detection.
score
- The level of confidence that Comprehend Medical; has in the accuracy of the detection.public Float getScore()
The level of confidence that Comprehend Medical; has in the accuracy of the detection.
public Entity withScore(Float score)
The level of confidence that Comprehend Medical; has in the accuracy of the detection.
score
- The level of confidence that Comprehend Medical; has in the accuracy of the detection.public void setText(String text)
The segment of input text extracted as this entity.
text
- The segment of input text extracted as this entity.public String getText()
The segment of input text extracted as this entity.
public Entity withText(String text)
The segment of input text extracted as this entity.
text
- The segment of input text extracted as this entity.public void setCategory(String category)
The category of the entity.
category
- The category of the entity.EntityType
public String getCategory()
The category of the entity.
EntityType
public Entity withCategory(String category)
The category of the entity.
category
- The category of the entity.EntityType
public Entity withCategory(EntityType category)
The category of the entity.
category
- The category of the entity.EntityType
public void setType(String type)
Describes the specific type of entity with category of entities.
type
- Describes the specific type of entity with category of entities.EntitySubType
public String getType()
Describes the specific type of entity with category of entities.
EntitySubType
public Entity withType(String type)
Describes the specific type of entity with category of entities.
type
- Describes the specific type of entity with category of entities.EntitySubType
public Entity withType(EntitySubType type)
Describes the specific type of entity with category of entities.
type
- Describes the specific type of entity with category of entities.EntitySubType
public List<Trait> getTraits()
Contextual information for the entity.
public void setTraits(Collection<Trait> traits)
Contextual information for the entity.
traits
- Contextual information for the entity.public Entity withTraits(Trait... traits)
Contextual information for the entity.
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 the entity.public Entity withTraits(Collection<Trait> traits)
Contextual information for the entity.
traits
- Contextual information for the entity.public List<Attribute> getAttributes()
The extracted attributes that relate to this entity.
public void setAttributes(Collection<Attribute> attributes)
The extracted attributes that relate to this entity.
attributes
- The extracted attributes that relate to this entity.public Entity withAttributes(Attribute... attributes)
The extracted attributes that relate to this entity.
NOTE: This method appends the values to the existing list (if any). Use
setAttributes(java.util.Collection)
or withAttributes(java.util.Collection)
if you want to
override the existing values.
attributes
- The extracted attributes that relate to this entity.public Entity withAttributes(Collection<Attribute> attributes)
The extracted attributes that relate to this entity.
attributes
- The extracted attributes that relate to this entity.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.