com.pulumi.kubernetes.admissionregistration.v1alpha1.kotlin.inputs.VariablePatchArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.admissionregistration.v1alpha1.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.v1alpha1.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.
* @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.v1alpha1.inputs.VariablePatchArgs =
com.pulumi.kubernetes.admissionregistration.v1alpha1.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("wiwfsbqpdelrhthb")
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("tvdrnougwexfpaln")
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("heplqxgkivpwfwfj")
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("upyefdsiutehyyky")
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