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

com.pulumi.azurenative.containerstorage.kotlin.inputs.EphemeralDiskArgs.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.containerstorage.kotlin.inputs

import com.pulumi.azurenative.containerstorage.inputs.EphemeralDiskArgs.builder
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 kotlin.Double
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Ephemeral Disk Pool Properties
 * @property disks Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).
 * @property replicas The number of data copies. Default 3.
 */
public data class EphemeralDiskArgs(
    public val disks: Output>? = null,
    public val replicas: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.containerstorage.inputs.EphemeralDiskArgs =
        com.pulumi.azurenative.containerstorage.inputs.EphemeralDiskArgs.builder()
            .disks(disks?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .replicas(replicas?.applyValue({ args0 -> args0 })).build()
}

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

    private var replicas: Output? = null

    /**
     * @param value Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).
     */
    @JvmName("utpsciyqyaqcwamg")
    public suspend fun disks(`value`: Output>) {
        this.disks = value
    }

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

    /**
     * @param values Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).
     */
    @JvmName("hnqxspyagbvljexi")
    public suspend fun disks(values: List>) {
        this.disks = Output.all(values)
    }

    /**
     * @param value The number of data copies. Default 3.
     */
    @JvmName("dyxasncecqiimrcc")
    public suspend fun replicas(`value`: Output) {
        this.replicas = value
    }

    /**
     * @param value Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).
     */
    @JvmName("ydajncvrncgtmesi")
    public suspend fun disks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disks = mapped
    }

    /**
     * @param argument Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).
     */
    @JvmName("bprejpdmbahwywil")
    public suspend fun disks(argument: List Unit>) {
        val toBeMapped = argument.toList().map { DiskArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.disks = mapped
    }

    /**
     * @param argument Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).
     */
    @JvmName("uojtuciqgvgiksxe")
    public suspend fun disks(vararg argument: suspend DiskArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { DiskArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.disks = mapped
    }

    /**
     * @param argument Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).
     */
    @JvmName("cqhqummunhcjrubc")
    public suspend fun disks(argument: suspend DiskArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DiskArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.disks = mapped
    }

    /**
     * @param values Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).
     */
    @JvmName("tbblealxqhtstwqo")
    public suspend fun disks(vararg values: DiskArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.disks = mapped
    }

    /**
     * @param value The number of data copies. Default 3.
     */
    @JvmName("mnkgmbsoxdjsjpyl")
    public suspend fun replicas(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replicas = mapped
    }

    internal fun build(): EphemeralDiskArgs = EphemeralDiskArgs(
        disks = disks,
        replicas = replicas,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy