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

com.pulumi.gcp.diagflow.kotlin.inputs.CxFlowTransitionRouteTriggerFulfillmentMessagePlayAudioArgs.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: 8.10.0.0
Show newest version
@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.CxFlowTransitionRouteTriggerFulfillmentMessagePlayAudioArgs.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 CxFlowTransitionRouteTriggerFulfillmentMessagePlayAudioArgs(
    public val allowPlaybackInterruption: Output? = null,
    public val audioUri: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.diagflow.inputs.CxFlowTransitionRouteTriggerFulfillmentMessagePlayAudioArgs =
        com.pulumi.gcp.diagflow.inputs.CxFlowTransitionRouteTriggerFulfillmentMessagePlayAudioArgs.builder()
            .allowPlaybackInterruption(allowPlaybackInterruption?.applyValue({ args0 -> args0 }))
            .audioUri(audioUri.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CxFlowTransitionRouteTriggerFulfillmentMessagePlayAudioArgs].
 */
@PulumiTagMarker
public class CxFlowTransitionRouteTriggerFulfillmentMessagePlayAudioArgsBuilder 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("ogkvltbrssuiasbm")
    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("mjnpvpnhdsadcxad")
    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("dwaowyhutkwyvewr")
    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("giaqlqxkbxjwccpx")
    public suspend fun audioUri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.audioUri = mapped
    }

    internal fun build(): CxFlowTransitionRouteTriggerFulfillmentMessagePlayAudioArgs =
        CxFlowTransitionRouteTriggerFulfillmentMessagePlayAudioArgs(
            allowPlaybackInterruption = allowPlaybackInterruption,
            audioUri = audioUri ?: throw PulumiNullFieldException("audioUri"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy