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

com.pulumi.azurenative.costmanagement.kotlin.inputs.ReportTimePeriodArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.costmanagement.kotlin.inputs

import com.pulumi.azurenative.costmanagement.inputs.ReportTimePeriodArgs.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

/**
 * The start and end date for pulling data for the report.
 * @property from The start date to pull data from.
 * @property to The end date to pull data to.
 */
public data class ReportTimePeriodArgs(
    public val from: Output,
    public val to: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.costmanagement.inputs.ReportTimePeriodArgs =
        com.pulumi.azurenative.costmanagement.inputs.ReportTimePeriodArgs.builder()
            .from(from.applyValue({ args0 -> args0 }))
            .to(to.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ReportTimePeriodArgs].
 */
@PulumiTagMarker
public class ReportTimePeriodArgsBuilder internal constructor() {
    private var from: Output? = null

    private var to: Output? = null

    /**
     * @param value The start date to pull data from.
     */
    @JvmName("lqjsfydvtfopvjvj")
    public suspend fun from(`value`: Output) {
        this.from = value
    }

    /**
     * @param value The end date to pull data to.
     */
    @JvmName("veqmcotbmmuuabpu")
    public suspend fun to(`value`: Output) {
        this.to = value
    }

    /**
     * @param value The start date to pull data from.
     */
    @JvmName("edspctunerrnxmee")
    public suspend fun from(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.from = mapped
    }

    /**
     * @param value The end date to pull data to.
     */
    @JvmName("kfiunsrolwwewjmm")
    public suspend fun to(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.to = mapped
    }

    internal fun build(): ReportTimePeriodArgs = ReportTimePeriodArgs(
        from = from ?: throw PulumiNullFieldException("from"),
        to = to ?: throw PulumiNullFieldException("to"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy