
com.pulumi.googlenative.dialogflow.v3beta1.kotlin.inputs.GoogleCloudDialogflowCxV3beta1TransitionRouteArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.dialogflow.v3beta1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.dialogflow.v3beta1.inputs.GoogleCloudDialogflowCxV3beta1TransitionRouteArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* A transition route specifies a intent that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the transition, it will be called. * If there is a `target_page` associated with the transition, the session will transition into the specified page. * If there is a `target_flow` associated with the transition, the session will transition into the specified flow.
* @property condition The condition to evaluate against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
* @property intent The unique identifier of an Intent. Format: `projects//locations//agents//intents/`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
* @property targetFlow The target flow to transition to. Format: `projects//locations//agents//flows/`.
* @property targetPage The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
* @property triggerFulfillment The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
*/
public data class GoogleCloudDialogflowCxV3beta1TransitionRouteArgs(
public val condition: Output? = null,
public val intent: Output? = null,
public val targetFlow: Output? = null,
public val targetPage: Output? = null,
public val triggerFulfillment: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.dialogflow.v3beta1.inputs.GoogleCloudDialogflowCxV3beta1TransitionRouteArgs =
com.pulumi.googlenative.dialogflow.v3beta1.inputs.GoogleCloudDialogflowCxV3beta1TransitionRouteArgs.builder()
.condition(condition?.applyValue({ args0 -> args0 }))
.intent(intent?.applyValue({ args0 -> args0 }))
.targetFlow(targetFlow?.applyValue({ args0 -> args0 }))
.targetPage(targetPage?.applyValue({ args0 -> args0 }))
.triggerFulfillment(
triggerFulfillment?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [GoogleCloudDialogflowCxV3beta1TransitionRouteArgs].
*/
@PulumiTagMarker
public class GoogleCloudDialogflowCxV3beta1TransitionRouteArgsBuilder internal constructor() {
private var condition: Output? = null
private var intent: Output? = null
private var targetFlow: Output? = null
private var targetPage: Output? = null
private var triggerFulfillment: Output? = null
/**
* @param value The condition to evaluate against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
*/
@JvmName("rcjwocvqwcatewvv")
public suspend fun condition(`value`: Output) {
this.condition = value
}
/**
* @param value The unique identifier of an Intent. Format: `projects//locations//agents//intents/`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
*/
@JvmName("likvbdasbshvswer")
public suspend fun intent(`value`: Output) {
this.intent = value
}
/**
* @param value The target flow to transition to. Format: `projects//locations//agents//flows/`.
*/
@JvmName("ffglaagctnuwahvb")
public suspend fun targetFlow(`value`: Output) {
this.targetFlow = value
}
/**
* @param value The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
*/
@JvmName("lnfemoneumnopbww")
public suspend fun targetPage(`value`: Output) {
this.targetPage = value
}
/**
* @param value The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
*/
@JvmName("ybagfgdshdkcyuol")
public suspend fun triggerFulfillment(`value`: Output) {
this.triggerFulfillment = value
}
/**
* @param value The condition to evaluate against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
*/
@JvmName("otenguigbeblhwva")
public suspend fun condition(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.condition = mapped
}
/**
* @param value The unique identifier of an Intent. Format: `projects//locations//agents//intents/`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
*/
@JvmName("rtanghggthnkhkwy")
public suspend fun intent(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.intent = mapped
}
/**
* @param value The target flow to transition to. Format: `projects//locations//agents//flows/`.
*/
@JvmName("jmfobjvughtsmkrt")
public suspend fun targetFlow(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.targetFlow = mapped
}
/**
* @param value The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
*/
@JvmName("tamhuxitxnpiktkv")
public suspend fun targetPage(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.targetPage = mapped
}
/**
* @param value The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
*/
@JvmName("baodsgvpfmpyuajp")
public suspend fun triggerFulfillment(`value`: GoogleCloudDialogflowCxV3beta1FulfillmentArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.triggerFulfillment = mapped
}
/**
* @param argument The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
*/
@JvmName("egjvhqwqwgdpbtkw")
public suspend fun triggerFulfillment(argument: suspend GoogleCloudDialogflowCxV3beta1FulfillmentArgsBuilder.() -> Unit) {
val toBeMapped = GoogleCloudDialogflowCxV3beta1FulfillmentArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.triggerFulfillment = mapped
}
internal fun build(): GoogleCloudDialogflowCxV3beta1TransitionRouteArgs =
GoogleCloudDialogflowCxV3beta1TransitionRouteArgs(
condition = condition,
intent = intent,
targetFlow = targetFlow,
targetPage = targetPage,
triggerFulfillment = triggerFulfillment,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy