com.pulumi.awsnative.lex.kotlin.inputs.BotTextLogSettingArgs.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.BotTextLogSettingArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Contains information about code hooks that Amazon Lex calls during a conversation.
* @property destination
* @property enabled
*/
public data class BotTextLogSettingArgs(
public val destination: Output,
public val enabled: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotTextLogSettingArgs =
com.pulumi.awsnative.lex.inputs.BotTextLogSettingArgs.builder()
.destination(destination.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.enabled(enabled.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BotTextLogSettingArgs].
*/
@PulumiTagMarker
public class BotTextLogSettingArgsBuilder internal constructor() {
private var destination: Output? = null
private var enabled: Output? = null
/**
* @param value
*/
@JvmName("glvuewbagndwtiuv")
public suspend fun destination(`value`: Output) {
this.destination = value
}
/**
* @param value
*/
@JvmName("mfdxatcvfeimhrjd")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value
*/
@JvmName("gqquwfbyevsldhhp")
public suspend fun destination(`value`: BotTextLogDestinationArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.destination = mapped
}
/**
* @param argument
*/
@JvmName("dtycmvjacnbktovf")
public suspend fun destination(argument: suspend BotTextLogDestinationArgsBuilder.() -> Unit) {
val toBeMapped = BotTextLogDestinationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.destination = mapped
}
/**
* @param value
*/
@JvmName("etvltukfgpnxwbis")
public suspend fun enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabled = mapped
}
internal fun build(): BotTextLogSettingArgs = BotTextLogSettingArgs(
destination = destination ?: throw PulumiNullFieldException("destination"),
enabled = enabled ?: throw PulumiNullFieldException("enabled"),
)
}