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

com.pulumi.aws.fsx.kotlin.inputs.OpenZfsVolumeNfsExportsArgs.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.OpenZfsVolumeNfsExportsArgs.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 below for details.
 */
public data class OpenZfsVolumeNfsExportsArgs(
    public val clientConfigurations: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.fsx.inputs.OpenZfsVolumeNfsExportsArgs =
        com.pulumi.aws.fsx.inputs.OpenZfsVolumeNfsExportsArgs.builder()
            .clientConfigurations(
                clientConfigurations.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [OpenZfsVolumeNfsExportsArgs].
 */
@PulumiTagMarker
public class OpenZfsVolumeNfsExportsArgsBuilder 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 below for details.
     */
    @JvmName("qvoxltkemxlfwrkq")
    public suspend fun clientConfigurations(`value`: Output>) {
        this.clientConfigurations = value
    }

    @JvmName("kssrignhmoeeuclg")
    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 below for details.
     */
    @JvmName("pxgywdfgjctqcxty")
    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 below for details.
     */
    @JvmName("muumomwkmgkpfnov")
    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 below for details.
     */
    @JvmName("gekshkfrnyhfqyvd")
    public suspend fun clientConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            OpenZfsVolumeNfsExportsClientConfigurationArgsBuilder().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 below for details.
     */
    @JvmName("oksdxypqkoubietn")
    public suspend fun clientConfigurations(vararg argument: suspend OpenZfsVolumeNfsExportsClientConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            OpenZfsVolumeNfsExportsClientConfigurationArgsBuilder().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 below for details.
     */
    @JvmName("sqjqsoyyolfruarw")
    public suspend fun clientConfigurations(argument: suspend OpenZfsVolumeNfsExportsClientConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            OpenZfsVolumeNfsExportsClientConfigurationArgsBuilder().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 below for details.
     */
    @JvmName("fgfucdigcncylsww")
    public suspend fun clientConfigurations(vararg values: OpenZfsVolumeNfsExportsClientConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientConfigurations = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy