All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.cloudrun.kotlin.inputs.ServiceTemplateSpecContainerEnvFromConfigMapRefArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@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.ServiceTemplateSpecContainerEnvFromConfigMapRefArgs.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 ConfigMap to select from.
 * Structure is documented below.
 * @property optional Specify whether the ConfigMap must be defined
 */
public data class ServiceTemplateSpecContainerEnvFromConfigMapRefArgs(
    public val localObjectReference: Output? = null,
    public val optional: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerEnvFromConfigMapRefArgs =
        com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerEnvFromConfigMapRefArgs.builder()
            .localObjectReference(
                localObjectReference?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .optional(optional?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceTemplateSpecContainerEnvFromConfigMapRefArgs].
 */
@PulumiTagMarker
public class ServiceTemplateSpecContainerEnvFromConfigMapRefArgsBuilder internal constructor() {
    private var localObjectReference:
        Output? = null

    private var optional: Output? = null

    /**
     * @param value The ConfigMap to select from.
     * Structure is documented below.
     */
    @JvmName("ukoxjqgkywwhvstt")
    public suspend fun localObjectReference(`value`: Output) {
        this.localObjectReference = value
    }

    /**
     * @param value Specify whether the ConfigMap must be defined
     */
    @JvmName("lxjrvtoqtuyrrrhk")
    public suspend fun optional(`value`: Output) {
        this.optional = value
    }

    /**
     * @param value The ConfigMap to select from.
     * Structure is documented below.
     */
    @JvmName("kvhridkfadehscnn")
    public suspend fun localObjectReference(`value`: ServiceTemplateSpecContainerEnvFromConfigMapRefLocalObjectReferenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localObjectReference = mapped
    }

    /**
     * @param argument The ConfigMap to select from.
     * Structure is documented below.
     */
    @JvmName("nmimbtpfmmgabotj")
    public suspend fun localObjectReference(argument: suspend ServiceTemplateSpecContainerEnvFromConfigMapRefLocalObjectReferenceArgsBuilder.() -> Unit) {
        val toBeMapped =
            ServiceTemplateSpecContainerEnvFromConfigMapRefLocalObjectReferenceArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.localObjectReference = mapped
    }

    /**
     * @param value Specify whether the ConfigMap must be defined
     */
    @JvmName("wbidbiqnqmbuxjlw")
    public suspend fun optional(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.optional = mapped
    }

    internal fun build(): ServiceTemplateSpecContainerEnvFromConfigMapRefArgs =
        ServiceTemplateSpecContainerEnvFromConfigMapRefArgs(
            localObjectReference = localObjectReference,
            optional = optional,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy