ApplicationGatewayCustomError Class

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

public final class 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.

ApplicationGatewayCustomErrorStatusCode statusCode()

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

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.

statusCode

public ApplicationGatewayCustomErrorStatusCode statusCode()

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

Returns:

the statusCode value.

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