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

com.pulumi.azurenative.compute.kotlin.inputs.DisallowedArgs.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.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.compute.kotlin.inputs

import com.pulumi.azurenative.compute.inputs.DisallowedArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Describes the disallowed disk types.
 * @property diskTypes A list of disk types.
 */
public data class DisallowedArgs(
    public val diskTypes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.compute.inputs.DisallowedArgs =
        com.pulumi.azurenative.compute.inputs.DisallowedArgs.builder()
            .diskTypes(diskTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    /**
     * @param value A list of disk types.
     */
    @JvmName("esknqyuvpnjfwori")
    public suspend fun diskTypes(`value`: Output>) {
        this.diskTypes = value
    }

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

    /**
     * @param values A list of disk types.
     */
    @JvmName("lfevmqlyixgckjpf")
    public suspend fun diskTypes(values: List>) {
        this.diskTypes = Output.all(values)
    }

    /**
     * @param value A list of disk types.
     */
    @JvmName("wqhfvntmitdxmqaf")
    public suspend fun diskTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskTypes = mapped
    }

    /**
     * @param values A list of disk types.
     */
    @JvmName("jruutqciipucjxgq")
    public suspend fun diskTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.diskTypes = mapped
    }

    internal fun build(): DisallowedArgs = DisallowedArgs(
        diskTypes = diskTypes,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy