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

com.pulumi.nomad.kotlin.inputs.VolumeTopologyRequestRequiredArgs.kt Maven / Gradle / Ivy

@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.VolumeTopologyRequestRequiredArgs.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 VolumeTopologyRequestRequiredArgs(
    public val topologies: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.nomad.inputs.VolumeTopologyRequestRequiredArgs =
        com.pulumi.nomad.inputs.VolumeTopologyRequestRequiredArgs.builder()
            .topologies(
                topologies.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

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

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

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

    /**
     * @param value Defines the location for the volume.
     */
    @JvmName("smkxeoucifgaimxy")
    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("tophdwimixbcejxp")
    public suspend fun topologies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VolumeTopologyRequestRequiredTopologyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.topologies = mapped
    }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy