
com.pulumi.awsnative.lex.kotlin.outputs.BotInitialResponseSetting.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 kotlin.Suppress
/**
* Configuration setting for a response sent to the user before Amazon Lex starts eliciting slots.
* @property codeHook Settings that specify the dialog code hook that is called by Amazon Lex at a step of the conversation.
* @property conditional Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.
* @property initialResponse Specifies a list of message groups that Amazon Lex uses to respond the user input.
* @property nextStep The next step in the conversation.
*/
public data class BotInitialResponseSetting(
public val codeHook: BotDialogCodeHookInvocationSetting? = null,
public val conditional: BotConditionalSpecification? = null,
public val initialResponse: BotResponseSpecification? = null,
public val nextStep: BotDialogState? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotInitialResponseSetting): BotInitialResponseSetting = BotInitialResponseSetting(
codeHook = javaType.codeHook().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lex.kotlin.outputs.BotDialogCodeHookInvocationSetting.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),
initialResponse = javaType.initialResponse().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lex.kotlin.outputs.BotResponseSpecification.Companion.toKotlin(args0)
})
}).orElse(null),
nextStep = javaType.nextStep().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lex.kotlin.outputs.BotDialogState.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy