Class ApplicationGatewayUrlConfiguration

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

public final class ApplicationGatewayUrlConfiguration extends Object implements com.azure.json.JsonSerializable<ApplicationGatewayUrlConfiguration>
Url configuration of the Actions set in Application Gateway.
  • Constructor Details

    • ApplicationGatewayUrlConfiguration

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

    • modifiedPath

      public String modifiedPath()
      Get the modifiedPath property: Url path which user has provided for url rewrite. Null means no path will be updated. Default value is null.
      Returns:
      the modifiedPath value.
    • withModifiedPath

      public ApplicationGatewayUrlConfiguration withModifiedPath(String modifiedPath)
      Set the modifiedPath property: Url path which user has provided for url rewrite. Null means no path will be updated. Default value is null.
      Parameters:
      modifiedPath - the modifiedPath value to set.
      Returns:
      the ApplicationGatewayUrlConfiguration object itself.
    • modifiedQueryString

      public String modifiedQueryString()
      Get the modifiedQueryString property: Query string which user has provided for url rewrite. Null means no query string will be updated. Default value is null.
      Returns:
      the modifiedQueryString value.
    • withModifiedQueryString

      public ApplicationGatewayUrlConfiguration withModifiedQueryString(String modifiedQueryString)
      Set the modifiedQueryString property: Query string which user has provided for url rewrite. Null means no query string will be updated. Default value is null.
      Parameters:
      modifiedQueryString - the modifiedQueryString value to set.
      Returns:
      the ApplicationGatewayUrlConfiguration object itself.
    • reroute

      public Boolean reroute()
      Get the reroute property: If set as true, it will re-evaluate the url path map provided in path based request routing rules using modified path. Default value is false.
      Returns:
      the reroute value.
    • withReroute

      public ApplicationGatewayUrlConfiguration withReroute(Boolean reroute)
      Set the reroute property: If set as true, it will re-evaluate the url path map provided in path based request routing rules using modified path. Default value is false.
      Parameters:
      reroute - the reroute value to set.
      Returns:
      the ApplicationGatewayUrlConfiguration 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<ApplicationGatewayUrlConfiguration>
      Throws:
      IOException
    • fromJson

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