public class RedactionConfig
extends java.lang.Object
implements java.io.Serializable
Provides configuration parameters for PII entity redaction.
Constructor and Description |
---|
RedactionConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMaskCharacter()
A character that replaces each character in the redacted PII entity.
|
java.lang.String |
getMaskMode()
Specifies whether the PII entity is redacted with the mask character or
the entity type.
|
java.util.List<java.lang.String> |
getPiiEntityTypes()
An array of the types of PII entities that Amazon Comprehend detects in
the input text for your request.
|
int |
hashCode() |
void |
setMaskCharacter(java.lang.String maskCharacter)
A character that replaces each character in the redacted PII entity.
|
void |
setMaskMode(PiiEntitiesDetectionMaskMode maskMode)
Specifies whether the PII entity is redacted with the mask character or
the entity type.
|
void |
setMaskMode(java.lang.String maskMode)
Specifies whether the PII entity is redacted with the mask character or
the entity type.
|
void |
setPiiEntityTypes(java.util.Collection<java.lang.String> piiEntityTypes)
An array of the types of PII entities that Amazon Comprehend detects in
the input text for your request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RedactionConfig |
withMaskCharacter(java.lang.String maskCharacter)
A character that replaces each character in the redacted PII entity.
|
RedactionConfig |
withMaskMode(PiiEntitiesDetectionMaskMode maskMode)
Specifies whether the PII entity is redacted with the mask character or
the entity type.
|
RedactionConfig |
withMaskMode(java.lang.String maskMode)
Specifies whether the PII entity is redacted with the mask character or
the entity type.
|
RedactionConfig |
withPiiEntityTypes(java.util.Collection<java.lang.String> piiEntityTypes)
An array of the types of PII entities that Amazon Comprehend detects in
the input text for your request.
|
RedactionConfig |
withPiiEntityTypes(java.lang.String... piiEntityTypes)
An array of the types of PII entities that Amazon Comprehend detects in
the input text for your request.
|
public java.util.List<java.lang.String> getPiiEntityTypes()
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
public void setPiiEntityTypes(java.util.Collection<java.lang.String> piiEntityTypes)
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
piiEntityTypes
- An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
public RedactionConfig withPiiEntityTypes(java.lang.String... piiEntityTypes)
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
Returns a reference to this object so that method calls can be chained together.
piiEntityTypes
- An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
public RedactionConfig withPiiEntityTypes(java.util.Collection<java.lang.String> piiEntityTypes)
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
Returns a reference to this object so that method calls can be chained together.
piiEntityTypes
- An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
public java.lang.String getMaskMode()
Specifies whether the PII entity is redacted with the mask character or the entity type.
Constraints:
Allowed Values: MASK, REPLACE_WITH_PII_ENTITY_TYPE
Specifies whether the PII entity is redacted with the mask character or the entity type.
PiiEntitiesDetectionMaskMode
public void setMaskMode(java.lang.String maskMode)
Specifies whether the PII entity is redacted with the mask character or the entity type.
Constraints:
Allowed Values: MASK, REPLACE_WITH_PII_ENTITY_TYPE
maskMode
- Specifies whether the PII entity is redacted with the mask character or the entity type.
PiiEntitiesDetectionMaskMode
public RedactionConfig withMaskMode(java.lang.String maskMode)
Specifies whether the PII entity is redacted with the mask character or the entity type.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: MASK, REPLACE_WITH_PII_ENTITY_TYPE
maskMode
- Specifies whether the PII entity is redacted with the mask character or the entity type.
PiiEntitiesDetectionMaskMode
public void setMaskMode(PiiEntitiesDetectionMaskMode maskMode)
Specifies whether the PII entity is redacted with the mask character or the entity type.
Constraints:
Allowed Values: MASK, REPLACE_WITH_PII_ENTITY_TYPE
maskMode
- Specifies whether the PII entity is redacted with the mask character or the entity type.
PiiEntitiesDetectionMaskMode
public RedactionConfig withMaskMode(PiiEntitiesDetectionMaskMode maskMode)
Specifies whether the PII entity is redacted with the mask character or the entity type.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: MASK, REPLACE_WITH_PII_ENTITY_TYPE
maskMode
- Specifies whether the PII entity is redacted with the mask character or the entity type.
PiiEntitiesDetectionMaskMode
public java.lang.String getMaskCharacter()
A character that replaces each character in the redacted PII entity.
Constraints:
Length: 1 - 1
Pattern: [!@#$%&*]
A character that replaces each character in the redacted PII entity.
public void setMaskCharacter(java.lang.String maskCharacter)
A character that replaces each character in the redacted PII entity.
Constraints:
Length: 1 - 1
Pattern: [!@#$%&*]
maskCharacter
- A character that replaces each character in the redacted PII entity.
public RedactionConfig withMaskCharacter(java.lang.String maskCharacter)
A character that replaces each character in the redacted PII entity.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1
Pattern: [!@#$%&*]
maskCharacter
- A character that replaces each character in the redacted PII entity.
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.