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

com.pulumi.azure.monitoring.kotlin.inputs.AutoscaleSettingNotificationEmailArgs.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.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.AutoscaleSettingNotificationEmailArgs.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 customEmails Specifies a list of custom email addresses to which the email notifications will be sent.
 * @property sendToSubscriptionAdministrator Should email notifications be sent to the subscription administrator? Defaults to `false`.
 * @property sendToSubscriptionCoAdministrator Should email notifications be sent to the subscription co-administrator? Defaults to `false`.
 */
public data class AutoscaleSettingNotificationEmailArgs(
    public val customEmails: Output>? = null,
    public val sendToSubscriptionAdministrator: Output? = null,
    public val sendToSubscriptionCoAdministrator: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.AutoscaleSettingNotificationEmailArgs =
        com.pulumi.azure.monitoring.inputs.AutoscaleSettingNotificationEmailArgs.builder()
            .customEmails(customEmails?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sendToSubscriptionAdministrator(sendToSubscriptionAdministrator?.applyValue({ args0 -> args0 }))
            .sendToSubscriptionCoAdministrator(
                sendToSubscriptionCoAdministrator?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

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

    private var sendToSubscriptionAdministrator: Output? = null

    private var sendToSubscriptionCoAdministrator: Output? = null

    /**
     * @param value Specifies a list of custom email addresses to which the email notifications will be sent.
     */
    @JvmName("vqllerjwxemtjpwd")
    public suspend fun customEmails(`value`: Output>) {
        this.customEmails = value
    }

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

    /**
     * @param values Specifies a list of custom email addresses to which the email notifications will be sent.
     */
    @JvmName("avvgyxtmvqgtcylw")
    public suspend fun customEmails(values: List>) {
        this.customEmails = Output.all(values)
    }

    /**
     * @param value Should email notifications be sent to the subscription administrator? Defaults to `false`.
     */
    @JvmName("irstdpupnlyastvx")
    public suspend fun sendToSubscriptionAdministrator(`value`: Output) {
        this.sendToSubscriptionAdministrator = value
    }

    /**
     * @param value Should email notifications be sent to the subscription co-administrator? Defaults to `false`.
     */
    @JvmName("ncthcyvkejmgagoy")
    public suspend fun sendToSubscriptionCoAdministrator(`value`: Output) {
        this.sendToSubscriptionCoAdministrator = value
    }

    /**
     * @param value Specifies a list of custom email addresses to which the email notifications will be sent.
     */
    @JvmName("qomlnlxvdfaqnmwb")
    public suspend fun customEmails(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customEmails = mapped
    }

    /**
     * @param values Specifies a list of custom email addresses to which the email notifications will be sent.
     */
    @JvmName("garwbwnikxdexali")
    public suspend fun customEmails(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customEmails = mapped
    }

    /**
     * @param value Should email notifications be sent to the subscription administrator? Defaults to `false`.
     */
    @JvmName("mopljjulfvqvplct")
    public suspend fun sendToSubscriptionAdministrator(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sendToSubscriptionAdministrator = mapped
    }

    /**
     * @param value Should email notifications be sent to the subscription co-administrator? Defaults to `false`.
     */
    @JvmName("oeddngifdugbkxnf")
    public suspend fun sendToSubscriptionCoAdministrator(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sendToSubscriptionCoAdministrator = mapped
    }

    internal fun build(): AutoscaleSettingNotificationEmailArgs =
        AutoscaleSettingNotificationEmailArgs(
            customEmails = customEmails,
            sendToSubscriptionAdministrator = sendToSubscriptionAdministrator,
            sendToSubscriptionCoAdministrator = sendToSubscriptionCoAdministrator,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy