
com.pulumi.awsnative.iotsitewise.kotlin.inputs.AssetModelMetricArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iotsitewise.kotlin.inputs
import com.pulumi.awsnative.iotsitewise.inputs.AssetModelMetricArgs.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.collections.List
import kotlin.jvm.JvmName
/**
*
* @property expression The mathematical expression that defines the metric aggregation function. You can specify up to 10 functions per expression.
* @property variables The list of variables used in the expression.
* @property window The window (time interval) over which AWS IoT SiteWise computes the metric's aggregation expression
*/
public data class AssetModelMetricArgs(
public val expression: Output,
public val variables: Output>,
public val window: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iotsitewise.inputs.AssetModelMetricArgs =
com.pulumi.awsnative.iotsitewise.inputs.AssetModelMetricArgs.builder()
.expression(expression.applyValue({ args0 -> args0 }))
.variables(
variables.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.window(window.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AssetModelMetricArgs].
*/
@PulumiTagMarker
public class AssetModelMetricArgsBuilder internal constructor() {
private var expression: Output? = null
private var variables: Output>? = null
private var window: Output? = null
/**
* @param value The mathematical expression that defines the metric aggregation function. You can specify up to 10 functions per expression.
*/
@JvmName("xshtpgxupcowpskb")
public suspend fun expression(`value`: Output) {
this.expression = value
}
/**
* @param value The list of variables used in the expression.
*/
@JvmName("utwtevmkshgomuje")
public suspend fun variables(`value`: Output>) {
this.variables = value
}
@JvmName("sutemviorcorbcwc")
public suspend fun variables(vararg values: Output) {
this.variables = Output.all(values.asList())
}
/**
* @param values The list of variables used in the expression.
*/
@JvmName("xaqekqteyqplgpkt")
public suspend fun variables(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy