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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import kotlin.String
import kotlin.Suppress

/**
 * A set of actions that Amazon Lex should run if the condition is matched.
 * @property condition Contains the expression to evaluate. If the condition is true, the branch's actions are taken.
 * @property name The name of the branch.
 * @property nextStep The next step in the conversation.
 * @property response Specifies a list of message groups that Amazon Lex uses to respond the user input.
 */
public data class BotConditionalBranch(
    public val condition: BotCondition,
    public val name: String,
    public val nextStep: BotDialogState,
    public val response: BotResponseSpecification? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotConditionalBranch): BotConditionalBranch = BotConditionalBranch(
            condition = javaType.condition().let({ args0 ->
                com.pulumi.awsnative.lex.kotlin.outputs.BotCondition.Companion.toKotlin(args0)
            }),
            name = javaType.name(),
            nextStep = javaType.nextStep().let({ args0 ->
                com.pulumi.awsnative.lex.kotlin.outputs.BotDialogState.Companion.toKotlin(args0)
            }),
            response = javaType.response().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotResponseSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy