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

com.pulumi.awsnative.lex.kotlin.inputs.BotVoiceSettingsArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.lex.kotlin.inputs

import com.pulumi.awsnative.lex.inputs.BotVoiceSettingsArgs.builder
import com.pulumi.awsnative.lex.kotlin.enums.BotVoiceSettingsEngine
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Settings for using an Amazon Polly voice to communicate with a user.
 * @property engine Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more information, see the engine parameter of the SynthesizeSpeech operation in the Amazon Polly developer guide.
 * @property voiceId The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.
 */
public data class BotVoiceSettingsArgs(
    public val engine: Output? = null,
    public val voiceId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotVoiceSettingsArgs =
        com.pulumi.awsnative.lex.inputs.BotVoiceSettingsArgs.builder()
            .engine(engine?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .voiceId(voiceId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BotVoiceSettingsArgs].
 */
@PulumiTagMarker
public class BotVoiceSettingsArgsBuilder internal constructor() {
    private var engine: Output? = null

    private var voiceId: Output? = null

    /**
     * @param value Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more information, see the engine parameter of the SynthesizeSpeech operation in the Amazon Polly developer guide.
     */
    @JvmName("qyhhnibwddyljgnc")
    public suspend fun engine(`value`: Output) {
        this.engine = value
    }

    /**
     * @param value The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.
     */
    @JvmName("owcpomdnskdalvtj")
    public suspend fun voiceId(`value`: Output) {
        this.voiceId = value
    }

    /**
     * @param value Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more information, see the engine parameter of the SynthesizeSpeech operation in the Amazon Polly developer guide.
     */
    @JvmName("psmakxpjqbvruhbi")
    public suspend fun engine(`value`: BotVoiceSettingsEngine?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.engine = mapped
    }

    /**
     * @param value The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.
     */
    @JvmName("jvnkuktpnchnrnkr")
    public suspend fun voiceId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.voiceId = mapped
    }

    internal fun build(): BotVoiceSettingsArgs = BotVoiceSettingsArgs(
        engine = engine,
        voiceId = voiceId ?: throw PulumiNullFieldException("voiceId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy