public final class DeliveryRule extends Object
| Constructor and Description |
|---|
DeliveryRule() |
| Modifier and Type | Method and 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.
|
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.
|
void |
validate()
Validates the instance.
|
DeliveryRule |
withActions(List<DeliveryRuleAction> actions)
Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied.
|
DeliveryRule |
withConditions(List<DeliveryRuleCondition> conditions)
Set the conditions property: A list of conditions that must be matched for the actions to be executed.
|
DeliveryRule |
withName(String name)
Set the name property: Name of the rule.
|
DeliveryRule |
withOrder(int order)
Set the order property: The order in which the rules are applied for the endpoint.
|
public String name()
public DeliveryRule withName(String name)
name - the name value to set.public int order()
public DeliveryRule withOrder(int order)
order - the order value to set.public List<DeliveryRuleCondition> conditions()
public DeliveryRule withConditions(List<DeliveryRuleCondition> conditions)
conditions - the conditions value to set.public List<DeliveryRuleAction> actions()
public DeliveryRule withActions(List<DeliveryRuleAction> actions)
actions - the actions value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.