com.pulumi.azurenative.web.kotlin.inputs.TemplateArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.web.kotlin.inputs
import com.pulumi.azurenative.web.inputs.TemplateArgs.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 versioned application definition.
* Defines the desired state of an immutable revision.
* Any changes to this section Will result in a new revision being created
* @property containers List of container definitions for the Container App.
* @property dapr Dapr configuration for the Container App.
* @property revisionSuffix User friendly suffix that is appended to the revision name
* @property scale Scaling properties for the Container App.
*/
public data class TemplateArgs(
public val containers: Output>? = null,
public val dapr: Output? = null,
public val revisionSuffix: Output? = null,
public val scale: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.web.inputs.TemplateArgs =
com.pulumi.azurenative.web.inputs.TemplateArgs.builder()
.containers(
containers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.dapr(dapr?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.revisionSuffix(revisionSuffix?.applyValue({ args0 -> args0 }))
.scale(scale?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [TemplateArgs].
*/
@PulumiTagMarker
public class TemplateArgsBuilder internal constructor() {
private var containers: Output>? = null
private var dapr: Output? = null
private var revisionSuffix: Output? = null
private var scale: Output? = null
/**
* @param value List of container definitions for the Container App.
*/
@JvmName("pqjkdyxipimnhuya")
public suspend fun containers(`value`: Output>) {
this.containers = value
}
@JvmName("bcnrresajccuinhw")
public suspend fun containers(vararg values: Output) {
this.containers = Output.all(values.asList())
}
/**
* @param values List of container definitions for the Container App.
*/
@JvmName("snlmxcpipnunfwhd")
public suspend fun containers(values: List