RulesEngineRule Class
- java.
lang. Object - com.
azure. resourcemanager. frontdoor. models. RulesEngineRule
- com.
public final class 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
Constructor | Description |
---|---|
RulesEngineRule() |
Creates an instance of Rules |
Method Summary
Modifier and Type | Method and Description |
---|---|
Rules |
action()
Get the action property: Actions to perform on the request and response if all of the match conditions are met. |
List<Rules |
matchConditions()
Get the match |
Match |
matchProcessingBehavior()
Get the match |
String |
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. |
Rules |
withAction(RulesEngineAction action)
Set the action property: Actions to perform on the request and response if all of the match conditions are met. |
Rules |
withMatchConditions(List<RulesEngineMatchCondition> matchConditions)
Set the match |
Rules |
withMatchProcessingBehavior(MatchProcessingBehavior matchProcessingBehavior)
Set the match |
Rules |
withName(String name)
Set the name property: A name to refer to this specific rule. |
Rules |
withPriority(int priority)
Set the priority property: A priority assigned to this rule. |
Methods inherited from java.lang.Object
Constructor Details
RulesEngineRule
public RulesEngineRule()
Creates an instance of RulesEngineRule class.
Method Details
action
public RulesEngineAction action()
Get the action property: Actions to perform on the request and response if all of the match conditions are met.
Returns:
matchConditions
public List
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:
matchProcessingBehavior
public MatchProcessingBehavior 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:
name
public String name()
Get the name property: A name to refer to this specific rule.
Returns:
priority
public int priority()
Get the priority property: A priority assigned to this rule.
Returns:
validate
public void validate()
Validates the instance.
withAction
public RulesEngineRule withAction(RulesEngineAction action)
Set the action property: Actions to perform on the request and response if all of the match conditions are met.
Parameters:
Returns:
withMatchConditions
public RulesEngineRule withMatchConditions(List
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:
Returns:
withMatchProcessingBehavior
public RulesEngineRule withMatchProcessingBehavior(MatchProcessingBehavior matchProcessingBehavior)
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:
Returns:
withName
public RulesEngineRule withName(String name)
Set the name property: A name to refer to this specific rule.
Parameters:
Returns:
withPriority
public RulesEngineRule withPriority(int priority)
Set the priority property: A priority assigned to this rule.
Parameters:
Returns:
Applies to
Azure SDK for Java