com.pulumi.digitalocean.kotlin.inputs.MonitorAlertAlertsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-digitalocean-kotlin Show documentation
Show all versions of pulumi-digitalocean-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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