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

com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.appservice.inputs;

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


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

    public static final WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs Empty = new WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs();

    /**
     * The number of occurrences of the defined `status_code` in the specified `interval` on which to trigger this rule.
     * 
     */
    @Import(name="count", required=true)
    private Output count;

    /**
     * @return The number of occurrences of the defined `status_code` in the specified `interval` on which to trigger this rule.
     * 
     */
    public Output count() {
        return this.count;
    }

    /**
     * The time interval in the form `hh:mm:ss`.
     * 
     */
    @Import(name="interval", required=true)
    private Output interval;

    /**
     * @return The time interval in the form `hh:mm:ss`.
     * 
     */
    public Output interval() {
        return this.interval;
    }

    /**
     * The path to which this rule status code applies.
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return The path to which this rule status code applies.
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * The status code for this rule, accepts single status codes and status code ranges. e.g. `500` or `400-499`. Possible values are integers between `101` and `599`
     * 
     */
    @Import(name="statusCodeRange", required=true)
    private Output statusCodeRange;

    /**
     * @return The status code for this rule, accepts single status codes and status code ranges. e.g. `500` or `400-499`. Possible values are integers between `101` and `599`
     * 
     */
    public Output statusCodeRange() {
        return this.statusCodeRange;
    }

    /**
     * The Request Sub Status of the Status Code.
     * 
     */
    @Import(name="subStatus")
    private @Nullable Output subStatus;

    /**
     * @return The Request Sub Status of the Status Code.
     * 
     */
    public Optional> subStatus() {
        return Optional.ofNullable(this.subStatus);
    }

    /**
     * The Win32 Status Code of the Request.
     * 
     */
    @Import(name="win32StatusCode")
    private @Nullable Output win32StatusCode;

    /**
     * @return The Win32 Status Code of the Request.
     * 
     */
    public Optional> win32StatusCode() {
        return Optional.ofNullable(this.win32StatusCode);
    }

    private WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs() {}

    private WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs(WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs $) {
        this.count = $.count;
        this.interval = $.interval;
        this.path = $.path;
        this.statusCodeRange = $.statusCodeRange;
        this.subStatus = $.subStatus;
        this.win32StatusCode = $.win32StatusCode;
    }

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

    public static final class Builder {
        private WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs $;

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

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

        /**
         * @param count The number of occurrences of the defined `status_code` in the specified `interval` on which to trigger this rule.
         * 
         * @return builder
         * 
         */
        public Builder count(Output count) {
            $.count = count;
            return this;
        }

        /**
         * @param count The number of occurrences of the defined `status_code` in the specified `interval` on which to trigger this rule.
         * 
         * @return builder
         * 
         */
        public Builder count(Integer count) {
            return count(Output.of(count));
        }

        /**
         * @param interval The time interval in the form `hh:mm:ss`.
         * 
         * @return builder
         * 
         */
        public Builder interval(Output interval) {
            $.interval = interval;
            return this;
        }

        /**
         * @param interval The time interval in the form `hh:mm:ss`.
         * 
         * @return builder
         * 
         */
        public Builder interval(String interval) {
            return interval(Output.of(interval));
        }

        /**
         * @param path The path to which this rule status code applies.
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The path to which this rule status code applies.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param statusCodeRange The status code for this rule, accepts single status codes and status code ranges. e.g. `500` or `400-499`. Possible values are integers between `101` and `599`
         * 
         * @return builder
         * 
         */
        public Builder statusCodeRange(Output statusCodeRange) {
            $.statusCodeRange = statusCodeRange;
            return this;
        }

        /**
         * @param statusCodeRange The status code for this rule, accepts single status codes and status code ranges. e.g. `500` or `400-499`. Possible values are integers between `101` and `599`
         * 
         * @return builder
         * 
         */
        public Builder statusCodeRange(String statusCodeRange) {
            return statusCodeRange(Output.of(statusCodeRange));
        }

        /**
         * @param subStatus The Request Sub Status of the Status Code.
         * 
         * @return builder
         * 
         */
        public Builder subStatus(@Nullable Output subStatus) {
            $.subStatus = subStatus;
            return this;
        }

        /**
         * @param subStatus The Request Sub Status of the Status Code.
         * 
         * @return builder
         * 
         */
        public Builder subStatus(Integer subStatus) {
            return subStatus(Output.of(subStatus));
        }

        /**
         * @param win32StatusCode The Win32 Status Code of the Request.
         * 
         * @return builder
         * 
         */
        public Builder win32StatusCode(@Nullable Output win32StatusCode) {
            $.win32StatusCode = win32StatusCode;
            return this;
        }

        /**
         * @param win32StatusCode The Win32 Status Code of the Request.
         * 
         * @return builder
         * 
         */
        public Builder win32StatusCode(Integer win32StatusCode) {
            return win32StatusCode(Output.of(win32StatusCode));
        }

        public WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs build() {
            if ($.count == null) {
                throw new MissingRequiredPropertyException("WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs", "count");
            }
            if ($.interval == null) {
                throw new MissingRequiredPropertyException("WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs", "interval");
            }
            if ($.statusCodeRange == null) {
                throw new MissingRequiredPropertyException("WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs", "statusCodeRange");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy