Package com.oracle.bmc.datasafe.model
Class SqlFirewallViolationSummary
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.datasafe.model.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 theSqlFirewallViolationSummary.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 theSqlFirewallViolationSummary.Builder
, which maintain a set of all explicitly set fields calledSqlFirewallViolationSummary.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
SqlFirewallViolationSummary
@Deprecated @ConstructorProperties({"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)
Deprecated.
-
-
Method Detail
-
builder
public static SqlFirewallViolationSummary.Builder builder()
Create a new builder.
-
toBuilder
public SqlFirewallViolationSummary.Builder toBuilder()
-
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
-
getViolationAction
public SqlFirewallViolationSummary.ViolationAction getViolationAction()
The action taken for this SQL violation.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.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 classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-