All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.diagflow.kotlin.outputs.CxFlowEventHandlerTriggerFulfillment.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.diagflow.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 CxFlowEventHandlerTriggerFulfillment(
    public val conditionalCases: List? = null,
    public val messages: List? = null,
    public val returnPartialResponses: Boolean? = null,
    public val setParameterActions: List? =
        null,
    public val tag: String? = null,
    public val webhook: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.diagflow.outputs.CxFlowEventHandlerTriggerFulfillment): CxFlowEventHandlerTriggerFulfillment = CxFlowEventHandlerTriggerFulfillment(
            conditionalCases = javaType.conditionalCases().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.diagflow.kotlin.outputs.CxFlowEventHandlerTriggerFulfillmentConditionalCase.Companion.toKotlin(args0)
                })
            }),
            messages = javaType.messages().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.diagflow.kotlin.outputs.CxFlowEventHandlerTriggerFulfillmentMessage.Companion.toKotlin(args0)
                })
            }),
            returnPartialResponses = javaType.returnPartialResponses().map({ args0 -> args0 }).orElse(null),
            setParameterActions = javaType.setParameterActions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.diagflow.kotlin.outputs.CxFlowEventHandlerTriggerFulfillmentSetParameterAction.Companion.toKotlin(args0)
                })
            }),
            tag = javaType.tag().map({ args0 -> args0 }).orElse(null),
            webhook = javaType.webhook().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy