com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentConfirmationSettingPromptSpecificationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.lex.kotlin.inputs
import com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingPromptSpecificationArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property allowInterrupt Whether the user can interrupt a speech prompt from the bot.
* @property maxRetries Maximum number of times the bot tries to elicit a response from the user using this prompt.
* @property messageGroups Configuration block for messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime. See `message_group`.
* @property messageSelectionStrategy How a message is selected from a message group among retries. Valid values are `Random` and `Ordered`.
* @property promptAttemptsSpecifications Configuration block for advanced settings on each attempt of the prompt. See `prompt_attempts_specification`.
*/
public data class V2modelsIntentConfirmationSettingPromptSpecificationArgs(
public val allowInterrupt: Output? = null,
public val maxRetries: Output,
public val messageGroups: Output>? = null,
public val messageSelectionStrategy: Output? = null,
public val promptAttemptsSpecifications: Output>? =
null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingPromptSpecificationArgs =
com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingPromptSpecificationArgs.builder()
.allowInterrupt(allowInterrupt?.applyValue({ args0 -> args0 }))
.maxRetries(maxRetries.applyValue({ args0 -> args0 }))
.messageGroups(
messageGroups?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.messageSelectionStrategy(messageSelectionStrategy?.applyValue({ args0 -> args0 }))
.promptAttemptsSpecifications(
promptAttemptsSpecifications?.applyValue({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
).build()
}
/**
* Builder for [V2modelsIntentConfirmationSettingPromptSpecificationArgs].
*/
@PulumiTagMarker
public class V2modelsIntentConfirmationSettingPromptSpecificationArgsBuilder internal constructor() {
private var allowInterrupt: Output? = null
private var maxRetries: Output? = null
private var messageGroups:
Output>? = null
private var messageSelectionStrategy: Output? = null
private var promptAttemptsSpecifications:
Output>? =
null
/**
* @param value Whether the user can interrupt a speech prompt from the bot.
*/
@JvmName("sksajufrpjayvdto")
public suspend fun allowInterrupt(`value`: Output) {
this.allowInterrupt = value
}
/**
* @param value Maximum number of times the bot tries to elicit a response from the user using this prompt.
*/
@JvmName("dtfceubeacmckfwb")
public suspend fun maxRetries(`value`: Output) {
this.maxRetries = value
}
/**
* @param value Configuration block for messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime. See `message_group`.
*/
@JvmName("kpmosgmroolknwek")
public suspend fun messageGroups(`value`: Output>) {
this.messageGroups = value
}
@JvmName("xnrntmhgsnnlbwes")
public suspend fun messageGroups(vararg values: Output) {
this.messageGroups = Output.all(values.asList())
}
/**
* @param values Configuration block for messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime. See `message_group`.
*/
@JvmName("bwqiknmywbkijjcd")
public suspend fun messageGroups(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy