Class WebApplicationFirewallCustomRule
java.lang.Object
com.microsoft.azure.management.network.WebApplicationFirewallCustomRule
Defines contents of a web application rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()
Get type of Actions.etag()
Get a unique read-only string that changes whenever the resource is updated.Get list of match conditions.name()
Get the name of the resource that is unique within a policy.int
priority()
Get priority of the rule.ruleType()
Get the rule type.Set type of Actions.withMatchConditions
(List<MatchCondition> matchConditions) Set list of match conditions.Set the name of the resource that is unique within a policy.withPriority
(int priority) Set priority of the rule.withRuleType
(WebApplicationFirewallRuleType ruleType) Set the rule type.
-
Constructor Details
-
WebApplicationFirewallCustomRule
public WebApplicationFirewallCustomRule()
-
-
Method Details
-
name
Get the name of the resource that is unique within a policy. This name can be used to access the resource.- Returns:
- the name value
-
withName
Set the name of the resource that is unique within a policy. This name can be used to access the resource.- Parameters:
name
- the name value to set- Returns:
- the WebApplicationFirewallCustomRule object itself.
-
etag
Get a unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value
-
priority
public int priority()Get priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.- Returns:
- the priority value
-
withPriority
Set priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.- Parameters:
priority
- the priority value to set- Returns:
- the WebApplicationFirewallCustomRule object itself.
-
ruleType
Get the rule type. Possible values include: 'MatchRule', 'Invalid'.- Returns:
- the ruleType value
-
withRuleType
Set the rule type. Possible values include: 'MatchRule', 'Invalid'.- Parameters:
ruleType
- the ruleType value to set- Returns:
- the WebApplicationFirewallCustomRule object itself.
-
matchConditions
Get list of match conditions.- Returns:
- the matchConditions value
-
withMatchConditions
Set list of match conditions.- Parameters:
matchConditions
- the matchConditions value to set- Returns:
- the WebApplicationFirewallCustomRule object itself.
-
action
Get type of Actions. Possible values include: 'Allow', 'Block', 'Log'.- Returns:
- the action value
-
withAction
Set type of Actions. Possible values include: 'Allow', 'Block', 'Log'.- Parameters:
action
- the action value to set- Returns:
- the WebApplicationFirewallCustomRule object itself.
-