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

com.pulumi.azure.domainservices.outputs.ServiceNotifications 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.domainservices.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ServiceNotifications {
    /**
     * @return A list of additional email addresses to notify when there are alerts in the managed domain.
     * 
     */
    private @Nullable List additionalRecipients;
    /**
     * @return Whether to notify members of the _AAD DC Administrators_ group when there are alerts in the managed domain.
     * 
     */
    private @Nullable Boolean notifyDcAdmins;
    /**
     * @return Whether to notify all Global Administrators when there are alerts in the managed domain.
     * 
     */
    private @Nullable Boolean notifyGlobalAdmins;

    private ServiceNotifications() {}
    /**
     * @return A list of additional email addresses to notify when there are alerts in the managed domain.
     * 
     */
    public List additionalRecipients() {
        return this.additionalRecipients == null ? List.of() : this.additionalRecipients;
    }
    /**
     * @return Whether to notify members of the _AAD DC Administrators_ group when there are alerts in the managed domain.
     * 
     */
    public Optional notifyDcAdmins() {
        return Optional.ofNullable(this.notifyDcAdmins);
    }
    /**
     * @return Whether to notify all Global Administrators when there are alerts in the managed domain.
     * 
     */
    public Optional notifyGlobalAdmins() {
        return Optional.ofNullable(this.notifyGlobalAdmins);
    }

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

    public static Builder builder(ServiceNotifications defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List additionalRecipients;
        private @Nullable Boolean notifyDcAdmins;
        private @Nullable Boolean notifyGlobalAdmins;
        public Builder() {}
        public Builder(ServiceNotifications defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.additionalRecipients = defaults.additionalRecipients;
    	      this.notifyDcAdmins = defaults.notifyDcAdmins;
    	      this.notifyGlobalAdmins = defaults.notifyGlobalAdmins;
        }

        @CustomType.Setter
        public Builder additionalRecipients(@Nullable List additionalRecipients) {

            this.additionalRecipients = additionalRecipients;
            return this;
        }
        public Builder additionalRecipients(String... additionalRecipients) {
            return additionalRecipients(List.of(additionalRecipients));
        }
        @CustomType.Setter
        public Builder notifyDcAdmins(@Nullable Boolean notifyDcAdmins) {

            this.notifyDcAdmins = notifyDcAdmins;
            return this;
        }
        @CustomType.Setter
        public Builder notifyGlobalAdmins(@Nullable Boolean notifyGlobalAdmins) {

            this.notifyGlobalAdmins = notifyGlobalAdmins;
            return this;
        }
        public ServiceNotifications build() {
            final var _resultValue = new ServiceNotifications();
            _resultValue.additionalRecipients = additionalRecipients;
            _resultValue.notifyDcAdmins = notifyDcAdmins;
            _resultValue.notifyGlobalAdmins = notifyGlobalAdmins;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy