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

com.pulumi.azurenative.storagemover.kotlin.inputs.NfsMountEndpointPropertiesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.storagemover.kotlin.inputs

import com.pulumi.azurenative.storagemover.inputs.NfsMountEndpointPropertiesArgs.builder
import com.pulumi.azurenative.storagemover.kotlin.enums.NfsVersion
import com.pulumi.core.Either
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 description A description for the Endpoint.
 * @property endpointType The Endpoint resource type.
 * Expected value is 'NfsMount'.
 * @property export The directory being exported from the server.
 * @property host The host name or IP address of the server exporting the file system.
 * @property nfsVersion The NFS protocol version.
 */
public data class NfsMountEndpointPropertiesArgs(
    public val description: Output? = null,
    public val endpointType: Output,
    public val export: Output,
    public val host: Output,
    public val nfsVersion: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.storagemover.inputs.NfsMountEndpointPropertiesArgs =
        com.pulumi.azurenative.storagemover.inputs.NfsMountEndpointPropertiesArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .endpointType(endpointType.applyValue({ args0 -> args0 }))
            .export(export.applyValue({ args0 -> args0 }))
            .host(host.applyValue({ args0 -> args0 }))
            .nfsVersion(
                nfsVersion?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [NfsMountEndpointPropertiesArgs].
 */
@PulumiTagMarker
public class NfsMountEndpointPropertiesArgsBuilder internal constructor() {
    private var description: Output? = null

    private var endpointType: Output? = null

    private var export: Output? = null

    private var host: Output? = null

    private var nfsVersion: Output>? = null

    /**
     * @param value A description for the Endpoint.
     */
    @JvmName("gfdboslykcwjqsfs")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The Endpoint resource type.
     * Expected value is 'NfsMount'.
     */
    @JvmName("cdwchnspnnxnvmdm")
    public suspend fun endpointType(`value`: Output) {
        this.endpointType = value
    }

    /**
     * @param value The directory being exported from the server.
     */
    @JvmName("tjohyvsolujkeegh")
    public suspend fun export(`value`: Output) {
        this.export = value
    }

    /**
     * @param value The host name or IP address of the server exporting the file system.
     */
    @JvmName("tapvnwogmulagtwq")
    public suspend fun host(`value`: Output) {
        this.host = value
    }

    /**
     * @param value The NFS protocol version.
     */
    @JvmName("qxsgltgrlxctxfay")
    public suspend fun nfsVersion(`value`: Output>) {
        this.nfsVersion = value
    }

    /**
     * @param value A description for the Endpoint.
     */
    @JvmName("slbejkmqygsxmdtj")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The Endpoint resource type.
     * Expected value is 'NfsMount'.
     */
    @JvmName("vdtwvftskdvywiey")
    public suspend fun endpointType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpointType = mapped
    }

    /**
     * @param value The directory being exported from the server.
     */
    @JvmName("ckxwgrvvtiueytqm")
    public suspend fun export(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.export = mapped
    }

    /**
     * @param value The host name or IP address of the server exporting the file system.
     */
    @JvmName("roviyyrxqpnjnkwo")
    public suspend fun host(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.host = mapped
    }

    /**
     * @param value The NFS protocol version.
     */
    @JvmName("kmkccbrrmlqnbake")
    public suspend fun nfsVersion(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nfsVersion = mapped
    }

    /**
     * @param value The NFS protocol version.
     */
    @JvmName("rlrkswuvucbxrino")
    public fun nfsVersion(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nfsVersion = mapped
    }

    /**
     * @param value The NFS protocol version.
     */
    @JvmName("iwqebnhxixpllsgm")
    public fun nfsVersion(`value`: NfsVersion) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nfsVersion = mapped
    }

    internal fun build(): NfsMountEndpointPropertiesArgs = NfsMountEndpointPropertiesArgs(
        description = description,
        endpointType = endpointType ?: throw PulumiNullFieldException("endpointType"),
        export = export ?: throw PulumiNullFieldException("export"),
        host = host ?: throw PulumiNullFieldException("host"),
        nfsVersion = nfsVersion,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy