com.pulumi.gcp.cloudrun.kotlin.inputs.ServiceTemplateSpecContainerEnvFromSecretRefArgs.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.ServiceTemplateSpecContainerEnvFromSecretRefArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property localObjectReference The Secret to select from.
* Structure is documented below.
* @property optional Specify whether the Secret must be defined
*/
public data class ServiceTemplateSpecContainerEnvFromSecretRefArgs(
public val localObjectReference: Output? = null,
public val optional: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerEnvFromSecretRefArgs =
com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerEnvFromSecretRefArgs.builder()
.localObjectReference(
localObjectReference?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.optional(optional?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceTemplateSpecContainerEnvFromSecretRefArgs].
*/
@PulumiTagMarker
public class ServiceTemplateSpecContainerEnvFromSecretRefArgsBuilder internal constructor() {
private var localObjectReference:
Output? = null
private var optional: Output? = null
/**
* @param value The Secret to select from.
* Structure is documented below.
*/
@JvmName("ibebuhbshbateotx")
public suspend fun localObjectReference(`value`: Output) {
this.localObjectReference = value
}
/**
* @param value Specify whether the Secret must be defined
*/
@JvmName("aijmcartyxlgxskt")
public suspend fun optional(`value`: Output) {
this.optional = value
}
/**
* @param value The Secret to select from.
* Structure is documented below.
*/
@JvmName("btjtgoepnbtarmcc")
public suspend fun localObjectReference(`value`: ServiceTemplateSpecContainerEnvFromSecretRefLocalObjectReferenceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.localObjectReference = mapped
}
/**
* @param argument The Secret to select from.
* Structure is documented below.
*/
@JvmName("ggcpvgtycwtdxkud")
public suspend fun localObjectReference(argument: suspend ServiceTemplateSpecContainerEnvFromSecretRefLocalObjectReferenceArgsBuilder.() -> Unit) {
val toBeMapped =
ServiceTemplateSpecContainerEnvFromSecretRefLocalObjectReferenceArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.localObjectReference = mapped
}
/**
* @param value Specify whether the Secret must be defined
*/
@JvmName("rwckxjwtjsvndgxg")
public suspend fun optional(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.optional = mapped
}
internal fun build(): ServiceTemplateSpecContainerEnvFromSecretRefArgs =
ServiceTemplateSpecContainerEnvFromSecretRefArgs(
localObjectReference = localObjectReference,
optional = optional,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy