@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RedactionConfig extends Object implements Serializable, Cloneable, StructuredPojo
Provides configuration parameters for PII entity redaction.
Constructor and Description |
---|
RedactionConfig() |
Modifier and Type | Method and Description |
---|---|
RedactionConfig |
clone() |
boolean |
equals(Object obj) |
String |
getMaskCharacter()
A character that replaces each character in the redacted PII entity.
|
String |
getMaskMode()
Specifies whether the PII entity is redacted with the mask character or the entity type.
|
List<String> |
getPiiEntityTypes()
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaskCharacter(String maskCharacter)
A character that replaces each character in the redacted PII entity.
|
void |
setMaskMode(String maskMode)
Specifies whether the PII entity is redacted with the mask character or the entity type.
|
void |
setPiiEntityTypes(Collection<String> piiEntityTypes)
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
|
String |
toString()
Returns a string representation of this object.
|
RedactionConfig |
withMaskCharacter(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(String maskMode)
Specifies whether the PII entity is redacted with the mask character or the entity type.
|
RedactionConfig |
withPiiEntityTypes(Collection<String> piiEntityTypes)
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
|
RedactionConfig |
withPiiEntityTypes(PiiEntityType... piiEntityTypes)
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
|
RedactionConfig |
withPiiEntityTypes(String... piiEntityTypes)
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
|
public List<String> getPiiEntityTypes()
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
PiiEntityType
public void setPiiEntityTypes(Collection<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.PiiEntityType
public RedactionConfig withPiiEntityTypes(String... piiEntityTypes)
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
NOTE: This method appends the values to the existing list (if any). Use
setPiiEntityTypes(java.util.Collection)
or withPiiEntityTypes(java.util.Collection)
if you want
to override the existing values.
piiEntityTypes
- An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.PiiEntityType
public RedactionConfig withPiiEntityTypes(Collection<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.PiiEntityType
public RedactionConfig withPiiEntityTypes(PiiEntityType... 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.PiiEntityType
public void setMaskMode(String maskMode)
Specifies whether the PII entity is redacted with the mask character or the entity type.
maskMode
- Specifies whether the PII entity is redacted with the mask character or the entity type.PiiEntitiesDetectionMaskMode
public String getMaskMode()
Specifies whether the PII entity is redacted with the mask character or the entity type.
PiiEntitiesDetectionMaskMode
public RedactionConfig withMaskMode(String maskMode)
Specifies whether the PII entity is redacted with the mask character or the 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.
maskMode
- Specifies whether the PII entity is redacted with the mask character or the entity type.PiiEntitiesDetectionMaskMode
public void setMaskCharacter(String maskCharacter)
A character that replaces each character in the redacted PII entity.
maskCharacter
- A character that replaces each character in the redacted PII entity.public String getMaskCharacter()
A character that replaces each character in the redacted PII entity.
public RedactionConfig withMaskCharacter(String maskCharacter)
A character that replaces each character in the redacted PII entity.
maskCharacter
- A character that replaces each character in the redacted PII entity.public String toString()
toString
in class Object
Object.toString()
public RedactionConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.