Class CreateSensitiveColumnDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • appName

        public CreateSensitiveColumnDetails.Builder appName​(String appName)
        The name of the application associated with the sensitive column.

        It’s useful when the application name is different from the schema name. Otherwise, it can be ignored. If this attribute is not provided, it’s automatically populated with the value provided for the schemaName attribute.

        Parameters:
        appName - the value to set
        Returns:
        this builder
      • schemaName

        public CreateSensitiveColumnDetails.Builder schemaName​(String schemaName)
        The database schema that contains the sensitive column.
        Parameters:
        schemaName - the value to set
        Returns:
        this builder
      • objectName

        public CreateSensitiveColumnDetails.Builder objectName​(String objectName)
        The database object that contains the sensitive column.
        Parameters:
        objectName - the value to set
        Returns:
        this builder
      • status

        public CreateSensitiveColumnDetails.Builder status​(CreateSensitiveColumnDetails.Status status)
        The status of the sensitive column.

        VALID means the column is considered sensitive. INVALID means the column is not considered sensitive. Tracking invalid columns in a sensitive data model helps ensure that an incremental data discovery job does not identify these columns as sensitive.

        Parameters:
        status - the value to set
        Returns:
        this builder
      • sensitiveTypeId

        public CreateSensitiveColumnDetails.Builder sensitiveTypeId​(String sensitiveTypeId)
        The OCID of the sensitive type to be associated with the sensitive column.
        Parameters:
        sensitiveTypeId - the value to set
        Returns:
        this builder
      • parentColumnKeys

        public CreateSensitiveColumnDetails.Builder parentColumnKeys​(List<String> parentColumnKeys)
        Unique keys identifying the columns that are parents of the sensitive column.

        At present, it accepts only one parent column key. This attribute can be used to establish relationship between columns in a sensitive data model. Note that the parent column must be added to the sensitive data model before its key can be specified here. If this attribute is provided, the appDefinedChildColumnKeys or dbDefinedChildColumnKeys attribute of the parent column is automatically updated to reflect the relationship.

        Parameters:
        parentColumnKeys - the value to set
        Returns:
        this builder
      • relationType

        public CreateSensitiveColumnDetails.Builder relationType​(CreateSensitiveColumnDetails.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
      • appDefinedChildColumnKeys

        public CreateSensitiveColumnDetails.Builder appDefinedChildColumnKeys​(List<String> appDefinedChildColumnKeys)
        Unique keys identifying the columns that are application-level (non-dictionary) children of the sensitive column.

        This attribute can be used to establish relationship between columns in a sensitive data model. Note that the child columns must be added to the sensitive data model before their keys can be specified here. If this attribute is provided, the parentColumnKeys and relationType attributes of the child columns are automatically updated to reflect the relationship.

        Parameters:
        appDefinedChildColumnKeys - the value to set
        Returns:
        this builder
      • dbDefinedChildColumnKeys

        public CreateSensitiveColumnDetails.Builder dbDefinedChildColumnKeys​(List<String> dbDefinedChildColumnKeys)
        Unique keys identifying the columns that are database-level (dictionary-defined) children of the sensitive column.

        This attribute can be used to establish relationship between columns in a sensitive data model. Note that the child columns must be added to the sensitive data model before their keys can be specified here. If this attribute is provided, the parentColumnKeys and relationType attributes of the child columns are automatically updated to reflect the relationship.

        Parameters:
        dbDefinedChildColumnKeys - the value to set
        Returns:
        this builder