
com.pulumi.awsnative.lex.kotlin.inputs.BotTestBotAliasSettingsSentimentAnalysisSettingsPropertiesArgs.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.inputs
import com.pulumi.awsnative.lex.inputs.BotTestBotAliasSettingsSentimentAnalysisSettingsPropertiesArgs.builder
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 kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
* @property detectSentiment Enable to call Amazon Comprehend for Sentiment natively within Lex
*/
public data class BotTestBotAliasSettingsSentimentAnalysisSettingsPropertiesArgs(
public val detectSentiment: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotTestBotAliasSettingsSentimentAnalysisSettingsPropertiesArgs =
com.pulumi.awsnative.lex.inputs.BotTestBotAliasSettingsSentimentAnalysisSettingsPropertiesArgs.builder()
.detectSentiment(detectSentiment.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BotTestBotAliasSettingsSentimentAnalysisSettingsPropertiesArgs].
*/
@PulumiTagMarker
public class BotTestBotAliasSettingsSentimentAnalysisSettingsPropertiesArgsBuilder internal constructor() {
private var detectSentiment: Output? = null
/**
* @param value Enable to call Amazon Comprehend for Sentiment natively within Lex
*/
@JvmName("knrvwmvaluecospw")
public suspend fun detectSentiment(`value`: Output) {
this.detectSentiment = value
}
/**
* @param value Enable to call Amazon Comprehend for Sentiment natively within Lex
*/
@JvmName("ytefwkxwdqlgfhiy")
public suspend fun detectSentiment(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.detectSentiment = mapped
}
internal fun build(): BotTestBotAliasSettingsSentimentAnalysisSettingsPropertiesArgs =
BotTestBotAliasSettingsSentimentAnalysisSettingsPropertiesArgs(
detectSentiment = detectSentiment ?: throw PulumiNullFieldException("detectSentiment"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy