Class WebApplicationFirewallCustomRule
java.lang.Object
com.azure.resourcemanager.network.models.WebApplicationFirewallCustomRule
Defines contents of a web application rule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WebApplicationFirewallCustomRule class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: Type of Actions.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.Get the matchConditions property: List of match conditions.name()Get the name property: The name of the resource that is unique within a policy.intpriority()Get the priority property: Priority of the rule.ruleType()Get the ruleType property: The rule type.state()Get the state property: Describes if the custom rule is in enabled or disabled state.voidvalidate()Validates the instance.Set the action property: Type of Actions.withMatchConditions(List<MatchCondition> matchConditions) Set the matchConditions property: List of match conditions.Set the name property: The name of the resource that is unique within a policy.withPriority(int priority) Set the priority property: Priority of the rule.withRuleType(WebApplicationFirewallRuleType ruleType) Set the ruleType property: The rule type.Set the state property: Describes if the custom rule is in enabled or disabled state.
-
Constructor Details
-
WebApplicationFirewallCustomRule
public WebApplicationFirewallCustomRule()Creates an instance of WebApplicationFirewallCustomRule class.
-
-
Method Details
-
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
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
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
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.
-
state
Get the state property: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.- Returns:
- the state value.
-
withState
Set the state property: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.- Parameters:
state- the state value to set.- Returns:
- the WebApplicationFirewallCustomRule object itself.
-
ruleType
Get the ruleType property: The rule type.- Returns:
- the ruleType value.
-
withRuleType
Set the ruleType property: The rule type.- Parameters:
ruleType- the ruleType value to set.- Returns:
- the WebApplicationFirewallCustomRule object itself.
-
matchConditions
Get the matchConditions property: List of match conditions.- Returns:
- the matchConditions value.
-
withMatchConditions
Set the matchConditions property: List of match conditions.- Parameters:
matchConditions- the matchConditions value to set.- Returns:
- the WebApplicationFirewallCustomRule object itself.
-
action
Get the action property: Type of Actions.- Returns:
- the action value.
-
withAction
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.
-