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

com.pulumi.kubernetes.admissionregistration.v1beta1.kotlin.inputs.VariablePatchArgs.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: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.admissionregistration.v1beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.admissionregistration.v1beta1.inputs.VariablePatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.
 * @property expression Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
 * @property name Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
 */
public data class VariablePatchArgs(
    public val expression: Output? = null,
    public val name: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.admissionregistration.v1beta1.inputs.VariablePatchArgs =
        com.pulumi.kubernetes.admissionregistration.v1beta1.inputs.VariablePatchArgs.builder()
            .expression(expression?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VariablePatchArgs].
 */
@PulumiTagMarker
public class VariablePatchArgsBuilder internal constructor() {
    private var expression: Output? = null

    private var name: Output? = null

    /**
     * @param value Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
     */
    @JvmName("ggcppgmjadmgcyjl")
    public suspend fun expression(`value`: Output) {
        this.expression = value
    }

    /**
     * @param value Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
     */
    @JvmName("soppdrvulvexruxg")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
     */
    @JvmName("nwqqktinefyjipiv")
    public suspend fun expression(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expression = mapped
    }

    /**
     * @param value Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
     */
    @JvmName("ramcbwsxnhgbwjhg")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): VariablePatchArgs = VariablePatchArgs(
        expression = expression,
        name = name,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy