@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Entity extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an entity.
| Constructor and Description |
|---|
Entity() |
| Modifier and Type | Method and Description |
|---|---|
Entity |
clone() |
boolean |
equals(Object obj) |
Integer |
getBeginOffset()
The zero-based offset from the beginning of the source text to the first character in the entity.
|
Integer |
getEndOffset()
The zero-based offset from the beginning of the source text to the last character in the entity.
|
Float |
getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
String |
getText()
The text of the entity.
|
String |
getType()
The entity's type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setBeginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the entity.
|
void |
setEndOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the entity.
|
void |
setScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
void |
setText(String text)
The text of the entity.
|
void |
setType(String type)
The entity's type.
|
String |
toString()
Returns a string representation of this object.
|
Entity |
withBeginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the entity.
|
Entity |
withEndOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the entity.
|
Entity |
withScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
Entity |
withText(String text)
The text of the entity.
|
Entity |
withType(EntityType type)
The entity's type.
|
Entity |
withType(String type)
The entity's type.
|
public void setScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
score - The level of confidence that Amazon Comprehend has in the accuracy of the detection.public Float getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public Entity withScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
score - The level of confidence that Amazon Comprehend has in the accuracy of the detection.public void setType(String type)
The entity's type.
type - The entity's type.EntityTypepublic String getType()
The entity's type.
EntityTypepublic Entity withType(String type)
The entity's type.
type - The entity's type.EntityTypepublic Entity withType(EntityType type)
The entity's type.
type - The entity's type.EntityTypepublic void setText(String text)
The text of the entity.
text - The text of the entity.public String getText()
The text of the entity.
public Entity withText(String text)
The text of the entity.
text - The text of the entity.public void setBeginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the entity.
beginOffset - The zero-based offset from the beginning of the source text to the first character in the entity.public Integer getBeginOffset()
The zero-based offset from the beginning of the source text to the first character in the entity.
public Entity withBeginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the entity.
beginOffset - The zero-based offset from the beginning of the source text to the first character in the entity.public void setEndOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the entity.
endOffset - The zero-based offset from the beginning of the source text to the last character in the entity.public Integer getEndOffset()
The zero-based offset from the beginning of the source text to the last character in the entity.
public Entity withEndOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the entity.
endOffset - The zero-based offset from the beginning of the source text to the last character in the entity.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.