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

com.pulumi.awsnative.quicksight.kotlin.inputs.AnalysisGrowthRateComputationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.quicksight.inputs.AnalysisGrowthRateComputationArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Double
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 periodSize The period size setup of a growth rate computation.
 * @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 AnalysisGrowthRateComputationArgs(
    public val computationId: Output,
    public val name: Output? = null,
    public val periodSize: Output? = null,
    public val time: Output? = null,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisGrowthRateComputationArgs =
        com.pulumi.awsnative.quicksight.inputs.AnalysisGrowthRateComputationArgs.builder()
            .computationId(computationId.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .periodSize(periodSize?.applyValue({ args0 -> args0 }))
            .time(time?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .`value`(`value`?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var name: Output? = null

    private var periodSize: Output? = null

    private var time: Output? = null

    private var `value`: Output? = null

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

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

    /**
     * @param value The period size setup of a growth rate computation.
     */
    @JvmName("cgljegfwkocrsuun")
    public suspend fun periodSize(`value`: Output) {
        this.periodSize = value
    }

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

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

    /**
     * @param value The ID for a computation.
     */
    @JvmName("mrnbiifbyilmdhha")
    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("lcmexwscqqncisin")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The period size setup of a growth rate computation.
     */
    @JvmName("jpfxsjfmmkcdxwve")
    public suspend fun periodSize(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.periodSize = mapped
    }

    /**
     * @param value The time field that is used in a computation.
     */
    @JvmName("rrgseqvryhokvggg")
    public suspend fun time(`value`: AnalysisDimensionFieldArgs?) {
        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("tpkdmxmemoomsfrh")
    public suspend fun time(argument: suspend AnalysisDimensionFieldArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisDimensionFieldArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.time = mapped
    }

    /**
     * @param value The value field that is used in a computation.
     */
    @JvmName("provolfqemhlnjpg")
    public suspend fun `value`(`value`: AnalysisMeasureFieldArgs?) {
        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("taqwfxvtpfwtbwct")
    public suspend fun `value`(argument: suspend AnalysisMeasureFieldArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisMeasureFieldArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.`value` = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy