
com.pulumi.awsnative.quicksight.kotlin.inputs.DashboardMetricComparisonComputationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.DashboardMetricComparisonComputationArgs.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 DashboardMetricComparisonComputationArgs(
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.DashboardMetricComparisonComputationArgs =
com.pulumi.awsnative.quicksight.inputs.DashboardMetricComparisonComputationArgs.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 [DashboardMetricComparisonComputationArgs].
*/
@PulumiTagMarker
public class DashboardMetricComparisonComputationArgsBuilder 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("seerpdctilaelcjm")
public suspend fun computationId(`value`: Output) {
this.computationId = value
}
/**
* @param value The field that is used in a metric comparison from value setup.
*/
@JvmName("toiwnymnlppedixr")
public suspend fun fromValue(`value`: Output) {
this.fromValue = value
}
/**
* @param value The name of a computation.
*/
@JvmName("ofyptbetdlclqcae")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The field that is used in a metric comparison to value setup.
*/
@JvmName("fwcjnacqiwiakyna")
public suspend fun targetValue(`value`: Output) {
this.targetValue = value
}
/**
* @param value The time field that is used in a computation.
*/
@JvmName("clsthwvkkovobwqv")
public suspend fun time(`value`: Output) {
this.time = value
}
/**
* @param value The ID for a computation.
*/
@JvmName("opjqnvyspashhyrm")
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("qrufpvtmviodvrco")
public suspend fun fromValue(`value`: DashboardMeasureFieldArgs?) {
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("hoksbmlugfylcgfa")
public suspend fun fromValue(argument: suspend DashboardMeasureFieldArgsBuilder.() -> Unit) {
val toBeMapped = DashboardMeasureFieldArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.fromValue = mapped
}
/**
* @param value The name of a computation.
*/
@JvmName("ahljevncyldaxjlw")
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("xlcsjtrhjupuqaea")
public suspend fun targetValue(`value`: DashboardMeasureFieldArgs?) {
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("rmecaeejhxixqflb")
public suspend fun targetValue(argument: suspend DashboardMeasureFieldArgsBuilder.() -> Unit) {
val toBeMapped = DashboardMeasureFieldArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.targetValue = mapped
}
/**
* @param value The time field that is used in a computation.
*/
@JvmName("waulaunrtnnmjdnr")
public suspend fun time(`value`: DashboardDimensionFieldArgs?) {
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("jckmjbrfvtvovuih")
public suspend fun time(argument: suspend DashboardDimensionFieldArgsBuilder.() -> Unit) {
val toBeMapped = DashboardDimensionFieldArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.time = mapped
}
internal fun build(): DashboardMetricComparisonComputationArgs =
DashboardMetricComparisonComputationArgs(
computationId = computationId ?: throw PulumiNullFieldException("computationId"),
fromValue = fromValue,
name = name,
targetValue = targetValue,
time = time,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy