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

com.pulumi.azure.appservice.kotlin.inputs.WindowsWebAppStorageAccountArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.appservice.kotlin.inputs

import com.pulumi.azure.appservice.inputs.WindowsWebAppStorageAccountArgs.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 at which to mount the storage share.
 * @property name The name which should be used for this TODO.
 * @property shareName The Name of the File Share or Container Name for Blob storage.
 * @property type The Azure Storage Type. Possible values include `AzureFiles` and `AzureBlob`
 */
public data class WindowsWebAppStorageAccountArgs(
    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.WindowsWebAppStorageAccountArgs =
        com.pulumi.azure.appservice.inputs.WindowsWebAppStorageAccountArgs.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 [WindowsWebAppStorageAccountArgs].
 */
@PulumiTagMarker
public class WindowsWebAppStorageAccountArgsBuilder 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("uqqvkghgqivxnydg")
    public suspend fun accessKey(`value`: Output) {
        this.accessKey = value
    }

    /**
     * @param value The Name of the Storage Account.
     */
    @JvmName("cketqnjiultayvte")
    public suspend fun accountName(`value`: Output) {
        this.accountName = value
    }

    /**
     * @param value The path at which to mount the storage share.
     */
    @JvmName("ubatenvawsaoatsm")
    public suspend fun mountPath(`value`: Output) {
        this.mountPath = value
    }

    /**
     * @param value The name which should be used for this TODO.
     */
    @JvmName("rtracsuvmtgwlhfa")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The Name of the File Share or Container Name for Blob storage.
     */
    @JvmName("ilorposwvdcsjkqf")
    public suspend fun shareName(`value`: Output) {
        this.shareName = value
    }

    /**
     * @param value The Azure Storage Type. Possible values include `AzureFiles` and `AzureBlob`
     */
    @JvmName("oiqgwtrlxyyovqfb")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The Access key for the storage account.
     */
    @JvmName("rvxdoqxoomhmucym")
    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("sidbhgvbblokyhec")
    public suspend fun accountName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accountName = mapped
    }

    /**
     * @param value The path at which to mount the storage share.
     */
    @JvmName("ffejpppgvigoqxqa")
    public suspend fun mountPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mountPath = mapped
    }

    /**
     * @param value The name which should be used for this TODO.
     */
    @JvmName("dlqxjfmstvsiplws")
    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 or Container Name for Blob storage.
     */
    @JvmName("jmbghieaddcodako")
    public suspend fun shareName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.shareName = mapped
    }

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

    internal fun build(): WindowsWebAppStorageAccountArgs = WindowsWebAppStorageAccountArgs(
        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 - 2024 Weber Informatics LLC | Privacy Policy