com.pulumi.awsnative.lex.kotlin.outputs.BotConditionalBranch.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.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),
)
}
}