public static class DiscoveryJobResult.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DiscoveryJobResult.Builder |
appDefinedChildColumnKeys(List<String> appDefinedChildColumnKeys)
Unique keys identifying the columns that are application-level (non-dictionary) children
of the sensitive column.
|
DiscoveryJobResult.Builder |
appName(String appName)
The name of the application.
|
DiscoveryJobResult |
build() |
DiscoveryJobResult.Builder |
columnName(String columnName)
The name of the sensitive column.
|
DiscoveryJobResult.Builder |
copy(DiscoveryJobResult model) |
DiscoveryJobResult.Builder |
dataType(String dataType)
The data type of the sensitive column.
|
DiscoveryJobResult.Builder |
dbDefinedChildColumnKeys(List<String> dbDefinedChildColumnKeys)
Unique keys identifying the columns that are database-level (dictionary-defined) children
of the sensitive column.
|
DiscoveryJobResult.Builder |
discoveryJobId(String discoveryJobId)
The OCID of the discovery job.
|
DiscoveryJobResult.Builder |
discoveryType(DiscoveryJobResult.DiscoveryType discoveryType)
The type of the discovery result.
|
DiscoveryJobResult.Builder |
estimatedDataValueCount(Long estimatedDataValueCount)
The estimated number of data values the column has in the associated database.
|
DiscoveryJobResult.Builder |
isResultApplied(Boolean isResultApplied)
Indicates whether the discovery result has been processed.
|
DiscoveryJobResult.Builder |
key(String key)
The unique key that identifies the discovery result.
|
DiscoveryJobResult.Builder |
modifiedAttributes(ModifiedAttributes modifiedAttributes) |
DiscoveryJobResult.Builder |
objectName(String objectName)
The database object that contains the sensitive column.
|
DiscoveryJobResult.Builder |
objectType(DiscoveryJobResult.ObjectType objectType)
The type of the database object that contains the sensitive column.
|
DiscoveryJobResult.Builder |
parentColumnKeys(List<String> parentColumnKeys)
Unique keys identifying the columns that are parents of the sensitive column.
|
DiscoveryJobResult.Builder |
plannedAction(DiscoveryJobResult.PlannedAction plannedAction)
Specifies how to process the discovery result.
|
DiscoveryJobResult.Builder |
relationType(DiscoveryJobResult.RelationType relationType)
The type of referential relationship the sensitive column has with its parent.
|
DiscoveryJobResult.Builder |
sampleDataValues(List<String> sampleDataValues)
Original data values collected for the sensitive column from the associated database.
|
DiscoveryJobResult.Builder |
schemaName(String schemaName)
The database schema that contains the sensitive column.
|
DiscoveryJobResult.Builder |
sensitiveColumnkey(String sensitiveColumnkey)
The unique key that identifies the sensitive column represented by the discovery result.
|
DiscoveryJobResult.Builder |
sensitiveTypeId(String sensitiveTypeId)
The OCID of the sensitive type associated with the sensitive column.
|
public DiscoveryJobResult.Builder key(String key)
The unique key that identifies the discovery result.
key
- the value to setpublic DiscoveryJobResult.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 DiscoveryJobResult.Builder sensitiveColumnkey(String sensitiveColumnkey)
The unique key that identifies the sensitive column represented by the discovery result.
sensitiveColumnkey
- the value to setpublic DiscoveryJobResult.Builder appName(String appName)
The name of the application. An application is an entity that is identified by a schema and stores sensitive information for that schema. Its value will be same as schemaName, if no value is passed.
appName
- the value to setpublic DiscoveryJobResult.Builder schemaName(String schemaName)
The database schema that contains the sensitive column.
schemaName
- the value to setpublic DiscoveryJobResult.Builder objectName(String objectName)
The database object that contains the sensitive column.
objectName
- the value to setpublic DiscoveryJobResult.Builder columnName(String columnName)
The name of the sensitive column.
columnName
- the value to setpublic DiscoveryJobResult.Builder objectType(DiscoveryJobResult.ObjectType objectType)
The type of the database object that contains the sensitive column.
objectType
- the value to setpublic DiscoveryJobResult.Builder dataType(String dataType)
The data type of the sensitive column.
dataType
- the value to setpublic DiscoveryJobResult.Builder sensitiveTypeId(String sensitiveTypeId)
The OCID of the sensitive type associated with the sensitive column.
sensitiveTypeId
- the value to setpublic DiscoveryJobResult.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 DiscoveryJobResult.Builder relationType(DiscoveryJobResult.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 DiscoveryJobResult.Builder estimatedDataValueCount(Long estimatedDataValueCount)
The estimated number of data values the column has in the associated database.
estimatedDataValueCount
- the value to setpublic DiscoveryJobResult.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 DiscoveryJobResult.Builder appDefinedChildColumnKeys(List<String> appDefinedChildColumnKeys)
Unique keys identifying the columns that are application-level (non-dictionary) children of the sensitive column.
appDefinedChildColumnKeys
- the value to setpublic DiscoveryJobResult.Builder dbDefinedChildColumnKeys(List<String> dbDefinedChildColumnKeys)
Unique keys identifying the columns that are database-level (dictionary-defined) children of the sensitive column.
dbDefinedChildColumnKeys
- the value to setpublic DiscoveryJobResult.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 DiscoveryJobResult.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 DiscoveryJobResult.Builder discoveryJobId(String discoveryJobId)
The OCID of the discovery job.
discoveryJobId
- the value to setpublic DiscoveryJobResult.Builder modifiedAttributes(ModifiedAttributes modifiedAttributes)
public DiscoveryJobResult build()
public DiscoveryJobResult.Builder copy(DiscoveryJobResult model)
Copyright © 2016–2024. All rights reserved.