Class DiscoveryJobResultSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.DiscoveryJobResultSummary.Builder
-
- Enclosing class:
- DiscoveryJobResultSummary
public static class DiscoveryJobResultSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiscoveryJobResultSummary
build()
DiscoveryJobResultSummary.Builder
columnName(String columnName)
The name of the sensitive column.DiscoveryJobResultSummary.Builder
copy(DiscoveryJobResultSummary model)
DiscoveryJobResultSummary.Builder
dataType(String dataType)
The data type of the sensitive column.DiscoveryJobResultSummary.Builder
discoveryJobId(String discoveryJobId)
The OCID of the discovery job.DiscoveryJobResultSummary.Builder
discoveryType(DiscoveryJobResult.DiscoveryType discoveryType)
The type of the discovery result.DiscoveryJobResultSummary.Builder
estimatedDataValueCount(Long estimatedDataValueCount)
The estimated number of data values the column has in the associated database.DiscoveryJobResultSummary.Builder
isResultApplied(Boolean isResultApplied)
Indicates whether the discovery result has been processed.DiscoveryJobResultSummary.Builder
key(String key)
The unique key that identifies the discovery result.DiscoveryJobResultSummary.Builder
objectName(String objectName)
The database object that contains the sensitive column.DiscoveryJobResultSummary.Builder
objectType(DiscoveryJobResultSummary.ObjectType objectType)
The type of the database object that contains the sensitive column.DiscoveryJobResultSummary.Builder
parentColumnKeys(List<String> parentColumnKeys)
Unique keys identifying the columns that are parents of the sensitive column.DiscoveryJobResultSummary.Builder
plannedAction(DiscoveryJobResult.PlannedAction plannedAction)
Specifies how to process the discovery result.DiscoveryJobResultSummary.Builder
relationType(DiscoveryJobResultSummary.RelationType relationType)
The type of referential relationship the sensitive column has with its parent.DiscoveryJobResultSummary.Builder
sampleDataValues(List<String> sampleDataValues)
Original data values collected for the sensitive column from the associated database.DiscoveryJobResultSummary.Builder
schemaName(String schemaName)
The database schema that contains the sensitive column.DiscoveryJobResultSummary.Builder
sensitiveColumnkey(String sensitiveColumnkey)
The unique key that identifies the sensitive column represented by the discovery result.DiscoveryJobResultSummary.Builder
sensitiveTypeId(String sensitiveTypeId)
The OCID of the sensitive type associated with the sensitive column.
-
-
-
Method Detail
-
key
public DiscoveryJobResultSummary.Builder key(String key)
The unique key that identifies the discovery result.- Parameters:
key
- the value to set- Returns:
- this builder
-
discoveryType
public DiscoveryJobResultSummary.Builder discoveryType(DiscoveryJobResult.DiscoveryType discoveryType)
The type of the discovery result.It can be one of the following three types: NEW: A new sensitive column in the target database that is not in the sensitive data model. DELETED: A column that is present in the sensitive data model but has been deleted from the target database. MODIFIED: A column that is present in the target database as well as the sensitive data model but some of its attributes have been modified.
- Parameters:
discoveryType
- the value to set- Returns:
- this builder
-
sensitiveColumnkey
public DiscoveryJobResultSummary.Builder sensitiveColumnkey(String sensitiveColumnkey)
The unique key that identifies the sensitive column represented by the discovery result.- Parameters:
sensitiveColumnkey
- the value to set- Returns:
- this builder
-
schemaName
public DiscoveryJobResultSummary.Builder schemaName(String schemaName)
The database schema that contains the sensitive column.- Parameters:
schemaName
- the value to set- Returns:
- this builder
-
objectName
public DiscoveryJobResultSummary.Builder objectName(String objectName)
The database object that contains the sensitive column.- Parameters:
objectName
- the value to set- Returns:
- this builder
-
columnName
public DiscoveryJobResultSummary.Builder columnName(String columnName)
The name of the sensitive column.- Parameters:
columnName
- the value to set- Returns:
- this builder
-
objectType
public DiscoveryJobResultSummary.Builder objectType(DiscoveryJobResultSummary.ObjectType objectType)
The type of the database object that contains the sensitive column.- Parameters:
objectType
- the value to set- Returns:
- this builder
-
dataType
public DiscoveryJobResultSummary.Builder dataType(String dataType)
The data type of the sensitive column.- Parameters:
dataType
- the value to set- Returns:
- this builder
-
sensitiveTypeId
public DiscoveryJobResultSummary.Builder sensitiveTypeId(String sensitiveTypeId)
The OCID of the sensitive type associated with the sensitive column.- Parameters:
sensitiveTypeId
- the value to set- Returns:
- this builder
-
parentColumnKeys
public DiscoveryJobResultSummary.Builder parentColumnKeys(List<String> parentColumnKeys)
Unique keys identifying the columns that are parents of the sensitive column.At present, it tracks a single parent only.
- Parameters:
parentColumnKeys
- the value to set- Returns:
- this builder
-
relationType
public DiscoveryJobResultSummary.Builder relationType(DiscoveryJobResultSummary.RelationType relationType)
The type of referential relationship the sensitive column has with its parent.NONE indicates that the sensitive column does not have a parent. DB_DEFINED indicates that the relationship is defined in the database dictionary. APP_DEFINED indicates that the relationship is defined at the application level and not in the database dictionary.
- Parameters:
relationType
- the value to set- Returns:
- this builder
-
estimatedDataValueCount
public DiscoveryJobResultSummary.Builder estimatedDataValueCount(Long estimatedDataValueCount)
The estimated number of data values the column has in the associated database.- Parameters:
estimatedDataValueCount
- the value to set- Returns:
- this builder
-
sampleDataValues
public DiscoveryJobResultSummary.Builder sampleDataValues(List<String> sampleDataValues)
Original data values collected for the sensitive column from the associated database.Sample data helps review the column and ensure that it actually contains sensitive data. Note that sample data is retrieved by a data discovery job only if the isSampleDataCollectionEnabled attribute is set to true. At present, only one data value is collected per sensitive column.
- Parameters:
sampleDataValues
- the value to set- Returns:
- this builder
-
plannedAction
public DiscoveryJobResultSummary.Builder plannedAction(DiscoveryJobResult.PlannedAction plannedAction)
Specifies how to process the discovery result.It’s set to NONE by default. Use the PatchDiscoveryJobResults operation to update this attribute. You can choose one of the following options: ACCEPT: To accept the discovery result and update the sensitive data model to reflect the changes. REJECT: To reject the discovery result so that it doesn’t change the sensitive data model. INVALIDATE: To invalidate a newly discovered column. It adds the column to the sensitive data model but marks it as invalid. It helps track false positives and ensure that they aren’t reported by future discovery jobs. After specifying the planned action, you can use the ApplyDiscoveryJobResults operation to automatically process the discovery results.
- Parameters:
plannedAction
- the value to set- Returns:
- this builder
-
isResultApplied
public DiscoveryJobResultSummary.Builder isResultApplied(Boolean isResultApplied)
Indicates whether the discovery result has been processed.You can update this attribute using the PatchDiscoveryJobResults operation to track whether the discovery result has already been processed and applied to the sensitive data model.
- Parameters:
isResultApplied
- the value to set- Returns:
- this builder
-
discoveryJobId
public DiscoveryJobResultSummary.Builder discoveryJobId(String discoveryJobId)
The OCID of the discovery job.- Parameters:
discoveryJobId
- the value to set- Returns:
- this builder
-
build
public DiscoveryJobResultSummary build()
-
copy
public DiscoveryJobResultSummary.Builder copy(DiscoveryJobResultSummary model)
-
-