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

com.pulumi.azure.monitoring.inputs.AutoscaleSettingNotificationArgs 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.10.0-alpha.1731737215
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.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 email;

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

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

    /**
     * @return One or more `webhook` blocks as defined below.
     * 
     */
    public Optional>> 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 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> webhooks) {
            $.webhooks = webhooks;
            return this;
        }

        /**
         * @param webhooks One or more `webhook` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder webhooks(List 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 $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy