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

com.pulumi.azurenative.machinelearningservices.inputs.NotificationSettingArgs 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.machinelearningservices.inputs;

import com.pulumi.azurenative.machinelearningservices.enums.EmailNotificationEnableType;
import com.pulumi.azurenative.machinelearningservices.inputs.AzureDevOpsWebhookArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Configuration for notification.
 * 
 */
public final class NotificationSettingArgs extends com.pulumi.resources.ResourceArgs {

    public static final NotificationSettingArgs Empty = new NotificationSettingArgs();

    /**
     * Send email notification to user on specified notification type
     * 
     */
    @Import(name="emailOn")
    private @Nullable Output>> emailOn;

    /**
     * @return Send email notification to user on specified notification type
     * 
     */
    public Optional>>> emailOn() {
        return Optional.ofNullable(this.emailOn);
    }

    /**
     * This is the email recipient list which has a limitation of 499 characters in total concat with comma separator
     * 
     */
    @Import(name="emails")
    private @Nullable Output> emails;

    /**
     * @return This is the email recipient list which has a limitation of 499 characters in total concat with comma separator
     * 
     */
    public Optional>> emails() {
        return Optional.ofNullable(this.emails);
    }

    /**
     * Send webhook callback to a service. Key is a user-provided name for the webhook.
     * 
     */
    @Import(name="webhooks")
    private @Nullable Output> webhooks;

    /**
     * @return Send webhook callback to a service. Key is a user-provided name for the webhook.
     * 
     */
    public Optional>> webhooks() {
        return Optional.ofNullable(this.webhooks);
    }

    private NotificationSettingArgs() {}

    private NotificationSettingArgs(NotificationSettingArgs $) {
        this.emailOn = $.emailOn;
        this.emails = $.emails;
        this.webhooks = $.webhooks;
    }

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

    public static final class Builder {
        private NotificationSettingArgs $;

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

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

        /**
         * @param emailOn Send email notification to user on specified notification type
         * 
         * @return builder
         * 
         */
        public Builder emailOn(@Nullable Output>> emailOn) {
            $.emailOn = emailOn;
            return this;
        }

        /**
         * @param emailOn Send email notification to user on specified notification type
         * 
         * @return builder
         * 
         */
        public Builder emailOn(List> emailOn) {
            return emailOn(Output.of(emailOn));
        }

        /**
         * @param emailOn Send email notification to user on specified notification type
         * 
         * @return builder
         * 
         */
        public Builder emailOn(Either... emailOn) {
            return emailOn(List.of(emailOn));
        }

        /**
         * @param emails This is the email recipient list which has a limitation of 499 characters in total concat with comma separator
         * 
         * @return builder
         * 
         */
        public Builder emails(@Nullable Output> emails) {
            $.emails = emails;
            return this;
        }

        /**
         * @param emails This is the email recipient list which has a limitation of 499 characters in total concat with comma separator
         * 
         * @return builder
         * 
         */
        public Builder emails(List emails) {
            return emails(Output.of(emails));
        }

        /**
         * @param emails This is the email recipient list which has a limitation of 499 characters in total concat with comma separator
         * 
         * @return builder
         * 
         */
        public Builder emails(String... emails) {
            return emails(List.of(emails));
        }

        /**
         * @param webhooks Send webhook callback to a service. Key is a user-provided name for the webhook.
         * 
         * @return builder
         * 
         */
        public Builder webhooks(@Nullable Output> webhooks) {
            $.webhooks = webhooks;
            return this;
        }

        /**
         * @param webhooks Send webhook callback to a service. Key is a user-provided name for the webhook.
         * 
         * @return builder
         * 
         */
        public Builder webhooks(Map webhooks) {
            return webhooks(Output.of(webhooks));
        }

        public NotificationSettingArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy