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

com.pulumi.awsnative.iot.kotlin.inputs.TopicRulePutAssetPropertyValueEntryArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iot.kotlin.inputs

import com.pulumi.awsnative.iot.inputs.TopicRulePutAssetPropertyValueEntryArgs.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 assetId The ID of the AWS IoT SiteWise asset. You must specify either a `propertyAlias` or both an `aliasId` and a `propertyId` . Accepts substitution templates.
 * @property entryId Optional. A unique identifier for this entry that you can define to better track which message caused an error in case of failure. Accepts substitution templates. Defaults to a new UUID.
 * @property propertyAlias The name of the property alias associated with your asset property. You must specify either a `propertyAlias` or both an `aliasId` and a `propertyId` . Accepts substitution templates.
 * @property propertyId The ID of the asset's property. You must specify either a `propertyAlias` or both an `aliasId` and a `propertyId` . Accepts substitution templates.
 * @property propertyValues A list of property values to insert that each contain timestamp, quality, and value (TQV) information.
 */
public data class TopicRulePutAssetPropertyValueEntryArgs(
    public val assetId: Output? = null,
    public val entryId: Output? = null,
    public val propertyAlias: Output? = null,
    public val propertyId: Output? = null,
    public val propertyValues: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRulePutAssetPropertyValueEntryArgs =
        com.pulumi.awsnative.iot.inputs.TopicRulePutAssetPropertyValueEntryArgs.builder()
            .assetId(assetId?.applyValue({ args0 -> args0 }))
            .entryId(entryId?.applyValue({ args0 -> args0 }))
            .propertyAlias(propertyAlias?.applyValue({ args0 -> args0 }))
            .propertyId(propertyId?.applyValue({ args0 -> args0 }))
            .propertyValues(
                propertyValues.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [TopicRulePutAssetPropertyValueEntryArgs].
 */
@PulumiTagMarker
public class TopicRulePutAssetPropertyValueEntryArgsBuilder internal constructor() {
    private var assetId: Output? = null

    private var entryId: Output? = null

    private var propertyAlias: Output? = null

    private var propertyId: Output? = null

    private var propertyValues: Output>? = null

    /**
     * @param value The ID of the AWS IoT SiteWise asset. You must specify either a `propertyAlias` or both an `aliasId` and a `propertyId` . Accepts substitution templates.
     */
    @JvmName("dmfwppkditmrrpnb")
    public suspend fun assetId(`value`: Output) {
        this.assetId = value
    }

    /**
     * @param value Optional. A unique identifier for this entry that you can define to better track which message caused an error in case of failure. Accepts substitution templates. Defaults to a new UUID.
     */
    @JvmName("qllgmojsjertcwqk")
    public suspend fun entryId(`value`: Output) {
        this.entryId = value
    }

    /**
     * @param value The name of the property alias associated with your asset property. You must specify either a `propertyAlias` or both an `aliasId` and a `propertyId` . Accepts substitution templates.
     */
    @JvmName("eeavqwybyqeqtcoy")
    public suspend fun propertyAlias(`value`: Output) {
        this.propertyAlias = value
    }

    /**
     * @param value The ID of the asset's property. You must specify either a `propertyAlias` or both an `aliasId` and a `propertyId` . Accepts substitution templates.
     */
    @JvmName("nnhhtywmcjbqnugb")
    public suspend fun propertyId(`value`: Output) {
        this.propertyId = value
    }

    /**
     * @param value A list of property values to insert that each contain timestamp, quality, and value (TQV) information.
     */
    @JvmName("gdgjlxlfvtdlmylj")
    public suspend fun propertyValues(`value`: Output>) {
        this.propertyValues = value
    }

    @JvmName("phokyggjvnvmqoxi")
    public suspend fun propertyValues(vararg values: Output) {
        this.propertyValues = Output.all(values.asList())
    }

    /**
     * @param values A list of property values to insert that each contain timestamp, quality, and value (TQV) information.
     */
    @JvmName("sxowvdkhmuhgwxav")
    public suspend fun propertyValues(values: List>) {
        this.propertyValues = Output.all(values)
    }

    /**
     * @param value The ID of the AWS IoT SiteWise asset. You must specify either a `propertyAlias` or both an `aliasId` and a `propertyId` . Accepts substitution templates.
     */
    @JvmName("gpbboxyvgikqvnep")
    public suspend fun assetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.assetId = mapped
    }

    /**
     * @param value Optional. A unique identifier for this entry that you can define to better track which message caused an error in case of failure. Accepts substitution templates. Defaults to a new UUID.
     */
    @JvmName("cnobflwsvxjanawi")
    public suspend fun entryId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.entryId = mapped
    }

    /**
     * @param value The name of the property alias associated with your asset property. You must specify either a `propertyAlias` or both an `aliasId` and a `propertyId` . Accepts substitution templates.
     */
    @JvmName("revawjwdvuvjbbct")
    public suspend fun propertyAlias(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.propertyAlias = mapped
    }

    /**
     * @param value The ID of the asset's property. You must specify either a `propertyAlias` or both an `aliasId` and a `propertyId` . Accepts substitution templates.
     */
    @JvmName("hcgyodxtorsckwqn")
    public suspend fun propertyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.propertyId = mapped
    }

    /**
     * @param value A list of property values to insert that each contain timestamp, quality, and value (TQV) information.
     */
    @JvmName("jnvhqgynixsukupg")
    public suspend fun propertyValues(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.propertyValues = mapped
    }

    /**
     * @param argument A list of property values to insert that each contain timestamp, quality, and value (TQV) information.
     */
    @JvmName("kpuffpymifesmppq")
    public suspend fun propertyValues(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TopicRuleAssetPropertyValueArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.propertyValues = mapped
    }

    /**
     * @param argument A list of property values to insert that each contain timestamp, quality, and value (TQV) information.
     */
    @JvmName("rhdomeluklycnwfe")
    public suspend fun propertyValues(vararg argument: suspend TopicRuleAssetPropertyValueArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TopicRuleAssetPropertyValueArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.propertyValues = mapped
    }

    /**
     * @param argument A list of property values to insert that each contain timestamp, quality, and value (TQV) information.
     */
    @JvmName("bgyacejdnsylqgti")
    public suspend fun propertyValues(argument: suspend TopicRuleAssetPropertyValueArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TopicRuleAssetPropertyValueArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.propertyValues = mapped
    }

    /**
     * @param values A list of property values to insert that each contain timestamp, quality, and value (TQV) information.
     */
    @JvmName("drlfalwjohacncqj")
    public suspend fun propertyValues(vararg values: TopicRuleAssetPropertyValueArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.propertyValues = mapped
    }

    internal fun build(): TopicRulePutAssetPropertyValueEntryArgs =
        TopicRulePutAssetPropertyValueEntryArgs(
            assetId = assetId,
            entryId = entryId,
            propertyAlias = propertyAlias,
            propertyId = propertyId,
            propertyValues = propertyValues ?: throw PulumiNullFieldException("propertyValues"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy