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

com.pulumi.azure.appservice.kotlin.inputs.LinuxFunctionAppSlotSiteConfigApplicationStackArgs.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.LinuxFunctionAppSlotSiteConfigApplicationStackArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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 dockers a `docker` block as detailed below.
 * @property dotnetVersion The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`.
 * @property javaVersion The version of Java to use. Possible values are `8`, `11` & `17` (In-Preview).
 * @property nodeVersion The version of Node to use. Possible values include `12`, `14`, `16`, `18` and `20`
 * @property powershellCoreVersion The version of PowerShell Core to use. Possibles values are `7` , `7.2`, and `7.4`.
 * @property pythonVersion The version of Python to use. Possible values are `3.12`, `3.11`, `3.10`, `3.9`, `3.8` and `3.7`.
 * @property useCustomRuntime Should the Linux Function App use a custom runtime?
 * @property useDotnetIsolatedRuntime Should the DotNet process use an isolated runtime. Defaults to `false`.
 */
public data class LinuxFunctionAppSlotSiteConfigApplicationStackArgs(
    public val dockers: Output>? =
        null,
    public val dotnetVersion: Output? = null,
    public val javaVersion: Output? = null,
    public val nodeVersion: Output? = null,
    public val powershellCoreVersion: Output? = null,
    public val pythonVersion: Output? = null,
    public val useCustomRuntime: Output? = null,
    public val useDotnetIsolatedRuntime: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appservice.inputs.LinuxFunctionAppSlotSiteConfigApplicationStackArgs =
        com.pulumi.azure.appservice.inputs.LinuxFunctionAppSlotSiteConfigApplicationStackArgs.builder()
            .dockers(
                dockers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .dotnetVersion(dotnetVersion?.applyValue({ args0 -> args0 }))
            .javaVersion(javaVersion?.applyValue({ args0 -> args0 }))
            .nodeVersion(nodeVersion?.applyValue({ args0 -> args0 }))
            .powershellCoreVersion(powershellCoreVersion?.applyValue({ args0 -> args0 }))
            .pythonVersion(pythonVersion?.applyValue({ args0 -> args0 }))
            .useCustomRuntime(useCustomRuntime?.applyValue({ args0 -> args0 }))
            .useDotnetIsolatedRuntime(useDotnetIsolatedRuntime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LinuxFunctionAppSlotSiteConfigApplicationStackArgs].
 */
@PulumiTagMarker
public class LinuxFunctionAppSlotSiteConfigApplicationStackArgsBuilder internal constructor() {
    private var dockers: Output>? =
        null

    private var dotnetVersion: Output? = null

    private var javaVersion: Output? = null

    private var nodeVersion: Output? = null

    private var powershellCoreVersion: Output? = null

    private var pythonVersion: Output? = null

    private var useCustomRuntime: Output? = null

    private var useDotnetIsolatedRuntime: Output? = null

    /**
     * @param value a `docker` block as detailed below.
     */
    @JvmName("bjbbgrnoqqsttsyd")
    public suspend fun dockers(`value`: Output>) {
        this.dockers = value
    }

    @JvmName("prftaaniuhgjvwpm")
    public suspend fun dockers(vararg values: Output) {
        this.dockers = Output.all(values.asList())
    }

    /**
     * @param values a `docker` block as detailed below.
     */
    @JvmName("lmuapboxcrvdslao")
    public suspend fun dockers(values: List>) {
        this.dockers = Output.all(values)
    }

    /**
     * @param value The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`.
     */
    @JvmName("vkpbdomjtdfexoqg")
    public suspend fun dotnetVersion(`value`: Output) {
        this.dotnetVersion = value
    }

    /**
     * @param value The version of Java to use. Possible values are `8`, `11` & `17` (In-Preview).
     */
    @JvmName("bpvqosqdtkxahchb")
    public suspend fun javaVersion(`value`: Output) {
        this.javaVersion = value
    }

    /**
     * @param value The version of Node to use. Possible values include `12`, `14`, `16`, `18` and `20`
     */
    @JvmName("vhphaynftmdshdwr")
    public suspend fun nodeVersion(`value`: Output) {
        this.nodeVersion = value
    }

    /**
     * @param value The version of PowerShell Core to use. Possibles values are `7` , `7.2`, and `7.4`.
     */
    @JvmName("qhrhvcvdseytdrwr")
    public suspend fun powershellCoreVersion(`value`: Output) {
        this.powershellCoreVersion = value
    }

    /**
     * @param value The version of Python to use. Possible values are `3.12`, `3.11`, `3.10`, `3.9`, `3.8` and `3.7`.
     */
    @JvmName("wlipotbgpxpahjlw")
    public suspend fun pythonVersion(`value`: Output) {
        this.pythonVersion = value
    }

    /**
     * @param value Should the Linux Function App use a custom runtime?
     */
    @JvmName("gpokahlwelpqflol")
    public suspend fun useCustomRuntime(`value`: Output) {
        this.useCustomRuntime = value
    }

    /**
     * @param value Should the DotNet process use an isolated runtime. Defaults to `false`.
     */
    @JvmName("ahftgabuxnqfdspd")
    public suspend fun useDotnetIsolatedRuntime(`value`: Output) {
        this.useDotnetIsolatedRuntime = value
    }

    /**
     * @param value a `docker` block as detailed below.
     */
    @JvmName("rwmdqsekxjqnglrq")
    public suspend fun dockers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dockers = mapped
    }

    /**
     * @param argument a `docker` block as detailed below.
     */
    @JvmName("xdjjkxqulrknvhjh")
    public suspend fun dockers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            LinuxFunctionAppSlotSiteConfigApplicationStackDockerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dockers = mapped
    }

    /**
     * @param argument a `docker` block as detailed below.
     */
    @JvmName("dcgcmbkrikvwodxl")
    public suspend fun dockers(vararg argument: suspend LinuxFunctionAppSlotSiteConfigApplicationStackDockerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            LinuxFunctionAppSlotSiteConfigApplicationStackDockerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dockers = mapped
    }

    /**
     * @param argument a `docker` block as detailed below.
     */
    @JvmName("ftdwhlenocrqhsxj")
    public suspend fun dockers(argument: suspend LinuxFunctionAppSlotSiteConfigApplicationStackDockerArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                LinuxFunctionAppSlotSiteConfigApplicationStackDockerArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.dockers = mapped
    }

    /**
     * @param values a `docker` block as detailed below.
     */
    @JvmName("gcwjqlxpacuqsbng")
    public suspend fun dockers(vararg values: LinuxFunctionAppSlotSiteConfigApplicationStackDockerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dockers = mapped
    }

    /**
     * @param value The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`.
     */
    @JvmName("lvjyanedgdgogpwh")
    public suspend fun dotnetVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dotnetVersion = mapped
    }

    /**
     * @param value The version of Java to use. Possible values are `8`, `11` & `17` (In-Preview).
     */
    @JvmName("lbsmotnjtpnxvyer")
    public suspend fun javaVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.javaVersion = mapped
    }

    /**
     * @param value The version of Node to use. Possible values include `12`, `14`, `16`, `18` and `20`
     */
    @JvmName("mysuxqkqwghxksbp")
    public suspend fun nodeVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeVersion = mapped
    }

    /**
     * @param value The version of PowerShell Core to use. Possibles values are `7` , `7.2`, and `7.4`.
     */
    @JvmName("ooawokhhwtscqyfp")
    public suspend fun powershellCoreVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.powershellCoreVersion = mapped
    }

    /**
     * @param value The version of Python to use. Possible values are `3.12`, `3.11`, `3.10`, `3.9`, `3.8` and `3.7`.
     */
    @JvmName("uwmyecxhwytvxdhn")
    public suspend fun pythonVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pythonVersion = mapped
    }

    /**
     * @param value Should the Linux Function App use a custom runtime?
     */
    @JvmName("amhsknqyumiqfqjo")
    public suspend fun useCustomRuntime(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useCustomRuntime = mapped
    }

    /**
     * @param value Should the DotNet process use an isolated runtime. Defaults to `false`.
     */
    @JvmName("nyuhxtqjdlkfuvyd")
    public suspend fun useDotnetIsolatedRuntime(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useDotnetIsolatedRuntime = mapped
    }

    internal fun build(): LinuxFunctionAppSlotSiteConfigApplicationStackArgs =
        LinuxFunctionAppSlotSiteConfigApplicationStackArgs(
            dockers = dockers,
            dotnetVersion = dotnetVersion,
            javaVersion = javaVersion,
            nodeVersion = nodeVersion,
            powershellCoreVersion = powershellCoreVersion,
            pythonVersion = pythonVersion,
            useCustomRuntime = useCustomRuntime,
            useDotnetIsolatedRuntime = useDotnetIsolatedRuntime,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy