Class DeliveryRule
java.lang.Object
com.microsoft.azure.management.cdn.DeliveryRule
A rule that specifies a set of actions and conditions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions()
Get a list of actions that are executed when all the conditions of a rule are satisfied.Get a list of conditions that must be matched for the actions to be executed.name()
Get name of the rule.int
order()
Get the order in which the rules are applied for the endpoint.withActions
(List<DeliveryRuleAction> actions) Set a list of actions that are executed when all the conditions of a rule are satisfied.withConditions
(List<DeliveryRuleCondition> conditions) Set a list of conditions that must be matched for the actions to be executed.Set name of the rule.withOrder
(int order) Set the order in which the rules are applied for the endpoint.
-
Constructor Details
-
DeliveryRule
public DeliveryRule()
-
-
Method Details
-
name
Get name of the rule.- Returns:
- the name value
-
withName
Set name of the rule.- Parameters:
name
- the name value to set- Returns:
- the DeliveryRule object itself.
-
order
public int order()Get 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
Set 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 DeliveryRule object itself.
-
conditions
Get a list of conditions that must be matched for the actions to be executed.- Returns:
- the conditions value
-
withConditions
Set a list of conditions that must be matched for the actions to be executed.- Parameters:
conditions
- the conditions value to set- Returns:
- the DeliveryRule object itself.
-
actions
Get a list of actions that are executed when all the conditions of a rule are satisfied.- Returns:
- the actions value
-
withActions
Set 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 DeliveryRule object itself.
-