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

com.pulumi.nomad.kotlin.inputs.VolumeMountOptionsArgs.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.4.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.nomad.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.nomad.inputs.VolumeMountOptionsArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property fsType `(string: )` - The file system type.
 * @property mountFlags `([]string: )` - The flags passed to `mount`.
 */
public data class VolumeMountOptionsArgs(
    public val fsType: Output? = null,
    public val mountFlags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.nomad.inputs.VolumeMountOptionsArgs =
        com.pulumi.nomad.inputs.VolumeMountOptionsArgs.builder()
            .fsType(fsType?.applyValue({ args0 -> args0 }))
            .mountFlags(mountFlags?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [VolumeMountOptionsArgs].
 */
@PulumiTagMarker
public class VolumeMountOptionsArgsBuilder internal constructor() {
    private var fsType: Output? = null

    private var mountFlags: Output>? = null

    /**
     * @param value `(string: )` - The file system type.
     */
    @JvmName("wrnbxibswuqfqnke")
    public suspend fun fsType(`value`: Output) {
        this.fsType = value
    }

    /**
     * @param value `([]string: )` - The flags passed to `mount`.
     */
    @JvmName("pkethtstehwnafbm")
    public suspend fun mountFlags(`value`: Output>) {
        this.mountFlags = value
    }

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

    /**
     * @param values `([]string: )` - The flags passed to `mount`.
     */
    @JvmName("xvquusylowmeafhj")
    public suspend fun mountFlags(values: List>) {
        this.mountFlags = Output.all(values)
    }

    /**
     * @param value `(string: )` - The file system type.
     */
    @JvmName("xqkxdodjwpvqqljw")
    public suspend fun fsType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fsType = mapped
    }

    /**
     * @param value `([]string: )` - The flags passed to `mount`.
     */
    @JvmName("ajrbfcariiioejgn")
    public suspend fun mountFlags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mountFlags = mapped
    }

    /**
     * @param values `([]string: )` - The flags passed to `mount`.
     */
    @JvmName("prukqyuwhxkpvnva")
    public suspend fun mountFlags(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mountFlags = mapped
    }

    internal fun build(): VolumeMountOptionsArgs = VolumeMountOptionsArgs(
        fsType = fsType,
        mountFlags = mountFlags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy