public static class DiscoveryJobResultSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public DiscoveryJobResultSummary.Builder key(String key)
The unique key that identifies the discovery result.
key
- the value to setpublic 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.
discoveryType
- the value to setpublic DiscoveryJobResultSummary.Builder sensitiveColumnkey(String sensitiveColumnkey)
The unique key that identifies the sensitive column represented by the discovery result.
sensitiveColumnkey
- the value to setpublic DiscoveryJobResultSummary.Builder schemaName(String schemaName)
The database schema that contains the sensitive column.
schemaName
- the value to setpublic DiscoveryJobResultSummary.Builder objectName(String objectName)
The database object that contains the sensitive column.
objectName
- the value to setpublic DiscoveryJobResultSummary.Builder columnName(String columnName)
The name of the sensitive column.
columnName
- the value to setpublic DiscoveryJobResultSummary.Builder objectType(DiscoveryJobResultSummary.ObjectType objectType)
The type of the database object that contains the sensitive column.
objectType
- the value to setpublic DiscoveryJobResultSummary.Builder dataType(String dataType)
The data type of the sensitive column.
dataType
- the value to setpublic DiscoveryJobResultSummary.Builder sensitiveTypeId(String sensitiveTypeId)
The OCID of the sensitive type associated with the sensitive column.
sensitiveTypeId
- the value to setpublic 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.
parentColumnKeys
- the value to setpublic 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.
relationType
- the value to setpublic DiscoveryJobResultSummary.Builder estimatedDataValueCount(Long estimatedDataValueCount)
The estimated number of data values the column has in the associated database.
estimatedDataValueCount
- the value to setpublic 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.
sampleDataValues
- the value to setpublic 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.
plannedAction
- the value to setpublic 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.
isResultApplied
- the value to setpublic DiscoveryJobResultSummary.Builder discoveryJobId(String discoveryJobId)
The OCID of the discovery job.
discoveryJobId
- the value to setpublic DiscoveryJobResultSummary build()
public DiscoveryJobResultSummary.Builder copy(DiscoveryJobResultSummary model)
Copyright © 2016–2024. All rights reserved.