// *** 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.azure.appservice.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingTriggerRequestsArgs;
import com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs;
import com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs Empty = new WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs();

    /**
     * The amount of Private Memory to be consumed for this rule to trigger. Possible values are between `102400` and `13631488`.
     * 
     */
    @Import(name="privateMemoryKb")
    private @Nullable Output<Integer> privateMemoryKb;

    /**
     * @return The amount of Private Memory to be consumed for this rule to trigger. Possible values are between `102400` and `13631488`.
     * 
     */
    public Optional<Output<Integer>> privateMemoryKb() {
        return Optional.ofNullable(this.privateMemoryKb);
    }

    /**
     * A `requests` block as defined above.
     * 
     */
    @Import(name="requests")
    private @Nullable Output<WindowsWebAppSlotSiteConfigAutoHealSettingTriggerRequestsArgs> requests;

    /**
     * @return A `requests` block as defined above.
     * 
     */
    public Optional<Output<WindowsWebAppSlotSiteConfigAutoHealSettingTriggerRequestsArgs>> requests() {
        return Optional.ofNullable(this.requests);
    }

    /**
     * One or more `slow_request` blocks as defined above.
     * 
     */
    @Import(name="slowRequests")
    private @Nullable Output<List<WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs>> slowRequests;

    /**
     * @return One or more `slow_request` blocks as defined above.
     * 
     */
    public Optional<Output<List<WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs>>> slowRequests() {
        return Optional.ofNullable(this.slowRequests);
    }

    /**
     * One or more `status_code` blocks as defined above.
     * 
     */
    @Import(name="statusCodes")
    private @Nullable Output<List<WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs>> statusCodes;

    /**
     * @return One or more `status_code` blocks as defined above.
     * 
     */
    public Optional<Output<List<WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs>>> statusCodes() {
        return Optional.ofNullable(this.statusCodes);
    }

    private WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs() {}

    private WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs(WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs $) {
        this.privateMemoryKb = $.privateMemoryKb;
        this.requests = $.requests;
        this.slowRequests = $.slowRequests;
        this.statusCodes = $.statusCodes;
    }

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

    public static final class Builder {
        private WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs $;

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

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

        /**
         * @param privateMemoryKb The amount of Private Memory to be consumed for this rule to trigger. Possible values are between `102400` and `13631488`.
         * 
         * @return builder
         * 
         */
        public Builder privateMemoryKb(@Nullable Output<Integer> privateMemoryKb) {
            $.privateMemoryKb = privateMemoryKb;
            return this;
        }

        /**
         * @param privateMemoryKb The amount of Private Memory to be consumed for this rule to trigger. Possible values are between `102400` and `13631488`.
         * 
         * @return builder
         * 
         */
        public Builder privateMemoryKb(Integer privateMemoryKb) {
            return privateMemoryKb(Output.of(privateMemoryKb));
        }

        /**
         * @param requests A `requests` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder requests(@Nullable Output<WindowsWebAppSlotSiteConfigAutoHealSettingTriggerRequestsArgs> requests) {
            $.requests = requests;
            return this;
        }

        /**
         * @param requests A `requests` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder requests(WindowsWebAppSlotSiteConfigAutoHealSettingTriggerRequestsArgs requests) {
            return requests(Output.of(requests));
        }

        /**
         * @param slowRequests One or more `slow_request` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder slowRequests(@Nullable Output<List<WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs>> slowRequests) {
            $.slowRequests = slowRequests;
            return this;
        }

        /**
         * @param slowRequests One or more `slow_request` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder slowRequests(List<WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs> slowRequests) {
            return slowRequests(Output.of(slowRequests));
        }

        /**
         * @param slowRequests One or more `slow_request` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder slowRequests(WindowsWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestArgs... slowRequests) {
            return slowRequests(List.of(slowRequests));
        }

        /**
         * @param statusCodes One or more `status_code` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder statusCodes(@Nullable Output<List<WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs>> statusCodes) {
            $.statusCodes = statusCodes;
            return this;
        }

        /**
         * @param statusCodes One or more `status_code` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder statusCodes(List<WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs> statusCodes) {
            return statusCodes(Output.of(statusCodes));
        }

        /**
         * @param statusCodes One or more `status_code` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder statusCodes(WindowsWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeArgs... statusCodes) {
            return statusCodes(List.of(statusCodes));
        }

        public WindowsWebAppSlotSiteConfigAutoHealSettingTriggerArgs build() {
            return $;
        }
    }

}
