![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.lex.kotlin.inputs.BotFulfillmentUpdatesSpecificationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lex.kotlin.inputs
import com.pulumi.awsnative.lex.inputs.BotFulfillmentUpdatesSpecificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Provides information for updating the user on the progress of fulfilling an intent.
* @property active Determines whether fulfillment updates are sent to the user. When this field is true, updates are sent.
* @property startResponse Provides configuration information for the message sent to users when the fulfillment Lambda functions starts running.
* @property timeoutInSeconds The length of time that the fulfillment Lambda function should run before it times out.
* @property updateResponse Provides configuration information for messages sent periodically to the user while the fulfillment Lambda function is running.
*/
public data class BotFulfillmentUpdatesSpecificationArgs(
public val active: Output,
public val startResponse: Output? = null,
public val timeoutInSeconds: Output? = null,
public val updateResponse: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotFulfillmentUpdatesSpecificationArgs =
com.pulumi.awsnative.lex.inputs.BotFulfillmentUpdatesSpecificationArgs.builder()
.active(active.applyValue({ args0 -> args0 }))
.startResponse(startResponse?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.timeoutInSeconds(timeoutInSeconds?.applyValue({ args0 -> args0 }))
.updateResponse(
updateResponse?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [BotFulfillmentUpdatesSpecificationArgs].
*/
@PulumiTagMarker
public class BotFulfillmentUpdatesSpecificationArgsBuilder internal constructor() {
private var active: Output? = null
private var startResponse: Output? = null
private var timeoutInSeconds: Output? = null
private var updateResponse: Output? = null
/**
* @param value Determines whether fulfillment updates are sent to the user. When this field is true, updates are sent.
*/
@JvmName("wfoxyeosarvcjovr")
public suspend fun active(`value`: Output) {
this.active = value
}
/**
* @param value Provides configuration information for the message sent to users when the fulfillment Lambda functions starts running.
*/
@JvmName("wxtlqwgtuvmcwvyi")
public suspend fun startResponse(`value`: Output) {
this.startResponse = value
}
/**
* @param value The length of time that the fulfillment Lambda function should run before it times out.
*/
@JvmName("boospkcmhmqvffgn")
public suspend fun timeoutInSeconds(`value`: Output) {
this.timeoutInSeconds = value
}
/**
* @param value Provides configuration information for messages sent periodically to the user while the fulfillment Lambda function is running.
*/
@JvmName("oqttxwmvbixjiyej")
public suspend fun updateResponse(`value`: Output) {
this.updateResponse = value
}
/**
* @param value Determines whether fulfillment updates are sent to the user. When this field is true, updates are sent.
*/
@JvmName("loqlnepnqnynfjhj")
public suspend fun active(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.active = mapped
}
/**
* @param value Provides configuration information for the message sent to users when the fulfillment Lambda functions starts running.
*/
@JvmName("oayqfxdssmpafmpu")
public suspend fun startResponse(`value`: BotFulfillmentStartResponseSpecificationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.startResponse = mapped
}
/**
* @param argument Provides configuration information for the message sent to users when the fulfillment Lambda functions starts running.
*/
@JvmName("wembrvphnylrtuif")
public suspend fun startResponse(argument: suspend BotFulfillmentStartResponseSpecificationArgsBuilder.() -> Unit) {
val toBeMapped = BotFulfillmentStartResponseSpecificationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.startResponse = mapped
}
/**
* @param value The length of time that the fulfillment Lambda function should run before it times out.
*/
@JvmName("rfoexrlhnpaamcxq")
public suspend fun timeoutInSeconds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeoutInSeconds = mapped
}
/**
* @param value Provides configuration information for messages sent periodically to the user while the fulfillment Lambda function is running.
*/
@JvmName("aknirnyfaajeqknh")
public suspend fun updateResponse(`value`: BotFulfillmentUpdateResponseSpecificationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.updateResponse = mapped
}
/**
* @param argument Provides configuration information for messages sent periodically to the user while the fulfillment Lambda function is running.
*/
@JvmName("xoelphddrvjpfajl")
public suspend fun updateResponse(argument: suspend BotFulfillmentUpdateResponseSpecificationArgsBuilder.() -> Unit) {
val toBeMapped = BotFulfillmentUpdateResponseSpecificationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.updateResponse = mapped
}
internal fun build(): BotFulfillmentUpdatesSpecificationArgs =
BotFulfillmentUpdatesSpecificationArgs(
active = active ?: throw PulumiNullFieldException("active"),
startResponse = startResponse,
timeoutInSeconds = timeoutInSeconds,
updateResponse = updateResponse,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy