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

com.pulumi.digitalocean.kotlin.inputs.AppSpecAlertArgs.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.38.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.AppSpecAlertArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property disabled Determines whether or not the alert is disabled (default: `false`).
 * @property rule The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`.
 */
public data class AppSpecAlertArgs(
    public val disabled: Output? = null,
    public val rule: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecAlertArgs =
        com.pulumi.digitalocean.inputs.AppSpecAlertArgs.builder()
            .disabled(disabled?.applyValue({ args0 -> args0 }))
            .rule(rule.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppSpecAlertArgs].
 */
@PulumiTagMarker
public class AppSpecAlertArgsBuilder internal constructor() {
    private var disabled: Output? = null

    private var rule: Output? = null

    /**
     * @param value Determines whether or not the alert is disabled (default: `false`).
     */
    @JvmName("tlrocmwysnmgwriq")
    public suspend fun disabled(`value`: Output) {
        this.disabled = value
    }

    /**
     * @param value The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`.
     */
    @JvmName("cuxmosothdfolypi")
    public suspend fun rule(`value`: Output) {
        this.rule = value
    }

    /**
     * @param value Determines whether or not the alert is disabled (default: `false`).
     */
    @JvmName("awfgcvweubhvoaxl")
    public suspend fun disabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disabled = mapped
    }

    /**
     * @param value The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`.
     */
    @JvmName("xkayoftejextklnb")
    public suspend fun rule(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rule = mapped
    }

    internal fun build(): AppSpecAlertArgs = AppSpecAlertArgs(
        disabled = disabled,
        rule = rule ?: throw PulumiNullFieldException("rule"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy