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

com.pulumi.aws.budgets.kotlin.inputs.BudgetActionActionThresholdArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.budgets.kotlin.inputs

import com.pulumi.aws.budgets.inputs.BudgetActionActionThresholdArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property actionThresholdType The type of threshold for a notification. Valid values are `PERCENTAGE` or `ABSOLUTE_VALUE`.
 * @property actionThresholdValue The threshold of a notification.
 */
public data class BudgetActionActionThresholdArgs(
    public val actionThresholdType: Output,
    public val actionThresholdValue: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.budgets.inputs.BudgetActionActionThresholdArgs =
        com.pulumi.aws.budgets.inputs.BudgetActionActionThresholdArgs.builder()
            .actionThresholdType(actionThresholdType.applyValue({ args0 -> args0 }))
            .actionThresholdValue(actionThresholdValue.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BudgetActionActionThresholdArgs].
 */
@PulumiTagMarker
public class BudgetActionActionThresholdArgsBuilder internal constructor() {
    private var actionThresholdType: Output? = null

    private var actionThresholdValue: Output? = null

    /**
     * @param value The type of threshold for a notification. Valid values are `PERCENTAGE` or `ABSOLUTE_VALUE`.
     */
    @JvmName("asvvbfercroeqwbx")
    public suspend fun actionThresholdType(`value`: Output) {
        this.actionThresholdType = value
    }

    /**
     * @param value The threshold of a notification.
     */
    @JvmName("gfuiywohkelrxvmy")
    public suspend fun actionThresholdValue(`value`: Output) {
        this.actionThresholdValue = value
    }

    /**
     * @param value The type of threshold for a notification. Valid values are `PERCENTAGE` or `ABSOLUTE_VALUE`.
     */
    @JvmName("giojwkalvwlgtykj")
    public suspend fun actionThresholdType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionThresholdType = mapped
    }

    /**
     * @param value The threshold of a notification.
     */
    @JvmName("kdhlnlrblpjukbpq")
    public suspend fun actionThresholdValue(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionThresholdValue = mapped
    }

    internal fun build(): BudgetActionActionThresholdArgs = BudgetActionActionThresholdArgs(
        actionThresholdType = actionThresholdType ?: throw PulumiNullFieldException("actionThresholdType"),
        actionThresholdValue = actionThresholdValue ?: throw
            PulumiNullFieldException("actionThresholdValue"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy