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

com.pulumi.azurenative.blueprint.kotlin.inputs.ParameterValueArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.blueprint.kotlin.inputs

import com.pulumi.azurenative.blueprint.inputs.ParameterValueArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Value for the specified parameter. Can be either 'value' or 'reference' but not both.
 * @property reference Parameter value as reference type.
 * @property value Parameter value. Any valid JSON value is allowed including objects, arrays, strings, numbers and booleans.
 */
public data class ParameterValueArgs(
    public val reference: Output? = null,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.blueprint.inputs.ParameterValueArgs =
        com.pulumi.azurenative.blueprint.inputs.ParameterValueArgs.builder()
            .reference(reference?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ParameterValueArgs].
 */
@PulumiTagMarker
public class ParameterValueArgsBuilder internal constructor() {
    private var reference: Output? = null

    private var `value`: Output? = null

    /**
     * @param value Parameter value as reference type.
     */
    @JvmName("vlyddrnivwriwopa")
    public suspend fun reference(`value`: Output) {
        this.reference = value
    }

    /**
     * @param value Parameter value. Any valid JSON value is allowed including objects, arrays, strings, numbers and booleans.
     */
    @JvmName("vddnaswwbwhfpjqb")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value Parameter value as reference type.
     */
    @JvmName("mpntipdkyxfbpuys")
    public suspend fun reference(`value`: SecretValueReferenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reference = mapped
    }

    /**
     * @param argument Parameter value as reference type.
     */
    @JvmName("linjknujpwudyoks")
    public suspend fun reference(argument: suspend SecretValueReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = SecretValueReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.reference = mapped
    }

    /**
     * @param value Parameter value. Any valid JSON value is allowed including objects, arrays, strings, numbers and booleans.
     */
    @JvmName("oqosbafbjcjegypv")
    public suspend fun `value`(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): ParameterValueArgs = ParameterValueArgs(
        reference = reference,
        `value` = `value`,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy