Package com.oracle.bmc.waf.model
Class ProtectionRule.Builder
- java.lang.Object
-
- com.oracle.bmc.waf.model.ProtectionRule.Builder
-
- Enclosing class:
- ProtectionRule
public static class ProtectionRule.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectionRule.Builder
actionName(String actionName)
ProtectionRule
build()
ProtectionRule.Builder
condition(String condition)
ProtectionRule.Builder
conditionLanguage(WebAppFirewallPolicyRule.ConditionLanguage conditionLanguage)
ProtectionRule.Builder
copy(ProtectionRule model)
ProtectionRule.Builder
isBodyInspectionEnabled(Boolean isBodyInspectionEnabled)
Enables/disables body inspection for this protection rule.ProtectionRule.Builder
name(String name)
ProtectionRule.Builder
protectionCapabilities(List<ProtectionCapability> protectionCapabilities)
An ordered list that references OCI-managed protection capabilities.ProtectionRule.Builder
protectionCapabilitySettings(ProtectionCapabilitySettings protectionCapabilitySettings)
-
-
-
Method Detail
-
name
public ProtectionRule.Builder name(String name)
-
conditionLanguage
public ProtectionRule.Builder conditionLanguage(WebAppFirewallPolicyRule.ConditionLanguage conditionLanguage)
-
condition
public ProtectionRule.Builder condition(String condition)
-
actionName
public ProtectionRule.Builder actionName(String actionName)
-
protectionCapabilities
public ProtectionRule.Builder protectionCapabilities(List<ProtectionCapability> protectionCapabilities)
An ordered list that references OCI-managed protection capabilities.Referenced protection capabilities are not necessarily executed in order of appearance. Their execution order is decided at runtime for improved performance. The array cannot contain entries with the same pair of capability key and version more than once.
- Parameters:
protectionCapabilities
- the value to set- Returns:
- this builder
-
protectionCapabilitySettings
public ProtectionRule.Builder protectionCapabilitySettings(ProtectionCapabilitySettings protectionCapabilitySettings)
-
isBodyInspectionEnabled
public ProtectionRule.Builder isBodyInspectionEnabled(Boolean isBodyInspectionEnabled)
Enables/disables body inspection for this protection rule.Only Protection Rules in RequestProtection can have this option enabled. Response body inspection will be available at a later date.
- Parameters:
isBodyInspectionEnabled
- the value to set- Returns:
- this builder
-
build
public ProtectionRule build()
-
copy
public ProtectionRule.Builder copy(ProtectionRule model)
-
-