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

com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateMetricComparisonComputationArgs.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.TemplateMetricComparisonComputationArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property computationId The ID for a computation.
 * @property fromValue The field that is used in a metric comparison from value setup.
 * @property name The name of a computation.
 * @property targetValue The field that is used in a metric comparison to value setup.
 * @property time The time field that is used in a computation.
 */
public data class TemplateMetricComparisonComputationArgs(
    public val computationId: Output,
    public val fromValue: Output? = null,
    public val name: Output? = null,
    public val targetValue: Output? = null,
    public val time: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateMetricComparisonComputationArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateMetricComparisonComputationArgs.builder()
            .computationId(computationId.applyValue({ args0 -> args0 }))
            .fromValue(fromValue?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .targetValue(targetValue?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .time(time?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var fromValue: Output? = null

    private var name: Output? = null

    private var targetValue: Output? = null

    private var time: Output? = null

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

    /**
     * @param value The field that is used in a metric comparison from value setup.
     */
    @JvmName("hvdnobiooqpmjdwb")
    public suspend fun fromValue(`value`: Output) {
        this.fromValue = value
    }

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

    /**
     * @param value The field that is used in a metric comparison to value setup.
     */
    @JvmName("ydkyikjtdxlnkfdi")
    public suspend fun targetValue(`value`: Output) {
        this.targetValue = value
    }

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

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

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

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

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

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

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

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

    internal fun build(): TemplateMetricComparisonComputationArgs =
        TemplateMetricComparisonComputationArgs(
            computationId = computationId ?: throw PulumiNullFieldException("computationId"),
            fromValue = fromValue,
            name = name,
            targetValue = targetValue,
            time = time,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy