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

com.pulumi.awsnative.lex.kotlin.inputs.BotDefaultConditionalBranchArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.lex.kotlin.inputs

import com.pulumi.awsnative.lex.inputs.BotDefaultConditionalBranchArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * A set of actions that Amazon Lex should run if none of the other conditions are met.
 * @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 BotDefaultConditionalBranchArgs(
    public val nextStep: Output? = null,
    public val response: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotDefaultConditionalBranchArgs =
        com.pulumi.awsnative.lex.inputs.BotDefaultConditionalBranchArgs.builder()
            .nextStep(nextStep?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .response(response?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [BotDefaultConditionalBranchArgs].
 */
@PulumiTagMarker
public class BotDefaultConditionalBranchArgsBuilder internal constructor() {
    private var nextStep: Output? = null

    private var response: Output? = null

    /**
     * @param value The next step in the conversation.
     */
    @JvmName("lkkpvehlpjdxgqkk")
    public suspend fun nextStep(`value`: Output) {
        this.nextStep = value
    }

    /**
     * @param value Specifies a list of message groups that Amazon Lex uses to respond the user input.
     */
    @JvmName("pwsudfaskjhxbwus")
    public suspend fun response(`value`: Output) {
        this.response = value
    }

    /**
     * @param value The next step in the conversation.
     */
    @JvmName("ambvbrvyibxjupko")
    public suspend fun nextStep(`value`: BotDialogStateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nextStep = mapped
    }

    /**
     * @param argument The next step in the conversation.
     */
    @JvmName("gqfdorvopyhphmvd")
    public suspend fun nextStep(argument: suspend BotDialogStateArgsBuilder.() -> Unit) {
        val toBeMapped = BotDialogStateArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.nextStep = mapped
    }

    /**
     * @param value Specifies a list of message groups that Amazon Lex uses to respond the user input.
     */
    @JvmName("exmbsnudfosusswr")
    public suspend fun response(`value`: BotResponseSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.response = mapped
    }

    /**
     * @param argument Specifies a list of message groups that Amazon Lex uses to respond the user input.
     */
    @JvmName("efqpsspipjjffrkl")
    public suspend fun response(argument: suspend BotResponseSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = BotResponseSpecificationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.response = mapped
    }

    internal fun build(): BotDefaultConditionalBranchArgs = BotDefaultConditionalBranchArgs(
        nextStep = nextStep,
        response = response,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy