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

com.pulumi.digitalocean.kotlin.inputs.MonitorAlertAlertsSlackArgs.kt Maven / Gradle / Ivy

@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.MonitorAlertAlertsSlackArgs.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 MonitorAlertAlertsSlackArgs(
    public val channel: Output,
    public val url: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.MonitorAlertAlertsSlackArgs =
        com.pulumi.digitalocean.inputs.MonitorAlertAlertsSlackArgs.builder()
            .channel(channel.applyValue({ args0 -> args0 }))
            .url(url.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [MonitorAlertAlertsSlackArgs].
 */
@PulumiTagMarker
public class MonitorAlertAlertsSlackArgsBuilder internal constructor() {
    private var channel: Output? = null

    private var url: Output? = null

    /**
     * @param value The Slack channel to send alerts to
     */
    @JvmName("rleblwibrbpccxww")
    public suspend fun channel(`value`: Output) {
        this.channel = value
    }

    /**
     * @param value The webhook URL for Slack
     */
    @JvmName("syiwqahkfkbvvgrr")
    public suspend fun url(`value`: Output) {
        this.url = value
    }

    /**
     * @param value The Slack channel to send alerts to
     */
    @JvmName("crepohkxjqwnwbdw")
    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("nvmdypyiooduoqdf")
    public suspend fun url(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.url = mapped
    }

    internal fun build(): MonitorAlertAlertsSlackArgs = MonitorAlertAlertsSlackArgs(
        channel = channel ?: throw PulumiNullFieldException("channel"),
        url = url ?: throw PulumiNullFieldException("url"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy