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

com.pulumi.awsnative.datasync.kotlin.inputs.LocationFSxOntapSmbArgs.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.LocationFSxOntapSmbArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * SMB protocol configuration for FSx ONTAP file system.
 * @property domain The name of the Windows domain that the SMB server belongs to.
 * @property mountOptions Specifies how DataSync can access a location using the SMB protocol.
 * @property password The password of the user who can mount the share and has the permissions to access files and folders in the SMB share.
 * @property user The user who can mount the share, has the permissions to access files and folders in the SMB share.
 */
public data class LocationFSxOntapSmbArgs(
    public val domain: Output? = null,
    public val mountOptions: Output,
    public val password: Output,
    public val user: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.inputs.LocationFSxOntapSmbArgs =
        com.pulumi.awsnative.datasync.inputs.LocationFSxOntapSmbArgs.builder()
            .domain(domain?.applyValue({ args0 -> args0 }))
            .mountOptions(mountOptions.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .password(password.applyValue({ args0 -> args0 }))
            .user(user.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LocationFSxOntapSmbArgs].
 */
@PulumiTagMarker
public class LocationFSxOntapSmbArgsBuilder internal constructor() {
    private var domain: Output? = null

    private var mountOptions: Output? = null

    private var password: Output? = null

    private var user: Output? = null

    /**
     * @param value The name of the Windows domain that the SMB server belongs to.
     */
    @JvmName("llnpsjbdixdtwudn")
    public suspend fun domain(`value`: Output) {
        this.domain = value
    }

    /**
     * @param value Specifies how DataSync can access a location using the SMB protocol.
     */
    @JvmName("drkpymduqhtdwudd")
    public suspend fun mountOptions(`value`: Output) {
        this.mountOptions = value
    }

    /**
     * @param value The password of the user who can mount the share and has the permissions to access files and folders in the SMB share.
     */
    @JvmName("sadprjywpgiwwpcr")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The user who can mount the share, has the permissions to access files and folders in the SMB share.
     */
    @JvmName("vpmqdklvapynifkb")
    public suspend fun user(`value`: Output) {
        this.user = value
    }

    /**
     * @param value The name of the Windows domain that the SMB server belongs to.
     */
    @JvmName("jdfssxgensgxfcfg")
    public suspend fun domain(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domain = mapped
    }

    /**
     * @param value Specifies how DataSync can access a location using the SMB protocol.
     */
    @JvmName("jtytmtrftkgvfvne")
    public suspend fun mountOptions(`value`: LocationFSxOntapSmbMountOptionsArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mountOptions = mapped
    }

    /**
     * @param argument Specifies how DataSync can access a location using the SMB protocol.
     */
    @JvmName("wjvyojifvjsndhlc")
    public suspend fun mountOptions(argument: suspend LocationFSxOntapSmbMountOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = LocationFSxOntapSmbMountOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.mountOptions = mapped
    }

    /**
     * @param value The password of the user who can mount the share and has the permissions to access files and folders in the SMB share.
     */
    @JvmName("thdbmxlmychhqdit")
    public suspend fun password(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The user who can mount the share, has the permissions to access files and folders in the SMB share.
     */
    @JvmName("hwnrorpcpsxdowhg")
    public suspend fun user(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.user = mapped
    }

    internal fun build(): LocationFSxOntapSmbArgs = LocationFSxOntapSmbArgs(
        domain = domain,
        mountOptions = mountOptions ?: throw PulumiNullFieldException("mountOptions"),
        password = password ?: throw PulumiNullFieldException("password"),
        user = user ?: throw PulumiNullFieldException("user"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy