RuleProperties Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. fluent. models. RuleUpdatePropertiesParameters - com.
azure. resourcemanager. cdn. fluent. models. RuleProperties
- com.
- com.
public final class RuleProperties
extends RuleUpdatePropertiesParameters
The JSON object that contains the properties of the Rules to create.
Constructor Summary
| Constructor | Description |
|---|---|
| RuleProperties() |
Creates an instance of Rule |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Deployment |
deploymentStatus()
Get the deployment |
|
static
Rule |
fromJson(JsonReader jsonReader)
Reads an instance of Rule |
|
Afd |
provisioningState()
Get the provisioning |
| String |
ruleSetName()
Get the rule |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Rule |
withActions(List<DeliveryRuleAction> actions)
Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied. |
|
Rule |
withConditions(List<DeliveryRuleCondition> conditions)
Set the conditions property: A list of conditions that must be matched for the actions to be executed. |
|
Rule |
withMatchProcessingBehavior(MatchProcessingBehavior matchProcessingBehavior)
Set the match |
|
Rule |
withOrder(Integer order)
Set the order property: The order in which the rules are applied for the endpoint. |
Methods inherited from RuleUpdatePropertiesParameters
Methods inherited from java.lang.Object
Constructor Details
RuleProperties
public RuleProperties()
Creates an instance of RuleProperties class.
Method Details
deploymentStatus
public DeploymentStatus deploymentStatus()
Get the deploymentStatus property: The deploymentStatus property.
Returns:
fromJson
public static RuleProperties fromJson(JsonReader jsonReader)
Reads an instance of RuleProperties from the JsonReader.
Parameters:
Returns:
Throws:
provisioningState
public AfdProvisioningState provisioningState()
Get the provisioningState property: Provisioning status.
Returns:
ruleSetName
public String ruleSetName()
Get the ruleSetName property: The name of the rule set containing the rule.
Overrides:
RuleProperties.ruleSetName()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RuleProperties.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
RuleProperties.validate()withActions
public RuleProperties withActions(List<DeliveryRuleAction> actions)
Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied.
Overrides:
RuleProperties.withActions(List<DeliveryRuleAction> actions)Parameters:
withConditions
public RuleProperties withConditions(List<DeliveryRuleCondition> conditions)
Set the conditions property: A list of conditions that must be matched for the actions to be executed.
Overrides:
RuleProperties.withConditions(List<DeliveryRuleCondition> conditions)Parameters:
withMatchProcessingBehavior
public RuleProperties 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.
Overrides:
RuleProperties.withMatchProcessingBehavior(MatchProcessingBehavior matchProcessingBehavior)Parameters:
withOrder
public RuleProperties 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.
Overrides:
RuleProperties.withOrder(Integer order)Parameters: