com.pulumi.gcp.diagflow.kotlin.inputs.CxTestCaseTestCaseConversationTurnUserInputArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.diagflow.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.diagflow.inputs.CxTestCaseTestCaseConversationTurnUserInputArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property enableSentimentAnalysis Whether sentiment analysis is enabled.
* @property injectedParameters Parameters that need to be injected into the conversation during intent detection.
* @property input User input. Supports text input, event input, dtmf input in the test case.
* Structure is documented below.
* @property isWebhookEnabled If webhooks should be allowed to trigger in response to the user utterance. Often if parameters are injected, webhooks should not be enabled.
*/
public data class CxTestCaseTestCaseConversationTurnUserInputArgs(
public val enableSentimentAnalysis: Output? = null,
public val injectedParameters: Output? = null,
public val input: Output? = null,
public val isWebhookEnabled: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.diagflow.inputs.CxTestCaseTestCaseConversationTurnUserInputArgs =
com.pulumi.gcp.diagflow.inputs.CxTestCaseTestCaseConversationTurnUserInputArgs.builder()
.enableSentimentAnalysis(enableSentimentAnalysis?.applyValue({ args0 -> args0 }))
.injectedParameters(injectedParameters?.applyValue({ args0 -> args0 }))
.input(input?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.isWebhookEnabled(isWebhookEnabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CxTestCaseTestCaseConversationTurnUserInputArgs].
*/
@PulumiTagMarker
public class CxTestCaseTestCaseConversationTurnUserInputArgsBuilder internal constructor() {
private var enableSentimentAnalysis: Output? = null
private var injectedParameters: Output? = null
private var input: Output? = null
private var isWebhookEnabled: Output? = null
/**
* @param value Whether sentiment analysis is enabled.
*/
@JvmName("tgtclwfqkleovcve")
public suspend fun enableSentimentAnalysis(`value`: Output) {
this.enableSentimentAnalysis = value
}
/**
* @param value Parameters that need to be injected into the conversation during intent detection.
*/
@JvmName("jnxencqsgeclyufp")
public suspend fun injectedParameters(`value`: Output) {
this.injectedParameters = value
}
/**
* @param value User input. Supports text input, event input, dtmf input in the test case.
* Structure is documented below.
*/
@JvmName("vhomkrmihxbvtscj")
public suspend fun input(`value`: Output) {
this.input = value
}
/**
* @param value If webhooks should be allowed to trigger in response to the user utterance. Often if parameters are injected, webhooks should not be enabled.
*/
@JvmName("pcxolyvhfnnlkrnh")
public suspend fun isWebhookEnabled(`value`: Output) {
this.isWebhookEnabled = value
}
/**
* @param value Whether sentiment analysis is enabled.
*/
@JvmName("tpkgqoqhoositxgi")
public suspend fun enableSentimentAnalysis(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableSentimentAnalysis = mapped
}
/**
* @param value Parameters that need to be injected into the conversation during intent detection.
*/
@JvmName("ocbvpernrlbgsjrb")
public suspend fun injectedParameters(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.injectedParameters = mapped
}
/**
* @param value User input. Supports text input, event input, dtmf input in the test case.
* Structure is documented below.
*/
@JvmName("hhmukhdeidiwoubi")
public suspend fun input(`value`: CxTestCaseTestCaseConversationTurnUserInputInputArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.input = mapped
}
/**
* @param argument User input. Supports text input, event input, dtmf input in the test case.
* Structure is documented below.
*/
@JvmName("qfajpjgoufwchfug")
public suspend fun input(argument: suspend CxTestCaseTestCaseConversationTurnUserInputInputArgsBuilder.() -> Unit) {
val toBeMapped = CxTestCaseTestCaseConversationTurnUserInputInputArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.input = mapped
}
/**
* @param value If webhooks should be allowed to trigger in response to the user utterance. Often if parameters are injected, webhooks should not be enabled.
*/
@JvmName("hoejokdbueyootge")
public suspend fun isWebhookEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.isWebhookEnabled = mapped
}
internal fun build(): CxTestCaseTestCaseConversationTurnUserInputArgs =
CxTestCaseTestCaseConversationTurnUserInputArgs(
enableSentimentAnalysis = enableSentimentAnalysis,
injectedParameters = injectedParameters,
input = input,
isWebhookEnabled = isWebhookEnabled,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy