Class MaskingFormat
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.datasafe.model.MaskingFormat
-
@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 theMaskingFormat.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 theMaskingFormat.Builder
, which maintain a set of all explicitly set fields calledMaskingFormat.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
MaskingFormat.Builder
-
Constructor Summary
Constructors Constructor Description MaskingFormat(String condition, String description, List<FormatEntry> formatEntries)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
MaskingFormat
@Deprecated @ConstructorProperties({"condition","description","formatEntries"}) public MaskingFormat(String condition, String description, List<FormatEntry> formatEntries)
Deprecated.
-
-
Method Detail
-
builder
public static MaskingFormat.Builder builder()
Create a new builder.
-
toBuilder
public MaskingFormat.Builder toBuilder()
-
getCondition
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.
- Returns:
- the value
-
getDescription
public String getDescription()
The description of the masking format.- Returns:
- the value
-
getFormatEntries
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.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-