![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.digitalocean.kotlin.inputs.UptimeAlertNotificationSlackArgs.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.UptimeAlertNotificationSlackArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property channel The Slack channel to send alerts to.
* @property url The webhook URL for Slack.
*/
public data class UptimeAlertNotificationSlackArgs(
public val channel: Output,
public val url: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.UptimeAlertNotificationSlackArgs =
com.pulumi.digitalocean.inputs.UptimeAlertNotificationSlackArgs.builder()
.channel(channel.applyValue({ args0 -> args0 }))
.url(url.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [UptimeAlertNotificationSlackArgs].
*/
@PulumiTagMarker
public class UptimeAlertNotificationSlackArgsBuilder internal constructor() {
private var channel: Output? = null
private var url: Output? = null
/**
* @param value The Slack channel to send alerts to.
*/
@JvmName("wjmetcbqkivsxhhf")
public suspend fun channel(`value`: Output) {
this.channel = value
}
/**
* @param value The webhook URL for Slack.
*/
@JvmName("oimyxxaitxdilhou")
public suspend fun url(`value`: Output) {
this.url = value
}
/**
* @param value The Slack channel to send alerts to.
*/
@JvmName("crynfsdkavbqlqkh")
public suspend fun channel(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.channel = mapped
}
/**
* @param value The webhook URL for Slack.
*/
@JvmName("gwqtappsmcgohtjs")
public suspend fun url(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.url = mapped
}
internal fun build(): UptimeAlertNotificationSlackArgs = UptimeAlertNotificationSlackArgs(
channel = channel ?: throw PulumiNullFieldException("channel"),
url = url ?: throw PulumiNullFieldException("url"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy