Class RuleProperties
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.RuleUpdatePropertiesParameters
com.azure.resourcemanager.cdn.fluent.models.RuleProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RuleUpdatePropertiesParameters>
The JSON object that contains the properties of the Rules to create.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the deploymentStatus property: The deploymentStatus property.static RulePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RuleProperties from the JsonReader.Get the provisioningState property: Provisioning status.Get the ruleSetName property: The name of the rule set containing the rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withActions(List<DeliveryRuleAction> actions) Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied.withConditions(List<DeliveryRuleCondition> conditions) Set the conditions property: A list of conditions that must be matched for the actions to be executed.withMatchProcessingBehavior(MatchProcessingBehavior matchProcessingBehavior) Set the matchProcessingBehavior property: If this rule is a match should the rules engine continue running the remaining rules or stop.Set the order property: The order in which the rules are applied for the endpoint.Methods inherited from class com.azure.resourcemanager.cdn.fluent.models.RuleUpdatePropertiesParameters
actions, conditions, matchProcessingBehavior, orderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RuleProperties
public RuleProperties()Creates an instance of RuleProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: Provisioning status.- Returns:
- the provisioningState value.
-
deploymentStatus
Get the deploymentStatus property: The deploymentStatus property.- Returns:
- the deploymentStatus value.
-
ruleSetName
Get the ruleSetName property: The name of the rule set containing the rule.- Overrides:
ruleSetNamein classRuleUpdatePropertiesParameters- Returns:
- the ruleSetName value.
-
withOrder
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
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
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
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RuleUpdatePropertiesParameters>- Overrides:
toJsonin classRuleUpdatePropertiesParameters- Throws:
IOException
-
fromJson
Reads an instance of RuleProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RuleProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the RuleProperties.
-