Class SqlFirewallViolationSummary


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20181201")
    public final class SqlFirewallViolationSummary
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The resource represents the SQL violations collected from the target database by Oracle Data Safe.
    Note: Objects should always be created or deserialized using the SqlFirewallViolationSummary.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 SqlFirewallViolationSummary.Builder, which maintain a set of all explicitly set fields called SqlFirewallViolationSummary.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

      • getId

        public String getId()
        The OCID of the SQL violation.
        Returns:
        the value
      • getCompartmentId

        public String getCompartmentId()
        The OCID of the compartment containing the SQL violation.
        Returns:
        the value
      • getDbUserName

        public String getDbUserName()
        The name of the database user.
        Returns:
        the value
      • getTargetId

        public String getTargetId()
        The OCID of the target database.
        Returns:
        the value
      • getTargetName

        public String getTargetName()
        The name of the target database.
        Returns:
        the value
      • getOperationTime

        public Date getOperationTime()
        The time of the SQL violation occurrence in the target database.
        Returns:
        the value
      • getTimeCollected

        public Date getTimeCollected()
        The timestamp when this SQL violation was collected from the target database by Data Safe.
        Returns:
        the value
      • getClientOsUserName

        public String getClientOsUserName()
        The name of the operating system user for the database session.
        Returns:
        the value
      • getOperation

        public String getOperation()
        The name of the action executed by the user on the target database.

        For example, ALTER, CREATE, DROP.

        Returns:
        the value
      • getSqlText

        public String getSqlText()
        The SQL text caught by the firewall.
        Returns:
        the value
      • getSqlAccessedObjects

        public String getSqlAccessedObjects()
        The objects accessed by the SQL.
        Returns:
        the value
      • getCurrentDbUserName

        public String getCurrentDbUserName()
        The name of the user that SQL was executed as.
        Returns:
        the value
      • getSqlLevel

        public SqlFirewallViolationSummary.SqlLevel getSqlLevel()
        Specifies the level of SQL for this violation.

        USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.

        Returns:
        the value
      • getClientIp

        public String getClientIp()
        The IP address of the host machine from which the session was generated.
        Returns:
        the value
      • getClientProgram

        public String getClientProgram()
        The application from which the SQL violation was generated.

        Examples include SQL Plus or SQL Developer.

        Returns:
        the value
      • getViolationCause

        public String getViolationCause()
        Indicates whether SQL or context violation.
        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