com.pulumi.gcp.diagflow.kotlin.inputs.CxPageEventHandlerTriggerFulfillmentArgs.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.CxPageEventHandlerTriggerFulfillmentArgs.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.collections.List
import kotlin.jvm.JvmName
/**
*
* @property conditionalCases Conditional cases for this fulfillment.
* Structure is documented below.
* @property messages The list of rich message responses to present to the user.
* Structure is documented below.
* @property returnPartialResponses Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.
* @property setParameterActions Set parameter values before executing the webhook.
* Structure is documented below.
* @property tag The tag used by the webhook to identify which fulfillment is being called. This field is required if webhook is specified.
* @property webhook The webhook to call. Format: projects//locations//agents//webhooks/.
*/
public data class CxPageEventHandlerTriggerFulfillmentArgs(
public val conditionalCases: Output>? = null,
public val messages: Output>? = null,
public val returnPartialResponses: Output? = null,
public val setParameterActions: Output>? = null,
public val tag: Output? = null,
public val webhook: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.diagflow.inputs.CxPageEventHandlerTriggerFulfillmentArgs =
com.pulumi.gcp.diagflow.inputs.CxPageEventHandlerTriggerFulfillmentArgs.builder()
.conditionalCases(
conditionalCases?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.messages(
messages?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.returnPartialResponses(returnPartialResponses?.applyValue({ args0 -> args0 }))
.setParameterActions(
setParameterActions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.tag(tag?.applyValue({ args0 -> args0 }))
.webhook(webhook?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CxPageEventHandlerTriggerFulfillmentArgs].
*/
@PulumiTagMarker
public class CxPageEventHandlerTriggerFulfillmentArgsBuilder internal constructor() {
private var conditionalCases:
Output>? = null
private var messages: Output>? = null
private var returnPartialResponses: Output? = null
private var setParameterActions:
Output>? = null
private var tag: Output? = null
private var webhook: Output? = null
/**
* @param value Conditional cases for this fulfillment.
* Structure is documented below.
*/
@JvmName("xaaipdckplgnremd")
public suspend fun conditionalCases(`value`: Output>) {
this.conditionalCases = value
}
@JvmName("dlhrchndavoichep")
public suspend fun conditionalCases(vararg values: Output) {
this.conditionalCases = Output.all(values.asList())
}
/**
* @param values Conditional cases for this fulfillment.
* Structure is documented below.
*/
@JvmName("nuypondquxicjgvr")
public suspend fun conditionalCases(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy