All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentConfirmationSettingPromptSpecificationArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@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>) {
        this.messageGroups = Output.all(values)
    }

    /**
     * @param value How a message is selected from a message group among retries. Valid values are `Random` and `Ordered`.
     */
    @JvmName("wahroouxawfaqhdp")
    public suspend fun messageSelectionStrategy(`value`: Output) {
        this.messageSelectionStrategy = value
    }

    /**
     * @param value Configuration block for advanced settings on each attempt of the prompt. See `prompt_attempts_specification`.
     */
    @JvmName("wqtfbeefhcdcvwkt")
    public suspend fun promptAttemptsSpecifications(`value`: Output>) {
        this.promptAttemptsSpecifications = value
    }

    @JvmName("wocxhkgrkftcjtlk")
    public suspend fun promptAttemptsSpecifications(vararg values: Output) {
        this.promptAttemptsSpecifications = Output.all(values.asList())
    }

    /**
     * @param values Configuration block for advanced settings on each attempt of the prompt. See `prompt_attempts_specification`.
     */
    @JvmName("oujovovkakkvkovl")
    public suspend fun promptAttemptsSpecifications(values: List>) {
        this.promptAttemptsSpecifications = Output.all(values)
    }

    /**
     * @param value Whether the user can interrupt a speech prompt from the bot.
     */
    @JvmName("hivmfkyewjeinyju")
    public suspend fun allowInterrupt(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowInterrupt = mapped
    }

    /**
     * @param value Maximum number of times the bot tries to elicit a response from the user using this prompt.
     */
    @JvmName("sjvklusqdsyotggb")
    public suspend fun maxRetries(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maxRetries = mapped
    }

    /**
     * @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("quvujcrcytqdstfm")
    public suspend fun messageGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.messageGroups = mapped
    }

    /**
     * @param argument 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("ojhwotkkoxgiuwty")
    public suspend fun messageGroups(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            V2modelsIntentConfirmationSettingPromptSpecificationMessageGroupArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.messageGroups = mapped
    }

    /**
     * @param argument 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("blefvvwsqllghbqq")
    public suspend fun messageGroups(vararg argument: suspend V2modelsIntentConfirmationSettingPromptSpecificationMessageGroupArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            V2modelsIntentConfirmationSettingPromptSpecificationMessageGroupArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.messageGroups = mapped
    }

    /**
     * @param argument 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("dcdktgqrevfxfmgl")
    public suspend fun messageGroups(argument: suspend V2modelsIntentConfirmationSettingPromptSpecificationMessageGroupArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                V2modelsIntentConfirmationSettingPromptSpecificationMessageGroupArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.messageGroups = mapped
    }

    /**
     * @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("giebtycpvdgmitqb")
    public suspend fun messageGroups(vararg values: V2modelsIntentConfirmationSettingPromptSpecificationMessageGroupArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.messageGroups = mapped
    }

    /**
     * @param value How a message is selected from a message group among retries. Valid values are `Random` and `Ordered`.
     */
    @JvmName("ykviwuwakoasnmbg")
    public suspend fun messageSelectionStrategy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.messageSelectionStrategy = mapped
    }

    /**
     * @param value Configuration block for advanced settings on each attempt of the prompt. See `prompt_attempts_specification`.
     */
    @JvmName("hxkvhdnqjvdurdly")
    public suspend fun promptAttemptsSpecifications(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.promptAttemptsSpecifications = mapped
    }

    /**
     * @param argument Configuration block for advanced settings on each attempt of the prompt. See `prompt_attempts_specification`.
     */
    @JvmName("uvcgsjjvrxprbwvx")
    public suspend fun promptAttemptsSpecifications(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.promptAttemptsSpecifications = mapped
    }

    /**
     * @param argument Configuration block for advanced settings on each attempt of the prompt. See `prompt_attempts_specification`.
     */
    @JvmName("tfmfsncsilhpkvcx")
    public suspend fun promptAttemptsSpecifications(vararg argument: suspend V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.promptAttemptsSpecifications = mapped
    }

    /**
     * @param argument Configuration block for advanced settings on each attempt of the prompt. See `prompt_attempts_specification`.
     */
    @JvmName("cedwcfrasifujdie")
    public suspend fun promptAttemptsSpecifications(argument: suspend V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.promptAttemptsSpecifications = mapped
    }

    /**
     * @param values Configuration block for advanced settings on each attempt of the prompt. See `prompt_attempts_specification`.
     */
    @JvmName("eoahlloaaukriwae")
    public suspend fun promptAttemptsSpecifications(vararg values: V2modelsIntentConfirmationSettingPromptSpecificationPromptAttemptsSpecificationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.promptAttemptsSpecifications = mapped
    }

    internal fun build(): V2modelsIntentConfirmationSettingPromptSpecificationArgs =
        V2modelsIntentConfirmationSettingPromptSpecificationArgs(
            allowInterrupt = allowInterrupt,
            maxRetries = maxRetries ?: throw PulumiNullFieldException("maxRetries"),
            messageGroups = messageGroups,
            messageSelectionStrategy = messageSelectionStrategy,
            promptAttemptsSpecifications = promptAttemptsSpecifications,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy