Package com.oracle.bmc.datasafe.model
Class SqlFirewallPolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.SqlFirewallPolicy.Builder
-
- Enclosing class:
- SqlFirewallPolicy
public static class SqlFirewallPolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlFirewallPolicy.Builder
allowedClientIps(List<String> allowedClientIps)
The list of allowed ip addresses for the SQL Firewall policy.SqlFirewallPolicy.Builder
allowedClientOsUsernames(List<String> allowedClientOsUsernames)
The list of allowed operating system user names for the SQL Firewall policy.SqlFirewallPolicy.Builder
allowedClientPrograms(List<String> allowedClientPrograms)
The list of allowed client programs for the SQL Firewall policy.SqlFirewallPolicy
build()
SqlFirewallPolicy.Builder
compartmentId(String compartmentId)
The OCID of the compartment containing the SQL Firewall policy.SqlFirewallPolicy.Builder
copy(SqlFirewallPolicy model)
SqlFirewallPolicy.Builder
dbUserName(String dbUserName)
The database user name.SqlFirewallPolicy.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.SqlFirewallPolicy.Builder
description(String description)
The description of the SQL Firewall policy.SqlFirewallPolicy.Builder
displayName(String displayName)
The display name of the SQL Firewall policy.SqlFirewallPolicy.Builder
enforcementScope(SqlFirewallPolicy.EnforcementScope enforcementScope)
Specifies the SQL Firewall policy enforcement option.SqlFirewallPolicy.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.SqlFirewallPolicy.Builder
id(String id)
The OCID of the SQL Firewall policy.SqlFirewallPolicy.Builder
lifecycleDetails(String lifecycleDetails)
Details about the current state of the SQL Firewall policy in Data Safe.SqlFirewallPolicy.Builder
lifecycleState(SqlFirewallPolicyLifecycleState lifecycleState)
The current state of the SQL Firewall policy.SqlFirewallPolicy.Builder
securityPolicyId(String securityPolicyId)
The OCID of the security policy corresponding to the SQL Firewall policy.SqlFirewallPolicy.Builder
sqlLevel(SqlFirewallPolicy.SqlLevel sqlLevel)
Specifies the level of SQL included for this SQL Firewall policy.SqlFirewallPolicy.Builder
status(SqlFirewallPolicy.Status status)
Specifies whether the SQL Firewall policy is enabled or disabled.SqlFirewallPolicy.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.SqlFirewallPolicy.Builder
timeCreated(Date timeCreated)
The time that the SQL Firewall policy was created, in the format defined by RFC3339.SqlFirewallPolicy.Builder
timeUpdated(Date timeUpdated)
The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.SqlFirewallPolicy.Builder
violationAction(SqlFirewallPolicy.ViolationAction violationAction)
Specifies the mode in which the SQL Firewall policy is enabled.SqlFirewallPolicy.Builder
violationAudit(SqlFirewallPolicy.ViolationAudit violationAudit)
Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
-
-
-
Method Detail
-
id
public SqlFirewallPolicy.Builder id(String id)
The OCID of the SQL Firewall policy.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public SqlFirewallPolicy.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 SqlFirewallPolicy.Builder displayName(String displayName)
The display name of the SQL Firewall policy.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public SqlFirewallPolicy.Builder description(String description)
The description of the SQL Firewall policy.- Parameters:
description
- the value to set- Returns:
- this builder
-
securityPolicyId
public SqlFirewallPolicy.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 SqlFirewallPolicy.Builder dbUserName(String dbUserName)
The database user name.- Parameters:
dbUserName
- the value to set- Returns:
- this builder
-
sqlLevel
public SqlFirewallPolicy.Builder sqlLevel(SqlFirewallPolicy.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 SqlFirewallPolicy.Builder status(SqlFirewallPolicy.Status status)
Specifies whether the SQL Firewall policy is enabled or disabled.- Parameters:
status
- the value to set- Returns:
- this builder
-
enforcementScope
public SqlFirewallPolicy.Builder enforcementScope(SqlFirewallPolicy.EnforcementScope enforcementScope)
Specifies the SQL Firewall policy enforcement option.- Parameters:
enforcementScope
- the value to set- Returns:
- this builder
-
violationAction
public SqlFirewallPolicy.Builder violationAction(SqlFirewallPolicy.ViolationAction violationAction)
Specifies the mode in which the SQL Firewall policy is enabled.- Parameters:
violationAction
- the value to set- Returns:
- this builder
-
violationAudit
public SqlFirewallPolicy.Builder violationAudit(SqlFirewallPolicy.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
-
allowedClientIps
public SqlFirewallPolicy.Builder allowedClientIps(List<String> allowedClientIps)
The list of allowed ip addresses for the SQL Firewall policy.- Parameters:
allowedClientIps
- the value to set- Returns:
- this builder
-
allowedClientOsUsernames
public SqlFirewallPolicy.Builder allowedClientOsUsernames(List<String> allowedClientOsUsernames)
The list of allowed operating system user names for the SQL Firewall policy.- Parameters:
allowedClientOsUsernames
- the value to set- Returns:
- this builder
-
allowedClientPrograms
public SqlFirewallPolicy.Builder allowedClientPrograms(List<String> allowedClientPrograms)
The list of allowed client programs for the SQL Firewall policy.- Parameters:
allowedClientPrograms
- the value to set- Returns:
- this builder
-
timeCreated
public SqlFirewallPolicy.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 SqlFirewallPolicy.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 SqlFirewallPolicy.Builder lifecycleState(SqlFirewallPolicyLifecycleState lifecycleState)
The current state of the SQL Firewall policy.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public SqlFirewallPolicy.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 SqlFirewallPolicy.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 SqlFirewallPolicy.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
-
systemTags
public SqlFirewallPolicy.Builder systemTags(Map<String,Map<String,Object>> systemTags)
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”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public SqlFirewallPolicy build()
-
copy
public SqlFirewallPolicy.Builder copy(SqlFirewallPolicy model)
-
-