public static class SqlFirewallPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public SqlFirewallPolicy.Builder id(String id)
The OCID of the SQL Firewall policy.
id
- the value to setpublic SqlFirewallPolicy.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the SQL Firewall policy.
compartmentId
- the value to setpublic SqlFirewallPolicy.Builder displayName(String displayName)
The display name of the SQL Firewall policy.
displayName
- the value to setpublic SqlFirewallPolicy.Builder description(String description)
The description of the SQL Firewall policy.
description
- the value to setpublic SqlFirewallPolicy.Builder securityPolicyId(String securityPolicyId)
The OCID of the security policy corresponding to the SQL Firewall policy.
securityPolicyId
- the value to setpublic SqlFirewallPolicy.Builder dbUserName(String dbUserName)
The database user name.
dbUserName
- the value to setpublic 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.
sqlLevel
- the value to setpublic SqlFirewallPolicy.Builder status(SqlFirewallPolicy.Status status)
Specifies whether the SQL Firewall policy is enabled or disabled.
status
- the value to setpublic SqlFirewallPolicy.Builder enforcementScope(SqlFirewallPolicy.EnforcementScope enforcementScope)
Specifies the SQL Firewall policy enforcement option.
enforcementScope
- the value to setpublic SqlFirewallPolicy.Builder violationAction(SqlFirewallPolicy.ViolationAction violationAction)
Specifies the mode in which the SQL Firewall policy is enabled.
violationAction
- the value to setpublic SqlFirewallPolicy.Builder violationAudit(SqlFirewallPolicy.ViolationAudit violationAudit)
Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
violationAudit
- the value to setpublic SqlFirewallPolicy.Builder allowedClientIps(List<String> allowedClientIps)
The list of allowed ip addresses for the SQL Firewall policy.
allowedClientIps
- the value to setpublic SqlFirewallPolicy.Builder allowedClientOsUsernames(List<String> allowedClientOsUsernames)
The list of allowed operating system user names for the SQL Firewall policy.
allowedClientOsUsernames
- the value to setpublic SqlFirewallPolicy.Builder allowedClientPrograms(List<String> allowedClientPrograms)
The list of allowed client programs for the SQL Firewall policy.
allowedClientPrograms
- the value to setpublic SqlFirewallPolicy.Builder timeCreated(Date timeCreated)
The time that the SQL Firewall policy was created, in the format defined by RFC3339.
timeCreated
- the value to setpublic SqlFirewallPolicy.Builder timeUpdated(Date timeUpdated)
The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
timeUpdated
- the value to setpublic SqlFirewallPolicy.Builder lifecycleState(SqlFirewallPolicyLifecycleState lifecycleState)
The current state of the SQL Firewall policy.
lifecycleState
- the value to setpublic SqlFirewallPolicy.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the SQL Firewall policy in Data Safe.
lifecycleDetails
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic 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"}}
systemTags
- the value to setpublic SqlFirewallPolicy build()
public SqlFirewallPolicy.Builder copy(SqlFirewallPolicy model)
Copyright © 2016–2024. All rights reserved.