All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.management.network.ApplicationGatewayCustomError Maven / Gradle / Ivy

There is a newer version: 1.41.4
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.management.network;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Customer error of an application gateway.
 */
public class ApplicationGatewayCustomError {
    /**
     * Status code of the application gateway customer error. Possible values
     * include: 'HttpStatus403', 'HttpStatus502'.
     */
    @JsonProperty(value = "statusCode")
    private ApplicationGatewayCustomErrorStatusCode statusCode;

    /**
     * Error page URL of the application gateway customer error.
     */
    @JsonProperty(value = "customErrorPageUrl")
    private String customErrorPageUrl;

    /**
     * Get status code of the application gateway customer error. Possible values include: 'HttpStatus403', 'HttpStatus502'.
     *
     * @return the statusCode value
     */
    public ApplicationGatewayCustomErrorStatusCode statusCode() {
        return this.statusCode;
    }

    /**
     * Set status code of the application gateway customer error. Possible values include: 'HttpStatus403', 'HttpStatus502'.
     *
     * @param statusCode the statusCode value to set
     * @return the ApplicationGatewayCustomError object itself.
     */
    public ApplicationGatewayCustomError withStatusCode(ApplicationGatewayCustomErrorStatusCode statusCode) {
        this.statusCode = statusCode;
        return this;
    }

    /**
     * Get error page URL of the application gateway customer error.
     *
     * @return the customErrorPageUrl value
     */
    public String customErrorPageUrl() {
        return this.customErrorPageUrl;
    }

    /**
     * Set error page URL of the application gateway customer error.
     *
     * @param customErrorPageUrl the customErrorPageUrl value to set
     * @return the ApplicationGatewayCustomError object itself.
     */
    public ApplicationGatewayCustomError withCustomErrorPageUrl(String customErrorPageUrl) {
        this.customErrorPageUrl = customErrorPageUrl;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy