public static class PiiEntityMask.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PiiEntityMask |
build() |
PiiEntityMask.Builder |
copy(PiiEntityMask model) |
PiiEntityMask.Builder |
isUnmaskedFromEnd(Boolean isUnmaskedFromEnd)
Unmask from the end.
|
PiiEntityMask.Builder |
leaveCharactersUnmasked(Integer leaveCharactersUnmasked)
Number of characters to leave unmasked.
|
PiiEntityMask.Builder |
maskingCharacter(String maskingCharacter)
Masking character.
|
public PiiEntityMask.Builder maskingCharacter(String maskingCharacter)
Masking character. By default, the character is an asterisk (*)
maskingCharacter
- the value to setpublic PiiEntityMask.Builder leaveCharactersUnmasked(Integer leaveCharactersUnmasked)
Number of characters to leave unmasked. By default, the whole entity is masked.
leaveCharactersUnmasked
- the value to setpublic PiiEntityMask.Builder isUnmaskedFromEnd(Boolean isUnmaskedFromEnd)
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.
isUnmaskedFromEnd
- the value to setpublic PiiEntityMask build()
public PiiEntityMask.Builder copy(PiiEntityMask model)
Copyright © 2016–2024. All rights reserved.