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

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

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

import com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigVirtualApplicationArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property physicalPath The physical path for the Virtual Application.
 * @property preload Should pre-loading be enabled.
 * @property virtualDirectories One or more `virtual_directory` blocks as defined below.
 * @property virtualPath The Virtual Path for the Virtual Application.
 */
public data class WindowsWebAppSlotSiteConfigVirtualApplicationArgs(
    public val physicalPath: Output,
    public val preload: Output,
    public val virtualDirectories:
    Output>? = null,
    public val virtualPath: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigVirtualApplicationArgs =
        com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigVirtualApplicationArgs.builder()
            .physicalPath(physicalPath.applyValue({ args0 -> args0 }))
            .preload(preload.applyValue({ args0 -> args0 }))
            .virtualDirectories(
                virtualDirectories?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .virtualPath(virtualPath.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WindowsWebAppSlotSiteConfigVirtualApplicationArgs].
 */
@PulumiTagMarker
public class WindowsWebAppSlotSiteConfigVirtualApplicationArgsBuilder internal constructor() {
    private var physicalPath: Output? = null

    private var preload: Output? = null

    private var virtualDirectories:
        Output>? = null

    private var virtualPath: Output? = null

    /**
     * @param value The physical path for the Virtual Application.
     */
    @JvmName("nxryaajuxucjspjo")
    public suspend fun physicalPath(`value`: Output) {
        this.physicalPath = value
    }

    /**
     * @param value Should pre-loading be enabled.
     */
    @JvmName("dnhdarumjyonhedl")
    public suspend fun preload(`value`: Output) {
        this.preload = value
    }

    /**
     * @param value One or more `virtual_directory` blocks as defined below.
     */
    @JvmName("drdwbrddealtbjcx")
    public suspend
    fun virtualDirectories(`value`: Output>) {
        this.virtualDirectories = value
    }

    @JvmName("sxvmgyhkpngawcmw")
    public suspend fun virtualDirectories(
        vararg
        values: Output,
    ) {
        this.virtualDirectories = Output.all(values.asList())
    }

    /**
     * @param values One or more `virtual_directory` blocks as defined below.
     */
    @JvmName("ckllkaipgasmpayh")
    public suspend
    fun virtualDirectories(values: List>) {
        this.virtualDirectories = Output.all(values)
    }

    /**
     * @param value The Virtual Path for the Virtual Application.
     */
    @JvmName("wdvgyyemddmdpjlr")
    public suspend fun virtualPath(`value`: Output) {
        this.virtualPath = value
    }

    /**
     * @param value The physical path for the Virtual Application.
     */
    @JvmName("vmweesqicnxyrwjs")
    public suspend fun physicalPath(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.physicalPath = mapped
    }

    /**
     * @param value Should pre-loading be enabled.
     */
    @JvmName("dndtnhcoswuyeweu")
    public suspend fun preload(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.preload = mapped
    }

    /**
     * @param value One or more `virtual_directory` blocks as defined below.
     */
    @JvmName("umxyyjtdatyyygdo")
    public suspend
    fun virtualDirectories(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualDirectories = mapped
    }

    /**
     * @param argument One or more `virtual_directory` blocks as defined below.
     */
    @JvmName("mmlbvtmainhkprro")
    public suspend
    fun virtualDirectories(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WindowsWebAppSlotSiteConfigVirtualApplicationVirtualDirectoryArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.virtualDirectories = mapped
    }

    /**
     * @param argument One or more `virtual_directory` blocks as defined below.
     */
    @JvmName("bcotcbydlfdyasxt")
    public suspend fun virtualDirectories(
        vararg
        argument: suspend WindowsWebAppSlotSiteConfigVirtualApplicationVirtualDirectoryArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            WindowsWebAppSlotSiteConfigVirtualApplicationVirtualDirectoryArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.virtualDirectories = mapped
    }

    /**
     * @param argument One or more `virtual_directory` blocks as defined below.
     */
    @JvmName("wqpwwrklpecajjka")
    public suspend
    fun virtualDirectories(argument: suspend WindowsWebAppSlotSiteConfigVirtualApplicationVirtualDirectoryArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                WindowsWebAppSlotSiteConfigVirtualApplicationVirtualDirectoryArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.virtualDirectories = mapped
    }

    /**
     * @param values One or more `virtual_directory` blocks as defined below.
     */
    @JvmName("xinniycplhfeupkf")
    public suspend fun virtualDirectories(
        vararg
        values: WindowsWebAppSlotSiteConfigVirtualApplicationVirtualDirectoryArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.virtualDirectories = mapped
    }

    /**
     * @param value The Virtual Path for the Virtual Application.
     */
    @JvmName("sfkihplfourqocbx")
    public suspend fun virtualPath(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.virtualPath = mapped
    }

    internal fun build(): WindowsWebAppSlotSiteConfigVirtualApplicationArgs =
        WindowsWebAppSlotSiteConfigVirtualApplicationArgs(
            physicalPath = physicalPath ?: throw PulumiNullFieldException("physicalPath"),
            preload = preload ?: throw PulumiNullFieldException("preload"),
            virtualDirectories = virtualDirectories,
            virtualPath = virtualPath ?: throw PulumiNullFieldException("virtualPath"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy