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

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

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

import com.pulumi.azure.batch.inputs.PoolMountAzureFileShareArgs.builder
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property accountKey The Azure Storage Account key.
 * @property accountName The Azure Storage Account name.
 * @property azureFileUrl The Azure Files URL. This is of the form 'https://{account}.file.core.windows.net/'.
 * @property mountOptions Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux.
 * @property relativeMountPath The relative path on compute node where the file system will be mounted All file systems are mounted relative to the Batch mounts directory, accessible via the `AZ_BATCH_NODE_MOUNTS_DIR` environment variable.
 */
public data class PoolMountAzureFileShareArgs(
    public val accountKey: Output,
    public val accountName: Output,
    public val azureFileUrl: Output,
    public val mountOptions: Output? = null,
    public val relativeMountPath: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.batch.inputs.PoolMountAzureFileShareArgs =
        com.pulumi.azure.batch.inputs.PoolMountAzureFileShareArgs.builder()
            .accountKey(accountKey.applyValue({ args0 -> args0 }))
            .accountName(accountName.applyValue({ args0 -> args0 }))
            .azureFileUrl(azureFileUrl.applyValue({ args0 -> args0 }))
            .mountOptions(mountOptions?.applyValue({ args0 -> args0 }))
            .relativeMountPath(relativeMountPath.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PoolMountAzureFileShareArgs].
 */
@PulumiTagMarker
public class PoolMountAzureFileShareArgsBuilder internal constructor() {
    private var accountKey: Output? = null

    private var accountName: Output? = null

    private var azureFileUrl: Output? = null

    private var mountOptions: Output? = null

    private var relativeMountPath: Output? = null

    /**
     * @param value The Azure Storage Account key.
     */
    @JvmName("gochpfiiirtrdkbv")
    public suspend fun accountKey(`value`: Output) {
        this.accountKey = value
    }

    /**
     * @param value The Azure Storage Account name.
     */
    @JvmName("gbikvpefxtuiykxl")
    public suspend fun accountName(`value`: Output) {
        this.accountName = value
    }

    /**
     * @param value The Azure Files URL. This is of the form 'https://{account}.file.core.windows.net/'.
     */
    @JvmName("yhqigopgybunimwn")
    public suspend fun azureFileUrl(`value`: Output) {
        this.azureFileUrl = value
    }

    /**
     * @param value Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux.
     */
    @JvmName("kxsfrrijmewrsayy")
    public suspend fun mountOptions(`value`: Output) {
        this.mountOptions = value
    }

    /**
     * @param value The relative path on compute node where the file system will be mounted All file systems are mounted relative to the Batch mounts directory, accessible via the `AZ_BATCH_NODE_MOUNTS_DIR` environment variable.
     */
    @JvmName("toqqlbstxhuyaxpo")
    public suspend fun relativeMountPath(`value`: Output) {
        this.relativeMountPath = value
    }

    /**
     * @param value The Azure Storage Account key.
     */
    @JvmName("aclwmyhiphjlfqad")
    public suspend fun accountKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accountKey = mapped
    }

    /**
     * @param value The Azure Storage Account name.
     */
    @JvmName("opfgwvndcjwglyke")
    public suspend fun accountName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accountName = mapped
    }

    /**
     * @param value The Azure Files URL. This is of the form 'https://{account}.file.core.windows.net/'.
     */
    @JvmName("ttcspbbivjyrffls")
    public suspend fun azureFileUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.azureFileUrl = mapped
    }

    /**
     * @param value Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux.
     */
    @JvmName("hlckpjcphspkunyu")
    public suspend fun mountOptions(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mountOptions = mapped
    }

    /**
     * @param value The relative path on compute node where the file system will be mounted All file systems are mounted relative to the Batch mounts directory, accessible via the `AZ_BATCH_NODE_MOUNTS_DIR` environment variable.
     */
    @JvmName("tqbycbtuskkkmlnv")
    public suspend fun relativeMountPath(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.relativeMountPath = mapped
    }

    internal fun build(): PoolMountAzureFileShareArgs = PoolMountAzureFileShareArgs(
        accountKey = accountKey ?: throw PulumiNullFieldException("accountKey"),
        accountName = accountName ?: throw PulumiNullFieldException("accountName"),
        azureFileUrl = azureFileUrl ?: throw PulumiNullFieldException("azureFileUrl"),
        mountOptions = mountOptions,
        relativeMountPath = relativeMountPath ?: throw PulumiNullFieldException("relativeMountPath"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy