public final class WebApplicationFirewallCustomRule extends Object
| Constructor and Description |
|---|
WebApplicationFirewallCustomRule() |
| Modifier and Type | Method and Description |
|---|---|
WebApplicationFirewallAction |
action()
Get the action property: Type of Actions.
|
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
|
List<MatchCondition> |
matchConditions()
Get the matchConditions property: List of match conditions.
|
String |
name()
Get the name property: The name of the resource that is unique within a policy.
|
int |
priority()
Get the priority property: Priority of the rule.
|
WebApplicationFirewallRuleType |
ruleType()
Get the ruleType property: The rule type.
|
void |
validate()
Validates the instance.
|
WebApplicationFirewallCustomRule |
withAction(WebApplicationFirewallAction action)
Set the action property: Type of Actions.
|
WebApplicationFirewallCustomRule |
withMatchConditions(List<MatchCondition> matchConditions)
Set the matchConditions property: List of match conditions.
|
WebApplicationFirewallCustomRule |
withName(String name)
Set the name property: The name of the resource that is unique within a policy.
|
WebApplicationFirewallCustomRule |
withPriority(int priority)
Set the priority property: Priority of the rule.
|
WebApplicationFirewallCustomRule |
withRuleType(WebApplicationFirewallRuleType ruleType)
Set the ruleType property: The rule type.
|
public String name()
public WebApplicationFirewallCustomRule withName(String name)
name - the name value to set.public String etag()
public int priority()
public WebApplicationFirewallCustomRule withPriority(int priority)
priority - the priority value to set.public WebApplicationFirewallRuleType ruleType()
public WebApplicationFirewallCustomRule withRuleType(WebApplicationFirewallRuleType ruleType)
ruleType - the ruleType value to set.public List<MatchCondition> matchConditions()
public WebApplicationFirewallCustomRule withMatchConditions(List<MatchCondition> matchConditions)
matchConditions - the matchConditions value to set.public WebApplicationFirewallAction action()
public WebApplicationFirewallCustomRule withAction(WebApplicationFirewallAction action)
action - the action value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.