
com.pulumi.awsnative.lex.kotlin.inputs.BotSlotDefaultValueArgs.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.BotSlotDefaultValueArgs.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
/**
* The default value to use when a user doesn't provide a value for a slot.
* @property defaultValue The default value to use when a user doesn't provide a value for a slot.
*/
public data class BotSlotDefaultValueArgs(
public val defaultValue: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotSlotDefaultValueArgs =
com.pulumi.awsnative.lex.inputs.BotSlotDefaultValueArgs.builder()
.defaultValue(defaultValue.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BotSlotDefaultValueArgs].
*/
@PulumiTagMarker
public class BotSlotDefaultValueArgsBuilder internal constructor() {
private var defaultValue: Output? = null
/**
* @param value The default value to use when a user doesn't provide a value for a slot.
*/
@JvmName("bbhrnbahkypcvrtp")
public suspend fun defaultValue(`value`: Output) {
this.defaultValue = value
}
/**
* @param value The default value to use when a user doesn't provide a value for a slot.
*/
@JvmName("ilekycblbngkrcob")
public suspend fun defaultValue(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.defaultValue = mapped
}
internal fun build(): BotSlotDefaultValueArgs = BotSlotDefaultValueArgs(
defaultValue = defaultValue ?: throw PulumiNullFieldException("defaultValue"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy