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

com.pulumi.googlenative.dialogflow.v2.kotlin.inputs.GoogleCloudDialogflowV2IntentMessageSimpleResponseArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.dialogflow.v2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.dialogflow.v2.inputs.GoogleCloudDialogflowV2IntentMessageSimpleResponseArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The simple response message containing speech or text.
 * @property displayText Optional. The text to display.
 * @property ssml One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
 * @property textToSpeech One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
 */
public data class GoogleCloudDialogflowV2IntentMessageSimpleResponseArgs(
    public val displayText: Output? = null,
    public val ssml: Output? = null,
    public val textToSpeech: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.dialogflow.v2.inputs.GoogleCloudDialogflowV2IntentMessageSimpleResponseArgs =
        com.pulumi.googlenative.dialogflow.v2.inputs.GoogleCloudDialogflowV2IntentMessageSimpleResponseArgs.builder()
            .displayText(displayText?.applyValue({ args0 -> args0 }))
            .ssml(ssml?.applyValue({ args0 -> args0 }))
            .textToSpeech(textToSpeech?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GoogleCloudDialogflowV2IntentMessageSimpleResponseArgs].
 */
@PulumiTagMarker
public class GoogleCloudDialogflowV2IntentMessageSimpleResponseArgsBuilder internal constructor() {
    private var displayText: Output? = null

    private var ssml: Output? = null

    private var textToSpeech: Output? = null

    /**
     * @param value Optional. The text to display.
     */
    @JvmName("njdtcjsngkrrrlmh")
    public suspend fun displayText(`value`: Output) {
        this.displayText = value
    }

    /**
     * @param value One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
     */
    @JvmName("tcgreommaviagkog")
    public suspend fun ssml(`value`: Output) {
        this.ssml = value
    }

    /**
     * @param value One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
     */
    @JvmName("vfvyttmhfrkeconn")
    public suspend fun textToSpeech(`value`: Output) {
        this.textToSpeech = value
    }

    /**
     * @param value Optional. The text to display.
     */
    @JvmName("arsmovobfshuqfyt")
    public suspend fun displayText(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayText = mapped
    }

    /**
     * @param value One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
     */
    @JvmName("otebbkomsdcucdji")
    public suspend fun ssml(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ssml = mapped
    }

    /**
     * @param value One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
     */
    @JvmName("iankssmqkacnaqer")
    public suspend fun textToSpeech(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.textToSpeech = mapped
    }

    internal fun build(): GoogleCloudDialogflowV2IntentMessageSimpleResponseArgs =
        GoogleCloudDialogflowV2IntentMessageSimpleResponseArgs(
            displayText = displayText,
            ssml = ssml,
            textToSpeech = textToSpeech,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy