com.pulumi.gcp.diagflow.kotlin.inputs.CxPageEventHandlerArgs.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.CxPageEventHandlerArgs.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 CxPageEventHandlerArgs(
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.CxPageEventHandlerArgs =
com.pulumi.gcp.diagflow.inputs.CxPageEventHandlerArgs.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 [CxPageEventHandlerArgs].
*/
@PulumiTagMarker
public class CxPageEventHandlerArgsBuilder 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("cfbeiceklmcceuov")
public suspend fun event(`value`: Output) {
this.event = value
}
/**
* @param value (Output)
* The unique identifier of this event handler.
*/
@JvmName("ldifhjgfqtqmyqwd")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The target flow to transition to.
* Format: projects//locations//agents//flows/.
*/
@JvmName("reilrnkxclscflwt")
public suspend fun targetFlow(`value`: Output) {
this.targetFlow = value
}
/**
* @param value The target page to transition to.
* Format: projects//locations//agents//flows//pages/.
*/
@JvmName("uclpmeyiulmicenq")
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("wlfakdjpllblnpig")
public suspend fun triggerFulfillment(`value`: Output) {
this.triggerFulfillment = value
}
/**
* @param value The name of the event to handle.
*/
@JvmName("upxktoxiudbifcec")
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("vyyemynlgkwuvcin")
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("tfmsbbrmngvxqcxv")
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("unuktblwvsamoags")
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("bnjmamnjwjummfpp")
public suspend fun triggerFulfillment(`value`: CxPageEventHandlerTriggerFulfillmentArgs?) {
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("qfdydtipjxqplgbt")
public suspend fun triggerFulfillment(argument: suspend CxPageEventHandlerTriggerFulfillmentArgsBuilder.() -> Unit) {
val toBeMapped = CxPageEventHandlerTriggerFulfillmentArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.triggerFulfillment = mapped
}
internal fun build(): CxPageEventHandlerArgs = CxPageEventHandlerArgs(
event = event,
name = name,
targetFlow = targetFlow,
targetPage = targetPage,
triggerFulfillment = triggerFulfillment,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy