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

com.pulumi.azurenative.web.inputs.AutoHealRulesArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.azurenative.web.inputs;

import com.pulumi.azurenative.web.inputs.AutoHealActionsArgs;
import com.pulumi.azurenative.web.inputs.AutoHealTriggersArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Rules that can be defined for auto-heal.
 * 
 */
public final class AutoHealRulesArgs extends com.pulumi.resources.ResourceArgs {

    public static final AutoHealRulesArgs Empty = new AutoHealRulesArgs();

    /**
     * Actions to be executed when a rule is triggered.
     * 
     */
    @Import(name="actions")
    private @Nullable Output actions;

    /**
     * @return Actions to be executed when a rule is triggered.
     * 
     */
    public Optional> actions() {
        return Optional.ofNullable(this.actions);
    }

    /**
     * Conditions that describe when to execute the auto-heal actions.
     * 
     */
    @Import(name="triggers")
    private @Nullable Output triggers;

    /**
     * @return Conditions that describe when to execute the auto-heal actions.
     * 
     */
    public Optional> triggers() {
        return Optional.ofNullable(this.triggers);
    }

    private AutoHealRulesArgs() {}

    private AutoHealRulesArgs(AutoHealRulesArgs $) {
        this.actions = $.actions;
        this.triggers = $.triggers;
    }

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

    public static final class Builder {
        private AutoHealRulesArgs $;

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

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

        /**
         * @param actions Actions to be executed when a rule is triggered.
         * 
         * @return builder
         * 
         */
        public Builder actions(@Nullable Output actions) {
            $.actions = actions;
            return this;
        }

        /**
         * @param actions Actions to be executed when a rule is triggered.
         * 
         * @return builder
         * 
         */
        public Builder actions(AutoHealActionsArgs actions) {
            return actions(Output.of(actions));
        }

        /**
         * @param triggers Conditions that describe when to execute the auto-heal actions.
         * 
         * @return builder
         * 
         */
        public Builder triggers(@Nullable Output triggers) {
            $.triggers = triggers;
            return this;
        }

        /**
         * @param triggers Conditions that describe when to execute the auto-heal actions.
         * 
         * @return builder
         * 
         */
        public Builder triggers(AutoHealTriggersArgs triggers) {
            return triggers(Output.of(triggers));
        }

        public AutoHealRulesArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy