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

com.pulumi.azure.domainservices.kotlin.inputs.ServiceNotificationsArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.domainservices.kotlin.inputs

import com.pulumi.azure.domainservices.inputs.ServiceNotificationsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property additionalRecipients A list of additional email addresses to notify when there are alerts in the managed domain.
 * @property notifyDcAdmins Whether to notify members of the _AAD DC Administrators_ group when there are alerts in the managed domain.
 * @property notifyGlobalAdmins Whether to notify all Global Administrators when there are alerts in the managed domain.
 */
public data class ServiceNotificationsArgs(
    public val additionalRecipients: Output>? = null,
    public val notifyDcAdmins: Output? = null,
    public val notifyGlobalAdmins: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.domainservices.inputs.ServiceNotificationsArgs =
        com.pulumi.azure.domainservices.inputs.ServiceNotificationsArgs.builder()
            .additionalRecipients(additionalRecipients?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .notifyDcAdmins(notifyDcAdmins?.applyValue({ args0 -> args0 }))
            .notifyGlobalAdmins(notifyGlobalAdmins?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceNotificationsArgs].
 */
@PulumiTagMarker
public class ServiceNotificationsArgsBuilder internal constructor() {
    private var additionalRecipients: Output>? = null

    private var notifyDcAdmins: Output? = null

    private var notifyGlobalAdmins: Output? = null

    /**
     * @param value A list of additional email addresses to notify when there are alerts in the managed domain.
     */
    @JvmName("yvnqloemidfukmmp")
    public suspend fun additionalRecipients(`value`: Output>) {
        this.additionalRecipients = value
    }

    @JvmName("rfwiswfpcbfftiag")
    public suspend fun additionalRecipients(vararg values: Output) {
        this.additionalRecipients = Output.all(values.asList())
    }

    /**
     * @param values A list of additional email addresses to notify when there are alerts in the managed domain.
     */
    @JvmName("hnpegvqiuwgnhbcy")
    public suspend fun additionalRecipients(values: List>) {
        this.additionalRecipients = Output.all(values)
    }

    /**
     * @param value Whether to notify members of the _AAD DC Administrators_ group when there are alerts in the managed domain.
     */
    @JvmName("yxddvbasuhkihkur")
    public suspend fun notifyDcAdmins(`value`: Output) {
        this.notifyDcAdmins = value
    }

    /**
     * @param value Whether to notify all Global Administrators when there are alerts in the managed domain.
     */
    @JvmName("ajkvomhqnkjqphvk")
    public suspend fun notifyGlobalAdmins(`value`: Output) {
        this.notifyGlobalAdmins = value
    }

    /**
     * @param value A list of additional email addresses to notify when there are alerts in the managed domain.
     */
    @JvmName("psdpkuagnyvkuuhw")
    public suspend fun additionalRecipients(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalRecipients = mapped
    }

    /**
     * @param values A list of additional email addresses to notify when there are alerts in the managed domain.
     */
    @JvmName("ewtvulevlsxmkgnm")
    public suspend fun additionalRecipients(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalRecipients = mapped
    }

    /**
     * @param value Whether to notify members of the _AAD DC Administrators_ group when there are alerts in the managed domain.
     */
    @JvmName("nexeqfjjmijcpxcc")
    public suspend fun notifyDcAdmins(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notifyDcAdmins = mapped
    }

    /**
     * @param value Whether to notify all Global Administrators when there are alerts in the managed domain.
     */
    @JvmName("trxhrxqpvdvwbyuc")
    public suspend fun notifyGlobalAdmins(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notifyGlobalAdmins = mapped
    }

    internal fun build(): ServiceNotificationsArgs = ServiceNotificationsArgs(
        additionalRecipients = additionalRecipients,
        notifyDcAdmins = notifyDcAdmins,
        notifyGlobalAdmins = notifyGlobalAdmins,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy