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

com.pulumi.azurenative.aad.inputs.NotificationSettingsArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.aad.inputs;

import com.pulumi.azurenative.aad.enums.NotifyDcAdmins;
import com.pulumi.azurenative.aad.enums.NotifyGlobalAdmins;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Settings for notification
 * 
 */
public final class NotificationSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final NotificationSettingsArgs Empty = new NotificationSettingsArgs();

    /**
     * The list of additional recipients
     * 
     */
    @Import(name="additionalRecipients")
    private @Nullable Output> additionalRecipients;

    /**
     * @return The list of additional recipients
     * 
     */
    public Optional>> additionalRecipients() {
        return Optional.ofNullable(this.additionalRecipients);
    }

    /**
     * Should domain controller admins be notified
     * 
     */
    @Import(name="notifyDcAdmins")
    private @Nullable Output> notifyDcAdmins;

    /**
     * @return Should domain controller admins be notified
     * 
     */
    public Optional>> notifyDcAdmins() {
        return Optional.ofNullable(this.notifyDcAdmins);
    }

    /**
     * Should global admins be notified
     * 
     */
    @Import(name="notifyGlobalAdmins")
    private @Nullable Output> notifyGlobalAdmins;

    /**
     * @return Should global admins be notified
     * 
     */
    public Optional>> notifyGlobalAdmins() {
        return Optional.ofNullable(this.notifyGlobalAdmins);
    }

    private NotificationSettingsArgs() {}

    private NotificationSettingsArgs(NotificationSettingsArgs $) {
        this.additionalRecipients = $.additionalRecipients;
        this.notifyDcAdmins = $.notifyDcAdmins;
        this.notifyGlobalAdmins = $.notifyGlobalAdmins;
    }

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

    public static final class Builder {
        private NotificationSettingsArgs $;

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

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

        /**
         * @param additionalRecipients The list of additional recipients
         * 
         * @return builder
         * 
         */
        public Builder additionalRecipients(@Nullable Output> additionalRecipients) {
            $.additionalRecipients = additionalRecipients;
            return this;
        }

        /**
         * @param additionalRecipients The list of additional recipients
         * 
         * @return builder
         * 
         */
        public Builder additionalRecipients(List additionalRecipients) {
            return additionalRecipients(Output.of(additionalRecipients));
        }

        /**
         * @param additionalRecipients The list of additional recipients
         * 
         * @return builder
         * 
         */
        public Builder additionalRecipients(String... additionalRecipients) {
            return additionalRecipients(List.of(additionalRecipients));
        }

        /**
         * @param notifyDcAdmins Should domain controller admins be notified
         * 
         * @return builder
         * 
         */
        public Builder notifyDcAdmins(@Nullable Output> notifyDcAdmins) {
            $.notifyDcAdmins = notifyDcAdmins;
            return this;
        }

        /**
         * @param notifyDcAdmins Should domain controller admins be notified
         * 
         * @return builder
         * 
         */
        public Builder notifyDcAdmins(Either notifyDcAdmins) {
            return notifyDcAdmins(Output.of(notifyDcAdmins));
        }

        /**
         * @param notifyDcAdmins Should domain controller admins be notified
         * 
         * @return builder
         * 
         */
        public Builder notifyDcAdmins(String notifyDcAdmins) {
            return notifyDcAdmins(Either.ofLeft(notifyDcAdmins));
        }

        /**
         * @param notifyDcAdmins Should domain controller admins be notified
         * 
         * @return builder
         * 
         */
        public Builder notifyDcAdmins(NotifyDcAdmins notifyDcAdmins) {
            return notifyDcAdmins(Either.ofRight(notifyDcAdmins));
        }

        /**
         * @param notifyGlobalAdmins Should global admins be notified
         * 
         * @return builder
         * 
         */
        public Builder notifyGlobalAdmins(@Nullable Output> notifyGlobalAdmins) {
            $.notifyGlobalAdmins = notifyGlobalAdmins;
            return this;
        }

        /**
         * @param notifyGlobalAdmins Should global admins be notified
         * 
         * @return builder
         * 
         */
        public Builder notifyGlobalAdmins(Either notifyGlobalAdmins) {
            return notifyGlobalAdmins(Output.of(notifyGlobalAdmins));
        }

        /**
         * @param notifyGlobalAdmins Should global admins be notified
         * 
         * @return builder
         * 
         */
        public Builder notifyGlobalAdmins(String notifyGlobalAdmins) {
            return notifyGlobalAdmins(Either.ofLeft(notifyGlobalAdmins));
        }

        /**
         * @param notifyGlobalAdmins Should global admins be notified
         * 
         * @return builder
         * 
         */
        public Builder notifyGlobalAdmins(NotifyGlobalAdmins notifyGlobalAdmins) {
            return notifyGlobalAdmins(Either.ofRight(notifyGlobalAdmins));
        }

        public NotificationSettingsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy