
com.pulumi.awsnative.lex.kotlin.inputs.BotFulfillmentUpdateResponseSpecificationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lex.kotlin.inputs
import com.pulumi.awsnative.lex.inputs.BotFulfillmentUpdateResponseSpecificationArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Provides settings for a message that is sent periodically to the user while a fulfillment Lambda function is running.
* @property allowInterrupt Determines whether the user can interrupt an update message while it is playing.
* @property frequencyInSeconds The frequency that a message is sent to the user. When the period ends, Amazon Lex chooses a message from the message groups and plays it to the user. If the fulfillment Lambda returns before the first period ends, an update message is not played to the user.
* @property messageGroups 1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.
*/
public data class BotFulfillmentUpdateResponseSpecificationArgs(
public val allowInterrupt: Output? = null,
public val frequencyInSeconds: Output,
public val messageGroups: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lex.inputs.BotFulfillmentUpdateResponseSpecificationArgs =
com.pulumi.awsnative.lex.inputs.BotFulfillmentUpdateResponseSpecificationArgs.builder()
.allowInterrupt(allowInterrupt?.applyValue({ args0 -> args0 }))
.frequencyInSeconds(frequencyInSeconds.applyValue({ args0 -> args0 }))
.messageGroups(
messageGroups.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [BotFulfillmentUpdateResponseSpecificationArgs].
*/
@PulumiTagMarker
public class BotFulfillmentUpdateResponseSpecificationArgsBuilder internal constructor() {
private var allowInterrupt: Output? = null
private var frequencyInSeconds: Output? = null
private var messageGroups: Output>? = null
/**
* @param value Determines whether the user can interrupt an update message while it is playing.
*/
@JvmName("ywcntrtpcshygeby")
public suspend fun allowInterrupt(`value`: Output) {
this.allowInterrupt = value
}
/**
* @param value The frequency that a message is sent to the user. When the period ends, Amazon Lex chooses a message from the message groups and plays it to the user. If the fulfillment Lambda returns before the first period ends, an update message is not played to the user.
*/
@JvmName("lafuartnhgjpwtlc")
public suspend fun frequencyInSeconds(`value`: Output) {
this.frequencyInSeconds = value
}
/**
* @param value 1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.
*/
@JvmName("pfxrvhvfdigqahcy")
public suspend fun messageGroups(`value`: Output>) {
this.messageGroups = value
}
@JvmName("gjujfwewlbsslooy")
public suspend fun messageGroups(vararg values: Output) {
this.messageGroups = Output.all(values.asList())
}
/**
* @param values 1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.
*/
@JvmName("cynuqxuwrdrmmwgj")
public suspend fun messageGroups(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy