![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.consumption.kotlin.inputs.BudgetResourceGroupTimePeriodArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.consumption.kotlin.inputs
import com.pulumi.azure.consumption.inputs.BudgetResourceGroupTimePeriodArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property endDate The end date for the budget. If not set this will be 10 years after the start date.
* @property startDate The start date for the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. Changing this forces a new Resource Group Consumption Budget to be created.
*/
public data class BudgetResourceGroupTimePeriodArgs(
public val endDate: Output? = null,
public val startDate: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.consumption.inputs.BudgetResourceGroupTimePeriodArgs =
com.pulumi.azure.consumption.inputs.BudgetResourceGroupTimePeriodArgs.builder()
.endDate(endDate?.applyValue({ args0 -> args0 }))
.startDate(startDate.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BudgetResourceGroupTimePeriodArgs].
*/
@PulumiTagMarker
public class BudgetResourceGroupTimePeriodArgsBuilder internal constructor() {
private var endDate: Output? = null
private var startDate: Output? = null
/**
* @param value The end date for the budget. If not set this will be 10 years after the start date.
*/
@JvmName("xfedfwabwgysnbel")
public suspend fun endDate(`value`: Output) {
this.endDate = value
}
/**
* @param value The start date for the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. Changing this forces a new Resource Group Consumption Budget to be created.
*/
@JvmName("bnrxguyljmtmqeoc")
public suspend fun startDate(`value`: Output) {
this.startDate = value
}
/**
* @param value The end date for the budget. If not set this will be 10 years after the start date.
*/
@JvmName("gugefjihwgrcjhum")
public suspend fun endDate(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.endDate = mapped
}
/**
* @param value The start date for the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. Changing this forces a new Resource Group Consumption Budget to be created.
*/
@JvmName("lysivpcwwgxukjcs")
public suspend fun startDate(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.startDate = mapped
}
internal fun build(): BudgetResourceGroupTimePeriodArgs = BudgetResourceGroupTimePeriodArgs(
endDate = endDate,
startDate = startDate ?: throw PulumiNullFieldException("startDate"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy