java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.cdn.fluent.models.RuleInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class RuleInner extends com.azure.core.management.ProxyResource
Friendly Rules name mapping to the any Rules or secret related information.
  • Constructor Details

    • RuleInner

      public RuleInner()
      Creates an instance of RuleInner class.
  • Method Details

    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Read only system data.
      Returns:
      the systemData value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • 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.
    • ruleSetName

      public String ruleSetName()
      Get the ruleSetName property: The name of the rule set containing the rule.
      Returns:
      the ruleSetName 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.
    • 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.
    • conditions

      public List<DeliveryRuleCondition> conditions()
      Get the conditions property: A list of conditions that must be matched for the actions to be executed.
      Returns:
      the conditions value.
    • withConditions

      public RuleInner withConditions(List<DeliveryRuleCondition> 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.
    • actions

      public List<DeliveryRuleAction> 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.
    • withActions

      public 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.
      Parameters:
      actions - the actions value to set.
      Returns:
      the RuleInner object itself.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.ProxyResource
      Throws:
      IOException
    • fromJson

      public static RuleInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the RuleInner.