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

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

package com.pulumi.nomad.kotlin.inputs

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

/**
 *
 * @property topologies Defines the location for the volume.
 */
public data class CsiVolumeTopologyRequestRequiredArgs(
    public val topologies: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.nomad.inputs.CsiVolumeTopologyRequestRequiredArgs =
        com.pulumi.nomad.inputs.CsiVolumeTopologyRequestRequiredArgs.builder()
            .topologies(
                topologies.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [CsiVolumeTopologyRequestRequiredArgs].
 */
@PulumiTagMarker
public class CsiVolumeTopologyRequestRequiredArgsBuilder internal constructor() {
    private var topologies: Output>? = null

    /**
     * @param value Defines the location for the volume.
     */
    @JvmName("lqahqgggmcuyykqo")
    public suspend fun topologies(`value`: Output>) {
        this.topologies = value
    }

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

    /**
     * @param values Defines the location for the volume.
     */
    @JvmName("iowrwmhkcedgqtcg")
    public suspend fun topologies(values: List>) {
        this.topologies = Output.all(values)
    }

    /**
     * @param value Defines the location for the volume.
     */
    @JvmName("cmterrkhrpaaphsn")
    public suspend fun topologies(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.topologies = mapped
    }

    /**
     * @param argument Defines the location for the volume.
     */
    @JvmName("rcnjtgmmddgsggwb")
    public suspend fun topologies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CsiVolumeTopologyRequestRequiredTopologyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.topologies = mapped
    }

    /**
     * @param argument Defines the location for the volume.
     */
    @JvmName("swmbtfnltsphoqjn")
    public suspend fun topologies(vararg argument: suspend CsiVolumeTopologyRequestRequiredTopologyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CsiVolumeTopologyRequestRequiredTopologyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.topologies = mapped
    }

    /**
     * @param argument Defines the location for the volume.
     */
    @JvmName("tkhoddtprrxbmfua")
    public suspend fun topologies(argument: suspend CsiVolumeTopologyRequestRequiredTopologyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CsiVolumeTopologyRequestRequiredTopologyArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.topologies = mapped
    }

    /**
     * @param values Defines the location for the volume.
     */
    @JvmName("bvopstxadjogafuc")
    public suspend fun topologies(vararg values: CsiVolumeTopologyRequestRequiredTopologyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.topologies = mapped
    }

    internal fun build(): CsiVolumeTopologyRequestRequiredArgs = CsiVolumeTopologyRequestRequiredArgs(
        topologies = topologies ?: throw PulumiNullFieldException("topologies"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy