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 SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlFirewallPolicy.BuilderallowedClientIps(List<String> allowedClientIps)The list of allowed ip addresses for the SQL Firewall policy.SqlFirewallPolicy.BuilderallowedClientOsUsernames(List<String> allowedClientOsUsernames)The list of allowed operating system user names for the SQL Firewall policy.SqlFirewallPolicy.BuilderallowedClientPrograms(List<String> allowedClientPrograms)The list of allowed client programs for the SQL Firewall policy.SqlFirewallPolicybuild()SqlFirewallPolicy.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the SQL Firewall policy.SqlFirewallPolicy.Buildercopy(SqlFirewallPolicy model)SqlFirewallPolicy.BuilderdbUserName(String dbUserName)The database user name.SqlFirewallPolicy.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.SqlFirewallPolicy.Builderdescription(String description)The description of the SQL Firewall policy.SqlFirewallPolicy.BuilderdisplayName(String displayName)The display name of the SQL Firewall policy.SqlFirewallPolicy.BuilderenforcementScope(SqlFirewallPolicy.EnforcementScope enforcementScope)Specifies the SQL Firewall policy enforcement option.SqlFirewallPolicy.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.SqlFirewallPolicy.Builderid(String id)The OCID of the SQL Firewall policy.SqlFirewallPolicy.BuilderlifecycleDetails(String lifecycleDetails)Details about the current state of the SQL Firewall policy in Data Safe.SqlFirewallPolicy.BuilderlifecycleState(SqlFirewallPolicyLifecycleState lifecycleState)The current state of the SQL Firewall policy.SqlFirewallPolicy.BuildersecurityPolicyId(String securityPolicyId)The OCID of the security policy corresponding to the SQL Firewall policy.SqlFirewallPolicy.BuildersqlLevel(SqlFirewallPolicy.SqlLevel sqlLevel)Specifies the level of SQL included for this SQL Firewall policy.SqlFirewallPolicy.Builderstatus(SqlFirewallPolicy.Status status)Specifies whether the SQL Firewall policy is enabled or disabled.SqlFirewallPolicy.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.SqlFirewallPolicy.BuildertimeCreated(Date timeCreated)The time that the SQL Firewall policy was created, in the format defined by RFC3339.SqlFirewallPolicy.BuildertimeUpdated(Date timeUpdated)The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.SqlFirewallPolicy.BuilderviolationAction(SqlFirewallPolicy.ViolationAction violationAction)Specifies the mode in which the SQL Firewall policy is enabled.SqlFirewallPolicy.BuilderviolationAudit(SqlFirewallPolicy.ViolationAudit violationAudit)Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
 
- 
- 
- 
Method Detail- 
idpublic SqlFirewallPolicy.Builder id(String id) The OCID of the SQL Firewall policy.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic SqlFirewallPolicy.Builder compartmentId(String compartmentId) The OCID of the compartment containing the SQL Firewall policy.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic SqlFirewallPolicy.Builder displayName(String displayName) The display name of the SQL Firewall policy.- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic SqlFirewallPolicy.Builder description(String description) The description of the SQL Firewall policy.- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
securityPolicyIdpublic 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
 
 - 
dbUserNamepublic SqlFirewallPolicy.Builder dbUserName(String dbUserName) The database user name.- Parameters:
- dbUserName- the value to set
- Returns:
- this builder
 
 - 
sqlLevelpublic 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
 
 - 
statuspublic 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
 
 - 
enforcementScopepublic SqlFirewallPolicy.Builder enforcementScope(SqlFirewallPolicy.EnforcementScope enforcementScope) Specifies the SQL Firewall policy enforcement option.- Parameters:
- enforcementScope- the value to set
- Returns:
- this builder
 
 - 
violationActionpublic 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
 
 - 
violationAuditpublic 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
 
 - 
allowedClientIpspublic 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
 
 - 
allowedClientOsUsernamespublic 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
 
 - 
allowedClientProgramspublic 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
 
 - 
timeCreatedpublic 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
 
 - 
timeUpdatedpublic 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
 
 - 
lifecycleStatepublic SqlFirewallPolicy.Builder lifecycleState(SqlFirewallPolicyLifecycleState lifecycleState) The current state of the SQL Firewall policy.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic 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
 
 - 
freeformTagspublic 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
 
 - 
definedTagspublic 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
 
 - 
systemTagspublic 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
 
 - 
buildpublic SqlFirewallPolicy build() 
 - 
copypublic SqlFirewallPolicy.Builder copy(SqlFirewallPolicy model) 
 
- 
 
-