ApplicationGatewayCustomError Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ApplicationGatewayCustomError

Implements

public final class ApplicationGatewayCustomError
implements JsonSerializable<ApplicationGatewayCustomError>

Custom error of an application gateway.

Constructor Summary

Constructor Description
ApplicationGatewayCustomError()

Creates an instance of ApplicationGatewayCustomError class.

Method Summary

Modifier and Type Method and Description
String customErrorPageUrl()

Get the customErrorPageUrl property: Error page URL of the application gateway custom error.

static ApplicationGatewayCustomError fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayCustomError from the JsonReader.

ApplicationGatewayCustomErrorStatusCode statusCode()

Get the statusCode property: Status code of the application gateway custom error.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewayCustomError withCustomErrorPageUrl(String customErrorPageUrl)

Set the customErrorPageUrl property: Error page URL of the application gateway custom error.

ApplicationGatewayCustomError withStatusCode(ApplicationGatewayCustomErrorStatusCode statusCode)

Set the statusCode property: Status code of the application gateway custom error.

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:

the customErrorPageUrl value.

fromJson

public static ApplicationGatewayCustomError fromJson(JsonReader jsonReader)

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.

statusCode

public ApplicationGatewayCustomErrorStatusCode statusCode()

Get the statusCode property: Status code of the application gateway custom error.

Returns:

the statusCode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

customErrorPageUrl - the customErrorPageUrl value to set.

Returns:

the ApplicationGatewayCustomError object itself.

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.

Applies to