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

com.pulumi.azurenative.batch.kotlin.inputs.AutoStorageBasePropertiesArgs.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.batch.kotlin.inputs

import com.pulumi.azurenative.batch.inputs.AutoStorageBasePropertiesArgs.builder
import com.pulumi.azurenative.batch.kotlin.enums.AutoStorageAuthenticationMode
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

/**
 * The properties related to the auto-storage account.
 * @property authenticationMode The authentication mode which the Batch service will use to manage the auto-storage account.
 * @property nodeIdentityReference The identity referenced here must be assigned to pools which have compute nodes that need access to auto-storage.
 * @property storageAccountId The resource ID of the storage account to be used for auto-storage account.
 */
public data class AutoStorageBasePropertiesArgs(
    public val authenticationMode: Output? = null,
    public val nodeIdentityReference: Output? = null,
    public val storageAccountId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.batch.inputs.AutoStorageBasePropertiesArgs =
        com.pulumi.azurenative.batch.inputs.AutoStorageBasePropertiesArgs.builder()
            .authenticationMode(
                authenticationMode?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .nodeIdentityReference(
                nodeIdentityReference?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .storageAccountId(storageAccountId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AutoStorageBasePropertiesArgs].
 */
@PulumiTagMarker
public class AutoStorageBasePropertiesArgsBuilder internal constructor() {
    private var authenticationMode: Output? = null

    private var nodeIdentityReference: Output? = null

    private var storageAccountId: Output? = null

    /**
     * @param value The authentication mode which the Batch service will use to manage the auto-storage account.
     */
    @JvmName("fjbrelmxgmfvfknn")
    public suspend fun authenticationMode(`value`: Output) {
        this.authenticationMode = value
    }

    /**
     * @param value The identity referenced here must be assigned to pools which have compute nodes that need access to auto-storage.
     */
    @JvmName("otivjeaxyekmxwex")
    public suspend fun nodeIdentityReference(`value`: Output) {
        this.nodeIdentityReference = value
    }

    /**
     * @param value The resource ID of the storage account to be used for auto-storage account.
     */
    @JvmName("epqwgfbvllsxjtjp")
    public suspend fun storageAccountId(`value`: Output) {
        this.storageAccountId = value
    }

    /**
     * @param value The authentication mode which the Batch service will use to manage the auto-storage account.
     */
    @JvmName("jhdnvtvfmskskogm")
    public suspend fun authenticationMode(`value`: AutoStorageAuthenticationMode?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authenticationMode = mapped
    }

    /**
     * @param value The identity referenced here must be assigned to pools which have compute nodes that need access to auto-storage.
     */
    @JvmName("vftnjeekpaxrxtoa")
    public suspend fun nodeIdentityReference(`value`: ComputeNodeIdentityReferenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeIdentityReference = mapped
    }

    /**
     * @param argument The identity referenced here must be assigned to pools which have compute nodes that need access to auto-storage.
     */
    @JvmName("ffbvxjkflbafnmpa")
    public suspend fun nodeIdentityReference(argument: suspend ComputeNodeIdentityReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = ComputeNodeIdentityReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.nodeIdentityReference = mapped
    }

    /**
     * @param value The resource ID of the storage account to be used for auto-storage account.
     */
    @JvmName("hgnvcjmglkkmtsls")
    public suspend fun storageAccountId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storageAccountId = mapped
    }

    internal fun build(): AutoStorageBasePropertiesArgs = AutoStorageBasePropertiesArgs(
        authenticationMode = authenticationMode,
        nodeIdentityReference = nodeIdentityReference,
        storageAccountId = storageAccountId ?: throw PulumiNullFieldException("storageAccountId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy