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

com.pulumi.aws.fsx.kotlin.inputs.OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.fsx.kotlin.inputs

import com.pulumi.aws.fsx.inputs.OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property clients A value that specifies who can mount the file system. You can provide a wildcard character (*), an IP address (0.0.0.0), or a CIDR address (192.0.2.0/24. By default, Amazon FSx uses the wildcard character when specifying the client.
 * @property options The options to use when mounting the file system. Maximum of 20 items. See the [Linix NFS exports man page](https://linux.die.net/man/5/exports) for more information. `crossmount` and `sync` are used by default.
 */
public data class OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgs(
    public val clients: Output,
    public val options: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.fsx.inputs.OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgs =
        com.pulumi.aws.fsx.inputs.OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgs.builder()
            .clients(clients.applyValue({ args0 -> args0 }))
            .options(options.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgs].
 */
@PulumiTagMarker
public class OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgsBuilder
internal constructor() {
    private var clients: Output? = null

    private var options: Output>? = null

    /**
     * @param value A value that specifies who can mount the file system. You can provide a wildcard character (*), an IP address (0.0.0.0), or a CIDR address (192.0.2.0/24. By default, Amazon FSx uses the wildcard character when specifying the client.
     */
    @JvmName("uyrqdnsalaievght")
    public suspend fun clients(`value`: Output) {
        this.clients = value
    }

    /**
     * @param value The options to use when mounting the file system. Maximum of 20 items. See the [Linix NFS exports man page](https://linux.die.net/man/5/exports) for more information. `crossmount` and `sync` are used by default.
     */
    @JvmName("ujjsissvsblsghbq")
    public suspend fun options(`value`: Output>) {
        this.options = value
    }

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

    /**
     * @param values The options to use when mounting the file system. Maximum of 20 items. See the [Linix NFS exports man page](https://linux.die.net/man/5/exports) for more information. `crossmount` and `sync` are used by default.
     */
    @JvmName("lpeepmsenihtxpnv")
    public suspend fun options(values: List>) {
        this.options = Output.all(values)
    }

    /**
     * @param value A value that specifies who can mount the file system. You can provide a wildcard character (*), an IP address (0.0.0.0), or a CIDR address (192.0.2.0/24. By default, Amazon FSx uses the wildcard character when specifying the client.
     */
    @JvmName("httyihjhdtafdgkp")
    public suspend fun clients(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clients = mapped
    }

    /**
     * @param value The options to use when mounting the file system. Maximum of 20 items. See the [Linix NFS exports man page](https://linux.die.net/man/5/exports) for more information. `crossmount` and `sync` are used by default.
     */
    @JvmName("yjyehdfawljebhnf")
    public suspend fun options(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.options = mapped
    }

    /**
     * @param values The options to use when mounting the file system. Maximum of 20 items. See the [Linix NFS exports man page](https://linux.die.net/man/5/exports) for more information. `crossmount` and `sync` are used by default.
     */
    @JvmName("tcwxauuasdmnfevk")
    public suspend fun options(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.options = mapped
    }

    internal fun build(): OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgs =
        OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgs(
            clients = clients ?: throw PulumiNullFieldException("clients"),
            options = options ?: throw PulumiNullFieldException("options"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy