![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.lex.kotlin.inputs.BotSlotValueElicitationSettingArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lex.kotlin.inputs
import com.pulumi.awsnative.lex.inputs.BotSlotValueElicitationSettingArgs.builder
import com.pulumi.awsnative.lex.kotlin.enums.BotSlotConstraint
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Settings that you can use for eliciting a slot value.
* @property defaultValueSpecification A list of default values for a slot.
* @property promptSpecification The prompt that Amazon Lex uses to elicit the slot value from the user.
* @property sampleUtterances If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy.
* @property slotCaptureSetting Specifies the next stage in the conversation after capturing the slot.
* @property slotConstraint Specifies whether the slot is required or optional.
* @property waitAndContinueSpecification Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.
*/
public data class BotSlotValueElicitationSettingArgs(
public val defaultValueSpecification: Output? = null,
public val promptSpecification: Output? = null,
public val sampleUtterances: Output>? = null,
public val slotCaptureSetting: Output? = null,
public val slotConstraint: Output,
public val waitAndContinueSpecification: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotSlotValueElicitationSettingArgs =
com.pulumi.awsnative.lex.inputs.BotSlotValueElicitationSettingArgs.builder()
.defaultValueSpecification(
defaultValueSpecification?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.promptSpecification(
promptSpecification?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.sampleUtterances(
sampleUtterances?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.slotCaptureSetting(
slotCaptureSetting?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.slotConstraint(slotConstraint.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.waitAndContinueSpecification(
waitAndContinueSpecification?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
).build()
}
/**
* Builder for [BotSlotValueElicitationSettingArgs].
*/
@PulumiTagMarker
public class BotSlotValueElicitationSettingArgsBuilder internal constructor() {
private var defaultValueSpecification: Output? = null
private var promptSpecification: Output? = null
private var sampleUtterances: Output>? = null
private var slotCaptureSetting: Output? = null
private var slotConstraint: Output? = null
private var waitAndContinueSpecification: Output? = null
/**
* @param value A list of default values for a slot.
*/
@JvmName("skmcsienlmkuccca")
public suspend fun defaultValueSpecification(`value`: Output) {
this.defaultValueSpecification = value
}
/**
* @param value The prompt that Amazon Lex uses to elicit the slot value from the user.
*/
@JvmName("syqyiukgkoxcoxyf")
public suspend fun promptSpecification(`value`: Output) {
this.promptSpecification = value
}
/**
* @param value If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy.
*/
@JvmName("iknttoelaxepjego")
public suspend fun sampleUtterances(`value`: Output>) {
this.sampleUtterances = value
}
@JvmName("krfgbsqvqqkdcwms")
public suspend fun sampleUtterances(vararg values: Output) {
this.sampleUtterances = Output.all(values.asList())
}
/**
* @param values If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy.
*/
@JvmName("qxfbwftlkliccgun")
public suspend fun sampleUtterances(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy