public static final class ALBWafPSMRule.Builder
extends java.lang.Object
ALBWafPSMRule.| Constructor and Description |
|---|
Builder()
Constructor with parameters for the required properties of
ALBWafPSMRule. |
| Modifier and Type | Method and Description |
|---|---|
ALBWafPSMRule |
build() |
ALBWafPSMRule.Builder |
setDescription(java.lang.String description)
Free-text comment about this rule.
|
ALBWafPSMRule.Builder |
setEnable(java.lang.Boolean enable)
Enable or disable this rule.
|
ALBWafPSMRule.Builder |
setIndex(java.lang.Long index)
Rule index, this is used to determine the order of the rules.
|
ALBWafPSMRule.Builder |
setMatchCase(java.lang.String matchCase)
Possible values are:
ALBWafPSMRule.MATCH_CASE_SENSITIVE
ALBWafPSMRule.MATCH_CASE_INSENSITIVE
The field match_value_pattern regular expression is case sensitive. |
ALBWafPSMRule.Builder |
setMatchElements(java.util.List<ALBWafPSMMatchElement> matchElements)
The match elements, for example ARGS id or ARGS|!ARGS password.
|
ALBWafPSMRule.Builder |
setMatchValueMaxLength(java.lang.Long matchValueMaxLength)
The maximum allowed length of the match_value.
|
ALBWafPSMRule.Builder |
setMatchValuePattern(java.lang.String matchValuePattern)
A regular expression which describes the expected value.
|
ALBWafPSMRule.Builder |
setMode(java.lang.String mode)
Possible values are:
ALBWafPSMRule.MODE_DETECTION_ONLY
ALBWafPSMRule.MODE_ENFORCEMENT
WAF Rule mode. |
ALBWafPSMRule.Builder |
setName(java.lang.String name)
Name of the rule.
|
ALBWafPSMRule.Builder |
setParanoiaLevel(java.lang.String paranoiaLevel)
Possible values are:
ALBWafPSMRule.PARANOIA_LEVEL_LOW
ALBWafPSMRule.PARANOIA_LEVEL_MEDIUM
ALBWafPSMRule.PARANOIA_LEVEL_HIGH
ALBWafPSMRule.PARANOIA_LEVEL_EXTREME
WAF Ruleset paranoia mode. |
ALBWafPSMRule.Builder |
setRuleId(java.lang.String ruleId)
Id field which is used for log and metric generation.
|
public Builder()
ALBWafPSMRule.public ALBWafPSMRule.Builder setDescription(java.lang.String description)
description - New value for the property.public ALBWafPSMRule.Builder setEnable(java.lang.Boolean enable)
enable - New value for the property.public ALBWafPSMRule.Builder setIndex(java.lang.Long index)
index - New value for the property.public ALBWafPSMRule.Builder setMatchCase(java.lang.String matchCase)
matchCase - New value for the property.public ALBWafPSMRule.Builder setMatchElements(java.util.List<ALBWafPSMMatchElement> matchElements)
matchElements - New value for the property.public ALBWafPSMRule.Builder setMatchValueMaxLength(java.lang.Long matchValueMaxLength)
matchValueMaxLength - New value for the property.public ALBWafPSMRule.Builder setMatchValuePattern(java.lang.String matchValuePattern)
matchValuePattern - New value for the property.public ALBWafPSMRule.Builder setMode(java.lang.String mode)
mode - New value for the property.public ALBWafPSMRule.Builder setName(java.lang.String name)
name - New value for the property.public ALBWafPSMRule.Builder setParanoiaLevel(java.lang.String paranoiaLevel)
paranoiaLevel - New value for the property.public ALBWafPSMRule.Builder setRuleId(java.lang.String ruleId)
ruleId - New value for the property.public ALBWafPSMRule build()