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

com.pulumi.azure.batch.kotlin.inputs.PoolMountArgs.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: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.batch.kotlin.inputs

import com.pulumi.azure.batch.inputs.PoolMountArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property azureBlobFileSystem A `azure_blob_file_system` block defined as below.
 * @property azureFileShares A `azure_file_share` block defined as below.
 * @property cifsMounts A `cifs_mount` block defined as below.
 * @property nfsMounts A `nfs_mount` block defined as below.
 */
public data class PoolMountArgs(
    public val azureBlobFileSystem: Output? = null,
    public val azureFileShares: Output>? = null,
    public val cifsMounts: Output>? = null,
    public val nfsMounts: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.batch.inputs.PoolMountArgs =
        com.pulumi.azure.batch.inputs.PoolMountArgs.builder()
            .azureBlobFileSystem(
                azureBlobFileSystem?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .azureFileShares(
                azureFileShares?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .cifsMounts(
                cifsMounts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .nfsMounts(
                nfsMounts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [PoolMountArgs].
 */
@PulumiTagMarker
public class PoolMountArgsBuilder internal constructor() {
    private var azureBlobFileSystem: Output? = null

    private var azureFileShares: Output>? = null

    private var cifsMounts: Output>? = null

    private var nfsMounts: Output>? = null

    /**
     * @param value A `azure_blob_file_system` block defined as below.
     */
    @JvmName("xvbaksmxlkrjeqsf")
    public suspend fun azureBlobFileSystem(`value`: Output) {
        this.azureBlobFileSystem = value
    }

    /**
     * @param value A `azure_file_share` block defined as below.
     */
    @JvmName("bipqratqvoqqsgna")
    public suspend fun azureFileShares(`value`: Output>) {
        this.azureFileShares = value
    }

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

    /**
     * @param values A `azure_file_share` block defined as below.
     */
    @JvmName("enyadxbgpcxkvynl")
    public suspend fun azureFileShares(values: List>) {
        this.azureFileShares = Output.all(values)
    }

    /**
     * @param value A `cifs_mount` block defined as below.
     */
    @JvmName("hxadbkvcxnavtsgj")
    public suspend fun cifsMounts(`value`: Output>) {
        this.cifsMounts = value
    }

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

    /**
     * @param values A `cifs_mount` block defined as below.
     */
    @JvmName("hqtteegibnwmghxh")
    public suspend fun cifsMounts(values: List>) {
        this.cifsMounts = Output.all(values)
    }

    /**
     * @param value A `nfs_mount` block defined as below.
     */
    @JvmName("imfdebcbveewmjuo")
    public suspend fun nfsMounts(`value`: Output>) {
        this.nfsMounts = value
    }

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

    /**
     * @param values A `nfs_mount` block defined as below.
     */
    @JvmName("myqlngeeencuujkf")
    public suspend fun nfsMounts(values: List>) {
        this.nfsMounts = Output.all(values)
    }

    /**
     * @param value A `azure_blob_file_system` block defined as below.
     */
    @JvmName("rfomvckdmrombmbu")
    public suspend fun azureBlobFileSystem(`value`: PoolMountAzureBlobFileSystemArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureBlobFileSystem = mapped
    }

    /**
     * @param argument A `azure_blob_file_system` block defined as below.
     */
    @JvmName("ayhtaydkgfcdeptl")
    public suspend
    fun azureBlobFileSystem(argument: suspend PoolMountAzureBlobFileSystemArgsBuilder.() -> Unit) {
        val toBeMapped = PoolMountAzureBlobFileSystemArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.azureBlobFileSystem = mapped
    }

    /**
     * @param value A `azure_file_share` block defined as below.
     */
    @JvmName("hbpdtwfmjhikcuqw")
    public suspend fun azureFileShares(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureFileShares = mapped
    }

    /**
     * @param argument A `azure_file_share` block defined as below.
     */
    @JvmName("oignkpkamiqqphsr")
    public suspend
    fun azureFileShares(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PoolMountAzureFileShareArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.azureFileShares = mapped
    }

    /**
     * @param argument A `azure_file_share` block defined as below.
     */
    @JvmName("qdbrkaltogpbqwmf")
    public suspend fun azureFileShares(
        vararg
        argument: suspend PoolMountAzureFileShareArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            PoolMountAzureFileShareArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.azureFileShares = mapped
    }

    /**
     * @param argument A `azure_file_share` block defined as below.
     */
    @JvmName("iaqgjhmhsgbyimae")
    public suspend
    fun azureFileShares(argument: suspend PoolMountAzureFileShareArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PoolMountAzureFileShareArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.azureFileShares = mapped
    }

    /**
     * @param values A `azure_file_share` block defined as below.
     */
    @JvmName("cshwdiiwemvhlbhv")
    public suspend fun azureFileShares(vararg values: PoolMountAzureFileShareArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.azureFileShares = mapped
    }

    /**
     * @param value A `cifs_mount` block defined as below.
     */
    @JvmName("wtjkjvolhsjyocrk")
    public suspend fun cifsMounts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cifsMounts = mapped
    }

    /**
     * @param argument A `cifs_mount` block defined as below.
     */
    @JvmName("qukpdwjljwxqjrmq")
    public suspend fun cifsMounts(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PoolMountCifsMountArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.cifsMounts = mapped
    }

    /**
     * @param argument A `cifs_mount` block defined as below.
     */
    @JvmName("tfesfxbmuikdydtv")
    public suspend fun cifsMounts(vararg argument: suspend PoolMountCifsMountArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PoolMountCifsMountArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.cifsMounts = mapped
    }

    /**
     * @param argument A `cifs_mount` block defined as below.
     */
    @JvmName("teodpxlfhpoldmfg")
    public suspend fun cifsMounts(argument: suspend PoolMountCifsMountArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(PoolMountCifsMountArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.cifsMounts = mapped
    }

    /**
     * @param values A `cifs_mount` block defined as below.
     */
    @JvmName("hdgcjltrdufbnfxj")
    public suspend fun cifsMounts(vararg values: PoolMountCifsMountArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cifsMounts = mapped
    }

    /**
     * @param value A `nfs_mount` block defined as below.
     */
    @JvmName("thrjjikumfinjgol")
    public suspend fun nfsMounts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nfsMounts = mapped
    }

    /**
     * @param argument A `nfs_mount` block defined as below.
     */
    @JvmName("ufuuxewxpgwrytvn")
    public suspend fun nfsMounts(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PoolMountNfsMountArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.nfsMounts = mapped
    }

    /**
     * @param argument A `nfs_mount` block defined as below.
     */
    @JvmName("kdicrkggwisdrute")
    public suspend fun nfsMounts(vararg argument: suspend PoolMountNfsMountArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PoolMountNfsMountArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.nfsMounts = mapped
    }

    /**
     * @param argument A `nfs_mount` block defined as below.
     */
    @JvmName("tapjimxlwsbjkewq")
    public suspend fun nfsMounts(argument: suspend PoolMountNfsMountArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(PoolMountNfsMountArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.nfsMounts = mapped
    }

    /**
     * @param values A `nfs_mount` block defined as below.
     */
    @JvmName("ghrxwkugcmqwpwsj")
    public suspend fun nfsMounts(vararg values: PoolMountNfsMountArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nfsMounts = mapped
    }

    internal fun build(): PoolMountArgs = PoolMountArgs(
        azureBlobFileSystem = azureBlobFileSystem,
        azureFileShares = azureFileShares,
        cifsMounts = cifsMounts,
        nfsMounts = nfsMounts,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy