@Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class SqlFirewallAllowedSql extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The resource represents a SQL Firewall allowed SQL in Data Safe.
Note: Objects should always be created or deserialized using the SqlFirewallAllowedSql.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 SqlFirewallAllowedSql.Builder
, which maintain a
set of all explicitly set fields called SqlFirewallAllowedSql.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 |
SqlFirewallAllowedSql.Builder |
static class |
SqlFirewallAllowedSql.SqlLevel
Specifies the level of SQL included for this SQL Firewall policy.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
SqlFirewallAllowedSql(String id,
String compartmentId,
String displayName,
String description,
String sqlFirewallPolicyId,
String currentUser,
String dbUserName,
String sqlText,
SqlFirewallAllowedSql.SqlLevel sqlLevel,
List<String> sqlAccessedObjects,
Float version,
Date timeCollected,
Date timeUpdated,
SqlFirewallAllowedSqlLifecycleState lifecycleState,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags,
Map<String,Map<String,Object>> systemTags)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SqlFirewallAllowedSql.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCompartmentId()
The OCID of the compartment containing the SQL Firewall allowed SQL.
|
String |
getCurrentUser()
The name of the user that SQL was executed as.
|
String |
getDbUserName()
The database user name.
|
Map<String,Map<String,Object>> |
getDefinedTags()
Defined tags for this resource.
|
String |
getDescription()
The description of the SQL Firewall allowed SQL.
|
String |
getDisplayName()
The display name of the SQL Firewall allowed SQL.
|
Map<String,String> |
getFreeformTags()
Free-form tags for this resource.
|
String |
getId()
The OCID of the SQL Firewall allowed SQL.
|
SqlFirewallAllowedSqlLifecycleState |
getLifecycleState()
The current state of the SQL Firewall allowed SQL.
|
List<String> |
getSqlAccessedObjects()
The objects accessed by the SQL.
|
String |
getSqlFirewallPolicyId()
The OCID of the SQL Firewall policy corresponding to the SQL Firewall allowed SQL.
|
SqlFirewallAllowedSql.SqlLevel |
getSqlLevel()
Specifies the level of SQL included for this SQL Firewall policy.
|
String |
getSqlText()
The SQL text of the SQL Firewall allowed SQL.
|
Map<String,Map<String,Object>> |
getSystemTags()
System tags for this resource.
|
Date |
getTimeCollected()
The time the the SQL Firewall allowed SQL was collected from the target database, in the
format defined by RFC3339.
|
Date |
getTimeUpdated()
The last date and time the SQL Firewall allowed SQL was updated, in the format defined by
RFC3339.
|
Float |
getVersion()
Version of the associated SQL Firewall policy.
|
int |
hashCode() |
SqlFirewallAllowedSql.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","compartmentId","displayName","description","sqlFirewallPolicyId","currentUser","dbUserName","sqlText","sqlLevel","sqlAccessedObjects","version","timeCollected","timeUpdated","lifecycleState","freeformTags","definedTags","systemTags"}) public SqlFirewallAllowedSql(String id, String compartmentId, String displayName, String description, String sqlFirewallPolicyId, String currentUser, String dbUserName, String sqlText, SqlFirewallAllowedSql.SqlLevel sqlLevel, List<String> sqlAccessedObjects, Float version, Date timeCollected, Date timeUpdated, SqlFirewallAllowedSqlLifecycleState lifecycleState, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags)
public static SqlFirewallAllowedSql.Builder builder()
Create a new builder.
public SqlFirewallAllowedSql.Builder toBuilder()
public String getId()
The OCID of the SQL Firewall allowed SQL.
public String getCompartmentId()
The OCID of the compartment containing the SQL Firewall allowed SQL.
public String getDisplayName()
The display name of the SQL Firewall allowed SQL.
public String getDescription()
The description of the SQL Firewall allowed SQL.
public String getSqlFirewallPolicyId()
The OCID of the SQL Firewall policy corresponding to the SQL Firewall allowed SQL.
public String getCurrentUser()
The name of the user that SQL was executed as.
public String getDbUserName()
The database user name.
public String getSqlText()
The SQL text of the SQL Firewall allowed SQL.
public SqlFirewallAllowedSql.SqlLevel getSqlLevel()
Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
public List<String> getSqlAccessedObjects()
The objects accessed by the SQL.
public Float getVersion()
Version of the associated SQL Firewall policy. This identifies whether the allowed SQLs were added in the same batch or not.
public Date getTimeCollected()
The time the the SQL Firewall allowed SQL was collected from the target database, in the format defined by RFC3339.
public Date getTimeUpdated()
The last date and time the SQL Firewall allowed SQL was updated, in the format defined by RFC3339.
public SqlFirewallAllowedSqlLifecycleState getLifecycleState()
The current state of the SQL Firewall allowed SQL.
public Map<String,String> getFreeformTags()
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags
Example: {"Department": "Finance"}
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags
Example: {"Operations": {"CostCenter": "42"}}
public Map<String,Map<String,Object>> getSystemTags()
System tags for this resource. Each key is predefined and scoped to a namespace. For more
information, see Resource Tags. Example: {"orcl-cloud": {"free-tier-retained":
"true"}}
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.