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

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

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

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

import com.pulumi.awsnative.lex.inputs.BotElicitationCodeHookInvocationSettingArgs.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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Settings that specify the dialog code hook that is called by Amazon Lex between eliciting slot values.
 * @property enableCodeHookInvocation Indicates whether a Lambda function should be invoked for the dialog.
 * @property invocationLabel A label that indicates the dialog step from which the dialog code hook is happening.
 */
public data class BotElicitationCodeHookInvocationSettingArgs(
    public val enableCodeHookInvocation: Output,
    public val invocationLabel: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotElicitationCodeHookInvocationSettingArgs = com.pulumi.awsnative.lex.inputs.BotElicitationCodeHookInvocationSettingArgs.builder()
        .enableCodeHookInvocation(enableCodeHookInvocation.applyValue({ args0 -> args0 }))
        .invocationLabel(invocationLabel?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BotElicitationCodeHookInvocationSettingArgs].
 */
@PulumiTagMarker
public class BotElicitationCodeHookInvocationSettingArgsBuilder internal constructor() {
    private var enableCodeHookInvocation: Output? = null

    private var invocationLabel: Output? = null

    /**
     * @param value Indicates whether a Lambda function should be invoked for the dialog.
     */
    @JvmName("rdkcijxnkjpjmtqq")
    public suspend fun enableCodeHookInvocation(`value`: Output) {
        this.enableCodeHookInvocation = value
    }

    /**
     * @param value A label that indicates the dialog step from which the dialog code hook is happening.
     */
    @JvmName("ygwyhhctiqqytssb")
    public suspend fun invocationLabel(`value`: Output) {
        this.invocationLabel = value
    }

    /**
     * @param value Indicates whether a Lambda function should be invoked for the dialog.
     */
    @JvmName("stewklagstvldudw")
    public suspend fun enableCodeHookInvocation(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableCodeHookInvocation = mapped
    }

    /**
     * @param value A label that indicates the dialog step from which the dialog code hook is happening.
     */
    @JvmName("uyjmgglqabpigedc")
    public suspend fun invocationLabel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.invocationLabel = mapped
    }

    internal fun build(): BotElicitationCodeHookInvocationSettingArgs =
        BotElicitationCodeHookInvocationSettingArgs(
            enableCodeHookInvocation = enableCodeHookInvocation ?: throw
                PulumiNullFieldException("enableCodeHookInvocation"),
            invocationLabel = invocationLabel,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy