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

com.pulumi.awsnative.quicksight.kotlin.inputs.TemplatePeriodToDateComputationArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.quicksight.kotlin.inputs

import com.pulumi.awsnative.quicksight.inputs.TemplatePeriodToDateComputationArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateTimeGranularity
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

/**
 *
 * @property computationId The ID for a computation.
 * @property name The name of a computation.
 * @property periodTimeGranularity The time granularity setup of period to date computation. Choose from the following options:
 * - YEAR: Year to date.
 * - MONTH: Month to date.
 * @property time The time field that is used in a computation.
 * @property value The value field that is used in a computation.
 */
public data class TemplatePeriodToDateComputationArgs(
    public val computationId: Output,
    public val name: Output? = null,
    public val periodTimeGranularity: Output? = null,
    public val time: Output? = null,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplatePeriodToDateComputationArgs = com.pulumi.awsnative.quicksight.inputs.TemplatePeriodToDateComputationArgs.builder()
        .computationId(computationId.applyValue({ args0 -> args0 }))
        .name(name?.applyValue({ args0 -> args0 }))
        .periodTimeGranularity(
            periodTimeGranularity?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        )
        .time(time?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .`value`(`value`?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [TemplatePeriodToDateComputationArgs].
 */
@PulumiTagMarker
public class TemplatePeriodToDateComputationArgsBuilder internal constructor() {
    private var computationId: Output? = null

    private var name: Output? = null

    private var periodTimeGranularity: Output? = null

    private var time: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The ID for a computation.
     */
    @JvmName("vixethhybvbdsjjk")
    public suspend fun computationId(`value`: Output) {
        this.computationId = value
    }

    /**
     * @param value The name of a computation.
     */
    @JvmName("uykjlcthwdjewfai")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The time granularity setup of period to date computation. Choose from the following options:
     * - YEAR: Year to date.
     * - MONTH: Month to date.
     */
    @JvmName("alnldimdqojqtbfa")
    public suspend fun periodTimeGranularity(`value`: Output) {
        this.periodTimeGranularity = value
    }

    /**
     * @param value The time field that is used in a computation.
     */
    @JvmName("dkhfqptavjcotacw")
    public suspend fun time(`value`: Output) {
        this.time = value
    }

    /**
     * @param value The value field that is used in a computation.
     */
    @JvmName("jiinaainxmuqfkos")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The ID for a computation.
     */
    @JvmName("jwajljasnpgkyvik")
    public suspend fun computationId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.computationId = mapped
    }

    /**
     * @param value The name of a computation.
     */
    @JvmName("lynvddnwjiiedksl")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The time granularity setup of period to date computation. Choose from the following options:
     * - YEAR: Year to date.
     * - MONTH: Month to date.
     */
    @JvmName("nwybweemfjwctrvu")
    public suspend fun periodTimeGranularity(`value`: TemplateTimeGranularity?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.periodTimeGranularity = mapped
    }

    /**
     * @param value The time field that is used in a computation.
     */
    @JvmName("jwdjcfbjjlhgkgyk")
    public suspend fun time(`value`: TemplateDimensionFieldArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.time = mapped
    }

    /**
     * @param argument The time field that is used in a computation.
     */
    @JvmName("elemfjsjaebyjelj")
    public suspend fun time(argument: suspend TemplateDimensionFieldArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateDimensionFieldArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.time = mapped
    }

    /**
     * @param value The value field that is used in a computation.
     */
    @JvmName("bwauwiriwjoriyhe")
    public suspend fun `value`(`value`: TemplateMeasureFieldArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    /**
     * @param argument The value field that is used in a computation.
     */
    @JvmName("myvyfxhlhohuxkhy")
    public suspend fun `value`(argument: suspend TemplateMeasureFieldArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateMeasureFieldArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.`value` = mapped
    }

    internal fun build(): TemplatePeriodToDateComputationArgs = TemplatePeriodToDateComputationArgs(
        computationId = computationId ?: throw PulumiNullFieldException("computationId"),
        name = name,
        periodTimeGranularity = periodTimeGranularity,
        time = time,
        `value` = `value`,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy