@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
).
Modifier and Type | Class and Description |
---|---|
static class |
SqlFirewallViolationSummary.Builder |
static class |
SqlFirewallViolationSummary.SqlLevel
Specifies the level of SQL for this violation.
|
static class |
SqlFirewallViolationSummary.ViolationAction
The action taken for this SQL violation.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
SqlFirewallViolationSummary(String id,
String compartmentId,
String dbUserName,
String targetId,
String targetName,
Date operationTime,
Date timeCollected,
String clientOsUserName,
String operation,
String sqlText,
String sqlAccessedObjects,
String currentDbUserName,
SqlFirewallViolationSummary.SqlLevel sqlLevel,
String clientIp,
String clientProgram,
String violationCause,
SqlFirewallViolationSummary.ViolationAction violationAction)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SqlFirewallViolationSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getClientIp()
The IP address of the host machine from which the session was generated.
|
String |
getClientOsUserName()
The name of the operating system user for the database session.
|
String |
getClientProgram()
The application from which the SQL violation was generated.
|
String |
getCompartmentId()
The OCID of the compartment containing the SQL violation.
|
String |
getCurrentDbUserName()
The name of the user that SQL was executed as.
|
String |
getDbUserName()
The name of the database user.
|
String |
getId()
The OCID of the SQL violation.
|
String |
getOperation()
The name of the action executed by the user on the target database.
|
Date |
getOperationTime()
The time of the SQL violation occurrence in the target database.
|
String |
getSqlAccessedObjects()
The objects accessed by the SQL.
|
SqlFirewallViolationSummary.SqlLevel |
getSqlLevel()
Specifies the level of SQL for this violation.
|
String |
getSqlText()
The SQL text caught by the firewall.
|
String |
getTargetId()
The OCID of the target database.
|
String |
getTargetName()
The name of the target database.
|
Date |
getTimeCollected()
The timestamp when this SQL violation was collected from the target database by Data Safe.
|
SqlFirewallViolationSummary.ViolationAction |
getViolationAction()
The action taken for this SQL violation.
|
String |
getViolationCause()
Indicates whether SQL or context violation.
|
int |
hashCode() |
SqlFirewallViolationSummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","compartmentId","dbUserName","targetId","targetName","operationTime","timeCollected","clientOsUserName","operation","sqlText","sqlAccessedObjects","currentDbUserName","sqlLevel","clientIp","clientProgram","violationCause","violationAction"}) public SqlFirewallViolationSummary(String id, String compartmentId, String dbUserName, String targetId, String targetName, Date operationTime, Date timeCollected, String clientOsUserName, String operation, String sqlText, String sqlAccessedObjects, String currentDbUserName, SqlFirewallViolationSummary.SqlLevel sqlLevel, String clientIp, String clientProgram, String violationCause, SqlFirewallViolationSummary.ViolationAction violationAction)
public static SqlFirewallViolationSummary.Builder builder()
Create a new builder.
public SqlFirewallViolationSummary.Builder toBuilder()
public String getId()
The OCID of the SQL violation.
public String getCompartmentId()
The OCID of the compartment containing the SQL violation.
public String getDbUserName()
The name of the database user.
public String getTargetId()
The OCID of the target database.
public String getTargetName()
The name of the target database.
public Date getOperationTime()
The time of the SQL violation occurrence in the target database.
public Date getTimeCollected()
The timestamp when this SQL violation was collected from the target database by Data Safe.
public String getClientOsUserName()
The name of the operating system user for the database session.
public String getOperation()
The name of the action executed by the user on the target database. For example, ALTER, CREATE, DROP.
public String getSqlText()
The SQL text caught by the firewall.
public String getSqlAccessedObjects()
The objects accessed by the SQL.
public String getCurrentDbUserName()
The name of the user that SQL was executed as.
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.
public String getClientIp()
The IP address of the host machine from which the session was generated.
public String getClientProgram()
The application from which the SQL violation was generated. Examples include SQL Plus or SQL Developer.
public String getViolationCause()
Indicates whether SQL or context violation.
public SqlFirewallViolationSummary.ViolationAction getViolationAction()
The action taken for this SQL violation.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.