@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PiiEntity extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about a PII entity.
Constructor and Description |
---|
PiiEntity() |
Modifier and Type | Method and Description |
---|---|
PiiEntity |
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 |
getType()
The entity's type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
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 |
setType(String type)
The entity's type.
|
String |
toString()
Returns a string representation of this object.
|
PiiEntity |
withBeginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the entity.
|
PiiEntity |
withEndOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the entity.
|
PiiEntity |
withScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
PiiEntity |
withType(PiiEntityType type)
The entity's type.
|
PiiEntity |
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 PiiEntity 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.PiiEntityType
public String getType()
The entity's type.
PiiEntityType
public PiiEntity withType(String type)
The entity's type.
type
- The entity's type.PiiEntityType
public PiiEntity withType(PiiEntityType type)
The entity's type.
type
- The entity's type.PiiEntityType
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 PiiEntity 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 PiiEntity 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 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.