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

com.pulumi.azurenative.insights.kotlin.inputs.EmailNotificationArgs.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.insights.kotlin.inputs

import com.pulumi.azurenative.insights.inputs.EmailNotificationArgs.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

/**
 * Email notification of an autoscale event.
 * @property customEmails the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
 * @property sendToSubscriptionAdministrator a value indicating whether to send email to subscription administrator.
 * @property sendToSubscriptionCoAdministrators a value indicating whether to send email to subscription co-administrators.
 */
public data class EmailNotificationArgs(
    public val customEmails: Output>? = null,
    public val sendToSubscriptionAdministrator: Output? = null,
    public val sendToSubscriptionCoAdministrators: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.insights.inputs.EmailNotificationArgs =
        com.pulumi.azurenative.insights.inputs.EmailNotificationArgs.builder()
            .customEmails(customEmails?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sendToSubscriptionAdministrator(sendToSubscriptionAdministrator?.applyValue({ args0 -> args0 }))
            .sendToSubscriptionCoAdministrators(
                sendToSubscriptionCoAdministrators?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

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

    private var sendToSubscriptionAdministrator: Output? = null

    private var sendToSubscriptionCoAdministrators: Output? = null

    /**
     * @param value the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
     */
    @JvmName("hpmmuytclmtilxfc")
    public suspend fun customEmails(`value`: Output>) {
        this.customEmails = value
    }

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

    /**
     * @param values the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
     */
    @JvmName("ubuxoyqemxcrtunx")
    public suspend fun customEmails(values: List>) {
        this.customEmails = Output.all(values)
    }

    /**
     * @param value a value indicating whether to send email to subscription administrator.
     */
    @JvmName("cyidpkwcokumqbne")
    public suspend fun sendToSubscriptionAdministrator(`value`: Output) {
        this.sendToSubscriptionAdministrator = value
    }

    /**
     * @param value a value indicating whether to send email to subscription co-administrators.
     */
    @JvmName("doblgwmqmwalopcs")
    public suspend fun sendToSubscriptionCoAdministrators(`value`: Output) {
        this.sendToSubscriptionCoAdministrators = value
    }

    /**
     * @param value the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
     */
    @JvmName("vylfijmbpeibpvev")
    public suspend fun customEmails(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customEmails = mapped
    }

    /**
     * @param values the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
     */
    @JvmName("yswlmcetsxnuynix")
    public suspend fun customEmails(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customEmails = mapped
    }

    /**
     * @param value a value indicating whether to send email to subscription administrator.
     */
    @JvmName("qpremqtsausfearb")
    public suspend fun sendToSubscriptionAdministrator(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sendToSubscriptionAdministrator = mapped
    }

    /**
     * @param value a value indicating whether to send email to subscription co-administrators.
     */
    @JvmName("gmcobkptwsgxeaun")
    public suspend fun sendToSubscriptionCoAdministrators(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sendToSubscriptionCoAdministrators = mapped
    }

    internal fun build(): EmailNotificationArgs = EmailNotificationArgs(
        customEmails = customEmails,
        sendToSubscriptionAdministrator = sendToSubscriptionAdministrator,
        sendToSubscriptionCoAdministrators = sendToSubscriptionCoAdministrators,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy