
com.pulumi.awsnative.lex.kotlin.inputs.BotButtonArgs.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.BotButtonArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A button to use on a response card used to gather slot values from a user.
* @property text The text that appears on the button.
* @property value The value returned to Amazon Lex when the user chooses this button.
*/
public data class BotButtonArgs(
public val text: Output,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotButtonArgs =
com.pulumi.awsnative.lex.inputs.BotButtonArgs.builder()
.text(text.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BotButtonArgs].
*/
@PulumiTagMarker
public class BotButtonArgsBuilder internal constructor() {
private var text: Output? = null
private var `value`: Output? = null
/**
* @param value The text that appears on the button.
*/
@JvmName("fyrdemnxglqrwxmx")
public suspend fun text(`value`: Output) {
this.text = value
}
/**
* @param value The value returned to Amazon Lex when the user chooses this button.
*/
@JvmName("aukylxxndcomlxwu")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The text that appears on the button.
*/
@JvmName("gdvnuqfqdamthxkf")
public suspend fun text(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.text = mapped
}
/**
* @param value The value returned to Amazon Lex when the user chooses this button.
*/
@JvmName("hybuvuyfidfqamqs")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): BotButtonArgs = BotButtonArgs(
text = text ?: throw PulumiNullFieldException("text"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy