@Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class MaskingFormat extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A masking format defines the logic to mask data in a database column. The condition attribute
defines the condition that must be true for applying the masking format. It enables you to do conditional
masking so that you can mask the column data values differently using different masking
formats and the associated conditions. A masking format can have one or more format entries. A
format entry can be a basic masking format such as Random Number, or it can be a library masking
format.The combined output of all the format entries is used for masking. It provides the
flexibility to define a masking format that can generate different parts of a data value
separately and then combine them to get the final data value for masking.
Note: Objects should always be created or deserialized using the MaskingFormat.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 MaskingFormat.Builder
, which maintain a
set of all explicitly set fields called MaskingFormat.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 |
MaskingFormat.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
MaskingFormat(String condition,
String description,
List<FormatEntry> formatEntries)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static MaskingFormat.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCondition()
A condition that must be true for applying the masking format.
|
String |
getDescription()
The description of the masking format.
|
List<FormatEntry> |
getFormatEntries()
An array of format entries.
|
int |
hashCode() |
MaskingFormat.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"condition","description","formatEntries"}) public MaskingFormat(String condition, String description, List<FormatEntry> formatEntries)
public static MaskingFormat.Builder builder()
Create a new builder.
public MaskingFormat.Builder toBuilder()
public String getCondition()
A condition that must be true for applying the masking format. It can be any valid SQL construct that can be used in a SQL predicate. It enables you to do conditional masking so that you can mask the column data values differently using different masking formats and the associated conditions.
public String getDescription()
The description of the masking format.
public List<FormatEntry> getFormatEntries()
An array of format entries. The combined output of all the format entries is used for masking the column data values.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.