@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()
A character offset in the input text that shows where the PII entity begins (the first character is at position
0).
|
Integer |
getEndOffset()
A character offset in the input text that shows where the PII entity ends.
|
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)
A character offset in the input text that shows where the PII entity begins (the first character is at position
0).
|
void |
setEndOffset(Integer endOffset)
A character offset in the input text that shows where the PII entity ends.
|
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)
A character offset in the input text that shows where the PII entity begins (the first character is at position
0).
|
PiiEntity |
withEndOffset(Integer endOffset)
A character offset in the input text that shows where the PII entity ends.
|
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)
A character offset in the input text that shows where the PII entity begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
beginOffset
- A character offset in the input text that shows where the PII entity begins (the first character is at
position 0). The offset returns the position of each UTF-8 code point in the string. A code point
is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8
character maps to a single code point.public Integer getBeginOffset()
A character offset in the input text that shows where the PII entity begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
public PiiEntity withBeginOffset(Integer beginOffset)
A character offset in the input text that shows where the PII entity begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
beginOffset
- A character offset in the input text that shows where the PII entity begins (the first character is at
position 0). The offset returns the position of each UTF-8 code point in the string. A code point
is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8
character maps to a single code point.public void setEndOffset(Integer endOffset)
A character offset in the input text that shows where the PII entity ends. The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
endOffset
- A character offset in the input text that shows where the PII entity ends. The offset returns the position
of each UTF-8 code point in the string. A code point is the abstract character from a particular
graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.public Integer getEndOffset()
A character offset in the input text that shows where the PII entity ends. The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
public PiiEntity withEndOffset(Integer endOffset)
A character offset in the input text that shows where the PII entity ends. The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
endOffset
- A character offset in the input text that shows where the PII entity ends. The offset returns the position
of each UTF-8 code point in the string. A code point is the abstract character from a particular
graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.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.