
com.pulumi.awsnative.lex.kotlin.outputs.BotSlotValueOverride.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.outputs
import com.pulumi.awsnative.lex.kotlin.enums.BotSlotShape
import kotlin.Suppress
import kotlin.collections.List
/**
* 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 BotSlotValueOverride(
public val shape: BotSlotShape? = null,
public val `value`: BotSlotValue? = null,
public val values: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotSlotValueOverride): BotSlotValueOverride = BotSlotValueOverride(
shape = javaType.shape().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lex.kotlin.enums.BotSlotShape.Companion.toKotlin(args0)
})
}).orElse(null),
`value` = javaType.`value`().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lex.kotlin.outputs.BotSlotValue.Companion.toKotlin(args0)
})
}).orElse(null),
values = javaType.values().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lex.kotlin.outputs.BotSlotValueOverride.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy