Package com.oracle.bmc.waas.model
Class WaasPolicyCustomProtectionRuleSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.waas.model.WaasPolicyCustomProtectionRuleSummary.Builder
-
- Enclosing class:
- WaasPolicyCustomProtectionRuleSummary
public static class WaasPolicyCustomProtectionRuleSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WaasPolicyCustomProtectionRuleSummary.Builder
action(WaasPolicyCustomProtectionRuleSummary.Action action)
The action to take when the custom protection rule is triggered.WaasPolicyCustomProtectionRuleSummary
build()
WaasPolicyCustomProtectionRuleSummary.Builder
copy(WaasPolicyCustomProtectionRuleSummary model)
WaasPolicyCustomProtectionRuleSummary.Builder
displayName(String displayName)
The user-friendly name of the custom protection rule.WaasPolicyCustomProtectionRuleSummary.Builder
exclusions(List<ProtectionRuleExclusion> exclusions)
WaasPolicyCustomProtectionRuleSummary.Builder
id(String id)
The OCID of the custom protection rule.WaasPolicyCustomProtectionRuleSummary.Builder
modSecurityRuleIds(List<String> modSecurityRuleIds)
The list of the ModSecurity rule IDs that apply to this protection rule.
-
-
-
Method Detail
-
id
public WaasPolicyCustomProtectionRuleSummary.Builder id(String id)
The OCID of the custom protection rule.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public WaasPolicyCustomProtectionRuleSummary.Builder displayName(String displayName)
The user-friendly name of the custom protection rule.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
action
public WaasPolicyCustomProtectionRuleSummary.Builder action(WaasPolicyCustomProtectionRuleSummary.Action action)
The action to take when the custom protection rule is triggered.DETECT - Logs the request when the criteria of the custom protection rule are met. BLOCK - Blocks the request when the criteria of the custom protection rule are met.
- Parameters:
action
- the value to set- Returns:
- this builder
-
modSecurityRuleIds
public WaasPolicyCustomProtectionRuleSummary.Builder modSecurityRuleIds(List<String> modSecurityRuleIds)
The list of the ModSecurity rule IDs that apply to this protection rule.For more information about ModSecurity’s open source WAF rules, see Mod Security’s documentation.
- Parameters:
modSecurityRuleIds
- the value to set- Returns:
- this builder
-
exclusions
public WaasPolicyCustomProtectionRuleSummary.Builder exclusions(List<ProtectionRuleExclusion> exclusions)
-
build
public WaasPolicyCustomProtectionRuleSummary build()
-
copy
public WaasPolicyCustomProtectionRuleSummary.Builder copy(WaasPolicyCustomProtectionRuleSummary model)
-
-