com.pulumi.azure.containerapp.kotlin.inputs.AppTemplateInitContainerEnvArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.containerapp.kotlin.inputs
import com.pulumi.azure.containerapp.inputs.AppTemplateInitContainerEnvArgs.builder
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property name The name of the environment variable for the container.
* @property secretName The name of the secret that contains the value for this environment variable.
* @property value The value for this environment variable.
* > **NOTE:** This value is ignored if `secret_name` is used
*/
public data class AppTemplateInitContainerEnvArgs(
public val name: Output,
public val secretName: Output? = null,
public val `value`: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.containerapp.inputs.AppTemplateInitContainerEnvArgs =
com.pulumi.azure.containerapp.inputs.AppTemplateInitContainerEnvArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.secretName(secretName?.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppTemplateInitContainerEnvArgs].
*/
@PulumiTagMarker
public class AppTemplateInitContainerEnvArgsBuilder internal constructor() {
private var name: Output? = null
private var secretName: Output? = null
private var `value`: Output? = null
/**
* @param value The name of the environment variable for the container.
*/
@JvmName("wppgwkovggymjvbo")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the secret that contains the value for this environment variable.
*/
@JvmName("svbkhjfqlpbjavra")
public suspend fun secretName(`value`: Output) {
this.secretName = value
}
/**
* @param value The value for this environment variable.
* > **NOTE:** This value is ignored if `secret_name` is used
*/
@JvmName("pfshegbfbgyqrale")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The name of the environment variable for the container.
*/
@JvmName("asqgqwadbuopwjuk")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The name of the secret that contains the value for this environment variable.
*/
@JvmName("gvfeufedbfbjwjmk")
public suspend fun secretName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.secretName = mapped
}
/**
* @param value The value for this environment variable.
* > **NOTE:** This value is ignored if `secret_name` is used
*/
@JvmName("qdroskaessytooee")
public suspend fun `value`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): AppTemplateInitContainerEnvArgs = AppTemplateInitContainerEnvArgs(
name = name ?: throw PulumiNullFieldException("name"),
secretName = secretName,
`value` = `value`,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy