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

com.pulumi.nomad.kotlin.inputs.VolumeTopologyRequestArgs.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.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.nomad.inputs.VolumeTopologyRequestArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property required `(``Topology``: )` - Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
 */
public data class VolumeTopologyRequestArgs(
    public val required: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.nomad.inputs.VolumeTopologyRequestArgs =
        com.pulumi.nomad.inputs.VolumeTopologyRequestArgs.builder()
            .required(required?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [VolumeTopologyRequestArgs].
 */
@PulumiTagMarker
public class VolumeTopologyRequestArgsBuilder internal constructor() {
    private var required: Output? = null

    /**
     * @param value `(``Topology``: )` - Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
     */
    @JvmName("oijtmbtwyfkpkarj")
    public suspend fun required(`value`: Output) {
        this.required = value
    }

    /**
     * @param value `(``Topology``: )` - Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
     */
    @JvmName("tbjaxdineinndbfj")
    public suspend fun required(`value`: VolumeTopologyRequestRequiredArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.required = mapped
    }

    /**
     * @param argument `(``Topology``: )` - Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
     */
    @JvmName("udbigovxewcfgyck")
    public suspend fun required(argument: suspend VolumeTopologyRequestRequiredArgsBuilder.() -> Unit) {
        val toBeMapped = VolumeTopologyRequestRequiredArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.required = mapped
    }

    internal fun build(): VolumeTopologyRequestArgs = VolumeTopologyRequestArgs(
        required = required,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy