com.pulumi.awsnative.lex.kotlin.BotVersionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lex.kotlin
import com.pulumi.awsnative.lex.BotVersionArgs.builder
import com.pulumi.awsnative.lex.kotlin.inputs.BotVersionLocaleSpecificationArgs
import com.pulumi.awsnative.lex.kotlin.inputs.BotVersionLocaleSpecificationArgsBuilder
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
/**
* A version is a numbered snapshot of your work that you can publish for use in different parts of your workflow, such as development, beta deployment, and production.
* @property botId The unique identifier of the bot.
* @property botVersionLocaleSpecification Specifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.
* @property description The description of the version.
*/
public data class BotVersionArgs(
public val botId: Output? = null,
public val botVersionLocaleSpecification: Output>? = null,
public val description: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.BotVersionArgs =
com.pulumi.awsnative.lex.BotVersionArgs.builder()
.botId(botId?.applyValue({ args0 -> args0 }))
.botVersionLocaleSpecification(
botVersionLocaleSpecification?.applyValue({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.description(description?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BotVersionArgs].
*/
@PulumiTagMarker
public class BotVersionArgsBuilder internal constructor() {
private var botId: Output? = null
private var botVersionLocaleSpecification: Output>? = null
private var description: Output? = null
/**
* @param value The unique identifier of the bot.
*/
@JvmName("umoelgnasovydula")
public suspend fun botId(`value`: Output) {
this.botId = value
}
/**
* @param value Specifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.
*/
@JvmName("wkxochaoepokvtsk")
public suspend fun botVersionLocaleSpecification(`value`: Output>) {
this.botVersionLocaleSpecification = value
}
@JvmName("cltutcekdenicstk")
public suspend fun botVersionLocaleSpecification(vararg values: Output) {
this.botVersionLocaleSpecification = Output.all(values.asList())
}
/**
* @param values Specifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.
*/
@JvmName("hpmdhngaaayxnhxy")
public suspend fun botVersionLocaleSpecification(values: List