Class WebApplicationFirewallCustomRule
- java.lang.Object
-
- com.azure.resourcemanager.network.models.WebApplicationFirewallCustomRule
-
public final class WebApplicationFirewallCustomRule extends Object
Defines contents of a web application rule.
-
-
Constructor Summary
Constructors Constructor Description WebApplicationFirewallCustomRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebApplicationFirewallActionaction()Get the action property: Type of Actions.Stringetag()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.Stringname()Get the name property: The name of the resource that is unique within a policy.intpriority()Get the priority property: Priority of the rule.WebApplicationFirewallRuleTyperuleType()Get the ruleType property: The rule type.voidvalidate()Validates the instance.WebApplicationFirewallCustomRulewithAction(WebApplicationFirewallAction action)Set the action property: Type of Actions.WebApplicationFirewallCustomRulewithMatchConditions(List<MatchCondition> matchConditions)Set the matchConditions property: List of match conditions.WebApplicationFirewallCustomRulewithName(String name)Set the name property: The name of the resource that is unique within a policy.WebApplicationFirewallCustomRulewithPriority(int priority)Set the priority property: Priority of the rule.WebApplicationFirewallCustomRulewithRuleType(WebApplicationFirewallRuleType ruleType)Set the ruleType property: The rule type.
-
-
-
Method Detail
-
name
public String name()
Get the name property: 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
public WebApplicationFirewallCustomRule withName(String name)
Set the name property: 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
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
priority
public int priority()
Get the priority property: Priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.- Returns:
- the priority value.
-
withPriority
public WebApplicationFirewallCustomRule withPriority(int priority)
Set the priority property: 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
public WebApplicationFirewallRuleType ruleType()
Get the ruleType property: The rule type.- Returns:
- the ruleType value.
-
withRuleType
public WebApplicationFirewallCustomRule withRuleType(WebApplicationFirewallRuleType ruleType)
Set the ruleType property: The rule type.- Parameters:
ruleType- the ruleType value to set.- Returns:
- the WebApplicationFirewallCustomRule object itself.
-
matchConditions
public List<MatchCondition> matchConditions()
Get the matchConditions property: List of match conditions.- Returns:
- the matchConditions value.
-
withMatchConditions
public WebApplicationFirewallCustomRule withMatchConditions(List<MatchCondition> matchConditions)
Set the matchConditions property: List of match conditions.- Parameters:
matchConditions- the matchConditions value to set.- Returns:
- the WebApplicationFirewallCustomRule object itself.
-
action
public WebApplicationFirewallAction action()
Get the action property: Type of Actions.- Returns:
- the action value.
-
withAction
public WebApplicationFirewallCustomRule withAction(WebApplicationFirewallAction action)
Set the action property: Type of Actions.- Parameters:
action- the action value to set.- Returns:
- the WebApplicationFirewallCustomRule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-