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

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

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

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

import com.pulumi.awsnative.lex.inputs.BotAudioSpecificationArgs.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.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Specifies the audio input specifications.
 * @property endTimeoutMs Time for which a bot waits after the customer stops speaking to assume the utterance is finished.
 * @property maxLengthMs Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.
 */
public data class BotAudioSpecificationArgs(
    public val endTimeoutMs: Output,
    public val maxLengthMs: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotAudioSpecificationArgs =
        com.pulumi.awsnative.lex.inputs.BotAudioSpecificationArgs.builder()
            .endTimeoutMs(endTimeoutMs.applyValue({ args0 -> args0 }))
            .maxLengthMs(maxLengthMs.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BotAudioSpecificationArgs].
 */
@PulumiTagMarker
public class BotAudioSpecificationArgsBuilder internal constructor() {
    private var endTimeoutMs: Output? = null

    private var maxLengthMs: Output? = null

    /**
     * @param value Time for which a bot waits after the customer stops speaking to assume the utterance is finished.
     */
    @JvmName("solvuciysokhlnhu")
    public suspend fun endTimeoutMs(`value`: Output) {
        this.endTimeoutMs = value
    }

    /**
     * @param value Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.
     */
    @JvmName("mjgrcxhmplihdrnm")
    public suspend fun maxLengthMs(`value`: Output) {
        this.maxLengthMs = value
    }

    /**
     * @param value Time for which a bot waits after the customer stops speaking to assume the utterance is finished.
     */
    @JvmName("bxlautyopqkrafiw")
    public suspend fun endTimeoutMs(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endTimeoutMs = mapped
    }

    /**
     * @param value Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.
     */
    @JvmName("livliqlkwsyaqsyo")
    public suspend fun maxLengthMs(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maxLengthMs = mapped
    }

    internal fun build(): BotAudioSpecificationArgs = BotAudioSpecificationArgs(
        endTimeoutMs = endTimeoutMs ?: throw PulumiNullFieldException("endTimeoutMs"),
        maxLengthMs = maxLengthMs ?: throw PulumiNullFieldException("maxLengthMs"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy