Rule Interface

Implements

public interface Rule
extends ExternalChildResource<Rule,RuleSet>, HasInnerModel<RuleInner>

An immutable client-side representation of an Azure Front Door (AFD) rule that lives under a RuleSet.

Method Summary

Modifier and Type Method and Description
abstract List<DeliveryRuleAction> actions()

Gets the list of actions that are executed when all the conditions of a rule are satisfied.

abstract List<DeliveryRuleCondition> conditions()

Gets the list of conditions that must be matched for the actions to be executed.

abstract DeploymentStatus deploymentStatus()

Gets the deployment status for the rule.

abstract MatchProcessingBehavior matchProcessingBehavior()

Gets whether the rules engine should continue running the remaining rules or stop after this rule is matched.

abstract Integer order()

Gets the order in which the rule is applied for the endpoint.

abstract AfdProvisioningState provisioningState()

Gets the provisioning state reported by the service.

abstract String ruleSetName()

Gets the name of the rule set containing this rule.

Method Details

actions

public abstract List<DeliveryRuleAction> actions()

Gets the list of actions that are executed when all the conditions of a rule are satisfied.

Returns:

the actions

conditions

public abstract List<DeliveryRuleCondition> conditions()

Gets the list of conditions that must be matched for the actions to be executed.

Returns:

the conditions

deploymentStatus

public abstract DeploymentStatus deploymentStatus()

Gets the deployment status for the rule.

Returns:

the deployment status

matchProcessingBehavior

public abstract MatchProcessingBehavior matchProcessingBehavior()

Gets whether the rules engine should continue running the remaining rules or stop after this rule is matched.

Returns:

the match processing behavior

order

public abstract Integer order()

Gets the order in which the rule is applied for the endpoint.

Returns:

the order

provisioningState

public abstract AfdProvisioningState provisioningState()

Gets the provisioning state reported by the service.

Returns:

the provisioning state

ruleSetName

public abstract String ruleSetName()

Gets the name of the rule set containing this rule.

Returns:

the rule set name

Applies to