com.pulumi.gcp.cloudrun.kotlin.inputs.ServiceTemplateSpecContainerEnvArgs.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.cloudrun.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerEnvArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
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.
* @property value Defaults to "".
* @property valueFrom Source for the environment variable's value. Only supports secret_key_ref.
* Structure is documented below.
*/
public data class ServiceTemplateSpecContainerEnvArgs(
public val name: Output? = null,
public val `value`: Output? = null,
public val valueFrom: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerEnvArgs =
com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerEnvArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 }))
.valueFrom(valueFrom?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ServiceTemplateSpecContainerEnvArgs].
*/
@PulumiTagMarker
public class ServiceTemplateSpecContainerEnvArgsBuilder internal constructor() {
private var name: Output? = null
private var `value`: Output? = null
private var valueFrom: Output? = null
/**
* @param value Name of the environment variable.
*/
@JvmName("txkpheekpybhriot")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Defaults to "".
*/
@JvmName("mndlhoylcschfjcn")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Source for the environment variable's value. Only supports secret_key_ref.
* Structure is documented below.
*/
@JvmName("tuksgfayfpnhtcda")
public suspend fun valueFrom(`value`: Output) {
this.valueFrom = value
}
/**
* @param value Name of the environment variable.
*/
@JvmName("hhnrufpodcjlduow")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Defaults to "".
*/
@JvmName("sepxxoudgfckrkml")
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. Only supports secret_key_ref.
* Structure is documented below.
*/
@JvmName("uweukmmnbysuuxbv")
public suspend fun valueFrom(`value`: ServiceTemplateSpecContainerEnvValueFromArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.valueFrom = mapped
}
/**
* @param argument Source for the environment variable's value. Only supports secret_key_ref.
* Structure is documented below.
*/
@JvmName("mabeufbjcutrstld")
public suspend fun valueFrom(argument: suspend ServiceTemplateSpecContainerEnvValueFromArgsBuilder.() -> Unit) {
val toBeMapped = ServiceTemplateSpecContainerEnvValueFromArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.valueFrom = mapped
}
internal fun build(): ServiceTemplateSpecContainerEnvArgs = ServiceTemplateSpecContainerEnvArgs(
name = name,
`value` = `value`,
valueFrom = valueFrom,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy