@Generated(value="OracleSDKGenerator", comments="API Version: 20221001") public final class PiiEntityMask extends PiiEntityMasking
Mask PII entities with the given masking character.
Note: Objects should always be created or deserialized using the PiiEntityMask.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the PiiEntityMask.Builder
, which maintain a
set of all explicitly set fields called PiiEntityMask.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
PiiEntityMask.Builder |
PiiEntityMasking.Mode
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
PiiEntityMask(List<String> exclude,
Boolean shouldDetect,
String maskingCharacter,
Integer leaveCharactersUnmasked,
Boolean isUnmaskedFromEnd)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PiiEntityMask.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Boolean |
getIsUnmaskedFromEnd()
Unmask from the end.
|
Integer |
getLeaveCharactersUnmasked()
Number of characters to leave unmasked.
|
String |
getMaskingCharacter()
Masking character.
|
int |
hashCode() |
PiiEntityMask.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
getExclude, getShouldDetect
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
public static PiiEntityMask.Builder builder()
Create a new builder.
public PiiEntityMask.Builder toBuilder()
public String getMaskingCharacter()
Masking character. By default, the character is an asterisk (*)
public Integer getLeaveCharactersUnmasked()
Number of characters to leave unmasked. By default, the whole entity is masked.
public Boolean getIsUnmaskedFromEnd()
Unmask from the end. By default, the whole entity is masked. This field works in concert with leaveCharactersUnmasked. For example, leaveCharactersUnmasked is 3 and isUnmaskedFromEnd is true, then if the entity is India the masked entity/result is **dia.
public String toString()
toString
in class PiiEntityMasking
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class PiiEntityMasking
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class PiiEntityMasking
public int hashCode()
hashCode
in class PiiEntityMasking
Copyright © 2016–2024. All rights reserved.