com.pulumi.gcp.billing.kotlin.outputs.BudgetThresholdRule.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.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