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 Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayCustomError class. -
Method Summary
Modifier and TypeMethodDescriptionGet the customErrorPageUrl property: Error page URL of the application gateway custom error.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayCustomError from the JsonReader.Get the statusCode property: Status code of the application gateway custom error.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCustomErrorPageUrl(String customErrorPageUrl) Set the customErrorPageUrl property: Error page URL of the application gateway custom error.Set the statusCode property: Status code of the application gateway custom error.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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
public ApplicationGatewayCustomError withStatusCode(ApplicationGatewayCustomErrorStatusCode statusCode) 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
Get the customErrorPageUrl property: Error page URL of the application gateway custom error.- Returns:
- the customErrorPageUrl value.
-
withCustomErrorPageUrl
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
- Specified by:
toJsonin interfacecom.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.
-