Class DifferenceColumn


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20181201")
    public final class DifferenceColumn
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    A SDM masking policy difference column.

    It can be one of the following three types: NEW: A new 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.
    Note: Objects should always be created or deserialized using the DifferenceColumn.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the DifferenceColumn.Builder, which maintain a set of all explicitly set fields called DifferenceColumn.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).

    • Method Detail

      • getKey

        public String getKey()
        The unique key that identifies the SDM masking policy difference column.
        Returns:
        the value
      • getDifferenceType

        public DifferenceColumn.DifferenceType getDifferenceType()
        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.

        Returns:
        the value
      • getSensitiveColumnkey

        public String getSensitiveColumnkey()
        The unique key that identifies the sensitive column represented by the SDM masking policy difference column.
        Returns:
        the value
      • getMaskingColumnkey

        public String getMaskingColumnkey()
        The unique key that identifies the masking column represented by the SDM masking policy difference column.
        Returns:
        the value
      • getSchemaName

        public String getSchemaName()
        The database schema that contains the difference column.
        Returns:
        the value
      • getObjectName

        public String getObjectName()
        The database object that contains the difference column.
        Returns:
        the value
      • getColumnName

        public String getColumnName()
        The name of the difference column.
        Returns:
        the value
      • getSensitiveTypeId

        public String getSensitiveTypeId()
        The OCID of the sensitive type associated with the difference column.
        Returns:
        the value
      • getPlannedAction

        public DifferenceColumn.PlannedAction getPlannedAction()
        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.

        Returns:
        the value
      • getSyncStatus

        public DifferenceColumn.SyncStatus getSyncStatus()
        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.

        Returns:
        the value
      • getTimeLastSynced

        public Date getTimeLastSynced()
        The date and time the SDM masking policy difference column was last synced, in the format defined by RFC3339.
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel