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

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

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

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

import com.pulumi.azure.appservice.inputs.WindowsWebAppSiteConfigVirtualApplicationArgs.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 WindowsWebAppSiteConfigVirtualApplicationArgs(
    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.WindowsWebAppSiteConfigVirtualApplicationArgs =
        com.pulumi.azure.appservice.inputs.WindowsWebAppSiteConfigVirtualApplicationArgs.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 [WindowsWebAppSiteConfigVirtualApplicationArgs].
 */
@PulumiTagMarker
public class WindowsWebAppSiteConfigVirtualApplicationArgsBuilder 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("iamtmsxibeoykvbu")
    public suspend fun physicalPath(`value`: Output) {
        this.physicalPath = value
    }

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

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

    @JvmName("futdvqdpwdgmyqdx")
    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("awldgankxdhynkxb")
    public suspend fun virtualDirectories(values: List>) {
        this.virtualDirectories = Output.all(values)
    }

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

    /**
     * @param value The physical path for the Virtual Application.
     */
    @JvmName("jsqtnautdcfhettc")
    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("hgixaigdiwbajusw")
    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("pneymfrqdosxrcgp")
    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("ssomlmfamhrbwvww")
    public suspend fun virtualDirectories(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WindowsWebAppSiteConfigVirtualApplicationVirtualDirectoryArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.virtualDirectories = mapped
    }

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy