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

com.pulumi.digitalocean.kotlin.inputs.AppSpecJobEnvArgs.kt Maven / Gradle / Ivy

@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.AppSpecJobEnvArgs.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 AppSpecJobEnvArgs(
    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.AppSpecJobEnvArgs =
        com.pulumi.digitalocean.inputs.AppSpecJobEnvArgs.builder()
            .key(key?.applyValue({ args0 -> args0 }))
            .scope(scope?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0 }))
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppSpecJobEnvArgs].
 */
@PulumiTagMarker
public class AppSpecJobEnvArgsBuilder 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("wprgndiqexhwpjal")
    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("tduykbvifknnweyb")
    public suspend fun scope(`value`: Output) {
        this.scope = value
    }

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

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

    /**
     * @param value The name of the environment variable.
     */
    @JvmName("pfkmoxqgosfkdrfv")
    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("csprltjsmdegvxdj")
    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("mcoomxqxjynamvwg")
    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("jnwyrmcqjpswswio")
    public suspend fun `value`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy