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

com.pulumi.awsnative.lex.kotlin.outputs.BotDialogAction.kt Maven / Gradle / Ivy

@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