
com.pulumi.awsnative.lex.kotlin.inputs.BotResponseSpecificationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.lex.kotlin.inputs
import com.pulumi.awsnative.lex.inputs.BotResponseSpecificationArgs.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.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A list of message groups that Amazon Lex uses to respond the user input.
* @property allowInterrupt Indicates whether the user can interrupt a speech prompt from the bot.
* @property messageGroupsList A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
*/
public data class BotResponseSpecificationArgs(
public val allowInterrupt: Output? = null,
public val messageGroupsList: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotResponseSpecificationArgs =
com.pulumi.awsnative.lex.inputs.BotResponseSpecificationArgs.builder()
.allowInterrupt(allowInterrupt?.applyValue({ args0 -> args0 }))
.messageGroupsList(
messageGroupsList.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [BotResponseSpecificationArgs].
*/
@PulumiTagMarker
public class BotResponseSpecificationArgsBuilder internal constructor() {
private var allowInterrupt: Output? = null
private var messageGroupsList: Output>? = null
/**
* @param value Indicates whether the user can interrupt a speech prompt from the bot.
*/
@JvmName("eufavyvpxrlhfcru")
public suspend fun allowInterrupt(`value`: Output) {
this.allowInterrupt = value
}
/**
* @param value A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
*/
@JvmName("vtnkaorxtjmlatqi")
public suspend fun messageGroupsList(`value`: Output>) {
this.messageGroupsList = value
}
@JvmName("fvpnwhydgfsmmikw")
public suspend fun messageGroupsList(vararg values: Output) {
this.messageGroupsList = Output.all(values.asList())
}
/**
* @param values A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
*/
@JvmName("ssuysryyypiugkyd")
public suspend fun messageGroupsList(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy