Class ApplicationGatewayCustomError

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

public final class ApplicationGatewayCustomError extends Object implements com.azure.json.JsonSerializable<ApplicationGatewayCustomError>
Custom error of an application gateway.
  • Constructor Details

    • ApplicationGatewayCustomError

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

    • statusCode

      Get the statusCode property: Status code of the application gateway custom error.
      Returns:
      the statusCode value.
    • withStatusCode

      Set the statusCode property: Status code of the application gateway custom error.
      Parameters:
      statusCode - the statusCode value to set.
      Returns:
      the ApplicationGatewayCustomError object itself.
    • customErrorPageUrl

      public String customErrorPageUrl()
      Get the customErrorPageUrl property: Error page URL of the application gateway custom error.
      Returns:
      the customErrorPageUrl value.
    • withCustomErrorPageUrl

      public ApplicationGatewayCustomError withCustomErrorPageUrl(String customErrorPageUrl)
      Set the customErrorPageUrl property: Error page URL of the application gateway custom error.
      Parameters:
      customErrorPageUrl - the customErrorPageUrl value to set.
      Returns:
      the ApplicationGatewayCustomError 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<ApplicationGatewayCustomError>
      Throws:
      IOException
    • fromJson

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