com.pulumi.aws.lex.kotlin.inputs.BotClarificationPromptArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.lex.kotlin.inputs
import com.pulumi.aws.lex.inputs.BotClarificationPromptArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property maxAttempts The number of times to prompt the user for information.
* @property messages
* @property responseCard
*/
public data class BotClarificationPromptArgs(
public val maxAttempts: Output,
public val messages: Output>,
public val responseCard: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.lex.inputs.BotClarificationPromptArgs =
com.pulumi.aws.lex.inputs.BotClarificationPromptArgs.builder()
.maxAttempts(maxAttempts.applyValue({ args0 -> args0 }))
.messages(
messages.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.responseCard(responseCard?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BotClarificationPromptArgs].
*/
@PulumiTagMarker
public class BotClarificationPromptArgsBuilder internal constructor() {
private var maxAttempts: Output? = null
private var messages: Output>? = null
private var responseCard: Output? = null
/**
* @param value The number of times to prompt the user for information.
*/
@JvmName("tfmmmvnehloycoef")
public suspend fun maxAttempts(`value`: Output) {
this.maxAttempts = value
}
/**
* @param value
*/
@JvmName("qxxteumkpsuotdta")
public suspend fun messages(`value`: Output>) {
this.messages = value
}
@JvmName("mehsadkvndntmxyt")
public suspend fun messages(vararg values: Output) {
this.messages = Output.all(values.asList())
}
/**
* @param values
*/
@JvmName("gpdmqppatxaaasky")
public suspend fun messages(values: List