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

com.pulumi.azurenative.app.kotlin.inputs.ContainerArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.app.kotlin.inputs

import com.pulumi.azurenative.app.inputs.ContainerArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Container App container definition
 * @property args Container start command arguments.
 * @property command Container start command.
 * @property env Container environment variables.
 * @property image Container image tag.
 * @property name Custom container name.
 * @property probes List of probes for the container.
 * @property resources Container resource requirements.
 * @property volumeMounts Container volume mounts.
 */
public data class ContainerArgs(
    public val args: Output>? = null,
    public val command: Output>? = null,
    public val env: Output>? = null,
    public val image: Output? = null,
    public val name: Output? = null,
    public val probes: Output>? = null,
    public val resources: Output? = null,
    public val volumeMounts: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.app.inputs.ContainerArgs =
        com.pulumi.azurenative.app.inputs.ContainerArgs.builder()
            .args(args?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .command(command?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .env(env?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .image(image?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .probes(probes?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .resources(resources?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .volumeMounts(
                volumeMounts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var command: Output>? = null

    private var env: Output>? = null

    private var image: Output? = null

    private var name: Output? = null

    private var probes: Output>? = null

    private var resources: Output? = null

    private var volumeMounts: Output>? = null

    /**
     * @param value Container start command arguments.
     */
    @JvmName("kwaeqkhsiuipbwxh")
    public suspend fun args(`value`: Output>) {
        this.args = value
    }

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

    /**
     * @param values Container start command arguments.
     */
    @JvmName("sgabpleiaboffotj")
    public suspend fun args(values: List>) {
        this.args = Output.all(values)
    }

    /**
     * @param value Container start command.
     */
    @JvmName("wnxdtsugebhvtwos")
    public suspend fun command(`value`: Output>) {
        this.command = value
    }

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

    /**
     * @param values Container start command.
     */
    @JvmName("ypodtokmtxeotkbq")
    public suspend fun command(values: List>) {
        this.command = Output.all(values)
    }

    /**
     * @param value Container environment variables.
     */
    @JvmName("jpqnlypwftsslcsv")
    public suspend fun env(`value`: Output>) {
        this.env = value
    }

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

    /**
     * @param values Container environment variables.
     */
    @JvmName("csfcxprjffovbbhd")
    public suspend fun env(values: List>) {
        this.env = Output.all(values)
    }

    /**
     * @param value Container image tag.
     */
    @JvmName("qrhaqwagaingtssm")
    public suspend fun image(`value`: Output) {
        this.image = value
    }

    /**
     * @param value Custom container name.
     */
    @JvmName("nplqlkjahhhehtpi")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value List of probes for the container.
     */
    @JvmName("ppkfpsuqcmfptuts")
    public suspend fun probes(`value`: Output>) {
        this.probes = value
    }

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

    /**
     * @param values List of probes for the container.
     */
    @JvmName("dpsikrbnhspmkmaq")
    public suspend fun probes(values: List>) {
        this.probes = Output.all(values)
    }

    /**
     * @param value Container resource requirements.
     */
    @JvmName("pjmvavdcmnkigmbp")
    public suspend fun resources(`value`: Output) {
        this.resources = value
    }

    /**
     * @param value Container volume mounts.
     */
    @JvmName("dwauepbhyhdqwqjg")
    public suspend fun volumeMounts(`value`: Output>) {
        this.volumeMounts = value
    }

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

    /**
     * @param values Container volume mounts.
     */
    @JvmName("vlctbprrxifoevsj")
    public suspend fun volumeMounts(values: List>) {
        this.volumeMounts = Output.all(values)
    }

    /**
     * @param value Container start command arguments.
     */
    @JvmName("rwjeuixpmxtgjgjc")
    public suspend fun args(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param values Container start command arguments.
     */
    @JvmName("usyidgltwhuikrav")
    public suspend fun args(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param value Container start command.
     */
    @JvmName("xextxiifxvghtmce")
    public suspend fun command(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.command = mapped
    }

    /**
     * @param values Container start command.
     */
    @JvmName("ojlrwgplstqaihys")
    public suspend fun command(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.command = mapped
    }

    /**
     * @param value Container environment variables.
     */
    @JvmName("jacwqvgtfdylfhfd")
    public suspend fun env(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.env = mapped
    }

    /**
     * @param argument Container environment variables.
     */
    @JvmName("swrtoyvgbikufifm")
    public suspend fun env(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EnvironmentVarArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.env = mapped
    }

    /**
     * @param argument Container environment variables.
     */
    @JvmName("bsjpytbesfyekleh")
    public suspend fun env(vararg argument: suspend EnvironmentVarArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EnvironmentVarArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.env = mapped
    }

    /**
     * @param argument Container environment variables.
     */
    @JvmName("wiiycbxssdmefkyy")
    public suspend fun env(argument: suspend EnvironmentVarArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(EnvironmentVarArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.env = mapped
    }

    /**
     * @param values Container environment variables.
     */
    @JvmName("sydlriwbxqqfkvgo")
    public suspend fun env(vararg values: EnvironmentVarArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.env = mapped
    }

    /**
     * @param value Container image tag.
     */
    @JvmName("enekvphpxcxccwwp")
    public suspend fun image(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.image = mapped
    }

    /**
     * @param value Custom container name.
     */
    @JvmName("hnxjkpqkxvtpicsi")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value List of probes for the container.
     */
    @JvmName("jkshouracmpjribh")
    public suspend fun probes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.probes = mapped
    }

    /**
     * @param argument List of probes for the container.
     */
    @JvmName("nkeeneiqyppkaonq")
    public suspend fun probes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ContainerAppProbeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.probes = mapped
    }

    /**
     * @param argument List of probes for the container.
     */
    @JvmName("gocvqisdkvkdfcev")
    public suspend fun probes(vararg argument: suspend ContainerAppProbeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ContainerAppProbeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.probes = mapped
    }

    /**
     * @param argument List of probes for the container.
     */
    @JvmName("ydvltgfcvluvarrd")
    public suspend fun probes(argument: suspend ContainerAppProbeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ContainerAppProbeArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.probes = mapped
    }

    /**
     * @param values List of probes for the container.
     */
    @JvmName("trjutwruifkbdwsd")
    public suspend fun probes(vararg values: ContainerAppProbeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.probes = mapped
    }

    /**
     * @param value Container resource requirements.
     */
    @JvmName("kfpfjxhgktcsbuyw")
    public suspend fun resources(`value`: ContainerResourcesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    /**
     * @param argument Container resource requirements.
     */
    @JvmName("gprswuypljiovglh")
    public suspend fun resources(argument: suspend ContainerResourcesArgsBuilder.() -> Unit) {
        val toBeMapped = ContainerResourcesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.resources = mapped
    }

    /**
     * @param value Container volume mounts.
     */
    @JvmName("sjaeohgswyjrysnh")
    public suspend fun volumeMounts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.volumeMounts = mapped
    }

    /**
     * @param argument Container volume mounts.
     */
    @JvmName("lixjcwskgamwwbbd")
    public suspend fun volumeMounts(argument: List Unit>) {
        val toBeMapped = argument.toList().map { VolumeMountArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.volumeMounts = mapped
    }

    /**
     * @param argument Container volume mounts.
     */
    @JvmName("dkgmbmbxgtwmwwet")
    public suspend fun volumeMounts(vararg argument: suspend VolumeMountArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { VolumeMountArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.volumeMounts = mapped
    }

    /**
     * @param argument Container volume mounts.
     */
    @JvmName("pbfvwsvhsbjbgpds")
    public suspend fun volumeMounts(argument: suspend VolumeMountArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(VolumeMountArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.volumeMounts = mapped
    }

    /**
     * @param values Container volume mounts.
     */
    @JvmName("hxdgmppgscnbjlwh")
    public suspend fun volumeMounts(vararg values: VolumeMountArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.volumeMounts = mapped
    }

    internal fun build(): ContainerArgs = ContainerArgs(
        args = args,
        command = command,
        env = env,
        image = image,
        name = name,
        probes = probes,
        resources = resources,
        volumeMounts = volumeMounts,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy