Class PatternFormatEntry
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.datasafe.model.FormatEntry
-
- com.oracle.bmc.datasafe.model.PatternFormatEntry
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class PatternFormatEntry extends FormatEntry
The Pattern masking format randomly selects values according to pattern to replace the original values.Rules Max Generated Data Length 30 characters Use ‘%c’ for a random lowercase letter Use ‘%C’ for a random uppercase letter Use ‘%u[]’ for a random character out of all characters enclosed in [] Use ‘%%’ for a ‘%’ Use ‘%d’ for a random digit Use ‘%nd’,‘%nc’, ‘%nC’, or ‘%nu[]’ n random letters or digits or characters enclosed in [], n can be 0-9 only Any other character will be included as it is Examples %3d-%5C will generate 416-JQPCS %3d-%5c will generate 392-dehco %u[$^#] will generate $ %%%3d will generate %704
Note: Objects should always be created or deserialized using thePatternFormatEntry.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 thePatternFormatEntry.Builder
, which maintain a set of all explicitly set fields calledPatternFormatEntry.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PatternFormatEntry.Builder
-
Constructor Summary
Constructors Constructor Description PatternFormatEntry(String description, String pattern)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PatternFormatEntry.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getPattern()
The pattern that should be used to mask data.int
hashCode()
PatternFormatEntry.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.datasafe.model.FormatEntry
getDescription
-
-
-
-
Constructor Detail
-
PatternFormatEntry
@Deprecated public PatternFormatEntry(String description, String pattern)
Deprecated.
-
-
Method Detail
-
builder
public static PatternFormatEntry.Builder builder()
Create a new builder.
-
toBuilder
public PatternFormatEntry.Builder toBuilder()
-
getPattern
public String getPattern()
The pattern that should be used to mask data.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classFormatEntry
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classFormatEntry
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classFormatEntry
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classFormatEntry
-
-