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

com.pulumi.azure.network.inputs.ApplicationGatewayCustomErrorConfigurationArgs Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.network.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ApplicationGatewayCustomErrorConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationGatewayCustomErrorConfigurationArgs Empty = new ApplicationGatewayCustomErrorConfigurationArgs();

    /**
     * Error page URL of the application gateway customer error.
     * 
     */
    @Import(name="customErrorPageUrl", required=true)
    private Output customErrorPageUrl;

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

    /**
     * The ID of the Rewrite Rule Set
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The ID of the Rewrite Rule Set
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502`
     * 
     */
    @Import(name="statusCode", required=true)
    private Output statusCode;

    /**
     * @return Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502`
     * 
     */
    public Output statusCode() {
        return this.statusCode;
    }

    private ApplicationGatewayCustomErrorConfigurationArgs() {}

    private ApplicationGatewayCustomErrorConfigurationArgs(ApplicationGatewayCustomErrorConfigurationArgs $) {
        this.customErrorPageUrl = $.customErrorPageUrl;
        this.id = $.id;
        this.statusCode = $.statusCode;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ApplicationGatewayCustomErrorConfigurationArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ApplicationGatewayCustomErrorConfigurationArgs $;

        public Builder() {
            $ = new ApplicationGatewayCustomErrorConfigurationArgs();
        }

        public Builder(ApplicationGatewayCustomErrorConfigurationArgs defaults) {
            $ = new ApplicationGatewayCustomErrorConfigurationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param customErrorPageUrl Error page URL of the application gateway customer error.
         * 
         * @return builder
         * 
         */
        public Builder customErrorPageUrl(Output customErrorPageUrl) {
            $.customErrorPageUrl = customErrorPageUrl;
            return this;
        }

        /**
         * @param customErrorPageUrl Error page URL of the application gateway customer error.
         * 
         * @return builder
         * 
         */
        public Builder customErrorPageUrl(String customErrorPageUrl) {
            return customErrorPageUrl(Output.of(customErrorPageUrl));
        }

        /**
         * @param id The ID of the Rewrite Rule Set
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The ID of the Rewrite Rule Set
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param statusCode Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502`
         * 
         * @return builder
         * 
         */
        public Builder statusCode(Output statusCode) {
            $.statusCode = statusCode;
            return this;
        }

        /**
         * @param statusCode Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502`
         * 
         * @return builder
         * 
         */
        public Builder statusCode(String statusCode) {
            return statusCode(Output.of(statusCode));
        }

        public ApplicationGatewayCustomErrorConfigurationArgs build() {
            if ($.customErrorPageUrl == null) {
                throw new MissingRequiredPropertyException("ApplicationGatewayCustomErrorConfigurationArgs", "customErrorPageUrl");
            }
            if ($.statusCode == null) {
                throw new MissingRequiredPropertyException("ApplicationGatewayCustomErrorConfigurationArgs", "statusCode");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy