WebApplicationFirewallCustomRule Class
- java.
lang. Object - com.
microsoft. azure. management. network. WebApplicationFirewallCustomRule
- com.
public class WebApplicationFirewallCustomRule
Defines contents of a web application rule.
Constructor Summary
Constructor | Description | |
---|---|---|
WebApplicationFirewallCustomRule() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Web |
action()
Get type of Actions. |
java.lang.String |
etag()
Get a unique read-only string that changes whenever the resource is updated. |
java.util.List<Match |
matchConditions()
Get list of match conditions. |
java.lang.String |
name()
Get the name of the resource that is unique within a policy. |
int |
priority()
Get priority of the rule. |
Web |
ruleType()
Get the rule type. |
Web |
withAction(WebApplicationFirewallAction action)
Set type of Actions. |
Web |
withMatchConditions(List<MatchCondition> matchConditions)
Set list of match conditions. |
Web |
withName(String name)
Set the name of the resource that is unique within a policy. |
Web |
withPriority(int priority)
Set priority of the rule. |
Web |
withRuleType(WebApplicationFirewallRuleType ruleType)
Set the rule type. |
Methods inherited from java.lang.Object
Constructor Details
WebApplicationFirewallCustomRule
public WebApplicationFirewallCustomRule()
Method Details
action
public WebApplicationFirewallAction action()
Get type of Actions. Possible values include: 'Allow', 'Block', 'Log'.
Returns:
etag
public String etag()
Get a unique read-only string that changes whenever the resource is updated.
Returns:
matchConditions
public List
Get list of match conditions.
Returns:
name
public String name()
Get the name of the resource that is unique within a policy. This name can be used to access the resource.
Returns:
priority
public int priority()
Get priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
Returns:
ruleType
public WebApplicationFirewallRuleType ruleType()
Get the rule type. Possible values include: 'MatchRule', 'Invalid'.
Returns:
withAction
public WebApplicationFirewallCustomRule withAction(WebApplicationFirewallAction action)
Set type of Actions. Possible values include: 'Allow', 'Block', 'Log'.
Parameters:
Returns:
withMatchConditions
public WebApplicationFirewallCustomRule withMatchConditions(List
Set list of match conditions.
Parameters:
Returns:
withName
public WebApplicationFirewallCustomRule withName(String name)
Set the name of the resource that is unique within a policy. This name can be used to access the resource.
Parameters:
Returns:
withPriority
public WebApplicationFirewallCustomRule withPriority(int priority)
Set priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
Parameters:
Returns:
withRuleType
public WebApplicationFirewallCustomRule withRuleType(WebApplicationFirewallRuleType ruleType)
Set the rule type. Possible values include: 'MatchRule', 'Invalid'.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for