Class ApplicationGatewayRewriteRule

java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayRewriteRule
All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayRewriteRule>

public final class ApplicationGatewayRewriteRule extends Object implements com.azure.json.JsonSerializable<ApplicationGatewayRewriteRule>
Rewrite rule of an application gateway.
  • Constructor Details

    • ApplicationGatewayRewriteRule

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

    • name

      public String name()
      Get the name property: Name of the rewrite rule that is unique within an Application Gateway.
      Returns:
      the name value.
    • withName

      public ApplicationGatewayRewriteRule withName(String name)
      Set the name property: Name of the rewrite rule that is unique within an Application Gateway.
      Parameters:
      name - the name value to set.
      Returns:
      the ApplicationGatewayRewriteRule object itself.
    • ruleSequence

      public Integer ruleSequence()
      Get the ruleSequence property: Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.
      Returns:
      the ruleSequence value.
    • withRuleSequence

      public ApplicationGatewayRewriteRule withRuleSequence(Integer ruleSequence)
      Set the ruleSequence property: Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.
      Parameters:
      ruleSequence - the ruleSequence value to set.
      Returns:
      the ApplicationGatewayRewriteRule object itself.
    • conditions

      Get the conditions property: Conditions based on which the action set execution will be evaluated.
      Returns:
      the conditions value.
    • withConditions

      Set the conditions property: Conditions based on which the action set execution will be evaluated.
      Parameters:
      conditions - the conditions value to set.
      Returns:
      the ApplicationGatewayRewriteRule object itself.
    • actionSet

      Get the actionSet property: Set of actions to be done as part of the rewrite Rule.
      Returns:
      the actionSet value.
    • withActionSet

      Set the actionSet property: Set of actions to be done as part of the rewrite Rule.
      Parameters:
      actionSet - the actionSet value to set.
      Returns:
      the ApplicationGatewayRewriteRule 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<ApplicationGatewayRewriteRule>
      Throws:
      IOException
    • fromJson

      public static ApplicationGatewayRewriteRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ApplicationGatewayRewriteRule from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ApplicationGatewayRewriteRule 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 ApplicationGatewayRewriteRule.