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

com.pulumi.awsnative.iotevents.kotlin.inputs.AlarmModelAssetPropertyVariantArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iotevents.kotlin.inputs

import com.pulumi.awsnative.iotevents.inputs.AlarmModelAssetPropertyVariantArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A structure that contains an asset property value. For more information, see [Variant](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html) in the *API Reference*.
 *  You must use expressions for all parameters in ``AssetPropertyVariant``. The expressions accept literals, operators, functions, references, and substitution templates.
 *   **Examples**
 *  +  For literal values, the expressions must contain single quotes. For example, the value for the ``integerValue`` parameter can be ``'100'``.
 *   +  For references, you must specify either variables or parameters. For example, the value for the ``booleanValue`` parameter can be ``$variable.offline``.
 *   +  For a substitution template, you must use ``${}``, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
 *  In the following example, the value for the ``doubleValue`` parameter uses a substitution template.
 *   ``'${$input.TemperatureInput.sensorData.temperature * 6 / 5 + 32}'``
 *  For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *Developer Guide*.
 *  You must specify one of the following value types, depending on the ``dataType`` of the specified asset property. For more information, see [AssetProperty](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetProperty.html) in the *API Reference*.
 * @property booleanValue The asset property value is a Boolean value that must be ``'TRUE'`` or ``'FALSE'``. You must use an expression, and the evaluated result should be a Boolean value.
 * @property doubleValue The asset property value is a double. You must use an expression, and the evaluated result should be a double.
 * @property integerValue The asset property value is an integer. You must use an expression, and the evaluated result should be an integer.
 * @property stringValue The asset property value is a string. You must use an expression, and the evaluated result should be a string.
 */
public data class AlarmModelAssetPropertyVariantArgs(
    public val booleanValue: Output? = null,
    public val doubleValue: Output? = null,
    public val integerValue: Output? = null,
    public val stringValue: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotevents.inputs.AlarmModelAssetPropertyVariantArgs =
        com.pulumi.awsnative.iotevents.inputs.AlarmModelAssetPropertyVariantArgs.builder()
            .booleanValue(booleanValue?.applyValue({ args0 -> args0 }))
            .doubleValue(doubleValue?.applyValue({ args0 -> args0 }))
            .integerValue(integerValue?.applyValue({ args0 -> args0 }))
            .stringValue(stringValue?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AlarmModelAssetPropertyVariantArgs].
 */
@PulumiTagMarker
public class AlarmModelAssetPropertyVariantArgsBuilder internal constructor() {
    private var booleanValue: Output? = null

    private var doubleValue: Output? = null

    private var integerValue: Output? = null

    private var stringValue: Output? = null

    /**
     * @param value The asset property value is a Boolean value that must be ``'TRUE'`` or ``'FALSE'``. You must use an expression, and the evaluated result should be a Boolean value.
     */
    @JvmName("twljkemneqhckvly")
    public suspend fun booleanValue(`value`: Output) {
        this.booleanValue = value
    }

    /**
     * @param value The asset property value is a double. You must use an expression, and the evaluated result should be a double.
     */
    @JvmName("xpmxenebplxojabw")
    public suspend fun doubleValue(`value`: Output) {
        this.doubleValue = value
    }

    /**
     * @param value The asset property value is an integer. You must use an expression, and the evaluated result should be an integer.
     */
    @JvmName("wvgujgtwnrwjgukk")
    public suspend fun integerValue(`value`: Output) {
        this.integerValue = value
    }

    /**
     * @param value The asset property value is a string. You must use an expression, and the evaluated result should be a string.
     */
    @JvmName("gptvxliqweyvrgie")
    public suspend fun stringValue(`value`: Output) {
        this.stringValue = value
    }

    /**
     * @param value The asset property value is a Boolean value that must be ``'TRUE'`` or ``'FALSE'``. You must use an expression, and the evaluated result should be a Boolean value.
     */
    @JvmName("opkljbrsfplycyks")
    public suspend fun booleanValue(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.booleanValue = mapped
    }

    /**
     * @param value The asset property value is a double. You must use an expression, and the evaluated result should be a double.
     */
    @JvmName("rdvtrybfghsmptxt")
    public suspend fun doubleValue(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.doubleValue = mapped
    }

    /**
     * @param value The asset property value is an integer. You must use an expression, and the evaluated result should be an integer.
     */
    @JvmName("fgexxphpfretrsuc")
    public suspend fun integerValue(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.integerValue = mapped
    }

    /**
     * @param value The asset property value is a string. You must use an expression, and the evaluated result should be a string.
     */
    @JvmName("dlakkjttxomtlstc")
    public suspend fun stringValue(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stringValue = mapped
    }

    internal fun build(): AlarmModelAssetPropertyVariantArgs = AlarmModelAssetPropertyVariantArgs(
        booleanValue = booleanValue,
        doubleValue = doubleValue,
        integerValue = integerValue,
        stringValue = stringValue,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy