Class RuleUpdateParameters
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.RuleUpdateParameters
-
public final class RuleUpdateParameters extends Object
The domain JSON object required for domain creation or update.
-
-
Constructor Summary
Constructors Constructor Description RuleUpdateParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DeliveryRuleAction>actions()Get the actions property: A list of actions that are executed when all the conditions of a rule are satisfied.List<DeliveryRuleCondition>conditions()Get the conditions property: A list of conditions that must be matched for the actions to be executed.MatchProcessingBehaviormatchProcessingBehavior()Get the matchProcessingBehavior property: If this rule is a match should the rules engine continue running the remaining rules or stop.Integerorder()Get the order property: The order in which the rules are applied for the endpoint.StringruleSetName()Get the ruleSetName property: The name of the rule set containing the rule.voidvalidate()Validates the instance.RuleUpdateParameterswithActions(List<DeliveryRuleAction> actions)Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied.RuleUpdateParameterswithConditions(List<DeliveryRuleCondition> conditions)Set the conditions property: A list of conditions that must be matched for the actions to be executed.RuleUpdateParameterswithMatchProcessingBehavior(MatchProcessingBehavior matchProcessingBehavior)Set the matchProcessingBehavior property: If this rule is a match should the rules engine continue running the remaining rules or stop.RuleUpdateParameterswithOrder(Integer order)Set the order property: The order in which the rules are applied for the endpoint.
-
-
-
Method Detail
-
ruleSetName
public String ruleSetName()
Get the ruleSetName property: The name of the rule set containing the rule.- Returns:
- the ruleSetName value.
-
order
public Integer order()
Get the order property: The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.- Returns:
- the order value.
-
withOrder
public RuleUpdateParameters withOrder(Integer order)
Set the order property: The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.- Parameters:
order- the order value to set.- Returns:
- the RuleUpdateParameters object itself.
-
conditions
public List<DeliveryRuleCondition> conditions()
Get the conditions property: A list of conditions that must be matched for the actions to be executed.- Returns:
- the conditions value.
-
withConditions
public RuleUpdateParameters withConditions(List<DeliveryRuleCondition> conditions)
Set the conditions property: A list of conditions that must be matched for the actions to be executed.- Parameters:
conditions- the conditions value to set.- Returns:
- the RuleUpdateParameters object itself.
-
actions
public List<DeliveryRuleAction> actions()
Get the actions property: A list of actions that are executed when all the conditions of a rule are satisfied.- Returns:
- the actions value.
-
withActions
public RuleUpdateParameters withActions(List<DeliveryRuleAction> actions)
Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied.- Parameters:
actions- the actions value to set.- Returns:
- the RuleUpdateParameters object itself.
-
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:
- the matchProcessingBehavior value.
-
withMatchProcessingBehavior
public RuleUpdateParameters 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:
matchProcessingBehavior- the matchProcessingBehavior value to set.- Returns:
- the RuleUpdateParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-