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

com.pulumi.alicloud.cloudstoragegateway.kotlin.GatewaySmbUserArgs.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: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.cloudstoragegateway.kotlin

import com.pulumi.alicloud.cloudstoragegateway.GatewaySmbUserArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Provides a Cloud Storage Gateway Gateway SMB User resource.
 * For information about Cloud Storage Gateway Gateway SMB User and how to use it, see [What is Gateway SMB User](https://www.alibabacloud.com/help/en/cloud-storage-gateway/latest/creategatewaysmbuser).
 * > **NOTE:** Available since v1.142.0.
 * ## Import
 * Cloud Storage Gateway Gateway SMB User can be imported using the id, e.g.
 * ```sh
 * $ pulumi import alicloud:cloudstoragegateway/gatewaySmbUser:GatewaySmbUser example :
 * ```
 * @property gatewayId The Gateway ID of the Gateway SMB User.
 * @property password The password of the Gateway SMB User.
 * @property username The username of the Gateway SMB User.
 */
public data class GatewaySmbUserArgs(
    public val gatewayId: Output? = null,
    public val password: Output? = null,
    public val username: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.cloudstoragegateway.GatewaySmbUserArgs =
        com.pulumi.alicloud.cloudstoragegateway.GatewaySmbUserArgs.builder()
            .gatewayId(gatewayId?.applyValue({ args0 -> args0 }))
            .password(password?.applyValue({ args0 -> args0 }))
            .username(username?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GatewaySmbUserArgs].
 */
@PulumiTagMarker
public class GatewaySmbUserArgsBuilder internal constructor() {
    private var gatewayId: Output? = null

    private var password: Output? = null

    private var username: Output? = null

    /**
     * @param value The Gateway ID of the Gateway SMB User.
     */
    @JvmName("jsqqvsjgevdpmvta")
    public suspend fun gatewayId(`value`: Output) {
        this.gatewayId = value
    }

    /**
     * @param value The password of the Gateway SMB User.
     */
    @JvmName("mimnngbjqjjlkdxr")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The username of the Gateway SMB User.
     */
    @JvmName("mrseblgfdbaeqeyn")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value The Gateway ID of the Gateway SMB User.
     */
    @JvmName("gjdjesfwifkqbtfr")
    public suspend fun gatewayId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gatewayId = mapped
    }

    /**
     * @param value The password of the Gateway SMB User.
     */
    @JvmName("njgmwmfyjmlujkjf")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The username of the Gateway SMB User.
     */
    @JvmName("qmshxgeshdcqbupd")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): GatewaySmbUserArgs = GatewaySmbUserArgs(
        gatewayId = gatewayId,
        password = password,
        username = username,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy