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

com.pulumi.awsnative.iotsitewise.kotlin.inputs.AssetModelExpressionVariableArgs.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.AssetModelExpressionVariableArgs.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.jvm.JvmName

/**
 *
 * @property name The friendly name of the variable to be used in the expression.
 * @property value The variable that identifies an asset property from which to use values.
 */
public data class AssetModelExpressionVariableArgs(
    public val name: Output,
    public val `value`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotsitewise.inputs.AssetModelExpressionVariableArgs =
        com.pulumi.awsnative.iotsitewise.inputs.AssetModelExpressionVariableArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .`value`(`value`.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AssetModelExpressionVariableArgs].
 */
@PulumiTagMarker
public class AssetModelExpressionVariableArgsBuilder internal constructor() {
    private var name: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The friendly name of the variable to be used in the expression.
     */
    @JvmName("fxncjlmwmbuppeay")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The variable that identifies an asset property from which to use values.
     */
    @JvmName("mephjfcflcwbrgna")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The friendly name of the variable to be used in the expression.
     */
    @JvmName("ybqrxfjomcbejqjw")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The variable that identifies an asset property from which to use values.
     */
    @JvmName("pcpbishnxxmnmcic")
    public suspend fun `value`(`value`: AssetModelVariableValueArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    /**
     * @param argument The variable that identifies an asset property from which to use values.
     */
    @JvmName("ixyfuncswlbrlatd")
    public suspend fun `value`(argument: suspend AssetModelVariableValueArgsBuilder.() -> Unit) {
        val toBeMapped = AssetModelVariableValueArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.`value` = mapped
    }

    internal fun build(): AssetModelExpressionVariableArgs = AssetModelExpressionVariableArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        `value` = `value` ?: throw PulumiNullFieldException("value"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy