Package com.oracle.bmc.datasafe.model
Class SqlFirewallPolicySummary.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.SqlFirewallPolicySummary.Builder
-
- Enclosing class:
- SqlFirewallPolicySummary
public static class SqlFirewallPolicySummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlFirewallPolicySummarybuild()SqlFirewallPolicySummary.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the SQL Firewall policy.SqlFirewallPolicySummary.Buildercopy(SqlFirewallPolicySummary model)SqlFirewallPolicySummary.BuilderdbUserName(String dbUserName)The database user name.SqlFirewallPolicySummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.SqlFirewallPolicySummary.Builderdescription(String description)The description of the SQL Firewall policy.SqlFirewallPolicySummary.BuilderdisplayName(String displayName)The display name of the SQL Firewall policy.SqlFirewallPolicySummary.BuilderenforcementScope(SqlFirewallPolicySummary.EnforcementScope enforcementScope)Specifies the SQL Firewall policy enforcement option.SqlFirewallPolicySummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.SqlFirewallPolicySummary.Builderid(String id)The OCID of the SQL Firewall policy.SqlFirewallPolicySummary.BuilderlifecycleDetails(String lifecycleDetails)Details about the current state of the SQL Firewall policy in Data Safe.SqlFirewallPolicySummary.BuilderlifecycleState(SqlFirewallPolicyLifecycleState lifecycleState)The current state of the SQL Firewall policy.SqlFirewallPolicySummary.BuildersecurityPolicyId(String securityPolicyId)The OCID of the security policy corresponding to the SQL Firewall policy.SqlFirewallPolicySummary.BuildersqlLevel(SqlFirewallPolicySummary.SqlLevel sqlLevel)Specifies the level of SQL included for this SQL Firewall policy.SqlFirewallPolicySummary.Builderstatus(SqlFirewallPolicySummary.Status status)Specifies whether the SQL Firewall policy is enabled or disabled.SqlFirewallPolicySummary.BuildertimeCreated(Date timeCreated)The time that the SQL Firewall policy was created, in the format defined by RFC3339.SqlFirewallPolicySummary.BuildertimeUpdated(Date timeUpdated)The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.SqlFirewallPolicySummary.BuilderviolationAction(SqlFirewallPolicySummary.ViolationAction violationAction)Specifies the SQL Firewall action based on detection of SQL Firewall violations.SqlFirewallPolicySummary.BuilderviolationAudit(SqlFirewallPolicySummary.ViolationAudit violationAudit)Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
-
-
-
Method Detail
-
id
public SqlFirewallPolicySummary.Builder id(String id)
The OCID of the SQL Firewall policy.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public SqlFirewallPolicySummary.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the SQL Firewall policy.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
displayName
public SqlFirewallPolicySummary.Builder displayName(String displayName)
The display name of the SQL Firewall policy.- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public SqlFirewallPolicySummary.Builder description(String description)
The description of the SQL Firewall policy.- Parameters:
description- the value to set- Returns:
- this builder
-
securityPolicyId
public SqlFirewallPolicySummary.Builder securityPolicyId(String securityPolicyId)
The OCID of the security policy corresponding to the SQL Firewall policy.- Parameters:
securityPolicyId- the value to set- Returns:
- this builder
-
dbUserName
public SqlFirewallPolicySummary.Builder dbUserName(String dbUserName)
The database user name.- Parameters:
dbUserName- the value to set- Returns:
- this builder
-
sqlLevel
public SqlFirewallPolicySummary.Builder sqlLevel(SqlFirewallPolicySummary.SqlLevel sqlLevel)
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.
- Parameters:
sqlLevel- the value to set- Returns:
- this builder
-
status
public SqlFirewallPolicySummary.Builder status(SqlFirewallPolicySummary.Status status)
Specifies whether the SQL Firewall policy is enabled or disabled.- Parameters:
status- the value to set- Returns:
- this builder
-
enforcementScope
public SqlFirewallPolicySummary.Builder enforcementScope(SqlFirewallPolicySummary.EnforcementScope enforcementScope)
Specifies the SQL Firewall policy enforcement option.- Parameters:
enforcementScope- the value to set- Returns:
- this builder
-
violationAction
public SqlFirewallPolicySummary.Builder violationAction(SqlFirewallPolicySummary.ViolationAction violationAction)
Specifies the SQL Firewall action based on detection of SQL Firewall violations.- Parameters:
violationAction- the value to set- Returns:
- this builder
-
violationAudit
public SqlFirewallPolicySummary.Builder violationAudit(SqlFirewallPolicySummary.ViolationAudit violationAudit)
Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.- Parameters:
violationAudit- the value to set- Returns:
- this builder
-
timeCreated
public SqlFirewallPolicySummary.Builder timeCreated(Date timeCreated)
The time that the SQL Firewall policy was created, in the format defined by RFC3339.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public SqlFirewallPolicySummary.Builder timeUpdated(Date timeUpdated)
The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public SqlFirewallPolicySummary.Builder lifecycleState(SqlFirewallPolicyLifecycleState lifecycleState)
The current state of the SQL Firewall policy.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public SqlFirewallPolicySummary.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the SQL Firewall policy in Data Safe.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
freeformTags
public SqlFirewallPolicySummary.Builder freeformTags(Map<String,String> freeformTags)
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"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public SqlFirewallPolicySummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
build
public SqlFirewallPolicySummary build()
-
copy
public SqlFirewallPolicySummary.Builder copy(SqlFirewallPolicySummary model)
-
-