Class AuditSpecification


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20181201")
    public final class AuditSpecification
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    Represents an audit policy relevant for the target database.The audit policy could be in any one of the following 3 states in the target database 1) Created and enabled 2) Created but not enabled 3) Not created For more details on relevant audit policies for the target database, refer to documentation.
    Note: Objects should always be created or deserialized using the AuditSpecification.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 AuditSpecification.Builder, which maintain a set of all explicitly set fields called AuditSpecification.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

      • getAuditPolicyName

        public String getAuditPolicyName()
        Indicates the audit policy name.

        Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.

        Returns:
        the value
      • getDatabasePolicyNames

        public List<String> getDatabasePolicyNames()
        Indicates the names of corresponding database policy ( or policies) in the target database.
        Returns:
        the value
      • getAuditPolicyCategory

        public AuditPolicyCategory getAuditPolicyCategory()
        The category to which the audit policy belongs.
        Returns:
        the value
      • getEnableStatus

        public AuditSpecification.EnableStatus getEnableStatus()
        Indicates whether the policy has been enabled, disabled or partially enabled in the target database.

        The status is PARTIALLY_ENABLED if any of the constituent database audit policies is not enabled.

        Returns:
        the value
      • getPartiallyEnabledMsg

        public String getPartiallyEnabledMsg()
        Provides information about the policy that has been only partially enabled.
        Returns:
        the value
      • getIsEnabledForAllUsers

        public Boolean getIsEnabledForAllUsers()
        Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
        Returns:
        the value
      • getIsViewOnly

        public Boolean getIsViewOnly()
        Indicates whether the audit policy is available for provisioning/ de-provisioning from Oracle Data Safe, or is only available for displaying the current provisioning status from the target.
        Returns:
        the value
      • getIsSeededInTarget

        public Boolean getIsSeededInTarget()
        Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
        Returns:
        the value
      • getIsSeededInDataSafe

        public Boolean getIsSeededInDataSafe()
        Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
        Returns:
        the value
      • getIsCreated

        public Boolean getIsCreated()
        Indicates whether the policy is already created on the target database.
        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