// *** 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.outputs;

import com.pulumi.azure.appservice.outputs.LinuxWebAppSlotSiteConfigAutoHealSettingAction;
import com.pulumi.azure.appservice.outputs.LinuxWebAppSlotSiteConfigAutoHealSettingTrigger;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class LinuxWebAppSlotSiteConfigAutoHealSetting {
    /**
     * @return A `action` block as defined above.
     * 
     */
    private @Nullable LinuxWebAppSlotSiteConfigAutoHealSettingAction action;
    /**
     * @return A `trigger` block as defined below.
     * 
     */
    private @Nullable LinuxWebAppSlotSiteConfigAutoHealSettingTrigger trigger;

    private LinuxWebAppSlotSiteConfigAutoHealSetting() {}
    /**
     * @return A `action` block as defined above.
     * 
     */
    public Optional<LinuxWebAppSlotSiteConfigAutoHealSettingAction> action() {
        return Optional.ofNullable(this.action);
    }
    /**
     * @return A `trigger` block as defined below.
     * 
     */
    public Optional<LinuxWebAppSlotSiteConfigAutoHealSettingTrigger> trigger() {
        return Optional.ofNullable(this.trigger);
    }

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

    public static Builder builder(LinuxWebAppSlotSiteConfigAutoHealSetting defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable LinuxWebAppSlotSiteConfigAutoHealSettingAction action;
        private @Nullable LinuxWebAppSlotSiteConfigAutoHealSettingTrigger trigger;
        public Builder() {}
        public Builder(LinuxWebAppSlotSiteConfigAutoHealSetting defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.action = defaults.action;
    	      this.trigger = defaults.trigger;
        }

        @CustomType.Setter
        public Builder action(@Nullable LinuxWebAppSlotSiteConfigAutoHealSettingAction action) {
            this.action = action;
            return this;
        }
        @CustomType.Setter
        public Builder trigger(@Nullable LinuxWebAppSlotSiteConfigAutoHealSettingTrigger trigger) {
            this.trigger = trigger;
            return this;
        }
        public LinuxWebAppSlotSiteConfigAutoHealSetting build() {
            final var o = new LinuxWebAppSlotSiteConfigAutoHealSetting();
            o.action = action;
            o.trigger = trigger;
            return o;
        }
    }
}
