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

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

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

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

import kotlin.Suppress

/**
 * Specifies next steps to run after the dialog code hook finishes.
 * @property failureConditional A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with the State field of the Intent object set to Failed.
 * @property failureNextStep Specifies the next step the bot runs after the dialog code hook throws an exception or returns with the State field of the Intent object set to Failed.
 * @property failureResponse Specifies a list of message groups that Amazon Lex uses to respond the user input.
 * @property successConditional A list of conditional branches to evaluate after the dialog code hook finishes successfully.
 * @property successNextStep Specifics the next step the bot runs after the dialog code hook finishes successfully.
 * @property successResponse Specifies a list of message groups that Amazon Lex uses to respond the user input.
 * @property timeoutConditional A list of conditional branches to evaluate if the code hook times out.
 * @property timeoutNextStep Specifies the next step that the bot runs when the code hook times out.
 * @property timeoutResponse Specifies a list of message groups that Amazon Lex uses to respond the user input.
 */
public data class BotPostDialogCodeHookInvocationSpecification(
    public val failureConditional: BotConditionalSpecification? = null,
    public val failureNextStep: BotDialogState? = null,
    public val failureResponse: BotResponseSpecification? = null,
    public val successConditional: BotConditionalSpecification? = null,
    public val successNextStep: BotDialogState? = null,
    public val successResponse: BotResponseSpecification? = null,
    public val timeoutConditional: BotConditionalSpecification? = null,
    public val timeoutNextStep: BotDialogState? = null,
    public val timeoutResponse: BotResponseSpecification? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotPostDialogCodeHookInvocationSpecification): BotPostDialogCodeHookInvocationSpecification = BotPostDialogCodeHookInvocationSpecification(
            failureConditional = javaType.failureConditional().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotConditionalSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            failureNextStep = javaType.failureNextStep().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotDialogState.Companion.toKotlin(args0)
                })
            }).orElse(null),
            failureResponse = javaType.failureResponse().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotResponseSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            successConditional = javaType.successConditional().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotConditionalSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            successNextStep = javaType.successNextStep().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotDialogState.Companion.toKotlin(args0)
                })
            }).orElse(null),
            successResponse = javaType.successResponse().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotResponseSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            timeoutConditional = javaType.timeoutConditional().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotConditionalSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            timeoutNextStep = javaType.timeoutNextStep().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotDialogState.Companion.toKotlin(args0)
                })
            }).orElse(null),
            timeoutResponse = javaType.timeoutResponse().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotResponseSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy