com.pulumi.kubernetes.admissionregistration.v1beta1.kotlin.inputs.VariableArgs.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.
@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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.admissionregistration.v1beta1.inputs.VariableArgs.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 VariableArgs(
public val expression: Output,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.admissionregistration.v1beta1.inputs.VariableArgs =
com.pulumi.kubernetes.admissionregistration.v1beta1.inputs.VariableArgs.builder()
.expression(expression.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VariableArgs].
*/
@PulumiTagMarker
public class VariableArgsBuilder 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("akyqgficmulhhhcd")
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("ooqruvexfjptsmrc")
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("btpcufknwnddwcvu")
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("rnqschktjwrncgyk")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): VariableArgs = VariableArgs(
expression = expression ?: throw PulumiNullFieldException("expression"),
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy