
com.pulumi.awsnative.lex.kotlin.inputs.BotDialogActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lex.kotlin.inputs
import com.pulumi.awsnative.lex.inputs.BotDialogActionArgs.builder
import com.pulumi.awsnative.lex.kotlin.enums.BotDialogActionType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Defines the action that the bot executes at runtime when the conversation reaches this step.
* @property slotToElicit If the dialog action is ElicitSlot, defines the slot to elicit from the user.
* @property suppressNextMessage When true the next message for the intent is not used.
* @property type The action that the bot should execute.
*/
public data class BotDialogActionArgs(
public val slotToElicit: Output? = null,
public val suppressNextMessage: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotDialogActionArgs =
com.pulumi.awsnative.lex.inputs.BotDialogActionArgs.builder()
.slotToElicit(slotToElicit?.applyValue({ args0 -> args0 }))
.suppressNextMessage(suppressNextMessage?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [BotDialogActionArgs].
*/
@PulumiTagMarker
public class BotDialogActionArgsBuilder internal constructor() {
private var slotToElicit: Output? = null
private var suppressNextMessage: Output? = null
private var type: Output? = null
/**
* @param value If the dialog action is ElicitSlot, defines the slot to elicit from the user.
*/
@JvmName("qwxborcunhesbewj")
public suspend fun slotToElicit(`value`: Output) {
this.slotToElicit = value
}
/**
* @param value When true the next message for the intent is not used.
*/
@JvmName("mrtrgxbfrrxhirvj")
public suspend fun suppressNextMessage(`value`: Output) {
this.suppressNextMessage = value
}
/**
* @param value The action that the bot should execute.
*/
@JvmName("irvnvbuijuoscadm")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value If the dialog action is ElicitSlot, defines the slot to elicit from the user.
*/
@JvmName("bjkyhjuxkqapgxnq")
public suspend fun slotToElicit(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.slotToElicit = mapped
}
/**
* @param value When true the next message for the intent is not used.
*/
@JvmName("qcatdahkgyxouscl")
public suspend fun suppressNextMessage(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.suppressNextMessage = mapped
}
/**
* @param value The action that the bot should execute.
*/
@JvmName("vddwsuulxxfgkwil")
public suspend fun type(`value`: BotDialogActionType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): BotDialogActionArgs = BotDialogActionArgs(
slotToElicit = slotToElicit,
suppressNextMessage = suppressNextMessage,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy