@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.PiiEntityType
public String getName()
The name of the label.
PiiEntityType
public EntityLabel withName(String name)
The name of the label.
name
- The name of the label.PiiEntityType
public EntityLabel withName(PiiEntityType name)
The name of the label.
name
- The name of the label.PiiEntityType
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 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 Object
Object.toString()
public EntityLabel clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.