
com.pulumi.awsnative.lex.kotlin.outputs.BotSlotValueElicitationSetting.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 com.pulumi.awsnative.lex.kotlin.enums.BotSlotConstraint
import kotlin.Suppress
import kotlin.collections.List
/**
* 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 BotSlotValueElicitationSetting(
public val defaultValueSpecification: BotSlotDefaultValueSpecification? = null,
public val promptSpecification: BotPromptSpecification? = null,
public val sampleUtterances: List? = null,
public val slotCaptureSetting: BotSlotCaptureSetting? = null,
public val slotConstraint: BotSlotConstraint,
public val waitAndContinueSpecification: BotWaitAndContinueSpecification? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotSlotValueElicitationSetting): BotSlotValueElicitationSetting = BotSlotValueElicitationSetting(
defaultValueSpecification = javaType.defaultValueSpecification().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lex.kotlin.outputs.BotSlotDefaultValueSpecification.Companion.toKotlin(args0)
})
}).orElse(null),
promptSpecification = javaType.promptSpecification().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lex.kotlin.outputs.BotPromptSpecification.Companion.toKotlin(args0)
})
}).orElse(null),
sampleUtterances = javaType.sampleUtterances().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lex.kotlin.outputs.BotSampleUtterance.Companion.toKotlin(args0)
})
}),
slotCaptureSetting = javaType.slotCaptureSetting().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lex.kotlin.outputs.BotSlotCaptureSetting.Companion.toKotlin(args0)
})
}).orElse(null),
slotConstraint = javaType.slotConstraint().let({ args0 ->
com.pulumi.awsnative.lex.kotlin.enums.BotSlotConstraint.Companion.toKotlin(args0)
}),
waitAndContinueSpecification = javaType.waitAndContinueSpecification().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lex.kotlin.outputs.BotWaitAndContinueSpecification.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy