RuleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. cdn. fluent. models. RuleInner
- com.
- com.
public final class RuleInner
extends ProxyResource
Friendly Rules name mapping to the any Rules or secret related information.
Constructor Summary
Constructor | Description |
---|---|
RuleInner() |
Creates an instance of Rule |
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. |
Deployment |
deploymentStatus()
Get the deployment |
static
Rule |
fromJson(JsonReader jsonReader)
Reads an instance of Rule |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Match |
matchProcessingBehavior()
Get the match |
String |
name()
Get the name property: The name of the resource. |
Integer |
order()
Get the order property: The order in which the rules are applied for the endpoint. |
Afd |
provisioningState()
Get the provisioning |
String |
ruleSetName()
Get the rule |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
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 ProxyResource
Methods inherited from java.lang.Object
Constructor Details
RuleInner
public RuleInner()
Creates an instance of RuleInner class.
Method Details
actions
public List
Get the actions property: A list of actions that are executed when all the conditions of a rule are satisfied.
Returns:
conditions
public List
Get the conditions property: A list of conditions that must be matched for the actions to be executed.
Returns:
deploymentStatus
public DeploymentStatus deploymentStatus()
Get the deploymentStatus property: The deploymentStatus property.
Returns:
fromJson
public static RuleInner fromJson(JsonReader jsonReader)
Reads an instance of RuleInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
RuleInner.id()Returns:
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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
RuleInner.name()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:
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.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Read only system data.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RuleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
RuleInner.type()Returns:
validate
public void validate()
Validates the instance.
withActions
public RuleInner withActions(List
Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied.
Parameters:
Returns:
withConditions
public RuleInner withConditions(List
Set the conditions property: A list of conditions that must be matched for the actions to be executed.
Parameters:
Returns:
withMatchProcessingBehavior
public RuleInner 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 RuleInner 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:
Applies to
Azure SDK for Java