
com.pulumi.awsnative.lex.kotlin.outputs.BotDialogAction.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.outputs
import com.pulumi.awsnative.lex.kotlin.enums.BotDialogActionType
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
* 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 BotDialogAction(
public val slotToElicit: String? = null,
public val suppressNextMessage: Boolean? = null,
public val type: BotDialogActionType,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotDialogAction): BotDialogAction = BotDialogAction(
slotToElicit = javaType.slotToElicit().map({ args0 -> args0 }).orElse(null),
suppressNextMessage = javaType.suppressNextMessage().map({ args0 -> args0 }).orElse(null),
type = javaType.type().let({ args0 ->
com.pulumi.awsnative.lex.kotlin.enums.BotDialogActionType.Companion.toKotlin(args0)
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy