com.pulumi.awsnative.lex.kotlin.inputs.BotConditionalSpecificationArgs.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.inputs
import com.pulumi.awsnative.lex.inputs.BotConditionalSpecificationArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.
* @property conditionalBranches A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
* @property defaultBranch The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.
* @property isActive Determines whether a conditional branch is active. When active is false, the conditions are not evaluated.
*/
public data class BotConditionalSpecificationArgs(
public val conditionalBranches: Output>,
public val defaultBranch: Output,
public val isActive: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotConditionalSpecificationArgs =
com.pulumi.awsnative.lex.inputs.BotConditionalSpecificationArgs.builder()
.conditionalBranches(
conditionalBranches.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.defaultBranch(defaultBranch.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.isActive(isActive.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BotConditionalSpecificationArgs].
*/
@PulumiTagMarker
public class BotConditionalSpecificationArgsBuilder internal constructor() {
private var conditionalBranches: Output>? = null
private var defaultBranch: Output? = null
private var isActive: Output? = null
/**
* @param value A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
*/
@JvmName("iagtvodekgmfbfhe")
public suspend fun conditionalBranches(`value`: Output>) {
this.conditionalBranches = value
}
@JvmName("eediidwhautwvkpn")
public suspend fun conditionalBranches(vararg values: Output) {
this.conditionalBranches = Output.all(values.asList())
}
/**
* @param values A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
*/
@JvmName("cutysvxmkfxhkpfd")
public suspend fun conditionalBranches(values: List