Class RulesEngineRule
java.lang.Object
com.azure.resourcemanager.frontdoor.models.RulesEngineRule
Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match,
the actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case
of headers manipulation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction()
Get the action property: Actions to perform on the request and response if all of the match conditions are met.Get the matchConditions property: A list of match conditions that must meet in order for the actions of this rule to run.Get the matchProcessingBehavior property: If this rule is a match should the rules engine continue running the remaining rules or stop.name()
Get the name property: A name to refer to this specific rule.int
priority()
Get the priority property: A priority assigned to this rule.void
validate()
Validates the instance.withAction
(RulesEngineAction action) Set the action property: Actions to perform on the request and response if all of the match conditions are met.withMatchConditions
(List<RulesEngineMatchCondition> matchConditions) Set the matchConditions property: A list of match conditions that must meet in order for the actions of this rule to run.withMatchProcessingBehavior
(MatchProcessingBehavior matchProcessingBehavior) Set the matchProcessingBehavior property: If this rule is a match should the rules engine continue running the remaining rules or stop.Set the name property: A name to refer to this specific rule.withPriority
(int priority) Set the priority property: A priority assigned to this rule.
-
Constructor Details
-
RulesEngineRule
public RulesEngineRule()Creates an instance of RulesEngineRule class.
-
-
Method Details
-
name
Get the name property: A name to refer to this specific rule.- Returns:
- the name value.
-
withName
Set the name property: A name to refer to this specific rule.- Parameters:
name
- the name value to set.- Returns:
- the RulesEngineRule object itself.
-
priority
public int priority()Get the priority property: A priority assigned to this rule.- Returns:
- the priority value.
-
withPriority
Set the priority property: A priority assigned to this rule.- Parameters:
priority
- the priority value to set.- Returns:
- the RulesEngineRule object itself.
-
action
Get the action property: Actions to perform on the request and response if all of the match conditions are met.- Returns:
- the action value.
-
withAction
Set the action property: Actions to perform on the request and response if all of the match conditions are met.- Parameters:
action
- the action value to set.- Returns:
- the RulesEngineRule object itself.
-
matchConditions
Get the matchConditions property: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.- Returns:
- the matchConditions value.
-
withMatchConditions
Set the matchConditions property: A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.- Parameters:
matchConditions
- the matchConditions value to set.- Returns:
- the RulesEngineRule object itself.
-
matchProcessingBehavior
Get the matchProcessingBehavior property: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.- Returns:
- the matchProcessingBehavior value.
-
withMatchProcessingBehavior
Set the matchProcessingBehavior property: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.- Parameters:
matchProcessingBehavior
- the matchProcessingBehavior value to set.- Returns:
- the RulesEngineRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-