com.pulumi.googlenative.dialogflow.v2beta1.kotlin.inputs.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReplyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.dialogflow.v2beta1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.dialogflow.v2beta1.inputs.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReplyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response.
* @property postbackData Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
* @property text Suggested reply text.
*/
public data class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReplyArgs(
public val postbackData: Output? = null,
public val text: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.dialogflow.v2beta1.inputs.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReplyArgs =
com.pulumi.googlenative.dialogflow.v2beta1.inputs.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReplyArgs.builder()
.postbackData(postbackData?.applyValue({ args0 -> args0 }))
.text(text?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReplyArgs].
*/
@PulumiTagMarker
public class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReplyArgsBuilder internal constructor() {
private var postbackData: Output? = null
private var text: Output? = null
/**
* @param value Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
*/
@JvmName("onlchnlithawuovr")
public suspend fun postbackData(`value`: Output) {
this.postbackData = value
}
/**
* @param value Suggested reply text.
*/
@JvmName("huldldihnmpbiwfy")
public suspend fun text(`value`: Output) {
this.text = value
}
/**
* @param value Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
*/
@JvmName("vkbelcphsgoggmjg")
public suspend fun postbackData(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.postbackData = mapped
}
/**
* @param value Suggested reply text.
*/
@JvmName("dentwrkryssbuvvl")
public suspend fun text(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.text = mapped
}
internal fun build(): GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReplyArgs =
GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReplyArgs(
postbackData = postbackData,
text = text,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy