public static class ProtectionRule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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) |
public ProtectionRule.Builder name(String name)
public ProtectionRule.Builder conditionLanguage(WebAppFirewallPolicyRule.ConditionLanguage conditionLanguage)
public ProtectionRule.Builder condition(String condition)
public ProtectionRule.Builder actionName(String actionName)
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.
protectionCapabilities
- the value to setpublic ProtectionRule.Builder protectionCapabilitySettings(ProtectionCapabilitySettings protectionCapabilitySettings)
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.
isBodyInspectionEnabled
- the value to setpublic ProtectionRule build()
public ProtectionRule.Builder copy(ProtectionRule model)
Copyright © 2016–2024. All rights reserved.