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

com.pulumi.azure.appservice.kotlin.inputs.AppServiceStorageAccountArgs.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.appservice.kotlin.inputs

import com.pulumi.azure.appservice.inputs.AppServiceStorageAccountArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property accessKey The access key for the storage account.
 * @property accountName The name of the storage account.
 * @property mountPath The path to mount the storage within the site's runtime environment.
 * @property name The name of the storage account identifier.
 * @property shareName The name of the file share (container name, for Blob storage).
 * @property type The type of storage. Possible values are `AzureBlob` and `AzureFiles`.
 */
public data class AppServiceStorageAccountArgs(
    public val accessKey: Output,
    public val accountName: Output,
    public val mountPath: Output? = null,
    public val name: Output,
    public val shareName: Output,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appservice.inputs.AppServiceStorageAccountArgs =
        com.pulumi.azure.appservice.inputs.AppServiceStorageAccountArgs.builder()
            .accessKey(accessKey.applyValue({ args0 -> args0 }))
            .accountName(accountName.applyValue({ args0 -> args0 }))
            .mountPath(mountPath?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .shareName(shareName.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppServiceStorageAccountArgs].
 */
@PulumiTagMarker
public class AppServiceStorageAccountArgsBuilder internal constructor() {
    private var accessKey: Output? = null

    private var accountName: Output? = null

    private var mountPath: Output? = null

    private var name: Output? = null

    private var shareName: Output? = null

    private var type: Output? = null

    /**
     * @param value The access key for the storage account.
     */
    @JvmName("nkausmxvoybcxwvt")
    public suspend fun accessKey(`value`: Output) {
        this.accessKey = value
    }

    /**
     * @param value The name of the storage account.
     */
    @JvmName("ktcruluyugwkuqef")
    public suspend fun accountName(`value`: Output) {
        this.accountName = value
    }

    /**
     * @param value The path to mount the storage within the site's runtime environment.
     */
    @JvmName("ewuudahaihodxfxv")
    public suspend fun mountPath(`value`: Output) {
        this.mountPath = value
    }

    /**
     * @param value The name of the storage account identifier.
     */
    @JvmName("btqoqaooydpxtdgm")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the file share (container name, for Blob storage).
     */
    @JvmName("hrxwetvruyrnafly")
    public suspend fun shareName(`value`: Output) {
        this.shareName = value
    }

    /**
     * @param value The type of storage. Possible values are `AzureBlob` and `AzureFiles`.
     */
    @JvmName("iboijqnxwkgmbolr")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The access key for the storage account.
     */
    @JvmName("xmykncnrchibsjoc")
    public suspend fun accessKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessKey = mapped
    }

    /**
     * @param value The name of the storage account.
     */
    @JvmName("rkmwqdyjvynuppwp")
    public suspend fun accountName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accountName = mapped
    }

    /**
     * @param value The path to mount the storage within the site's runtime environment.
     */
    @JvmName("ypoobyqguatjlcyl")
    public suspend fun mountPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mountPath = mapped
    }

    /**
     * @param value The name of the storage account identifier.
     */
    @JvmName("oajjqqpnnhlmabpw")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the file share (container name, for Blob storage).
     */
    @JvmName("besuylxghqynwfuu")
    public suspend fun shareName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.shareName = mapped
    }

    /**
     * @param value The type of storage. Possible values are `AzureBlob` and `AzureFiles`.
     */
    @JvmName("pbkyfoqhjokbxbae")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): AppServiceStorageAccountArgs = AppServiceStorageAccountArgs(
        accessKey = accessKey ?: throw PulumiNullFieldException("accessKey"),
        accountName = accountName ?: throw PulumiNullFieldException("accountName"),
        mountPath = mountPath,
        name = name ?: throw PulumiNullFieldException("name"),
        shareName = shareName ?: throw PulumiNullFieldException("shareName"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy