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

com.pulumi.awsnative.lex.kotlin.inputs.BotPromptAttemptSpecificationArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.lex.inputs.BotPromptAttemptSpecificationArgs.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.jvm.JvmName

/**
 * Specifies the settings on a prompt attempt.
 * @property allowInterrupt Indicates whether the user can interrupt a speech prompt attempt from the bot.
 * @property allowedInputTypes
 * @property audioAndDtmfInputSpecification
 * @property textInputSpecification
 */
public data class BotPromptAttemptSpecificationArgs(
    public val allowInterrupt: Output? = null,
    public val allowedInputTypes: Output,
    public val audioAndDtmfInputSpecification: Output? = null,
    public val textInputSpecification: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotPromptAttemptSpecificationArgs =
        com.pulumi.awsnative.lex.inputs.BotPromptAttemptSpecificationArgs.builder()
            .allowInterrupt(allowInterrupt?.applyValue({ args0 -> args0 }))
            .allowedInputTypes(allowedInputTypes.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .audioAndDtmfInputSpecification(
                audioAndDtmfInputSpecification?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .textInputSpecification(
                textInputSpecification?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [BotPromptAttemptSpecificationArgs].
 */
@PulumiTagMarker
public class BotPromptAttemptSpecificationArgsBuilder internal constructor() {
    private var allowInterrupt: Output? = null

    private var allowedInputTypes: Output? = null

    private var audioAndDtmfInputSpecification: Output? = null

    private var textInputSpecification: Output? = null

    /**
     * @param value Indicates whether the user can interrupt a speech prompt attempt from the bot.
     */
    @JvmName("docmkwligfgmgqmm")
    public suspend fun allowInterrupt(`value`: Output) {
        this.allowInterrupt = value
    }

    /**
     * @param value
     */
    @JvmName("pgbkjoornfrqpnkm")
    public suspend fun allowedInputTypes(`value`: Output) {
        this.allowedInputTypes = value
    }

    /**
     * @param value
     */
    @JvmName("mffgcojopfwusyhi")
    public suspend fun audioAndDtmfInputSpecification(`value`: Output) {
        this.audioAndDtmfInputSpecification = value
    }

    /**
     * @param value
     */
    @JvmName("enlqgmodnxiiqtws")
    public suspend fun textInputSpecification(`value`: Output) {
        this.textInputSpecification = value
    }

    /**
     * @param value Indicates whether the user can interrupt a speech prompt attempt from the bot.
     */
    @JvmName("lhlghnxyxedewhkx")
    public suspend fun allowInterrupt(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowInterrupt = mapped
    }

    /**
     * @param value
     */
    @JvmName("yhtbtyqhxkhtlowi")
    public suspend fun allowedInputTypes(`value`: BotAllowedInputTypesArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedInputTypes = mapped
    }

    /**
     * @param argument
     */
    @JvmName("morlqjoohtsbwbsc")
    public suspend fun allowedInputTypes(argument: suspend BotAllowedInputTypesArgsBuilder.() -> Unit) {
        val toBeMapped = BotAllowedInputTypesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.allowedInputTypes = mapped
    }

    /**
     * @param value
     */
    @JvmName("nqhabscsivnrulqn")
    public suspend fun audioAndDtmfInputSpecification(`value`: BotAudioAndDtmfInputSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.audioAndDtmfInputSpecification = mapped
    }

    /**
     * @param argument
     */
    @JvmName("tjlawtjyxdstrvte")
    public suspend fun audioAndDtmfInputSpecification(argument: suspend BotAudioAndDtmfInputSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = BotAudioAndDtmfInputSpecificationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.audioAndDtmfInputSpecification = mapped
    }

    /**
     * @param value
     */
    @JvmName("mghxlyyjyobyinrr")
    public suspend fun textInputSpecification(`value`: BotTextInputSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.textInputSpecification = mapped
    }

    /**
     * @param argument
     */
    @JvmName("qvdfeviooppeaqxv")
    public suspend fun textInputSpecification(argument: suspend BotTextInputSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = BotTextInputSpecificationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.textInputSpecification = mapped
    }

    internal fun build(): BotPromptAttemptSpecificationArgs = BotPromptAttemptSpecificationArgs(
        allowInterrupt = allowInterrupt,
        allowedInputTypes = allowedInputTypes ?: throw PulumiNullFieldException("allowedInputTypes"),
        audioAndDtmfInputSpecification = audioAndDtmfInputSpecification,
        textInputSpecification = textInputSpecification,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy