com.pulumi.gcp.diagflow.kotlin.inputs.CxPageEntryFulfillmentMessagePlayAudioArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.diagflow.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.diagflow.inputs.CxPageEntryFulfillmentMessagePlayAudioArgs.builder
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
/**
*
* @property allowPlaybackInterruption (Output)
* Whether the playback of this message can be interrupted by the end user's speech and the client can then starts the next Dialogflow request.
* @property audioUri URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
*/
public data class CxPageEntryFulfillmentMessagePlayAudioArgs(
public val allowPlaybackInterruption: Output? = null,
public val audioUri: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.diagflow.inputs.CxPageEntryFulfillmentMessagePlayAudioArgs =
com.pulumi.gcp.diagflow.inputs.CxPageEntryFulfillmentMessagePlayAudioArgs.builder()
.allowPlaybackInterruption(allowPlaybackInterruption?.applyValue({ args0 -> args0 }))
.audioUri(audioUri.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CxPageEntryFulfillmentMessagePlayAudioArgs].
*/
@PulumiTagMarker
public class CxPageEntryFulfillmentMessagePlayAudioArgsBuilder internal constructor() {
private var allowPlaybackInterruption: Output? = null
private var audioUri: Output? = null
/**
* @param value (Output)
* Whether the playback of this message can be interrupted by the end user's speech and the client can then starts the next Dialogflow request.
*/
@JvmName("etbxagavoptlyquu")
public suspend fun allowPlaybackInterruption(`value`: Output) {
this.allowPlaybackInterruption = value
}
/**
* @param value URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
*/
@JvmName("atmyxlbgqocjmwyb")
public suspend fun audioUri(`value`: Output) {
this.audioUri = value
}
/**
* @param value (Output)
* Whether the playback of this message can be interrupted by the end user's speech and the client can then starts the next Dialogflow request.
*/
@JvmName("uicjwcjuntnjatvd")
public suspend fun allowPlaybackInterruption(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allowPlaybackInterruption = mapped
}
/**
* @param value URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
*/
@JvmName("ahdksqpcktjaorku")
public suspend fun audioUri(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.audioUri = mapped
}
internal fun build(): CxPageEntryFulfillmentMessagePlayAudioArgs =
CxPageEntryFulfillmentMessagePlayAudioArgs(
allowPlaybackInterruption = allowPlaybackInterruption,
audioUri = audioUri ?: throw PulumiNullFieldException("audioUri"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy