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

com.pulumi.azure.consumption.kotlin.inputs.BudgetSubscriptionTimePeriodArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.consumption.kotlin.inputs

import com.pulumi.azure.consumption.inputs.BudgetSubscriptionTimePeriodArgs.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 Subscription Consumption Budget to be created.
 */
public data class BudgetSubscriptionTimePeriodArgs(
    public val endDate: Output? = null,
    public val startDate: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.consumption.inputs.BudgetSubscriptionTimePeriodArgs =
        com.pulumi.azure.consumption.inputs.BudgetSubscriptionTimePeriodArgs.builder()
            .endDate(endDate?.applyValue({ args0 -> args0 }))
            .startDate(startDate.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BudgetSubscriptionTimePeriodArgs].
 */
@PulumiTagMarker
public class BudgetSubscriptionTimePeriodArgsBuilder 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("wenxvtkebyjruana")
    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 Subscription Consumption Budget to be created.
     */
    @JvmName("bftvsescohrwmykf")
    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("wdqmvgqcewfcucom")
    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 Subscription Consumption Budget to be created.
     */
    @JvmName("osrokbcsawkcygsq")
    public suspend fun startDate(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.startDate = mapped
    }

    internal fun build(): BudgetSubscriptionTimePeriodArgs = BudgetSubscriptionTimePeriodArgs(
        endDate = endDate,
        startDate = startDate ?: throw PulumiNullFieldException("startDate"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy