public class PiiEntity
extends java.lang.Object
implements java.io.Serializable
Provides information about a PII entity.
Constructor and Description |
---|
PiiEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getBeginOffset()
A character offset in the input text that shows where the PII entity
begins (the first character is at position 0).
|
java.lang.Integer |
getEndOffset()
A character offset in the input text that shows where the PII entity
ends.
|
java.lang.Float |
getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the
detection.
|
java.lang.String |
getType()
The entity's type.
|
int |
hashCode() |
void |
setBeginOffset(java.lang.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(java.lang.Integer endOffset)
A character offset in the input text that shows where the PII entity
ends.
|
void |
setScore(java.lang.Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the
detection.
|
void |
setType(PiiEntityType type)
The entity's type.
|
void |
setType(java.lang.String type)
The entity's type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PiiEntity |
withBeginOffset(java.lang.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(java.lang.Integer endOffset)
A character offset in the input text that shows where the PII entity
ends.
|
PiiEntity |
withScore(java.lang.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(java.lang.String type)
The entity's type.
|
public java.lang.Float getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public void setScore(java.lang.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 PiiEntity withScore(java.lang.Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
Returns a reference to this object so that method calls can be chained together.
score
- The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public java.lang.String getType()
The entity's type.
Constraints:
Allowed Values: BANK_ACCOUNT_NUMBER, BANK_ROUTING,
CREDIT_DEBIT_NUMBER, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, PIN, EMAIL,
ADDRESS, NAME, PHONE, SSN, DATE_TIME, PASSPORT_NUMBER, DRIVER_ID, URL,
AGE, USERNAME, PASSWORD, AWS_ACCESS_KEY, AWS_SECRET_KEY, IP_ADDRESS,
MAC_ADDRESS, ALL
The entity's type.
PiiEntityType
public void setType(java.lang.String type)
The entity's type.
Constraints:
Allowed Values: BANK_ACCOUNT_NUMBER, BANK_ROUTING,
CREDIT_DEBIT_NUMBER, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, PIN, EMAIL,
ADDRESS, NAME, PHONE, SSN, DATE_TIME, PASSPORT_NUMBER, DRIVER_ID, URL,
AGE, USERNAME, PASSWORD, AWS_ACCESS_KEY, AWS_SECRET_KEY, IP_ADDRESS,
MAC_ADDRESS, ALL
type
- The entity's type.
PiiEntityType
public PiiEntity withType(java.lang.String type)
The entity's type.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: BANK_ACCOUNT_NUMBER, BANK_ROUTING,
CREDIT_DEBIT_NUMBER, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, PIN, EMAIL,
ADDRESS, NAME, PHONE, SSN, DATE_TIME, PASSPORT_NUMBER, DRIVER_ID, URL,
AGE, USERNAME, PASSWORD, AWS_ACCESS_KEY, AWS_SECRET_KEY, IP_ADDRESS,
MAC_ADDRESS, ALL
type
- The entity's type.
PiiEntityType
public void setType(PiiEntityType type)
The entity's type.
Constraints:
Allowed Values: BANK_ACCOUNT_NUMBER, BANK_ROUTING,
CREDIT_DEBIT_NUMBER, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, PIN, EMAIL,
ADDRESS, NAME, PHONE, SSN, DATE_TIME, PASSPORT_NUMBER, DRIVER_ID, URL,
AGE, USERNAME, PASSWORD, AWS_ACCESS_KEY, AWS_SECRET_KEY, IP_ADDRESS,
MAC_ADDRESS, ALL
type
- The entity's type.
PiiEntityType
public PiiEntity withType(PiiEntityType type)
The entity's type.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: BANK_ACCOUNT_NUMBER, BANK_ROUTING,
CREDIT_DEBIT_NUMBER, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, PIN, EMAIL,
ADDRESS, NAME, PHONE, SSN, DATE_TIME, PASSPORT_NUMBER, DRIVER_ID, URL,
AGE, USERNAME, PASSWORD, AWS_ACCESS_KEY, AWS_SECRET_KEY, IP_ADDRESS,
MAC_ADDRESS, ALL
type
- The entity's type.
PiiEntityType
public java.lang.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.
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 setBeginOffset(java.lang.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 PiiEntity withBeginOffset(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.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.
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 void setEndOffset(java.lang.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 PiiEntity withEndOffset(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.