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

com.pulumi.nomad.kotlin.inputs.CsiVolumeTopologyRequestRequiredTopologyArgs.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.nomad.inputs.CsiVolumeTopologyRequestRequiredTopologyArgs.builder
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property segments Define the attributes for the topology request.
 */
public data class CsiVolumeTopologyRequestRequiredTopologyArgs(
    public val segments: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.nomad.inputs.CsiVolumeTopologyRequestRequiredTopologyArgs =
        com.pulumi.nomad.inputs.CsiVolumeTopologyRequestRequiredTopologyArgs.builder()
            .segments(
                segments.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    /**
     * @param value Define the attributes for the topology request.
     */
    @JvmName("bdohncofjcfugdbr")
    public suspend fun segments(`value`: Output>) {
        this.segments = value
    }

    /**
     * @param value Define the attributes for the topology request.
     */
    @JvmName("smyngalljirjrhil")
    public suspend fun segments(`value`: Map) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.segments = mapped
    }

    /**
     * @param values Define the attributes for the topology request.
     */
    @JvmName("xhntrkggsughjnid")
    public fun segments(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.segments = mapped
    }

    internal fun build(): CsiVolumeTopologyRequestRequiredTopologyArgs =
        CsiVolumeTopologyRequestRequiredTopologyArgs(
            segments = segments ?: throw PulumiNullFieldException("segments"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy