com.pulumi.azurenative.web.kotlin.inputs.ContainerArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.web.kotlin.inputs
import com.pulumi.azurenative.web.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 resources Container resource requirements.
*/
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 resources: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.web.inputs.ContainerArgs =
com.pulumi.azurenative.web.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 }))
.resources(resources?.applyValue({ 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 resources: Output? = null
/**
* @param value Container start command arguments.
*/
@JvmName("agbwbnshjscyxrgh")
public suspend fun args(`value`: Output>) {
this.args = value
}
@JvmName("njkwirbsmyflvkjl")
public suspend fun args(vararg values: Output) {
this.args = Output.all(values.asList())
}
/**
* @param values Container start command arguments.
*/
@JvmName("qfiiynkwpyjkblnn")
public suspend fun args(values: List