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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.lex.kotlin.outputs

import kotlin.Boolean
import kotlin.Suppress

/**
 * Provides a statement the Amazon Lex conveys to the user when the intent is successfully fulfilled.
 * @property closingResponse The response that Amazon Lex sends to the user when the intent is complete.
 * @property conditional A list of conditional branches associated with the intent's closing response. These branches are executed when the nextStep attribute is set to EvalutateConditional.
 * @property isActive Specifies whether an intent's closing response is used. When this field is false, the closing response isn't sent to the user. If the active field isn't specified, the default is true.
 * @property nextStep Specifies the next step that the bot executes after playing the intent's closing response.
 */
public data class BotIntentClosingSetting(
    public val closingResponse: BotResponseSpecification? = null,
    public val conditional: BotConditionalSpecification? = null,
    public val isActive: Boolean? = null,
    public val nextStep: BotDialogState? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotIntentClosingSetting): BotIntentClosingSetting = BotIntentClosingSetting(
            closingResponse = javaType.closingResponse().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotResponseSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            conditional = javaType.conditional().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotConditionalSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            isActive = javaType.isActive().map({ args0 -> args0 }).orElse(null),
            nextStep = javaType.nextStep().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotDialogState.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy