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

@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("xyxcbhkmxihlxilw")
    public suspend fun azureBlobFileSystem(`value`: Output) {
        this.azureBlobFileSystem = value
    }

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

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

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

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

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

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

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

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

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

    /**
     * @param value A `azure_blob_file_system` block defined as below.
     */
    @JvmName("ebpntbbwjlgjpgph")
    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("etoxdhhkxajqohdq")
    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("wkqstvntyetfbnln")
    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("tqyiqcxeilyxpyin")
    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("hdiwyyyriytskosf")
    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("jccetmiysngusdcs")
    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("vebpslhkvxpgjafc")
    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("lkwwejftfrfwspff")
    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("jxikjbuwrfmtuljq")
    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("lksdysoqnwrdoior")
    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("jpjtbvxxqetxsqrt")
    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("cfqejbbigncyhngf")
    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("segfaxepreotmvoe")
    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("eibqklbgqsbavbkw")
    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("ahwtdcfeykqvftxq")
    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("bdmtbfaoqkpryayq")
    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("pfovtvtmbclihwkl")
    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 - 2024 Weber Informatics LLC | Privacy Policy