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

com.pulumi.awsnative.datasync.kotlin.inputs.LocationNfsOnPremConfigArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.datasync.kotlin.inputs

import com.pulumi.awsnative.datasync.inputs.LocationNfsOnPremConfigArgs.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

/**
 * Contains a list of Amazon Resource Names (ARNs) of agents that are used to connect an NFS server.
 * @property agentArns ARN(s) of the agent(s) to use for an NFS location.
 */
public data class LocationNfsOnPremConfigArgs(
    public val agentArns: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.inputs.LocationNfsOnPremConfigArgs =
        com.pulumi.awsnative.datasync.inputs.LocationNfsOnPremConfigArgs.builder()
            .agentArns(agentArns.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    /**
     * @param value ARN(s) of the agent(s) to use for an NFS location.
     */
    @JvmName("ouflxfbutaeoueds")
    public suspend fun agentArns(`value`: Output>) {
        this.agentArns = value
    }

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

    /**
     * @param values ARN(s) of the agent(s) to use for an NFS location.
     */
    @JvmName("yybfsqsptegtbqgp")
    public suspend fun agentArns(values: List>) {
        this.agentArns = Output.all(values)
    }

    /**
     * @param value ARN(s) of the agent(s) to use for an NFS location.
     */
    @JvmName("awdqvssonxijheio")
    public suspend fun agentArns(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.agentArns = mapped
    }

    /**
     * @param values ARN(s) of the agent(s) to use for an NFS location.
     */
    @JvmName("bdrejrsicvyivjrr")
    public suspend fun agentArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.agentArns = mapped
    }

    internal fun build(): LocationNfsOnPremConfigArgs = LocationNfsOnPremConfigArgs(
        agentArns = agentArns ?: throw PulumiNullFieldException("agentArns"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy