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

com.pulumi.azurenative.databoxedge.kotlin.inputs.UserAccessRightArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.databoxedge.kotlin.inputs

import com.pulumi.azurenative.databoxedge.inputs.UserAccessRightArgs.builder
import com.pulumi.azurenative.databoxedge.kotlin.enums.ShareAccessType
import com.pulumi.core.Either
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.jvm.JvmName

/**
 * The mapping between a particular user and the access type on the SMB share.
 * @property accessType Type of access to be allowed for the user.
 * @property userId User ID (already existing in the device).
 */
public data class UserAccessRightArgs(
    public val accessType: Output>,
    public val userId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.databoxedge.inputs.UserAccessRightArgs =
        com.pulumi.azurenative.databoxedge.inputs.UserAccessRightArgs.builder()
            .accessType(
                accessType.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .userId(userId.applyValue({ args0 -> args0 })).build()
}

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

    private var userId: Output? = null

    /**
     * @param value Type of access to be allowed for the user.
     */
    @JvmName("hkxfxmyljswrceji")
    public suspend fun accessType(`value`: Output>) {
        this.accessType = value
    }

    /**
     * @param value User ID (already existing in the device).
     */
    @JvmName("fdjspqxcefqiyyby")
    public suspend fun userId(`value`: Output) {
        this.userId = value
    }

    /**
     * @param value Type of access to be allowed for the user.
     */
    @JvmName("vntdqthnsdmlfddb")
    public suspend fun accessType(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessType = mapped
    }

    /**
     * @param value Type of access to be allowed for the user.
     */
    @JvmName("nmqfhhkqvidlyvkb")
    public fun accessType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessType = mapped
    }

    /**
     * @param value Type of access to be allowed for the user.
     */
    @JvmName("sykjbfhqyrkvxjkv")
    public fun accessType(`value`: ShareAccessType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessType = mapped
    }

    /**
     * @param value User ID (already existing in the device).
     */
    @JvmName("dcybcmytrnbaytnb")
    public suspend fun userId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.userId = mapped
    }

    internal fun build(): UserAccessRightArgs = UserAccessRightArgs(
        accessType = accessType ?: throw PulumiNullFieldException("accessType"),
        userId = userId ?: throw PulumiNullFieldException("userId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy