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

com.pulumi.azure.appservice.kotlin.inputs.LinuxFunctionAppSiteConfigApplicationStackArgs.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.LinuxFunctionAppSiteConfigApplicationStackArgs.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 One or more `docker` blocks as defined below.
 * @property dotnetVersion The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`.
 * @property javaVersion The Version of Java to use. Supported versions include `8`, `11` & `17`.
 * @property nodeVersion The version of Node to run. Possible values include `12`, `14`, `16`, `18` and `20`.
 * @property powershellCoreVersion The version of PowerShell Core to run. Possible values are `7`, `7.2`, and `7.4`.
 * @property pythonVersion The version of Python to run. 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 LinuxFunctionAppSiteConfigApplicationStackArgs(
    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.LinuxFunctionAppSiteConfigApplicationStackArgs =
        com.pulumi.azure.appservice.inputs.LinuxFunctionAppSiteConfigApplicationStackArgs.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 [LinuxFunctionAppSiteConfigApplicationStackArgs].
 */
@PulumiTagMarker
public class LinuxFunctionAppSiteConfigApplicationStackArgsBuilder 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 One or more `docker` blocks as defined below.
     */
    @JvmName("bepelmgvnrvhvlal")
    public suspend fun dockers(`value`: Output>) {
        this.dockers = value
    }

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

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

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

    /**
     * @param value The Version of Java to use. Supported versions include `8`, `11` & `17`.
     */
    @JvmName("ohqitveqrshillvd")
    public suspend fun javaVersion(`value`: Output) {
        this.javaVersion = value
    }

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

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

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

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

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

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

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

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

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

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

    /**
     * @param value The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`.
     */
    @JvmName("ixshxtosgqpesuvn")
    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. Supported versions include `8`, `11` & `17`.
     */
    @JvmName("ciurdgdltajmkikg")
    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 run. Possible values include `12`, `14`, `16`, `18` and `20`.
     */
    @JvmName("slnqalrjquaxvycr")
    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 run. Possible values are `7`, `7.2`, and `7.4`.
     */
    @JvmName("cacjayutynfggfrl")
    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 run. Possible values are `3.12`, `3.11`, `3.10`, `3.9`, `3.8` and `3.7`.
     */
    @JvmName("ppvjtfrdpbxqeguw")
    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("illhomwoufduomrl")
    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("sunasqnyifwfuwro")
    public suspend fun useDotnetIsolatedRuntime(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useDotnetIsolatedRuntime = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy