Class ApplicationGatewayRewriteRuleActionSet

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

public final class ApplicationGatewayRewriteRuleActionSet extends Object implements com.azure.json.JsonSerializable<ApplicationGatewayRewriteRuleActionSet>
Set of actions in the Rewrite Rule in Application Gateway.
  • Constructor Details

    • ApplicationGatewayRewriteRuleActionSet

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

    • requestHeaderConfigurations

      public List<ApplicationGatewayHeaderConfiguration> requestHeaderConfigurations()
      Get the requestHeaderConfigurations property: Request Header Actions in the Action Set.
      Returns:
      the requestHeaderConfigurations value.
    • withRequestHeaderConfigurations

      public ApplicationGatewayRewriteRuleActionSet withRequestHeaderConfigurations(List<ApplicationGatewayHeaderConfiguration> requestHeaderConfigurations)
      Set the requestHeaderConfigurations property: Request Header Actions in the Action Set.
      Parameters:
      requestHeaderConfigurations - the requestHeaderConfigurations value to set.
      Returns:
      the ApplicationGatewayRewriteRuleActionSet object itself.
    • responseHeaderConfigurations

      public List<ApplicationGatewayHeaderConfiguration> responseHeaderConfigurations()
      Get the responseHeaderConfigurations property: Response Header Actions in the Action Set.
      Returns:
      the responseHeaderConfigurations value.
    • withResponseHeaderConfigurations

      public ApplicationGatewayRewriteRuleActionSet withResponseHeaderConfigurations(List<ApplicationGatewayHeaderConfiguration> responseHeaderConfigurations)
      Set the responseHeaderConfigurations property: Response Header Actions in the Action Set.
      Parameters:
      responseHeaderConfigurations - the responseHeaderConfigurations value to set.
      Returns:
      the ApplicationGatewayRewriteRuleActionSet object itself.
    • urlConfiguration

      public ApplicationGatewayUrlConfiguration urlConfiguration()
      Get the urlConfiguration property: Url Configuration Action in the Action Set.
      Returns:
      the urlConfiguration value.
    • withUrlConfiguration

      public ApplicationGatewayRewriteRuleActionSet withUrlConfiguration(ApplicationGatewayUrlConfiguration urlConfiguration)
      Set the urlConfiguration property: Url Configuration Action in the Action Set.
      Parameters:
      urlConfiguration - the urlConfiguration value to set.
      Returns:
      the ApplicationGatewayRewriteRuleActionSet 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<ApplicationGatewayRewriteRuleActionSet>
      Throws:
      IOException
    • fromJson

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