
com.pulumi.awsnative.lex.kotlin.outputs.BotCustomVocabularyItem.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.Int
import kotlin.String
import kotlin.Suppress
/**
* A custom vocabulary item that contains the phrase to recognize and a weight to give the boost.
* @property displayAs Defines how you want your phrase to look in your transcription output.
* @property phrase Phrase that should be recognized.
* @property weight The degree to which the phrase recognition is boosted. The weight 0 means that no boosting will be applied and the entry will only be used for performing replacements using the displayAs field.
*/
public data class BotCustomVocabularyItem(
public val displayAs: String? = null,
public val phrase: String,
public val weight: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotCustomVocabularyItem): BotCustomVocabularyItem = BotCustomVocabularyItem(
displayAs = javaType.displayAs().map({ args0 -> args0 }).orElse(null),
phrase = javaType.phrase(),
weight = javaType.weight().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy