public static class ProtectionRuleAction.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ProtectionRuleAction.Builder |
action(ProtectionRuleAction.Action action)
The action to apply to the protection rule.
|
ProtectionRuleAction |
build() |
ProtectionRuleAction.Builder |
copy(ProtectionRuleAction model) |
ProtectionRuleAction.Builder |
exclusions(List<ProtectionRuleExclusion> exclusions)
The types of requests excluded from the protection rule action.
|
ProtectionRuleAction.Builder |
key(String key)
The unique key of the protection rule.
|
public ProtectionRuleAction.Builder key(String key)
The unique key of the protection rule.
key
- the value to setpublic ProtectionRuleAction.Builder action(ProtectionRuleAction.Action action)
The action to apply to the protection rule. If unspecified, defaults to OFF
.
action
- the value to setpublic ProtectionRuleAction.Builder exclusions(List<ProtectionRuleExclusion> exclusions)
The types of requests excluded from the protection rule action. If the requests matches
the criteria in the exclusions
, the protection rule action will not be executed.
exclusions
- the value to setpublic ProtectionRuleAction build()
public ProtectionRuleAction.Builder copy(ProtectionRuleAction model)
Copyright © 2016–2024. All rights reserved.