BatchRuleProperties Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. models. BatchRuleProperties
- com.
Implements
public final class BatchRuleProperties
implements JsonSerializable<BatchRuleProperties>
The JSON object that contains a rule with its name for batch mode operations.
Constructor Summary
| Constructor | Description |
|---|---|
| BatchRuleProperties() |
Creates an instance of Batch |
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
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
|
Match |
matchProcessingBehavior()
Get the match |
| Integer |
order()
Get the order property: The order in which the rules are applied for the endpoint. |
| String |
ruleName()
Get the rule |
| String |
ruleSetName()
Get the rule |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Batch |
withActions(List<DeliveryRuleAction> actions)
Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied. |
|
Batch |
withConditions(List<DeliveryRuleCondition> conditions)
Set the conditions property: A list of conditions that must be matched for the actions to be executed. |
|
Batch |
withMatchProcessingBehavior(MatchProcessingBehavior matchProcessingBehavior)
Set the match |
|
Batch |
withOrder(Integer order)
Set the order property: The order in which the rules are applied for the endpoint. |
|
Batch |
withRuleName(String ruleName)
Set the rule |
Methods inherited from java.lang.Object
Constructor Details
BatchRuleProperties
public BatchRuleProperties()
Creates an instance of BatchRuleProperties 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 BatchRuleProperties fromJson(JsonReader jsonReader)
Reads an instance of BatchRuleProperties 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:
ruleName
public String ruleName()
Get the ruleName property: Name of the rule.
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 BatchRuleProperties 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 BatchRuleProperties 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 BatchRuleProperties 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 BatchRuleProperties 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:
withRuleName
public BatchRuleProperties withRuleName(String ruleName)
Set the ruleName property: Name of the rule.
Parameters:
Returns: