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

com.pulumi.azurenative.resources.kotlin.inputs.ExpressionEvaluationOptionsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.resources.kotlin.inputs

import com.pulumi.azurenative.resources.inputs.ExpressionEvaluationOptionsArgs.builder
import com.pulumi.azurenative.resources.kotlin.enums.ExpressionEvaluationOptionsScopeType
import com.pulumi.core.Either
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

/**
 * Specifies whether template expressions are evaluated within the scope of the parent template or nested template.
 * @property scope The scope to be used for evaluation of parameters, variables and functions in a nested template.
 */
public data class ExpressionEvaluationOptionsArgs(
    public val scope: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.resources.inputs.ExpressionEvaluationOptionsArgs =
        com.pulumi.azurenative.resources.inputs.ExpressionEvaluationOptionsArgs.builder()
            .scope(
                scope?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ExpressionEvaluationOptionsArgs].
 */
@PulumiTagMarker
public class ExpressionEvaluationOptionsArgsBuilder internal constructor() {
    private var scope: Output>? = null

    /**
     * @param value The scope to be used for evaluation of parameters, variables and functions in a nested template.
     */
    @JvmName("edvpdiuximijgvuq")
    public suspend fun scope(`value`: Output>) {
        this.scope = value
    }

    /**
     * @param value The scope to be used for evaluation of parameters, variables and functions in a nested template.
     */
    @JvmName("thvmdtrwfyuutvqy")
    public suspend fun scope(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scope = mapped
    }

    /**
     * @param value The scope to be used for evaluation of parameters, variables and functions in a nested template.
     */
    @JvmName("lnamgurumvqxooet")
    public fun scope(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scope = mapped
    }

    /**
     * @param value The scope to be used for evaluation of parameters, variables and functions in a nested template.
     */
    @JvmName("hqjdrrqwykfuujgb")
    public fun scope(`value`: ExpressionEvaluationOptionsScopeType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scope = mapped
    }

    internal fun build(): ExpressionEvaluationOptionsArgs = ExpressionEvaluationOptionsArgs(
        scope = scope,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy