![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.lex.kotlin.inputs.BotInitialResponseSettingArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lex.kotlin.inputs
import com.pulumi.awsnative.lex.inputs.BotInitialResponseSettingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* 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 BotInitialResponseSettingArgs(
public val codeHook: Output? = null,
public val conditional: Output? = null,
public val initialResponse: Output? = null,
public val nextStep: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotInitialResponseSettingArgs =
com.pulumi.awsnative.lex.inputs.BotInitialResponseSettingArgs.builder()
.codeHook(codeHook?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.conditional(conditional?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.initialResponse(initialResponse?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.nextStep(nextStep?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [BotInitialResponseSettingArgs].
*/
@PulumiTagMarker
public class BotInitialResponseSettingArgsBuilder internal constructor() {
private var codeHook: Output? = null
private var conditional: Output? = null
private var initialResponse: Output? = null
private var nextStep: Output? = null
/**
* @param value Settings that specify the dialog code hook that is called by Amazon Lex at a step of the conversation.
*/
@JvmName("lobqdeayrrhivsvh")
public suspend fun codeHook(`value`: Output) {
this.codeHook = value
}
/**
* @param value 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.
*/
@JvmName("cednqnrylxjmmjoa")
public suspend fun conditional(`value`: Output) {
this.conditional = value
}
/**
* @param value Specifies a list of message groups that Amazon Lex uses to respond the user input.
*/
@JvmName("eqnptmevhbupakoy")
public suspend fun initialResponse(`value`: Output) {
this.initialResponse = value
}
/**
* @param value The next step in the conversation.
*/
@JvmName("rjqpulnhsjrcekok")
public suspend fun nextStep(`value`: Output) {
this.nextStep = value
}
/**
* @param value Settings that specify the dialog code hook that is called by Amazon Lex at a step of the conversation.
*/
@JvmName("wvehicuegkjtnont")
public suspend fun codeHook(`value`: BotDialogCodeHookInvocationSettingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.codeHook = mapped
}
/**
* @param argument Settings that specify the dialog code hook that is called by Amazon Lex at a step of the conversation.
*/
@JvmName("ancnamupvsrvvesr")
public suspend fun codeHook(argument: suspend BotDialogCodeHookInvocationSettingArgsBuilder.() -> Unit) {
val toBeMapped = BotDialogCodeHookInvocationSettingArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.codeHook = mapped
}
/**
* @param value 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.
*/
@JvmName("wlgmspcodaurbygt")
public suspend fun conditional(`value`: BotConditionalSpecificationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.conditional = mapped
}
/**
* @param argument 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.
*/
@JvmName("sfrdddkkqpsxkwbu")
public suspend fun conditional(argument: suspend BotConditionalSpecificationArgsBuilder.() -> Unit) {
val toBeMapped = BotConditionalSpecificationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.conditional = mapped
}
/**
* @param value Specifies a list of message groups that Amazon Lex uses to respond the user input.
*/
@JvmName("bgwisklqoravmapu")
public suspend fun initialResponse(`value`: BotResponseSpecificationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.initialResponse = mapped
}
/**
* @param argument Specifies a list of message groups that Amazon Lex uses to respond the user input.
*/
@JvmName("qjdhqydetredeppk")
public suspend fun initialResponse(argument: suspend BotResponseSpecificationArgsBuilder.() -> Unit) {
val toBeMapped = BotResponseSpecificationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.initialResponse = mapped
}
/**
* @param value The next step in the conversation.
*/
@JvmName("enhggmptfruawdge")
public suspend fun nextStep(`value`: BotDialogStateArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nextStep = mapped
}
/**
* @param argument The next step in the conversation.
*/
@JvmName("qgdestouexwkabxa")
public suspend fun nextStep(argument: suspend BotDialogStateArgsBuilder.() -> Unit) {
val toBeMapped = BotDialogStateArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.nextStep = mapped
}
internal fun build(): BotInitialResponseSettingArgs = BotInitialResponseSettingArgs(
codeHook = codeHook,
conditional = conditional,
initialResponse = initialResponse,
nextStep = nextStep,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy