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

com.pulumi.azure.hdinsight.kotlin.inputs.SparkClusterStorageAccountGen2Args.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.hdinsight.kotlin.inputs

import com.pulumi.azure.hdinsight.inputs.SparkClusterStorageAccountGen2Args.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property filesystemId The ID of the Gen2 Filesystem. Changing this forces a new resource to be created.
 * @property isDefault Is this the Default Storage Account for the HDInsight Hadoop Cluster? Changing this forces a new resource to be created.
 * > **NOTE:** One of the `storage_account` or `storage_account_gen2` blocks must be marked as the default.
 * @property managedIdentityResourceId The ID of Managed Identity to use for accessing the Gen2 filesystem. Changing this forces a new resource to be created.
 * > **NOTE:** This can be obtained from the `id` of the `azure.storage.Container` resource.
 * @property storageResourceId The ID of the Storage Account. Changing this forces a new resource to be created.
 */
public data class SparkClusterStorageAccountGen2Args(
    public val filesystemId: Output,
    public val isDefault: Output,
    public val managedIdentityResourceId: Output,
    public val storageResourceId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.hdinsight.inputs.SparkClusterStorageAccountGen2Args =
        com.pulumi.azure.hdinsight.inputs.SparkClusterStorageAccountGen2Args.builder()
            .filesystemId(filesystemId.applyValue({ args0 -> args0 }))
            .isDefault(isDefault.applyValue({ args0 -> args0 }))
            .managedIdentityResourceId(managedIdentityResourceId.applyValue({ args0 -> args0 }))
            .storageResourceId(storageResourceId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SparkClusterStorageAccountGen2Args].
 */
@PulumiTagMarker
public class SparkClusterStorageAccountGen2ArgsBuilder internal constructor() {
    private var filesystemId: Output? = null

    private var isDefault: Output? = null

    private var managedIdentityResourceId: Output? = null

    private var storageResourceId: Output? = null

    /**
     * @param value The ID of the Gen2 Filesystem. Changing this forces a new resource to be created.
     */
    @JvmName("whblvdrsnlhopiwj")
    public suspend fun filesystemId(`value`: Output) {
        this.filesystemId = value
    }

    /**
     * @param value Is this the Default Storage Account for the HDInsight Hadoop Cluster? Changing this forces a new resource to be created.
     * > **NOTE:** One of the `storage_account` or `storage_account_gen2` blocks must be marked as the default.
     */
    @JvmName("nbbpomgsmjxmtkyy")
    public suspend fun isDefault(`value`: Output) {
        this.isDefault = value
    }

    /**
     * @param value The ID of Managed Identity to use for accessing the Gen2 filesystem. Changing this forces a new resource to be created.
     * > **NOTE:** This can be obtained from the `id` of the `azure.storage.Container` resource.
     */
    @JvmName("fodtjxvbentipabc")
    public suspend fun managedIdentityResourceId(`value`: Output) {
        this.managedIdentityResourceId = value
    }

    /**
     * @param value The ID of the Storage Account. Changing this forces a new resource to be created.
     */
    @JvmName("rprxdcakclpgpqgf")
    public suspend fun storageResourceId(`value`: Output) {
        this.storageResourceId = value
    }

    /**
     * @param value The ID of the Gen2 Filesystem. Changing this forces a new resource to be created.
     */
    @JvmName("soqhrexwjlccdmnh")
    public suspend fun filesystemId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filesystemId = mapped
    }

    /**
     * @param value Is this the Default Storage Account for the HDInsight Hadoop Cluster? Changing this forces a new resource to be created.
     * > **NOTE:** One of the `storage_account` or `storage_account_gen2` blocks must be marked as the default.
     */
    @JvmName("mcillktjohgbpnqi")
    public suspend fun isDefault(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.isDefault = mapped
    }

    /**
     * @param value The ID of Managed Identity to use for accessing the Gen2 filesystem. Changing this forces a new resource to be created.
     * > **NOTE:** This can be obtained from the `id` of the `azure.storage.Container` resource.
     */
    @JvmName("xqxxblsxmqjbgfic")
    public suspend fun managedIdentityResourceId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.managedIdentityResourceId = mapped
    }

    /**
     * @param value The ID of the Storage Account. Changing this forces a new resource to be created.
     */
    @JvmName("haeajukgsjjwpiiy")
    public suspend fun storageResourceId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storageResourceId = mapped
    }

    internal fun build(): SparkClusterStorageAccountGen2Args = SparkClusterStorageAccountGen2Args(
        filesystemId = filesystemId ?: throw PulumiNullFieldException("filesystemId"),
        isDefault = isDefault ?: throw PulumiNullFieldException("isDefault"),
        managedIdentityResourceId = managedIdentityResourceId ?: throw
            PulumiNullFieldException("managedIdentityResourceId"),
        storageResourceId = storageResourceId ?: throw PulumiNullFieldException("storageResourceId"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy