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

com.pulumi.azure.storage.kotlin.inputs.AccountAzureFilesAuthenticationArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.storage.kotlin.inputs

import com.pulumi.azure.storage.inputs.AccountAzureFilesAuthenticationArgs.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

/**
 *
 * @property activeDirectory A `active_directory` block as defined below. Required when `directory_type` is `AD`.
 * @property defaultShareLevelPermission Specifies the default share level permissions applied to all users. Possible values are `StorageFileDataSmbShareReader`, `StorageFileDataSmbShareContributor`, `StorageFileDataSmbShareElevatedContributor`, or `None`.
 * @property directoryType Specifies the directory service used. Possible values are `AADDS`, `AD` and `AADKERB`.
 */
public data class AccountAzureFilesAuthenticationArgs(
    public val activeDirectory: Output? = null,
    public val defaultShareLevelPermission: Output? = null,
    public val directoryType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.storage.inputs.AccountAzureFilesAuthenticationArgs =
        com.pulumi.azure.storage.inputs.AccountAzureFilesAuthenticationArgs.builder()
            .activeDirectory(activeDirectory?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .defaultShareLevelPermission(defaultShareLevelPermission?.applyValue({ args0 -> args0 }))
            .directoryType(directoryType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccountAzureFilesAuthenticationArgs].
 */
@PulumiTagMarker
public class AccountAzureFilesAuthenticationArgsBuilder internal constructor() {
    private var activeDirectory: Output? = null

    private var defaultShareLevelPermission: Output? = null

    private var directoryType: Output? = null

    /**
     * @param value A `active_directory` block as defined below. Required when `directory_type` is `AD`.
     */
    @JvmName("fjrbqbcjkfrihgyu")
    public suspend fun activeDirectory(`value`: Output) {
        this.activeDirectory = value
    }

    /**
     * @param value Specifies the default share level permissions applied to all users. Possible values are `StorageFileDataSmbShareReader`, `StorageFileDataSmbShareContributor`, `StorageFileDataSmbShareElevatedContributor`, or `None`.
     */
    @JvmName("hxhcaxnkknogiukp")
    public suspend fun defaultShareLevelPermission(`value`: Output) {
        this.defaultShareLevelPermission = value
    }

    /**
     * @param value Specifies the directory service used. Possible values are `AADDS`, `AD` and `AADKERB`.
     */
    @JvmName("nqekccgnbuieceef")
    public suspend fun directoryType(`value`: Output) {
        this.directoryType = value
    }

    /**
     * @param value A `active_directory` block as defined below. Required when `directory_type` is `AD`.
     */
    @JvmName("obhavglplbyfgxwi")
    public suspend fun activeDirectory(`value`: AccountAzureFilesAuthenticationActiveDirectoryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.activeDirectory = mapped
    }

    /**
     * @param argument A `active_directory` block as defined below. Required when `directory_type` is `AD`.
     */
    @JvmName("lsivorniggvxyoaj")
    public suspend fun activeDirectory(argument: suspend AccountAzureFilesAuthenticationActiveDirectoryArgsBuilder.() -> Unit) {
        val toBeMapped = AccountAzureFilesAuthenticationActiveDirectoryArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.activeDirectory = mapped
    }

    /**
     * @param value Specifies the default share level permissions applied to all users. Possible values are `StorageFileDataSmbShareReader`, `StorageFileDataSmbShareContributor`, `StorageFileDataSmbShareElevatedContributor`, or `None`.
     */
    @JvmName("unaigcycpgllfvac")
    public suspend fun defaultShareLevelPermission(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultShareLevelPermission = mapped
    }

    /**
     * @param value Specifies the directory service used. Possible values are `AADDS`, `AD` and `AADKERB`.
     */
    @JvmName("rwsgyiklyoxcctlr")
    public suspend fun directoryType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.directoryType = mapped
    }

    internal fun build(): AccountAzureFilesAuthenticationArgs = AccountAzureFilesAuthenticationArgs(
        activeDirectory = activeDirectory,
        defaultShareLevelPermission = defaultShareLevelPermission,
        directoryType = directoryType ?: throw PulumiNullFieldException("directoryType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy