com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.lex.kotlin.inputs
import com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationArgs.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.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property audioSpecification Configuration block for the settings on audio input. See `audio_specification`.
* @property dtmfSpecification Configuration block for the settings on DTMF input. See `dtmf_specification`.
* @property startTimeoutMs Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs.
*/
public data class
V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationArgs(
public val audioSpecification: Output? =
null,
public val dtmfSpecification: Output? =
null,
public val startTimeoutMs: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationArgs =
com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationArgs.builder()
.audioSpecification(
audioSpecification?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.dtmfSpecification(dtmfSpecification?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.startTimeoutMs(startTimeoutMs.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationArgs].
*/
@PulumiTagMarker
public class
V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationArgsBuilder
internal constructor() {
private var audioSpecification:
Output? =
null
private var dtmfSpecification:
Output? =
null
private var startTimeoutMs: Output? = null
/**
* @param value Configuration block for the settings on audio input. See `audio_specification`.
*/
@JvmName("ueilimeaemdwkrmw")
public suspend fun audioSpecification(`value`: Output) {
this.audioSpecification = value
}
/**
* @param value Configuration block for the settings on DTMF input. See `dtmf_specification`.
*/
@JvmName("mvohktdlwktyhbxj")
public suspend fun dtmfSpecification(`value`: Output) {
this.dtmfSpecification = value
}
/**
* @param value Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs.
*/
@JvmName("olvntftuibxjlhka")
public suspend fun startTimeoutMs(`value`: Output) {
this.startTimeoutMs = value
}
/**
* @param value Configuration block for the settings on audio input. See `audio_specification`.
*/
@JvmName("llsgelvmxlysylyv")
public suspend fun audioSpecification(`value`: V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationAudioSpecificationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.audioSpecification = mapped
}
/**
* @param argument Configuration block for the settings on audio input. See `audio_specification`.
*/
@JvmName("swsivocymdffhnnq")
public suspend fun audioSpecification(argument: suspend V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationAudioSpecificationArgsBuilder.() -> Unit) {
val toBeMapped =
V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationAudioSpecificationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.audioSpecification = mapped
}
/**
* @param value Configuration block for the settings on DTMF input. See `dtmf_specification`.
*/
@JvmName("uciyproquivbixvt")
public suspend fun dtmfSpecification(`value`: V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationDtmfSpecificationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dtmfSpecification = mapped
}
/**
* @param argument Configuration block for the settings on DTMF input. See `dtmf_specification`.
*/
@JvmName("wlfpjcyyikvacmwe")
public suspend fun dtmfSpecification(argument: suspend V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationDtmfSpecificationArgsBuilder.() -> Unit) {
val toBeMapped =
V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationDtmfSpecificationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.dtmfSpecification = mapped
}
/**
* @param value Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs.
*/
@JvmName("bkssqpqoqpxotpgv")
public suspend fun startTimeoutMs(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.startTimeoutMs = mapped
}
internal fun build(): V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationArgs =
V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationAudioAndDtmfInputSpecificationArgs(
audioSpecification = audioSpecification,
dtmfSpecification = dtmfSpecification,
startTimeoutMs = startTimeoutMs ?: throw PulumiNullFieldException("startTimeoutMs"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy