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

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

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.lex.kotlin.enums.BotSlotValueResolutionStrategy
import kotlin.Suppress

/**
 * Contains settings used by Amazon Lex to select a slot value.
 * @property advancedRecognitionSetting Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances.
 * @property regexFilter A regular expression used to validate the value of a slot.
 * @property resolutionStrategy Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
 * - `ORIGINAL_VALUE` - Returns the value entered by the user, if the user value is similar to the slot value.
 * - `TOP_RESOLUTION` - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
 * If you don't specify the `valueSelectionStrategy` , the default is `ORIGINAL_VALUE` .
 */
public data class BotSlotValueSelectionSetting(
    public val advancedRecognitionSetting: BotAdvancedRecognitionSetting? = null,
    public val regexFilter: BotSlotValueRegexFilter? = null,
    public val resolutionStrategy: BotSlotValueResolutionStrategy,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotSlotValueSelectionSetting): BotSlotValueSelectionSetting = BotSlotValueSelectionSetting(
            advancedRecognitionSetting = javaType.advancedRecognitionSetting().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotAdvancedRecognitionSetting.Companion.toKotlin(args0)
                })
            }).orElse(null),
            regexFilter = javaType.regexFilter().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotSlotValueRegexFilter.Companion.toKotlin(args0)
                })
            }).orElse(null),
            resolutionStrategy = javaType.resolutionStrategy().let({ args0 ->
                com.pulumi.awsnative.lex.kotlin.enums.BotSlotValueResolutionStrategy.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy