DeliveryRule Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. DeliveryRule
- com.
public class DeliveryRule
A rule that specifies a set of actions and conditions.
Constructor Summary
Constructor | Description | |
---|---|---|
DeliveryRule() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.List<Delivery |
actions()
Get a list of actions that are executed when all the conditions of a rule are satisfied. |
java.util.List<Delivery |
conditions()
Get a list of conditions that must be matched for the actions to be executed. |
java.lang.String |
name()
Get name of the rule. |
int |
order()
Get the order in which the rules are applied for the endpoint. |
Delivery |
withActions(List<DeliveryRuleAction> actions)
Set a list of actions that are executed when all the conditions of a rule are satisfied. |
Delivery |
withConditions(List<DeliveryRuleCondition> conditions)
Set a list of conditions that must be matched for the actions to be executed. |
Delivery |
withName(String name)
Set name of the rule. |
Delivery |
withOrder(int order)
Set the order in which the rules are applied for the endpoint. |
Methods inherited from java.lang.Object
Constructor Details
DeliveryRule
public DeliveryRule()
Method Details
actions
public List
Get a list of actions that are executed when all the conditions of a rule are satisfied.
Returns:
conditions
public List
Get a list of conditions that must be matched for the actions to be executed.
Returns:
name
public String name()
Get name of the rule.
Returns:
order
public int order()
Get the order in which the rules are applied for the endpoint. Possible values {0,1,2,3,\u2026\u2026\u2026}. 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:
withActions
public DeliveryRule withActions(List
Set a list of actions that are executed when all the conditions of a rule are satisfied.
Parameters:
Returns:
withConditions
public DeliveryRule withConditions(List
Set a list of conditions that must be matched for the actions to be executed.
Parameters:
Returns:
withName
public DeliveryRule withName(String name)
Set name of the rule.
Parameters:
Returns:
withOrder
public DeliveryRule withOrder(int order)
Set the order in which the rules are applied for the endpoint. Possible values {0,1,2,3,\u2026\u2026\u2026}. 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:
Applies to
Azure SDK for Java