com.pulumi.gcp.cloudrunv2.kotlin.inputs.JobTemplateTemplateContainerEnvArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.cloudrunv2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateContainerEnvArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property name Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
* @property value Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
* @property valueSource Source for the environment variable's value.
* Structure is documented below.
*/
public data class JobTemplateTemplateContainerEnvArgs(
public val name: Output,
public val `value`: Output? = null,
public val valueSource: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateContainerEnvArgs =
com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateContainerEnvArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 }))
.valueSource(valueSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [JobTemplateTemplateContainerEnvArgs].
*/
@PulumiTagMarker
public class JobTemplateTemplateContainerEnvArgsBuilder internal constructor() {
private var name: Output? = null
private var `value`: Output? = null
private var valueSource: Output? = null
/**
* @param value Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
*/
@JvmName("dngiafdtyejhqseg")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
*/
@JvmName("aqxxnidfwnhbrado")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Source for the environment variable's value.
* Structure is documented below.
*/
@JvmName("kgnkxyquhovglwem")
public suspend fun valueSource(`value`: Output) {
this.valueSource = value
}
/**
* @param value Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
*/
@JvmName("ytcugodbkgedkjxr")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
*/
@JvmName("kxbippnhqkgfugvr")
public suspend fun `value`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
/**
* @param value Source for the environment variable's value.
* Structure is documented below.
*/
@JvmName("vvoijhfbtqfipijv")
public suspend fun valueSource(`value`: JobTemplateTemplateContainerEnvValueSourceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.valueSource = mapped
}
/**
* @param argument Source for the environment variable's value.
* Structure is documented below.
*/
@JvmName("uohhvxfiyxjeqadt")
public suspend fun valueSource(argument: suspend JobTemplateTemplateContainerEnvValueSourceArgsBuilder.() -> Unit) {
val toBeMapped = JobTemplateTemplateContainerEnvValueSourceArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.valueSource = mapped
}
internal fun build(): JobTemplateTemplateContainerEnvArgs = JobTemplateTemplateContainerEnvArgs(
name = name ?: throw PulumiNullFieldException("name"),
`value` = `value`,
valueSource = valueSource,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy