Class ApplicationGatewayCustomError
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ApplicationGatewayCustomError
-
public final class ApplicationGatewayCustomError extends Object
Customer error of an application gateway.
-
-
Constructor Summary
Constructors Constructor Description ApplicationGatewayCustomError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcustomErrorPageUrl()Get the customErrorPageUrl property: Error page URL of the application gateway customer error.ApplicationGatewayCustomErrorStatusCodestatusCode()Get the statusCode property: Status code of the application gateway customer error.voidvalidate()Validates the instance.ApplicationGatewayCustomErrorwithCustomErrorPageUrl(String customErrorPageUrl)Set the customErrorPageUrl property: Error page URL of the application gateway customer error.ApplicationGatewayCustomErrorwithStatusCode(ApplicationGatewayCustomErrorStatusCode statusCode)Set the statusCode property: Status code of the application gateway customer error.
-
-
-
Method Detail
-
statusCode
public ApplicationGatewayCustomErrorStatusCode statusCode()
Get the statusCode property: Status code of the application gateway customer error.- Returns:
- the statusCode value.
-
withStatusCode
public ApplicationGatewayCustomError withStatusCode(ApplicationGatewayCustomErrorStatusCode statusCode)
Set the statusCode property: Status code of the application gateway customer error.- Parameters:
statusCode- the statusCode value to set.- Returns:
- the ApplicationGatewayCustomError object itself.
-
customErrorPageUrl
public String customErrorPageUrl()
Get the customErrorPageUrl property: Error page URL of the application gateway customer error.- Returns:
- the customErrorPageUrl value.
-
withCustomErrorPageUrl
public ApplicationGatewayCustomError withCustomErrorPageUrl(String customErrorPageUrl)
Set the customErrorPageUrl property: Error page URL of the application gateway customer 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.
-
-