com.pulumi.gcp.diagflow.kotlin.inputs.CxFlowEventHandlerArgs.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.CxFlowEventHandlerArgs.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
/**
*
* @property event The name of the event to handle.
* @property name (Output)
* The unique identifier of this event handler.
* @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 event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
* Structure is documented below.
*/
public data class CxFlowEventHandlerArgs(
public val event: Output? = null,
public val name: Output? = null,
public val targetFlow: Output? = null,
public val targetPage: Output? = null,
public val triggerFulfillment: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.diagflow.inputs.CxFlowEventHandlerArgs =
com.pulumi.gcp.diagflow.inputs.CxFlowEventHandlerArgs.builder()
.event(event?.applyValue({ args0 -> args0 }))
.name(name?.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 [CxFlowEventHandlerArgs].
*/
@PulumiTagMarker
public class CxFlowEventHandlerArgsBuilder internal constructor() {
private var event: Output? = null
private var name: Output? = null
private var targetFlow: Output? = null
private var targetPage: Output? = null
private var triggerFulfillment: Output? = null
/**
* @param value The name of the event to handle.
*/
@JvmName("adbsrgsietagdggu")
public suspend fun event(`value`: Output) {
this.event = value
}
/**
* @param value (Output)
* The unique identifier of this event handler.
*/
@JvmName("qilpaelhmknqssoj")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The target flow to transition to.
* Format: projects//locations//agents//flows/.
*/
@JvmName("qpgcqqkubpbjlmbb")
public suspend fun targetFlow(`value`: Output) {
this.targetFlow = value
}
/**
* @param value The target page to transition to.
* Format: projects//locations//agents//flows//pages/.
*/
@JvmName("lqhabrjggwhjsdds")
public suspend fun targetPage(`value`: Output) {
this.targetPage = value
}
/**
* @param value The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
* Structure is documented below.
*/
@JvmName("akoofvwpvdgjtjgv")
public suspend fun triggerFulfillment(`value`: Output) {
this.triggerFulfillment = value
}
/**
* @param value The name of the event to handle.
*/
@JvmName("jnockkuoylhpixru")
public suspend fun event(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.event = mapped
}
/**
* @param value (Output)
* The unique identifier of this event handler.
*/
@JvmName("fvcpdfqxuqdlugty")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The target flow to transition to.
* Format: projects//locations//agents//flows/.
*/
@JvmName("lwptopakoesdfwbq")
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("hejnlwxcchuexqbv")
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 event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
* Structure is documented below.
*/
@JvmName("fdgsuoxfxtnfjscx")
public suspend fun triggerFulfillment(`value`: CxFlowEventHandlerTriggerFulfillmentArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.triggerFulfillment = mapped
}
/**
* @param argument The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
* Structure is documented below.
*/
@JvmName("qndmwrbwouyrerpd")
public suspend fun triggerFulfillment(argument: suspend CxFlowEventHandlerTriggerFulfillmentArgsBuilder.() -> Unit) {
val toBeMapped = CxFlowEventHandlerTriggerFulfillmentArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.triggerFulfillment = mapped
}
internal fun build(): CxFlowEventHandlerArgs = CxFlowEventHandlerArgs(
event = event,
name = name,
targetFlow = targetFlow,
targetPage = targetPage,
triggerFulfillment = triggerFulfillment,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy