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

com.pulumi.gcp.billing.kotlin.outputs.BudgetAmount.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.Boolean
import kotlin.Suppress

/**
 *
 * @property lastPeriodAmount Configures a budget amount that is automatically set to 100% of
 * last period's spend.
 * Boolean. Set value to true to use. Do not set to false, instead
 * use the `specified_amount` block.
 * @property specifiedAmount A specified amount to use as the budget. currencyCode is
 * optional. If specified, it must match the currency of the
 * billing account. The currencyCode is provided on output.
 * Structure is documented below.
 */
public data class BudgetAmount(
    public val lastPeriodAmount: Boolean? = null,
    public val specifiedAmount: BudgetAmountSpecifiedAmount? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.billing.outputs.BudgetAmount): BudgetAmount =
            BudgetAmount(
                lastPeriodAmount = javaType.lastPeriodAmount().map({ args0 -> args0 }).orElse(null),
                specifiedAmount = javaType.specifiedAmount().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.billing.kotlin.outputs.BudgetAmountSpecifiedAmount.Companion.toKotlin(args0)
                    })
                }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy