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

com.pulumi.gcp.billing.kotlin.outputs.BudgetThresholdRule.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.billing.kotlin.outputs

import kotlin.Double
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property spendBasis The type of basis used to determine if spend has passed
 * the threshold.
 * Default value is `CURRENT_SPEND`.
 * Possible values are: `CURRENT_SPEND`, `FORECASTED_SPEND`.
 * @property thresholdPercent Send an alert when this threshold is exceeded. This is a
 * 1.0-based percentage, so 0.5 = 50%. Must be >= 0.
 */
public data class BudgetThresholdRule(
    public val spendBasis: String? = null,
    public val thresholdPercent: Double,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.billing.outputs.BudgetThresholdRule): BudgetThresholdRule = BudgetThresholdRule(
            spendBasis = javaType.spendBasis().map({ args0 -> args0 }).orElse(null),
            thresholdPercent = javaType.thresholdPercent(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy