Class ApplicationGatewayCustomError
java.lang.Object
com.azure.resourcemanager.network.models.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.Get the statusCode property: Status code of the application gateway custom error.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.
-
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.
-