@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EntityLabel extends Object implements Serializable, Cloneable, StructuredPojo
Specifies one of the label or labels that categorize the personally identifiable information (PII) entity being analyzed.
| Constructor and Description |
|---|
EntityLabel() |
| Modifier and Type | Method and Description |
|---|---|
EntityLabel |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the label.
|
Float |
getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
The name of the label.
|
void |
setScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
String |
toString()
Returns a string representation of this object.
|
EntityLabel |
withName(PiiEntityType name)
The name of the label.
|
EntityLabel |
withName(String name)
The name of the label.
|
EntityLabel |
withScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
public void setName(String name)
The name of the label.
name - The name of the label.PiiEntityTypepublic String getName()
The name of the label.
PiiEntityTypepublic EntityLabel withName(String name)
The name of the label.
name - The name of the label.PiiEntityTypepublic EntityLabel withName(PiiEntityType name)
The name of the label.
name - The name of the label.PiiEntityTypepublic 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 EntityLabel 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 String toString()
toString in class ObjectObject.toString()public EntityLabel clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.