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

com.pulumi.azurenative.devtestlab.NotificationChannelArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.devtestlab.inputs.EventArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NotificationChannelArgs Empty = new NotificationChannelArgs();

    /**
     * Description of notification.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of notification.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
     * 
     */
    @Import(name="emailRecipient")
    private @Nullable Output emailRecipient;

    /**
     * @return The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
     * 
     */
    public Optional> emailRecipient() {
        return Optional.ofNullable(this.emailRecipient);
    }

    /**
     * The list of event for which this notification is enabled.
     * 
     */
    @Import(name="events")
    private @Nullable Output> events;

    /**
     * @return The list of event for which this notification is enabled.
     * 
     */
    public Optional>> events() {
        return Optional.ofNullable(this.events);
    }

    /**
     * The name of the lab.
     * 
     */
    @Import(name="labName", required=true)
    private Output labName;

    /**
     * @return The name of the lab.
     * 
     */
    public Output labName() {
        return this.labName;
    }

    /**
     * The location of the resource.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The location of the resource.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name of the notification channel.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the notification channel.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The locale to use when sending a notification (fallback for unsupported languages is EN).
     * 
     */
    @Import(name="notificationLocale")
    private @Nullable Output notificationLocale;

    /**
     * @return The locale to use when sending a notification (fallback for unsupported languages is EN).
     * 
     */
    public Optional> notificationLocale() {
        return Optional.ofNullable(this.notificationLocale);
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The tags of the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The tags of the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The webhook URL to send notifications to.
     * 
     */
    @Import(name="webHookUrl")
    private @Nullable Output webHookUrl;

    /**
     * @return The webhook URL to send notifications to.
     * 
     */
    public Optional> webHookUrl() {
        return Optional.ofNullable(this.webHookUrl);
    }

    private NotificationChannelArgs() {}

    private NotificationChannelArgs(NotificationChannelArgs $) {
        this.description = $.description;
        this.emailRecipient = $.emailRecipient;
        this.events = $.events;
        this.labName = $.labName;
        this.location = $.location;
        this.name = $.name;
        this.notificationLocale = $.notificationLocale;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.webHookUrl = $.webHookUrl;
    }

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

    public static final class Builder {
        private NotificationChannelArgs $;

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

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

        /**
         * @param description Description of notification.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of notification.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param emailRecipient The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
         * 
         * @return builder
         * 
         */
        public Builder emailRecipient(@Nullable Output emailRecipient) {
            $.emailRecipient = emailRecipient;
            return this;
        }

        /**
         * @param emailRecipient The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
         * 
         * @return builder
         * 
         */
        public Builder emailRecipient(String emailRecipient) {
            return emailRecipient(Output.of(emailRecipient));
        }

        /**
         * @param events The list of event for which this notification is enabled.
         * 
         * @return builder
         * 
         */
        public Builder events(@Nullable Output> events) {
            $.events = events;
            return this;
        }

        /**
         * @param events The list of event for which this notification is enabled.
         * 
         * @return builder
         * 
         */
        public Builder events(List events) {
            return events(Output.of(events));
        }

        /**
         * @param events The list of event for which this notification is enabled.
         * 
         * @return builder
         * 
         */
        public Builder events(EventArgs... events) {
            return events(List.of(events));
        }

        /**
         * @param labName The name of the lab.
         * 
         * @return builder
         * 
         */
        public Builder labName(Output labName) {
            $.labName = labName;
            return this;
        }

        /**
         * @param labName The name of the lab.
         * 
         * @return builder
         * 
         */
        public Builder labName(String labName) {
            return labName(Output.of(labName));
        }

        /**
         * @param location The location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name The name of the notification channel.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the notification channel.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param notificationLocale The locale to use when sending a notification (fallback for unsupported languages is EN).
         * 
         * @return builder
         * 
         */
        public Builder notificationLocale(@Nullable Output notificationLocale) {
            $.notificationLocale = notificationLocale;
            return this;
        }

        /**
         * @param notificationLocale The locale to use when sending a notification (fallback for unsupported languages is EN).
         * 
         * @return builder
         * 
         */
        public Builder notificationLocale(String notificationLocale) {
            return notificationLocale(Output.of(notificationLocale));
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags The tags of the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags The tags of the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param webHookUrl The webhook URL to send notifications to.
         * 
         * @return builder
         * 
         */
        public Builder webHookUrl(@Nullable Output webHookUrl) {
            $.webHookUrl = webHookUrl;
            return this;
        }

        /**
         * @param webHookUrl The webhook URL to send notifications to.
         * 
         * @return builder
         * 
         */
        public Builder webHookUrl(String webHookUrl) {
            return webHookUrl(Output.of(webHookUrl));
        }

        public NotificationChannelArgs build() {
            if ($.labName == null) {
                throw new MissingRequiredPropertyException("NotificationChannelArgs", "labName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("NotificationChannelArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy