ApplicationGatewayCustomError Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ApplicationGatewayCustomError
- com.
Implements
public final class ApplicationGatewayCustomError
implements JsonSerializable<ApplicationGatewayCustomError>
Custom error of an application gateway.
Constructor Summary
Constructor | Description |
---|---|
ApplicationGatewayCustomError() |
Creates an instance of Application |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
customErrorPageUrl()
Get the custom |
static
Application |
fromJson(JsonReader jsonReader)
Reads an instance of Application |
Application |
statusCode()
Get the status |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Application |
withCustomErrorPageUrl(String customErrorPageUrl)
Set the custom |
Application |
withStatusCode(ApplicationGatewayCustomErrorStatusCode statusCode)
Set the status |
Methods inherited from java.lang.Object
Constructor Details
ApplicationGatewayCustomError
public ApplicationGatewayCustomError()
Creates an instance of ApplicationGatewayCustomError class.
Method Details
customErrorPageUrl
public String customErrorPageUrl()
Get the customErrorPageUrl property: Error page URL of the application gateway custom error.
Returns:
fromJson
public static ApplicationGatewayCustomError fromJson(JsonReader jsonReader)
Reads an instance of ApplicationGatewayCustomError from the JsonReader.
Parameters:
Returns:
Throws:
statusCode
public ApplicationGatewayCustomErrorStatusCode statusCode()
Get the statusCode property: Status code of the application gateway custom error.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCustomErrorPageUrl
public ApplicationGatewayCustomError withCustomErrorPageUrl(String customErrorPageUrl)
Set the customErrorPageUrl property: Error page URL of the application gateway custom error.
Parameters:
Returns:
withStatusCode
public ApplicationGatewayCustomError withStatusCode(ApplicationGatewayCustomErrorStatusCode statusCode)
Set the statusCode property: Status code of the application gateway custom error.
Parameters:
Returns:
Applies to
Azure SDK for Java