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

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

package com.pulumi.nomad.kotlin.inputs

import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.nomad.inputs.GetVariablePlainArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getVariable.
 * @property namespace `(string: "default")` - The namepsace in which the variable exists.
 * @property path `(string)` - Path to the existing variable.
 */
public data class GetVariablePlainArgs(
    public val namespace: String? = null,
    public val path: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.nomad.inputs.GetVariablePlainArgs =
        com.pulumi.nomad.inputs.GetVariablePlainArgs.builder()
            .namespace(namespace?.let({ args0 -> args0 }))
            .path(path.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetVariablePlainArgs].
 */
@PulumiTagMarker
public class GetVariablePlainArgsBuilder internal constructor() {
    private var namespace: String? = null

    private var path: String? = null

    /**
     * @param value `(string: "default")` - The namepsace in which the variable exists.
     */
    @JvmName("mftcpyjeojqodmjn")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.namespace = mapped
    }

    /**
     * @param value `(string)` - Path to the existing variable.
     */
    @JvmName("vciklwqcnrjjkedi")
    public suspend fun path(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.path = mapped
    }

    internal fun build(): GetVariablePlainArgs = GetVariablePlainArgs(
        namespace = namespace,
        path = path ?: throw PulumiNullFieldException("path"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy