BatchRuleProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.BatchRuleProperties

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 BatchRuleProperties class.

Method Summary

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.

static BatchRuleProperties fromJson(JsonReader jsonReader)

Reads an instance of BatchRuleProperties from the JsonReader.

MatchProcessingBehavior matchProcessingBehavior()

Get the matchProcessingBehavior property: If this rule is a match should the rules engine continue running the remaining rules or stop.

Integer order()

Get the order property: The order in which the rules are applied for the endpoint.

String ruleName()

Get the ruleName property: Name of the rule.

String ruleSetName()

Get the ruleSetName property: The name of the rule set containing the rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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.

BatchRuleProperties withConditions(List<DeliveryRuleCondition> conditions)

Set the conditions property: A list of conditions that must be matched for the actions to be executed.

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.

BatchRuleProperties withOrder(Integer order)

Set the order property: The order in which the rules are applied for the endpoint.

BatchRuleProperties withRuleName(String ruleName)

Set the ruleName property: Name of 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:

the actions value.

conditions

public List<DeliveryRuleCondition> conditions()

Get the conditions property: A list of conditions that must be matched for the actions to be executed.

Returns:

the conditions value.

fromJson

public static BatchRuleProperties fromJson(JsonReader jsonReader)

Reads an instance of BatchRuleProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchRuleProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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:

the matchProcessingBehavior value.

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:

the order value.

ruleName

public String ruleName()

Get the ruleName property: Name of the rule.

Returns:

the ruleName value.

ruleSetName

public String ruleSetName()

Get the ruleSetName property: The name of the rule set containing the rule.

Returns:

the ruleSetName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

actions - the actions value to set.

Returns:

the BatchRuleProperties object itself.

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:

conditions - the conditions value to set.

Returns:

the BatchRuleProperties object itself.

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:

matchProcessingBehavior - the matchProcessingBehavior value to set.

Returns:

the BatchRuleProperties object itself.

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:

order - the order value to set.

Returns:

the BatchRuleProperties object itself.

withRuleName

public BatchRuleProperties withRuleName(String ruleName)

Set the ruleName property: Name of the rule.

Parameters:

ruleName - the ruleName value to set.

Returns:

the BatchRuleProperties object itself.

Applies to