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

com.pulumi.awsnative.lex.kotlin.outputs.BotFulfillmentUpdatesSpecification.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.lex.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress

/**
 * 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 BotFulfillmentUpdatesSpecification(
    public val active: Boolean,
    public val startResponse: BotFulfillmentStartResponseSpecification? = null,
    public val timeoutInSeconds: Int? = null,
    public val updateResponse: BotFulfillmentUpdateResponseSpecification? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotFulfillmentUpdatesSpecification): BotFulfillmentUpdatesSpecification = BotFulfillmentUpdatesSpecification(
            active = javaType.active(),
            startResponse = javaType.startResponse().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotFulfillmentStartResponseSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            timeoutInSeconds = javaType.timeoutInSeconds().map({ args0 -> args0 }).orElse(null),
            updateResponse = javaType.updateResponse().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotFulfillmentUpdateResponseSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy