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

com.pulumi.awsnative.iotevents.kotlin.outputs.DetectorModelAssetPropertyValue.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.iotevents.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*.
 * @property quality The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression.
 * @property timestamp The timestamp associated with the asset property value. The default is the current event time.
 * @property value The value to send to an asset property.
 */
public data class DetectorModelAssetPropertyValue(
    public val quality: String? = null,
    public val timestamp: DetectorModelAssetPropertyTimestamp? = null,
    public val `value`: DetectorModelAssetPropertyVariant,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iotevents.outputs.DetectorModelAssetPropertyValue): DetectorModelAssetPropertyValue = DetectorModelAssetPropertyValue(
            quality = javaType.quality().map({ args0 -> args0 }).orElse(null),
            timestamp = javaType.timestamp().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotevents.kotlin.outputs.DetectorModelAssetPropertyTimestamp.Companion.toKotlin(args0)
                })
            }).orElse(null),
            `value` = javaType.`value`().let({ args0 ->
                com.pulumi.awsnative.iotevents.kotlin.outputs.DetectorModelAssetPropertyVariant.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy