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

import com.pulumi.azure.monitoring.inputs.AutoscaleSettingNotificationEmailArgs;
import com.pulumi.azure.monitoring.inputs.AutoscaleSettingNotificationWebhookArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AutoscaleSettingNotificationArgs Empty = new AutoscaleSettingNotificationArgs();

    /**
     * A `email` block as defined below.
     * 
     */
    @Import(name="email")
    private @Nullable Output<AutoscaleSettingNotificationEmailArgs> email;

    /**
     * @return A `email` block as defined below.
     * 
     */
    public Optional<Output<AutoscaleSettingNotificationEmailArgs>> email() {
        return Optional.ofNullable(this.email);
    }

    /**
     * One or more `webhook` blocks as defined below.
     * 
     */
    @Import(name="webhooks")
    private @Nullable Output<List<AutoscaleSettingNotificationWebhookArgs>> webhooks;

    /**
     * @return One or more `webhook` blocks as defined below.
     * 
     */
    public Optional<Output<List<AutoscaleSettingNotificationWebhookArgs>>> webhooks() {
        return Optional.ofNullable(this.webhooks);
    }

    private AutoscaleSettingNotificationArgs() {}

    private AutoscaleSettingNotificationArgs(AutoscaleSettingNotificationArgs $) {
        this.email = $.email;
        this.webhooks = $.webhooks;
    }

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

    public static final class Builder {
        private AutoscaleSettingNotificationArgs $;

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

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

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

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

        /**
         * @param webhooks One or more `webhook` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder webhooks(@Nullable Output<List<AutoscaleSettingNotificationWebhookArgs>> webhooks) {
            $.webhooks = webhooks;
            return this;
        }

        /**
         * @param webhooks One or more `webhook` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder webhooks(List<AutoscaleSettingNotificationWebhookArgs> webhooks) {
            return webhooks(Output.of(webhooks));
        }

        /**
         * @param webhooks One or more `webhook` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder webhooks(AutoscaleSettingNotificationWebhookArgs... webhooks) {
            return webhooks(List.of(webhooks));
        }

        public AutoscaleSettingNotificationArgs build() {
            return $;
        }
    }

}
