public static class WaasPolicyCustomProtectionRuleSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public WaasPolicyCustomProtectionRuleSummary.Builder id(String id)
The OCID of the custom protection rule.
id
- the value to setpublic WaasPolicyCustomProtectionRuleSummary.Builder displayName(String displayName)
The user-friendly name of the custom protection rule.
displayName
- the value to setpublic 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.
action
- the value to setpublic 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.
modSecurityRuleIds
- the value to setpublic WaasPolicyCustomProtectionRuleSummary.Builder exclusions(List<ProtectionRuleExclusion> exclusions)
public WaasPolicyCustomProtectionRuleSummary build()
public WaasPolicyCustomProtectionRuleSummary.Builder copy(WaasPolicyCustomProtectionRuleSummary model)
Copyright © 2016–2024. All rights reserved.