
com.pulumi.awsnative.lex.kotlin.inputs.BotSlotValueOverrideArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lex.kotlin.inputs
import com.pulumi.awsnative.lex.inputs.BotSlotValueOverrideArgs.builder
import com.pulumi.awsnative.lex.kotlin.enums.BotSlotShape
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The slot values that Amazon Lex uses when it sets slot values in a dialog step.
* @property shape When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.
* @property value The current value of the slot.
* @property values A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
*/
public data class BotSlotValueOverrideArgs(
public val shape: Output? = null,
public val `value`: Output? = null,
public val values: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotSlotValueOverrideArgs =
com.pulumi.awsnative.lex.inputs.BotSlotValueOverrideArgs.builder()
.shape(shape?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.`value`(`value`?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.values(
values?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [BotSlotValueOverrideArgs].
*/
@PulumiTagMarker
public class BotSlotValueOverrideArgsBuilder internal constructor() {
private var shape: Output? = null
private var `value`: Output? = null
private var values: Output>? = null
/**
* @param value When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.
*/
@JvmName("wwumeqyhyyowdbuy")
public suspend fun shape(`value`: Output) {
this.shape = value
}
/**
* @param value The current value of the slot.
*/
@JvmName("xrjruwaeudnujsrs")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
*/
@JvmName("fatbvkhtympttpwj")
public suspend fun values(`value`: Output>) {
this.values = value
}
@JvmName("xyshjuafkatxyhkk")
public suspend fun values(vararg values: Output) {
this.values = Output.all(values.asList())
}
/**
* @param values A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
*/
@JvmName("xhljvurgkeyccxmk")
public suspend fun values(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy