DeliveryRule Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. models. DeliveryRule
- com.
Implements
public final class DeliveryRule
implements JsonSerializable<DeliveryRule>
A rule that specifies a set of actions and conditions.
Constructor | Description |
---|---|
Delivery |
Creates an instance of Delivery |
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
Delivery |
from Reads an instance of Delivery |
String |
name()
Get the name property: Name of the rule. |
int |
order()
Get the order property: The order in which the rules are applied for the endpoint. |
Json |
to |
void |
validate()
Validates the instance. |
Delivery |
with Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied. |
Delivery |
with Set the conditions property: A list of conditions that must be matched for the actions to be executed. |
Delivery |
with Set the name property: Name of the rule. |
Delivery |
with Set the order property: The order in which the rules are applied for the endpoint. |
Methods inherited from java.lang.Object
DeliveryRule
public DeliveryRule()
Creates an instance of DeliveryRule class.
actions
public List
Get the actions property: A list of actions that are executed when all the conditions of a rule are satisfied.
Returns:
conditions
public List
Get the conditions property: A list of conditions that must be matched for the actions to be executed.
Returns:
fromJson
public static DeliveryRule fromJson(JsonReader jsonReader)
Reads an instance of DeliveryRule from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the rule.
Returns:
order
public int 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:
toJson
validate
public void validate()
Validates the instance.
withActions
public DeliveryRule withActions(List
Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied.
Parameters:
Returns:
withConditions
public DeliveryRule withConditions(List
Set the conditions property: A list of conditions that must be matched for the actions to be executed.
Parameters:
Returns:
withName
public DeliveryRule withName(String name)
Set the name property: Name of the rule.
Parameters:
Returns:
withOrder
public DeliveryRule withOrder(int 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:
Azure SDK for Java feedback
Azure SDK for Java is an open source project. Select a link to provide feedback: