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

com.pulumi.gcp.deploymentmanager.kotlin.inputs.DeploymentTargetArgs.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.deploymentmanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.deploymentmanager.inputs.DeploymentTargetArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property config The root configuration file to use for this deployment.
 * Structure is documented below.
 * @property imports Specifies import files for this configuration. This can be
 * used to import templates or other files. For example, you might
 * import a text file in order to use the file in a template.
 * Structure is documented below.
 */
public data class DeploymentTargetArgs(
    public val config: Output,
    public val imports: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.deploymentmanager.inputs.DeploymentTargetArgs =
        com.pulumi.gcp.deploymentmanager.inputs.DeploymentTargetArgs.builder()
            .config(config.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .imports(
                imports?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DeploymentTargetArgs].
 */
@PulumiTagMarker
public class DeploymentTargetArgsBuilder internal constructor() {
    private var config: Output? = null

    private var imports: Output>? = null

    /**
     * @param value The root configuration file to use for this deployment.
     * Structure is documented below.
     */
    @JvmName("xhjcgdpmvyoijbes")
    public suspend fun config(`value`: Output) {
        this.config = value
    }

    /**
     * @param value Specifies import files for this configuration. This can be
     * used to import templates or other files. For example, you might
     * import a text file in order to use the file in a template.
     * Structure is documented below.
     */
    @JvmName("kxrxscyjxqdsbyny")
    public suspend fun imports(`value`: Output>) {
        this.imports = value
    }

    @JvmName("itjfqxnvcaqiltvv")
    public suspend fun imports(vararg values: Output) {
        this.imports = Output.all(values.asList())
    }

    /**
     * @param values Specifies import files for this configuration. This can be
     * used to import templates or other files. For example, you might
     * import a text file in order to use the file in a template.
     * Structure is documented below.
     */
    @JvmName("cqlxkmykpstjrxur")
    public suspend fun imports(values: List>) {
        this.imports = Output.all(values)
    }

    /**
     * @param value The root configuration file to use for this deployment.
     * Structure is documented below.
     */
    @JvmName("fvkadgsdutumqhgc")
    public suspend fun config(`value`: DeploymentTargetConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.config = mapped
    }

    /**
     * @param argument The root configuration file to use for this deployment.
     * Structure is documented below.
     */
    @JvmName("wafssshrjvnxerri")
    public suspend fun config(argument: suspend DeploymentTargetConfigArgsBuilder.() -> Unit) {
        val toBeMapped = DeploymentTargetConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.config = mapped
    }

    /**
     * @param value Specifies import files for this configuration. This can be
     * used to import templates or other files. For example, you might
     * import a text file in order to use the file in a template.
     * Structure is documented below.
     */
    @JvmName("qkwnijjwsfabawmw")
    public suspend fun imports(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imports = mapped
    }

    /**
     * @param argument Specifies import files for this configuration. This can be
     * used to import templates or other files. For example, you might
     * import a text file in order to use the file in a template.
     * Structure is documented below.
     */
    @JvmName("solymldjrsnbotin")
    public suspend fun imports(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DeploymentTargetImportArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.imports = mapped
    }

    /**
     * @param argument Specifies import files for this configuration. This can be
     * used to import templates or other files. For example, you might
     * import a text file in order to use the file in a template.
     * Structure is documented below.
     */
    @JvmName("javowoidgpdhrxhc")
    public suspend fun imports(vararg argument: suspend DeploymentTargetImportArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DeploymentTargetImportArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.imports = mapped
    }

    /**
     * @param argument Specifies import files for this configuration. This can be
     * used to import templates or other files. For example, you might
     * import a text file in order to use the file in a template.
     * Structure is documented below.
     */
    @JvmName("eaigxhbuwranrvjk")
    public suspend fun imports(argument: suspend DeploymentTargetImportArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DeploymentTargetImportArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.imports = mapped
    }

    /**
     * @param values Specifies import files for this configuration. This can be
     * used to import templates or other files. For example, you might
     * import a text file in order to use the file in a template.
     * Structure is documented below.
     */
    @JvmName("jjvdopmjgjtqqvyg")
    public suspend fun imports(vararg values: DeploymentTargetImportArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.imports = mapped
    }

    internal fun build(): DeploymentTargetArgs = DeploymentTargetArgs(
        config = config ?: throw PulumiNullFieldException("config"),
        imports = imports,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy