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

com.pulumi.azurenative.costmanagement.kotlin.inputs.ExportDefinitionArgs.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.ExportDefinitionArgs.builder
import com.pulumi.azurenative.costmanagement.kotlin.enums.ExportType
import com.pulumi.azurenative.costmanagement.kotlin.enums.TimeframeType
import com.pulumi.core.Either
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The definition of an export.
 * @property dataSet The definition for data in the export.
 * @property timePeriod Has time period for pulling data for the export.
 * @property timeframe The time frame for pulling data for the export. If custom, then a specific time period must be provided.
 * @property type The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
 */
public data class ExportDefinitionArgs(
    public val dataSet: Output? = null,
    public val timePeriod: Output? = null,
    public val timeframe: Output>,
    public val type: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.costmanagement.inputs.ExportDefinitionArgs =
        com.pulumi.azurenative.costmanagement.inputs.ExportDefinitionArgs.builder()
            .dataSet(dataSet?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .timePeriod(timePeriod?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .timeframe(
                timeframe.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .type(
                type.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ExportDefinitionArgs].
 */
@PulumiTagMarker
public class ExportDefinitionArgsBuilder internal constructor() {
    private var dataSet: Output? = null

    private var timePeriod: Output? = null

    private var timeframe: Output>? = null

    private var type: Output>? = null

    /**
     * @param value The definition for data in the export.
     */
    @JvmName("iobmtwqhaxumsxmd")
    public suspend fun dataSet(`value`: Output) {
        this.dataSet = value
    }

    /**
     * @param value Has time period for pulling data for the export.
     */
    @JvmName("ktjdltinymhawvbw")
    public suspend fun timePeriod(`value`: Output) {
        this.timePeriod = value
    }

    /**
     * @param value The time frame for pulling data for the export. If custom, then a specific time period must be provided.
     */
    @JvmName("mesvfdjiygborulr")
    public suspend fun timeframe(`value`: Output>) {
        this.timeframe = value
    }

    /**
     * @param value The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
     */
    @JvmName("egixklclxpstykun")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value The definition for data in the export.
     */
    @JvmName("privcdqvdypouftj")
    public suspend fun dataSet(`value`: ExportDatasetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataSet = mapped
    }

    /**
     * @param argument The definition for data in the export.
     */
    @JvmName("ixdnnpwbfuteqvmb")
    public suspend fun dataSet(argument: suspend ExportDatasetArgsBuilder.() -> Unit) {
        val toBeMapped = ExportDatasetArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dataSet = mapped
    }

    /**
     * @param value Has time period for pulling data for the export.
     */
    @JvmName("jfshcmcqfikluppp")
    public suspend fun timePeriod(`value`: ExportTimePeriodArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timePeriod = mapped
    }

    /**
     * @param argument Has time period for pulling data for the export.
     */
    @JvmName("lmxejrgjiidsarfx")
    public suspend fun timePeriod(argument: suspend ExportTimePeriodArgsBuilder.() -> Unit) {
        val toBeMapped = ExportTimePeriodArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.timePeriod = mapped
    }

    /**
     * @param value The time frame for pulling data for the export. If custom, then a specific time period must be provided.
     */
    @JvmName("qqyicuvwcpujjpep")
    public suspend fun timeframe(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timeframe = mapped
    }

    /**
     * @param value The time frame for pulling data for the export. If custom, then a specific time period must be provided.
     */
    @JvmName("bjeaqitmonxquuuk")
    public fun timeframe(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timeframe = mapped
    }

    /**
     * @param value The time frame for pulling data for the export. If custom, then a specific time period must be provided.
     */
    @JvmName("bgtebcaejhqyopcc")
    public fun timeframe(`value`: TimeframeType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timeframe = mapped
    }

    /**
     * @param value The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
     */
    @JvmName("ivcelulnkqeatywc")
    public suspend fun type(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
     */
    @JvmName("ssgucpojsxmwdyuq")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
     */
    @JvmName("magyppgkerjknkyr")
    public fun type(`value`: ExportType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ExportDefinitionArgs = ExportDefinitionArgs(
        dataSet = dataSet,
        timePeriod = timePeriod,
        timeframe = timeframe ?: throw PulumiNullFieldException("timeframe"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy