com.pulumi.awsnative.lex.kotlin.inputs.BotSampleValueArgs.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.BotSampleValueArgs.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
/**
* Defines one of the values for a slot type.
* @property value The value that can be used for a slot type.
*/
public data class BotSampleValueArgs(
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotSampleValueArgs =
com.pulumi.awsnative.lex.inputs.BotSampleValueArgs.builder()
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BotSampleValueArgs].
*/
@PulumiTagMarker
public class BotSampleValueArgsBuilder internal constructor() {
private var `value`: Output? = null
/**
* @param value The value that can be used for a slot type.
*/
@JvmName("xkiigrmlrntsnwud")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The value that can be used for a slot type.
*/
@JvmName("ctwekuwjoskoctkr")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): BotSampleValueArgs = BotSampleValueArgs(
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}