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

com.pulumi.azurenative.aad.kotlin.inputs.NotificationSettingsArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.aad.kotlin.inputs

import com.pulumi.azurenative.aad.inputs.NotificationSettingsArgs.builder
import com.pulumi.azurenative.aad.kotlin.enums.NotifyDcAdmins
import com.pulumi.azurenative.aad.kotlin.enums.NotifyGlobalAdmins
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Settings for notification
 * @property additionalRecipients The list of additional recipients
 * @property notifyDcAdmins Should domain controller admins be notified
 * @property notifyGlobalAdmins Should global admins be notified
 */
public data class NotificationSettingsArgs(
    public val additionalRecipients: Output>? = null,
    public val notifyDcAdmins: Output>? = null,
    public val notifyGlobalAdmins: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.aad.inputs.NotificationSettingsArgs =
        com.pulumi.azurenative.aad.inputs.NotificationSettingsArgs.builder()
            .additionalRecipients(additionalRecipients?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .notifyDcAdmins(
                notifyDcAdmins?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .notifyGlobalAdmins(
                notifyGlobalAdmins?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            ).build()
}

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

    private var notifyDcAdmins: Output>? = null

    private var notifyGlobalAdmins: Output>? = null

    /**
     * @param value The list of additional recipients
     */
    @JvmName("dcomecpdusnmfndd")
    public suspend fun additionalRecipients(`value`: Output>) {
        this.additionalRecipients = value
    }

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

    /**
     * @param values The list of additional recipients
     */
    @JvmName("ovtaroidbhhohsxm")
    public suspend fun additionalRecipients(values: List>) {
        this.additionalRecipients = Output.all(values)
    }

    /**
     * @param value Should domain controller admins be notified
     */
    @JvmName("qsdmxnhentgnmevu")
    public suspend fun notifyDcAdmins(`value`: Output>) {
        this.notifyDcAdmins = value
    }

    /**
     * @param value Should global admins be notified
     */
    @JvmName("uncwndwvghogukdr")
    public suspend fun notifyGlobalAdmins(`value`: Output>) {
        this.notifyGlobalAdmins = value
    }

    /**
     * @param value The list of additional recipients
     */
    @JvmName("vbpjedttjnsncxgc")
    public suspend fun additionalRecipients(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalRecipients = mapped
    }

    /**
     * @param values The list of additional recipients
     */
    @JvmName("toiwybhkwbewptgh")
    public suspend fun additionalRecipients(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalRecipients = mapped
    }

    /**
     * @param value Should domain controller admins be notified
     */
    @JvmName("uedagdsvpjcinwyh")
    public suspend fun notifyDcAdmins(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notifyDcAdmins = mapped
    }

    /**
     * @param value Should domain controller admins be notified
     */
    @JvmName("drxcatayvqqvqcor")
    public fun notifyDcAdmins(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.notifyDcAdmins = mapped
    }

    /**
     * @param value Should domain controller admins be notified
     */
    @JvmName("oeinkgdtonpirdjk")
    public fun notifyDcAdmins(`value`: NotifyDcAdmins) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.notifyDcAdmins = mapped
    }

    /**
     * @param value Should global admins be notified
     */
    @JvmName("xwntlrqkkxwpbxgt")
    public suspend fun notifyGlobalAdmins(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notifyGlobalAdmins = mapped
    }

    /**
     * @param value Should global admins be notified
     */
    @JvmName("gkudkbwbtndkcyqx")
    public fun notifyGlobalAdmins(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.notifyGlobalAdmins = mapped
    }

    /**
     * @param value Should global admins be notified
     */
    @JvmName("bcjxpqwnmlqbyghh")
    public fun notifyGlobalAdmins(`value`: NotifyGlobalAdmins) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.notifyGlobalAdmins = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy