// *** 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 java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs Empty = new WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs();

    /**
     * The number of Slow Requests in the time `interval` to trigger this rule.
     * 
     */
    @Import(name="count", required=true)
    private Output<Integer> count;

    /**
     * @return The number of Slow Requests in the time `interval` to trigger this rule.
     * 
     */
    public Output<Integer> count() {
        return this.count;
    }

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

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

    /**
     * The path for which this slow request rule applies.
     * 
     */
    @Import(name="path")
    private @Nullable Output<String> path;

    /**
     * @return The path for which this slow request rule applies.
     * 
     */
    public Optional<Output<String>> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * The threshold of time passed to qualify as a Slow Request in `hh:mm:ss`.
     * 
     */
    @Import(name="timeTaken", required=true)
    private Output<String> timeTaken;

    /**
     * @return The threshold of time passed to qualify as a Slow Request in `hh:mm:ss`.
     * 
     */
    public Output<String> timeTaken() {
        return this.timeTaken;
    }

    private WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs() {}

    private WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs(WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs $) {
        this.count = $.count;
        this.interval = $.interval;
        this.path = $.path;
        this.timeTaken = $.timeTaken;
    }

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

    public static final class Builder {
        private WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs $;

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

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

        /**
         * @param count The number of Slow Requests in the time `interval` to trigger this rule.
         * 
         * @return builder
         * 
         */
        public Builder count(Output<Integer> count) {
            $.count = count;
            return this;
        }

        /**
         * @param count The number of Slow Requests in the time `interval` 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<String> 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 for which this slow request rule applies.
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output<String> path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The path for which this slow request rule applies.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param timeTaken The threshold of time passed to qualify as a Slow Request in `hh:mm:ss`.
         * 
         * @return builder
         * 
         */
        public Builder timeTaken(Output<String> timeTaken) {
            $.timeTaken = timeTaken;
            return this;
        }

        /**
         * @param timeTaken The threshold of time passed to qualify as a Slow Request in `hh:mm:ss`.
         * 
         * @return builder
         * 
         */
        public Builder timeTaken(String timeTaken) {
            return timeTaken(Output.of(timeTaken));
        }

        public WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs build() {
            $.count = Objects.requireNonNull($.count, "expected parameter 'count' to be non-null");
            $.interval = Objects.requireNonNull($.interval, "expected parameter 'interval' to be non-null");
            $.timeTaken = Objects.requireNonNull($.timeTaken, "expected parameter 'timeTaken' to be non-null");
            return $;
        }
    }

}
