![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.lex.kotlin.inputs.BotDtmfSpecificationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lex.kotlin.inputs
import com.pulumi.awsnative.lex.inputs.BotDtmfSpecificationArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Specifies the settings on DTMF input.
* @property deletionCharacter The DTMF character that clears the accumulated DTMF digits and immediately ends the input.
* @property endCharacter The DTMF character that immediately ends input. If the user does not press this character, the input ends after the end timeout.
* @property endTimeoutMs How long the bot should wait after the last DTMF character input before assuming that the input has concluded.
* @property maxLength The maximum number of DTMF digits allowed in an utterance.
*/
public data class BotDtmfSpecificationArgs(
public val deletionCharacter: Output,
public val endCharacter: Output,
public val endTimeoutMs: Output,
public val maxLength: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotDtmfSpecificationArgs =
com.pulumi.awsnative.lex.inputs.BotDtmfSpecificationArgs.builder()
.deletionCharacter(deletionCharacter.applyValue({ args0 -> args0 }))
.endCharacter(endCharacter.applyValue({ args0 -> args0 }))
.endTimeoutMs(endTimeoutMs.applyValue({ args0 -> args0 }))
.maxLength(maxLength.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BotDtmfSpecificationArgs].
*/
@PulumiTagMarker
public class BotDtmfSpecificationArgsBuilder internal constructor() {
private var deletionCharacter: Output? = null
private var endCharacter: Output? = null
private var endTimeoutMs: Output? = null
private var maxLength: Output? = null
/**
* @param value The DTMF character that clears the accumulated DTMF digits and immediately ends the input.
*/
@JvmName("pyrycghbtweebftq")
public suspend fun deletionCharacter(`value`: Output) {
this.deletionCharacter = value
}
/**
* @param value The DTMF character that immediately ends input. If the user does not press this character, the input ends after the end timeout.
*/
@JvmName("ignrubpprjevfpbb")
public suspend fun endCharacter(`value`: Output) {
this.endCharacter = value
}
/**
* @param value How long the bot should wait after the last DTMF character input before assuming that the input has concluded.
*/
@JvmName("jcbvnddxflsvqruo")
public suspend fun endTimeoutMs(`value`: Output) {
this.endTimeoutMs = value
}
/**
* @param value The maximum number of DTMF digits allowed in an utterance.
*/
@JvmName("prdlqdvrwhlttnys")
public suspend fun maxLength(`value`: Output) {
this.maxLength = value
}
/**
* @param value The DTMF character that clears the accumulated DTMF digits and immediately ends the input.
*/
@JvmName("culkomtjcvidyvde")
public suspend fun deletionCharacter(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.deletionCharacter = mapped
}
/**
* @param value The DTMF character that immediately ends input. If the user does not press this character, the input ends after the end timeout.
*/
@JvmName("korteiswpqvfebdo")
public suspend fun endCharacter(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.endCharacter = mapped
}
/**
* @param value How long the bot should wait after the last DTMF character input before assuming that the input has concluded.
*/
@JvmName("brnidviuupwdxgiq")
public suspend fun endTimeoutMs(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.endTimeoutMs = mapped
}
/**
* @param value The maximum number of DTMF digits allowed in an utterance.
*/
@JvmName("aicxlfeyrsessxqu")
public suspend fun maxLength(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.maxLength = mapped
}
internal fun build(): BotDtmfSpecificationArgs = BotDtmfSpecificationArgs(
deletionCharacter = deletionCharacter ?: throw PulumiNullFieldException("deletionCharacter"),
endCharacter = endCharacter ?: throw PulumiNullFieldException("endCharacter"),
endTimeoutMs = endTimeoutMs ?: throw PulumiNullFieldException("endTimeoutMs"),
maxLength = maxLength ?: throw PulumiNullFieldException("maxLength"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy