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

com.pulumi.azure.appservice.inputs.LinuxWebAppSiteConfigAutoHealSettingActionArgs 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.appservice.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 LinuxWebAppSiteConfigAutoHealSettingActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final LinuxWebAppSiteConfigAutoHealSettingActionArgs Empty = new LinuxWebAppSiteConfigAutoHealSettingActionArgs();

    /**
     * Predefined action to be taken to an Auto Heal trigger. Possible values include: `Recycle`.
     * 
     */
    @Import(name="actionType", required=true)
    private Output actionType;

    /**
     * @return Predefined action to be taken to an Auto Heal trigger. Possible values include: `Recycle`.
     * 
     */
    public Output actionType() {
        return this.actionType;
    }

    /**
     * The minimum amount of time in `hh:mm:ss` the Linux Web App must have been running before the defined action will be run in the event of a trigger.
     * 
     */
    @Import(name="minimumProcessExecutionTime")
    private @Nullable Output minimumProcessExecutionTime;

    /**
     * @return The minimum amount of time in `hh:mm:ss` the Linux Web App must have been running before the defined action will be run in the event of a trigger.
     * 
     */
    public Optional> minimumProcessExecutionTime() {
        return Optional.ofNullable(this.minimumProcessExecutionTime);
    }

    private LinuxWebAppSiteConfigAutoHealSettingActionArgs() {}

    private LinuxWebAppSiteConfigAutoHealSettingActionArgs(LinuxWebAppSiteConfigAutoHealSettingActionArgs $) {
        this.actionType = $.actionType;
        this.minimumProcessExecutionTime = $.minimumProcessExecutionTime;
    }

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

    public static final class Builder {
        private LinuxWebAppSiteConfigAutoHealSettingActionArgs $;

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

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

        /**
         * @param actionType Predefined action to be taken to an Auto Heal trigger. Possible values include: `Recycle`.
         * 
         * @return builder
         * 
         */
        public Builder actionType(Output actionType) {
            $.actionType = actionType;
            return this;
        }

        /**
         * @param actionType Predefined action to be taken to an Auto Heal trigger. Possible values include: `Recycle`.
         * 
         * @return builder
         * 
         */
        public Builder actionType(String actionType) {
            return actionType(Output.of(actionType));
        }

        /**
         * @param minimumProcessExecutionTime The minimum amount of time in `hh:mm:ss` the Linux Web App must have been running before the defined action will be run in the event of a trigger.
         * 
         * @return builder
         * 
         */
        public Builder minimumProcessExecutionTime(@Nullable Output minimumProcessExecutionTime) {
            $.minimumProcessExecutionTime = minimumProcessExecutionTime;
            return this;
        }

        /**
         * @param minimumProcessExecutionTime The minimum amount of time in `hh:mm:ss` the Linux Web App must have been running before the defined action will be run in the event of a trigger.
         * 
         * @return builder
         * 
         */
        public Builder minimumProcessExecutionTime(String minimumProcessExecutionTime) {
            return minimumProcessExecutionTime(Output.of(minimumProcessExecutionTime));
        }

        public LinuxWebAppSiteConfigAutoHealSettingActionArgs build() {
            if ($.actionType == null) {
                throw new MissingRequiredPropertyException("LinuxWebAppSiteConfigAutoHealSettingActionArgs", "actionType");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy