Class DifferenceColumn.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.DifferenceColumn.Builder
-
- Enclosing class:
- DifferenceColumn
public static class DifferenceColumn.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DifferenceColumn
build()
DifferenceColumn.Builder
columnName(String columnName)
The name of the difference column.DifferenceColumn.Builder
copy(DifferenceColumn model)
DifferenceColumn.Builder
differenceType(DifferenceColumn.DifferenceType differenceType)
The type of the SDM masking policy difference column.DifferenceColumn.Builder
key(String key)
The unique key that identifies the SDM masking policy difference column.DifferenceColumn.Builder
maskingColumnkey(String maskingColumnkey)
The unique key that identifies the masking column represented by the SDM masking policy difference column.DifferenceColumn.Builder
objectName(String objectName)
The database object that contains the difference column.DifferenceColumn.Builder
plannedAction(DifferenceColumn.PlannedAction plannedAction)
Specifies how to process the difference column.DifferenceColumn.Builder
schemaName(String schemaName)
The database schema that contains the difference column.DifferenceColumn.Builder
sensitiveColumnkey(String sensitiveColumnkey)
The unique key that identifies the sensitive column represented by the SDM masking policy difference column.DifferenceColumn.Builder
sensitiveTypeId(String sensitiveTypeId)
The OCID of the sensitive type associated with the difference column.DifferenceColumn.Builder
syncStatus(DifferenceColumn.SyncStatus syncStatus)
Indicates if the difference column has been processed.DifferenceColumn.Builder
timeLastSynced(Date timeLastSynced)
The date and time the SDM masking policy difference column was last synced, in the format defined by RFC3339.
-
-
-
Method Detail
-
key
public DifferenceColumn.Builder key(String key)
The unique key that identifies the SDM masking policy difference column.- Parameters:
key
- the value to set- Returns:
- this builder
-
differenceType
public DifferenceColumn.Builder differenceType(DifferenceColumn.DifferenceType differenceType)
The type of the SDM masking policy difference column.It can be one of the following three types: NEW: A new sensitive column in the sensitive data model that is not in the masking policy. DELETED: A column that is present in the masking policy but has been deleted from the sensitive data model. MODIFIED: A column that is present in the masking policy as well as the sensitive data model but some of its attributes have been modified.
- Parameters:
differenceType
- the value to set- Returns:
- this builder
-
sensitiveColumnkey
public DifferenceColumn.Builder sensitiveColumnkey(String sensitiveColumnkey)
The unique key that identifies the sensitive column represented by the SDM masking policy difference column.- Parameters:
sensitiveColumnkey
- the value to set- Returns:
- this builder
-
maskingColumnkey
public DifferenceColumn.Builder maskingColumnkey(String maskingColumnkey)
The unique key that identifies the masking column represented by the SDM masking policy difference column.- Parameters:
maskingColumnkey
- the value to set- Returns:
- this builder
-
schemaName
public DifferenceColumn.Builder schemaName(String schemaName)
The database schema that contains the difference column.- Parameters:
schemaName
- the value to set- Returns:
- this builder
-
objectName
public DifferenceColumn.Builder objectName(String objectName)
The database object that contains the difference column.- Parameters:
objectName
- the value to set- Returns:
- this builder
-
columnName
public DifferenceColumn.Builder columnName(String columnName)
The name of the difference column.- Parameters:
columnName
- the value to set- Returns:
- this builder
-
sensitiveTypeId
public DifferenceColumn.Builder sensitiveTypeId(String sensitiveTypeId)
The OCID of the sensitive type associated with the difference column.- Parameters:
sensitiveTypeId
- the value to set- Returns:
- this builder
-
plannedAction
public DifferenceColumn.Builder plannedAction(DifferenceColumn.PlannedAction plannedAction)
Specifies how to process the difference column.It’s set to SYNC by default. Use the PatchSdmMaskingPolicyDifferenceColumns operation to update this attribute. You can choose one of the following options: SYNC: To sync the difference column and update the masking policy to reflect the changes. NO_SYNC: To not sync the difference column so that it doesn’t change the masking policy. After specifying the planned action, you can use the ApplySdmMaskingPolicyDifference operation to automatically process the difference columns.
- Parameters:
plannedAction
- the value to set- Returns:
- this builder
-
syncStatus
public DifferenceColumn.Builder syncStatus(DifferenceColumn.SyncStatus syncStatus)
Indicates if the difference column has been processed.Use GetDifferenceColumn operation to track whether the difference column has already been processed and applied to the masking policy.
- Parameters:
syncStatus
- the value to set- Returns:
- this builder
-
timeLastSynced
public DifferenceColumn.Builder timeLastSynced(Date timeLastSynced)
The date and time the SDM masking policy difference column was last synced, in the format defined by RFC3339.- Parameters:
timeLastSynced
- the value to set- Returns:
- this builder
-
build
public DifferenceColumn build()
-
copy
public DifferenceColumn.Builder copy(DifferenceColumn model)
-
-