com.pulumi.gcp.diagflow.kotlin.outputs.CxPageEntryFulfillment.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.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 CxPageEntryFulfillment(
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.CxPageEntryFulfillment): CxPageEntryFulfillment = CxPageEntryFulfillment(
conditionalCases = javaType.conditionalCases().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.diagflow.kotlin.outputs.CxPageEntryFulfillmentConditionalCase.Companion.toKotlin(args0)
})
}),
messages = javaType.messages().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.diagflow.kotlin.outputs.CxPageEntryFulfillmentMessage.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.CxPageEntryFulfillmentSetParameterAction.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