Class RuleProperties
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.RuleUpdatePropertiesParameters
-
- com.azure.resourcemanager.cdn.models.RuleProperties
-
public final class RuleProperties extends RuleUpdatePropertiesParameters
The JSON object that contains the properties of the Rules to create.
-
-
Constructor Summary
Constructors Constructor Description RuleProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentStatusdeploymentStatus()Get the deploymentStatus property: The deploymentStatus property.AfdProvisioningStateprovisioningState()Get the provisioningState property: Provisioning status.voidvalidate()Validates the instance.RulePropertieswithActions(List<DeliveryRuleAction> actions)Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied.RulePropertieswithConditions(List<DeliveryRuleCondition> conditions)Set the conditions property: A list of conditions that must be matched for the actions to be executed.RulePropertieswithMatchProcessingBehavior(MatchProcessingBehavior matchProcessingBehavior)Set the matchProcessingBehavior property: If this rule is a match should the rules engine continue running the remaining rules or stop.RulePropertieswithOrder(Integer order)Set the order property: The order in which the rules are applied for the endpoint.-
Methods inherited from class com.azure.resourcemanager.cdn.models.RuleUpdatePropertiesParameters
actions, conditions, matchProcessingBehavior, order
-
-
-
-
Method Detail
-
provisioningState
public AfdProvisioningState provisioningState()
Get the provisioningState property: Provisioning status.- Returns:
- the provisioningState value.
-
deploymentStatus
public DeploymentStatus deploymentStatus()
Get the deploymentStatus property: The deploymentStatus property.- Returns:
- the deploymentStatus value.
-
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:
withOrderin classRuleUpdatePropertiesParameters- Parameters:
order- the order value to set.- Returns:
- the RuleUpdatePropertiesParameters object itself.
-
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:
withConditionsin classRuleUpdatePropertiesParameters- Parameters:
conditions- the conditions value to set.- Returns:
- the RuleUpdatePropertiesParameters object itself.
-
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:
withActionsin classRuleUpdatePropertiesParameters- Parameters:
actions- the actions value to set.- Returns:
- the RuleUpdatePropertiesParameters object itself.
-
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:
withMatchProcessingBehaviorin classRuleUpdatePropertiesParameters- Parameters:
matchProcessingBehavior- the matchProcessingBehavior value to set.- Returns:
- the RuleUpdatePropertiesParameters object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classRuleUpdatePropertiesParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-