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

com.pulumi.azure.appservice.inputs.WindowsWebAppSiteConfigAutoHealSettingActionArgs 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.15.0
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.azure.appservice.inputs.WindowsWebAppSiteConfigAutoHealSettingActionCustomActionArgs;
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 WindowsWebAppSiteConfigAutoHealSettingActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final WindowsWebAppSiteConfigAutoHealSettingActionArgs Empty = new WindowsWebAppSiteConfigAutoHealSettingActionArgs();

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

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

    /**
     * A `custom_action` block as defined below.
     * 
     */
    @Import(name="customAction")
    private @Nullable Output customAction;

    /**
     * @return A `custom_action` block as defined below.
     * 
     */
    public Optional> customAction() {
        return Optional.ofNullable(this.customAction);
    }

    /**
     * The minimum amount of time in `hh:mm:ss` the Windows 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 Windows 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 WindowsWebAppSiteConfigAutoHealSettingActionArgs() {}

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

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

    public static final class Builder {
        private WindowsWebAppSiteConfigAutoHealSettingActionArgs $;

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

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

        /**
         * @param actionType Predefined action to be taken to an Auto Heal trigger. Possible values include: `Recycle`, `LogEvent`, and `CustomAction`.
         * 
         * @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`, `LogEvent`, and `CustomAction`.
         * 
         * @return builder
         * 
         */
        public Builder actionType(String actionType) {
            return actionType(Output.of(actionType));
        }

        /**
         * @param customAction A `custom_action` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder customAction(@Nullable Output customAction) {
            $.customAction = customAction;
            return this;
        }

        /**
         * @param customAction A `custom_action` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder customAction(WindowsWebAppSiteConfigAutoHealSettingActionCustomActionArgs customAction) {
            return customAction(Output.of(customAction));
        }

        /**
         * @param minimumProcessExecutionTime The minimum amount of time in `hh:mm:ss` the Windows 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 Windows 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 WindowsWebAppSiteConfigAutoHealSettingActionArgs build() {
            if ($.actionType == null) {
                throw new MissingRequiredPropertyException("WindowsWebAppSiteConfigAutoHealSettingActionArgs", "actionType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy