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

com.pulumi.digitalocean.kotlin.inputs.MonitorAlertAlertsArgs.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: 4.35.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.digitalocean.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.MonitorAlertAlertsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property emails List of email addresses to sent notifications to
 * @property slacks
 */
public data class MonitorAlertAlertsArgs(
    public val emails: Output>? = null,
    public val slacks: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.MonitorAlertAlertsArgs =
        com.pulumi.digitalocean.inputs.MonitorAlertAlertsArgs.builder()
            .emails(emails?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .slacks(
                slacks?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var slacks: Output>? = null

    /**
     * @param value List of email addresses to sent notifications to
     */
    @JvmName("cmalcsrvbhhfnesf")
    public suspend fun emails(`value`: Output>) {
        this.emails = value
    }

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

    /**
     * @param values List of email addresses to sent notifications to
     */
    @JvmName("lffxiaowkhopkfva")
    public suspend fun emails(values: List>) {
        this.emails = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("wjklwmuddgihiqsn")
    public suspend fun slacks(`value`: Output>) {
        this.slacks = value
    }

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

    /**
     * @param values
     */
    @JvmName("tuxmybwgugcovftf")
    public suspend fun slacks(values: List>) {
        this.slacks = Output.all(values)
    }

    /**
     * @param value List of email addresses to sent notifications to
     */
    @JvmName("rjmmqgbijgrdirrl")
    public suspend fun emails(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.emails = mapped
    }

    /**
     * @param values List of email addresses to sent notifications to
     */
    @JvmName("ggrgdmnnxcyyuqpd")
    public suspend fun emails(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.emails = mapped
    }

    /**
     * @param value
     */
    @JvmName("srmggnpbiwachnmt")
    public suspend fun slacks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.slacks = mapped
    }

    /**
     * @param argument
     */
    @JvmName("oevycfkrxgvareko")
    public suspend fun slacks(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MonitorAlertAlertsSlackArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.slacks = mapped
    }

    /**
     * @param argument
     */
    @JvmName("mdvllxxuastowoha")
    public suspend fun slacks(vararg argument: suspend MonitorAlertAlertsSlackArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MonitorAlertAlertsSlackArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.slacks = mapped
    }

    /**
     * @param argument
     */
    @JvmName("tjsdyxpgciaxvsvh")
    public suspend fun slacks(argument: suspend MonitorAlertAlertsSlackArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            MonitorAlertAlertsSlackArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.slacks = mapped
    }

    /**
     * @param values
     */
    @JvmName("idmiilkjkicgtrmt")
    public suspend fun slacks(vararg values: MonitorAlertAlertsSlackArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.slacks = mapped
    }

    internal fun build(): MonitorAlertAlertsArgs = MonitorAlertAlertsArgs(
        emails = emails,
        slacks = slacks,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy