Dela via


RuleInner Class

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 RuleInner 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.

DeploymentStatus deploymentStatus()

Get the deploymentStatus property: The deploymentStatus property.

static RuleInner fromJson(JsonReader jsonReader)

Reads an instance of RuleInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

MatchProcessingBehavior matchProcessingBehavior()

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

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.

AfdProvisioningState provisioningState()

Get the provisioningState property: Provisioning status.

String ruleSetName()

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

SystemData systemData()

Get the systemData property: Read only system data.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

RuleInner withActions(List<DeliveryRuleAction> actions)

Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied.

RuleInner withConditions(List<DeliveryRuleCondition> conditions)

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

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.

RuleInner 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 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 conditions()

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

Returns:

the conditions value.

deploymentStatus

public DeploymentStatus deploymentStatus()

Get the deploymentStatus property: The deploymentStatus property.

Returns:

the deploymentStatus value.

fromJson

public static RuleInner fromJson(JsonReader jsonReader)

Reads an instance of RuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RuleInner 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.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

RuleInner.id()

Returns:

the id value.

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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RuleInner.name()

Returns:

the name 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.

provisioningState

public AfdProvisioningState provisioningState()

Get the provisioningState property: Provisioning status.

Returns:

the provisioningState value.

ruleSetName

public String ruleSetName()

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

Returns:

the ruleSetName value.

systemData

public SystemData systemData()

Get the systemData property: Read only system data.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

RuleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withActions

public RuleInner withActions(List 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 RuleInner object itself.

withConditions

public RuleInner withConditions(List 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 RuleInner object itself.

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:

matchProcessingBehavior - the matchProcessingBehavior value to set.

Returns:

the RuleInner object itself.

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:

order - the order value to set.

Returns:

the RuleInner object itself.

Applies to