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

com.pulumi.awsnative.iotsitewise.kotlin.inputs.AssetPropertyArgs.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.iotsitewise.kotlin.inputs

import com.pulumi.awsnative.iotsitewise.inputs.AssetPropertyArgs.builder
import com.pulumi.awsnative.iotsitewise.kotlin.enums.AssetPropertyNotificationState
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

/**
 * 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 AssetPropertyArgs(
    public val alias: Output? = null,
    public val externalId: Output? = null,
    public val id: Output? = null,
    public val logicalId: Output? = null,
    public val notificationState: Output? = null,
    public val unit: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotsitewise.inputs.AssetPropertyArgs =
        com.pulumi.awsnative.iotsitewise.inputs.AssetPropertyArgs.builder()
            .alias(alias?.applyValue({ args0 -> args0 }))
            .externalId(externalId?.applyValue({ args0 -> args0 }))
            .id(id?.applyValue({ args0 -> args0 }))
            .logicalId(logicalId?.applyValue({ args0 -> args0 }))
            .notificationState(notificationState?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .unit(unit?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AssetPropertyArgs].
 */
@PulumiTagMarker
public class AssetPropertyArgsBuilder internal constructor() {
    private var alias: Output? = null

    private var externalId: Output? = null

    private var id: Output? = null

    private var logicalId: Output? = null

    private var notificationState: Output? = null

    private var unit: Output? = null

    /**
     * @param value The property alias that identifies the property.
     */
    @JvmName("alqxulqioqflbdvy")
    public suspend fun alias(`value`: Output) {
        this.alias = value
    }

    /**
     * @param value String-friendly customer provided external ID
     */
    @JvmName("rquoaaxejdynueci")
    public suspend fun externalId(`value`: Output) {
        this.externalId = value
    }

    /**
     * @param value Customer provided actual UUID for property
     */
    @JvmName("prievurlixfhjjde")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Customer provided ID for property.
     */
    @JvmName("qdnkqcherdyewmhk")
    public suspend fun logicalId(`value`: Output) {
        this.logicalId = value
    }

    /**
     * @param value The MQTT notification state (ENABLED or DISABLED) for this asset property.
     */
    @JvmName("ioxjmxtxivaenjdt")
    public suspend fun notificationState(`value`: Output) {
        this.notificationState = value
    }

    /**
     * @param value 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.
     */
    @JvmName("elkosrjkkwdqvbhc")
    public suspend fun unit(`value`: Output) {
        this.unit = value
    }

    /**
     * @param value The property alias that identifies the property.
     */
    @JvmName("iepjlnimobthuyrq")
    public suspend fun alias(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alias = mapped
    }

    /**
     * @param value String-friendly customer provided external ID
     */
    @JvmName("uarudfeihypkhihs")
    public suspend fun externalId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.externalId = mapped
    }

    /**
     * @param value Customer provided actual UUID for property
     */
    @JvmName("olnrdidrhkecvvpf")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Customer provided ID for property.
     */
    @JvmName("xpiasjlqcgcwthow")
    public suspend fun logicalId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logicalId = mapped
    }

    /**
     * @param value The MQTT notification state (ENABLED or DISABLED) for this asset property.
     */
    @JvmName("wlhxbjmyvyudfhny")
    public suspend fun notificationState(`value`: AssetPropertyNotificationState?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notificationState = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("mjwhvorkmqovwjfb")
    public suspend fun unit(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.unit = mapped
    }

    internal fun build(): AssetPropertyArgs = AssetPropertyArgs(
        alias = alias,
        externalId = externalId,
        id = id,
        logicalId = logicalId,
        notificationState = notificationState,
        unit = unit,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy