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

com.pulumi.digitalocean.kotlin.inputs.AppSpecStaticSiteEnvArgs.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: 4.38.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.digitalocean.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.AppSpecStaticSiteEnvArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property key The name of the environment variable.
 * @property scope The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
 * @property type The type of the environment variable, `GENERAL` or `SECRET`.
 * @property value The value of the environment variable.
 */
public data class AppSpecStaticSiteEnvArgs(
    public val key: Output? = null,
    public val scope: Output? = null,
    public val type: Output? = null,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecStaticSiteEnvArgs =
        com.pulumi.digitalocean.inputs.AppSpecStaticSiteEnvArgs.builder()
            .key(key?.applyValue({ args0 -> args0 }))
            .scope(scope?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0 }))
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppSpecStaticSiteEnvArgs].
 */
@PulumiTagMarker
public class AppSpecStaticSiteEnvArgsBuilder internal constructor() {
    private var key: Output? = null

    private var scope: Output? = null

    private var type: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The name of the environment variable.
     */
    @JvmName("clerhjiewshsofnm")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
     */
    @JvmName("rxlvtnfahcniusum")
    public suspend fun scope(`value`: Output) {
        this.scope = value
    }

    /**
     * @param value The type of the environment variable, `GENERAL` or `SECRET`.
     */
    @JvmName("lpexikgtjxmtpsek")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The value of the environment variable.
     */
    @JvmName("llcilluraweitsvq")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The name of the environment variable.
     */
    @JvmName("xwuenmdgfyaychnm")
    public suspend fun key(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.key = mapped
    }

    /**
     * @param value The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
     */
    @JvmName("dkaetesuennmmcco")
    public suspend fun scope(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scope = mapped
    }

    /**
     * @param value The type of the environment variable, `GENERAL` or `SECRET`.
     */
    @JvmName("timwlhblxtfppkxw")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The value of the environment variable.
     */
    @JvmName("qyqcbsnbpuyrjhva")
    public suspend fun `value`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): AppSpecStaticSiteEnvArgs = AppSpecStaticSiteEnvArgs(
        key = key,
        scope = scope,
        type = type,
        `value` = `value`,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy