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

com.pulumi.aws.fsx.kotlin.inputs.OpenZfsFileSystemRootVolumeConfigurationNfsExportsArgs.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 *
 * @property clientConfigurations A list of configuration objects that contain the client and options for mounting the OpenZFS file system. Maximum of 25 items. See `client_configurations` Block for details.
 */
public data class OpenZfsFileSystemRootVolumeConfigurationNfsExportsArgs(
    public val clientConfigurations: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.fsx.inputs.OpenZfsFileSystemRootVolumeConfigurationNfsExportsArgs =
        com.pulumi.aws.fsx.inputs.OpenZfsFileSystemRootVolumeConfigurationNfsExportsArgs.builder()
            .clientConfigurations(
                clientConfigurations.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [OpenZfsFileSystemRootVolumeConfigurationNfsExportsArgs].
 */
@PulumiTagMarker
public class OpenZfsFileSystemRootVolumeConfigurationNfsExportsArgsBuilder internal constructor() {
    private var clientConfigurations:
        Output>? =
        null

    /**
     * @param value A list of configuration objects that contain the client and options for mounting the OpenZFS file system. Maximum of 25 items. See `client_configurations` Block for details.
     */
    @JvmName("hvsahpxufnbvykmo")
    public suspend fun clientConfigurations(`value`: Output>) {
        this.clientConfigurations = value
    }

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

    /**
     * @param values A list of configuration objects that contain the client and options for mounting the OpenZFS file system. Maximum of 25 items. See `client_configurations` Block for details.
     */
    @JvmName("iabyrodktyxgware")
    public suspend fun clientConfigurations(values: List>) {
        this.clientConfigurations = Output.all(values)
    }

    /**
     * @param value A list of configuration objects that contain the client and options for mounting the OpenZFS file system. Maximum of 25 items. See `client_configurations` Block for details.
     */
    @JvmName("iukrknenwhiccxcv")
    public suspend fun clientConfigurations(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientConfigurations = mapped
    }

    /**
     * @param argument A list of configuration objects that contain the client and options for mounting the OpenZFS file system. Maximum of 25 items. See `client_configurations` Block for details.
     */
    @JvmName("xlvyyndvmdocegha")
    public suspend fun clientConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.clientConfigurations = mapped
    }

    /**
     * @param argument A list of configuration objects that contain the client and options for mounting the OpenZFS file system. Maximum of 25 items. See `client_configurations` Block for details.
     */
    @JvmName("ybqhqdvepjreluok")
    public suspend fun clientConfigurations(vararg argument: suspend OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.clientConfigurations = mapped
    }

    /**
     * @param argument A list of configuration objects that contain the client and options for mounting the OpenZFS file system. Maximum of 25 items. See `client_configurations` Block for details.
     */
    @JvmName("xptlpxuhjodrdhuc")
    public suspend fun clientConfigurations(argument: suspend OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.clientConfigurations = mapped
    }

    /**
     * @param values A list of configuration objects that contain the client and options for mounting the OpenZFS file system. Maximum of 25 items. See `client_configurations` Block for details.
     */
    @JvmName("cqnfhwvkbwebremy")
    public suspend fun clientConfigurations(vararg values: OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientConfigurations = mapped
    }

    internal fun build(): OpenZfsFileSystemRootVolumeConfigurationNfsExportsArgs =
        OpenZfsFileSystemRootVolumeConfigurationNfsExportsArgs(
            clientConfigurations = clientConfigurations ?: throw
                PulumiNullFieldException("clientConfigurations"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy