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

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>) {
        this.botVersionLocaleSpecification = Output.all(values)
    }

    /**
     * @param value The description of the version.
     */
    @JvmName("giyjbwvvucdvigql")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The unique identifier of the bot.
     */
    @JvmName("hjmaobytyapegtrp")
    public suspend fun botId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.botId = mapped
    }

    /**
     * @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("eddgnjpuyuknrqje")
    public suspend fun botVersionLocaleSpecification(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.botVersionLocaleSpecification = mapped
    }

    /**
     * @param argument 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("ekivyoyfuauafprr")
    public suspend fun botVersionLocaleSpecification(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BotVersionLocaleSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.botVersionLocaleSpecification = mapped
    }

    /**
     * @param argument 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("jrbjgrbqsxhauoou")
    public suspend fun botVersionLocaleSpecification(vararg argument: suspend BotVersionLocaleSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BotVersionLocaleSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.botVersionLocaleSpecification = mapped
    }

    /**
     * @param argument 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("gulolfnvqmvnquwt")
    public suspend fun botVersionLocaleSpecification(argument: suspend BotVersionLocaleSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            BotVersionLocaleSpecificationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.botVersionLocaleSpecification = mapped
    }

    /**
     * @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("wjkhpeuinndfclre")
    public suspend fun botVersionLocaleSpecification(vararg values: BotVersionLocaleSpecificationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.botVersionLocaleSpecification = mapped
    }

    /**
     * @param value The description of the version.
     */
    @JvmName("stourysnvshydcor")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    internal fun build(): BotVersionArgs = BotVersionArgs(
        botId = botId,
        botVersionLocaleSpecification = botVersionLocaleSpecification,
        description = description,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy