Package com.oracle.bmc.datasafe.model
Class MaskingColumn.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.MaskingColumn.Builder
-
- Enclosing class:
- MaskingColumn
public static class MaskingColumn.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaskingColumn
build()
MaskingColumn.Builder
childColumns(List<String> childColumns)
An array of child columns that are in referential relationship with the masking column.MaskingColumn.Builder
columnName(String columnName)
The name of the database column.MaskingColumn.Builder
copy(MaskingColumn model)
MaskingColumn.Builder
dataType(String dataType)
The data type of the masking column.MaskingColumn.Builder
isMaskingEnabled(Boolean isMaskingEnabled)
Indicates whether data masking is enabled for the masking column.MaskingColumn.Builder
key(String key)
The unique key that identifies the masking column.MaskingColumn.Builder
lifecycleDetails(String lifecycleDetails)
Details about the current state of the masking column.MaskingColumn.Builder
lifecycleState(MaskingColumnLifecycleState lifecycleState)
The current state of the masking column.MaskingColumn.Builder
maskingColumnGroup(String maskingColumnGroup)
The group of the masking column.MaskingColumn.Builder
maskingFormats(List<MaskingFormat> maskingFormats)
An array of masking formats assigned to the masking column.MaskingColumn.Builder
maskingPolicyId(String maskingPolicyId)
The OCID of the masking policy that contains the masking column.MaskingColumn.Builder
objectName(String objectName)
The name of the object (table or editioning view) that contains the database column.MaskingColumn.Builder
objectType(ObjectType objectType)
The type of the object that contains the database column.MaskingColumn.Builder
schemaName(String schemaName)
The name of the schema that contains the database column.MaskingColumn.Builder
sensitiveTypeId(String sensitiveTypeId)
The OCID of the sensitive type associated with the masking column.MaskingColumn.Builder
timeCreated(Date timeCreated)
The date and time the masking column was created, in the format defined by RFC3339.MaskingColumn.Builder
timeUpdated(Date timeUpdated)
The date and time the masking column was last updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
key
public MaskingColumn.Builder key(String key)
The unique key that identifies the masking column.It’s numeric and unique within a masking policy.
- Parameters:
key
- the value to set- Returns:
- this builder
-
maskingPolicyId
public MaskingColumn.Builder maskingPolicyId(String maskingPolicyId)
The OCID of the masking policy that contains the masking column.- Parameters:
maskingPolicyId
- the value to set- Returns:
- this builder
-
lifecycleState
public MaskingColumn.Builder lifecycleState(MaskingColumnLifecycleState lifecycleState)
The current state of the masking column.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public MaskingColumn.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the masking column.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
timeCreated
public MaskingColumn.Builder timeCreated(Date timeCreated)
The date and time the masking column was created, in the format defined by RFC3339.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public MaskingColumn.Builder timeUpdated(Date timeUpdated)
The date and time the masking column was last updated, in the format defined by RFC3339.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
schemaName
public MaskingColumn.Builder schemaName(String schemaName)
The name of the schema that contains the database column.- Parameters:
schemaName
- the value to set- Returns:
- this builder
-
objectName
public MaskingColumn.Builder objectName(String objectName)
The name of the object (table or editioning view) that contains the database column.- Parameters:
objectName
- the value to set- Returns:
- this builder
-
objectType
public MaskingColumn.Builder objectType(ObjectType objectType)
The type of the object that contains the database column.- Parameters:
objectType
- the value to set- Returns:
- this builder
-
columnName
public MaskingColumn.Builder columnName(String columnName)
The name of the database column.Note that the same name is used for the masking column. There is no separate displayName attribute for the masking column.
- Parameters:
columnName
- the value to set- Returns:
- this builder
-
childColumns
public MaskingColumn.Builder childColumns(List<String> childColumns)
An array of child columns that are in referential relationship with the masking column.- Parameters:
childColumns
- the value to set- Returns:
- this builder
-
maskingColumnGroup
public MaskingColumn.Builder maskingColumnGroup(String maskingColumnGroup)
The group of the masking column.All the columns in a group are masked together to ensure that the masked data across these columns continue to retain the same logical relationship. For more details, check Group Masking in the Data Safe documentation.
- Parameters:
maskingColumnGroup
- the value to set- Returns:
- this builder
-
sensitiveTypeId
public MaskingColumn.Builder sensitiveTypeId(String sensitiveTypeId)
The OCID of the sensitive type associated with the masking column.- Parameters:
sensitiveTypeId
- the value to set- Returns:
- this builder
-
isMaskingEnabled
public MaskingColumn.Builder isMaskingEnabled(Boolean isMaskingEnabled)
Indicates whether data masking is enabled for the masking column.- Parameters:
isMaskingEnabled
- the value to set- Returns:
- this builder
-
dataType
public MaskingColumn.Builder dataType(String dataType)
The data type of the masking column.- Parameters:
dataType
- the value to set- Returns:
- this builder
-
maskingFormats
public MaskingColumn.Builder maskingFormats(List<MaskingFormat> maskingFormats)
An array of masking formats assigned to the masking column.- Parameters:
maskingFormats
- the value to set- Returns:
- this builder
-
build
public MaskingColumn build()
-
copy
public MaskingColumn.Builder copy(MaskingColumn model)
-
-