@Generated(value="software.amazon.awssdk:codegen") public final class RedactionConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RedactionConfig.Builder,RedactionConfig>
Provides configuration parameters for PII entity redaction.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RedactionConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RedactionConfig.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasPiiEntityTypes()
Returns true if the PiiEntityTypes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
String |
maskCharacter()
A character that replaces each character in the redacted PII entity.
|
PiiEntitiesDetectionMaskMode |
maskMode()
Specifies whether the PII entity is redacted with the mask character or the entity type.
|
String |
maskModeAsString()
Specifies whether the PII entity is redacted with the mask character or the entity type.
|
List<PiiEntityType> |
piiEntityTypes()
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
|
List<String> |
piiEntityTypesAsStrings()
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RedactionConfig.Builder> |
serializableBuilderClass() |
RedactionConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final List<PiiEntityType> piiEntityTypes()
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPiiEntityTypes() to see if a value was sent in this field.
public final boolean hasPiiEntityTypes()
public final List<String> piiEntityTypesAsStrings()
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPiiEntityTypes() to see if a value was sent in this field.
public final PiiEntitiesDetectionMaskMode maskMode()
Specifies whether the PII entity is redacted with the mask character or the entity type.
If the service returns an enum value that is not available in the current SDK version, maskMode will
return PiiEntitiesDetectionMaskMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from maskModeAsString().
PiiEntitiesDetectionMaskModepublic final String maskModeAsString()
Specifies whether the PII entity is redacted with the mask character or the entity type.
If the service returns an enum value that is not available in the current SDK version, maskMode will
return PiiEntitiesDetectionMaskMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from maskModeAsString().
PiiEntitiesDetectionMaskModepublic final String maskCharacter()
A character that replaces each character in the redacted PII entity.
public RedactionConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RedactionConfig.Builder,RedactionConfig>public static RedactionConfig.Builder builder()
public static Class<? extends RedactionConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.