RuleUpdatePropertiesParameters Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. fluent. models. RuleUpdatePropertiesParameters
- com.
Implements
public class RuleUpdatePropertiesParameters
implements JsonSerializable<RuleUpdatePropertiesParameters>
The JSON object that contains the properties of the rule to update.
Constructor Summary
| Constructor | Description |
|---|---|
| RuleUpdatePropertiesParameters() |
Creates an instance of Rule |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Delivery |
actions()
Get the actions property: A list of actions that are executed when all the conditions of a rule are satisfied. |
|
List<Delivery |
conditions()
Get the conditions property: A list of conditions that must be matched for the actions to be executed. |
|
static
Rule |
fromJson(JsonReader jsonReader)
Reads an instance of Rule |
|
Match |
matchProcessingBehavior()
Get the match |
| Integer |
order()
Get the order property: The order in which the rules are applied for the endpoint. |
| String |
ruleSetName()
Get the rule |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Rule |
withActions(List<DeliveryRuleAction> actions)
Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied. |
|
Rule |
withConditions(List<DeliveryRuleCondition> conditions)
Set the conditions property: A list of conditions that must be matched for the actions to be executed. |
|
Rule |
withMatchProcessingBehavior(MatchProcessingBehavior matchProcessingBehavior)
Set the match |
|
Rule |
withOrder(Integer order)
Set the order property: The order in which the rules are applied for the endpoint. |
Methods inherited from java.lang.Object
Constructor Details
RuleUpdatePropertiesParameters
public RuleUpdatePropertiesParameters()
Creates an instance of RuleUpdatePropertiesParameters class.
Method Details
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:
conditions
public List<DeliveryRuleCondition> conditions()
Get the conditions property: A list of conditions that must be matched for the actions to be executed.
Returns:
fromJson
public static RuleUpdatePropertiesParameters fromJson(JsonReader jsonReader)
Reads an instance of RuleUpdatePropertiesParameters from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
ruleSetName
public String ruleSetName()
Get the ruleSetName property: The name of the rule set containing the rule.
Returns:
toJson
validate
public void validate()
Validates the instance.
withActions
public RuleUpdatePropertiesParameters 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:
Returns:
withConditions
public RuleUpdatePropertiesParameters withConditions(List<DeliveryRuleCondition> conditions)
Set the conditions property: A list of conditions that must be matched for the actions to be executed.
Parameters:
Returns:
withMatchProcessingBehavior
public RuleUpdatePropertiesParameters 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:
withOrder
public RuleUpdatePropertiesParameters 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:
Returns: