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

com.pulumi.awsnative.iotsitewise.kotlin.outputs.AssetProperty.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iotsitewise.kotlin.outputs

import com.pulumi.awsnative.iotsitewise.kotlin.enums.AssetPropertyNotificationState
import kotlin.String
import kotlin.Suppress

/**
 * The asset property's definition, alias, unit, and notification state.
 * @property alias The property alias that identifies the property.
 * @property externalId String-friendly customer provided external ID
 * @property id Customer provided actual UUID for property
 * @property logicalId Customer provided ID for property.
 * @property notificationState The MQTT notification state (ENABLED or DISABLED) for this asset property.
 * @property unit The unit of measure (such as Newtons or RPM) of the asset property. If you don't specify a value for this parameter, the service uses the value of the assetModelProperty in the asset model.
 */
public data class AssetProperty(
    public val alias: String? = null,
    public val externalId: String? = null,
    public val id: String? = null,
    public val logicalId: String? = null,
    public val notificationState: AssetPropertyNotificationState? = null,
    public val unit: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iotsitewise.outputs.AssetProperty): AssetProperty = AssetProperty(
            alias = javaType.alias().map({ args0 -> args0 }).orElse(null),
            externalId = javaType.externalId().map({ args0 -> args0 }).orElse(null),
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            logicalId = javaType.logicalId().map({ args0 -> args0 }).orElse(null),
            notificationState = javaType.notificationState().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotsitewise.kotlin.enums.AssetPropertyNotificationState.Companion.toKotlin(args0)
                })
            }).orElse(null),
            unit = javaType.unit().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy