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

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

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.lex.kotlin.inputs

import com.pulumi.aws.lex.inputs.V2modelsSlotValueElicitationSettingPromptSpecificationArgs.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
 * @property maxRetries
 * @property messageGroups
 * @property messageSelectionStrategy
 * @property promptAttemptsSpecifications
 */
public data class V2modelsSlotValueElicitationSettingPromptSpecificationArgs(
    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.V2modelsSlotValueElicitationSettingPromptSpecificationArgs =
        com.pulumi.aws.lex.inputs.V2modelsSlotValueElicitationSettingPromptSpecificationArgs.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 [V2modelsSlotValueElicitationSettingPromptSpecificationArgs].
 */
@PulumiTagMarker
public class V2modelsSlotValueElicitationSettingPromptSpecificationArgsBuilder 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
     */
    @JvmName("hkbnwxnltsydoudu")
    public suspend fun allowInterrupt(`value`: Output) {
        this.allowInterrupt = value
    }

    /**
     * @param value
     */
    @JvmName("uhrdanxlawjjndll")
    public suspend fun maxRetries(`value`: Output) {
        this.maxRetries = value
    }

    /**
     * @param value
     */
    @JvmName("mdpambwbxhqkcjja")
    public suspend fun messageGroups(`value`: Output>) {
        this.messageGroups = value
    }

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

    /**
     * @param values
     */
    @JvmName("jlxyfslrtehlbqkn")
    public suspend fun messageGroups(values: List>) {
        this.messageGroups = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("qkwpwenddnfbbkja")
    public suspend fun messageSelectionStrategy(`value`: Output) {
        this.messageSelectionStrategy = value
    }

    /**
     * @param value
     */
    @JvmName("gnmvcvgbsmpmpvxi")
    public suspend fun promptAttemptsSpecifications(`value`: Output>) {
        this.promptAttemptsSpecifications = value
    }

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

    /**
     * @param values
     */
    @JvmName("xdaqqjfohumbadpc")
    public suspend fun promptAttemptsSpecifications(values: List>) {
        this.promptAttemptsSpecifications = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("twdndxwsatfnvvxt")
    public suspend fun allowInterrupt(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowInterrupt = mapped
    }

    /**
     * @param value
     */
    @JvmName("qyrmqxshpnlwccxc")
    public suspend fun maxRetries(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maxRetries = mapped
    }

    /**
     * @param value
     */
    @JvmName("xxkxatqkwkbukttf")
    public suspend fun messageGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.messageGroups = mapped
    }

    /**
     * @param argument
     */
    @JvmName("rdqrcalhfrncmgft")
    public suspend fun messageGroups(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            V2modelsSlotValueElicitationSettingPromptSpecificationMessageGroupArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.messageGroups = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ttdpmdqrwtdaejmc")
    public suspend fun messageGroups(vararg argument: suspend V2modelsSlotValueElicitationSettingPromptSpecificationMessageGroupArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            V2modelsSlotValueElicitationSettingPromptSpecificationMessageGroupArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.messageGroups = mapped
    }

    /**
     * @param argument
     */
    @JvmName("krmwmhsvjutxwged")
    public suspend fun messageGroups(argument: suspend V2modelsSlotValueElicitationSettingPromptSpecificationMessageGroupArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                V2modelsSlotValueElicitationSettingPromptSpecificationMessageGroupArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.messageGroups = mapped
    }

    /**
     * @param values
     */
    @JvmName("caymhaslpjlwbnxc")
    public suspend fun messageGroups(vararg values: V2modelsSlotValueElicitationSettingPromptSpecificationMessageGroupArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.messageGroups = mapped
    }

    /**
     * @param value
     */
    @JvmName("xsxpvpeygjxwbuxa")
    public suspend fun messageSelectionStrategy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.messageSelectionStrategy = mapped
    }

    /**
     * @param value
     */
    @JvmName("sdgcvbibdsataynf")
    public suspend fun promptAttemptsSpecifications(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.promptAttemptsSpecifications = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ntypfmvsngwngesh")
    public suspend fun promptAttemptsSpecifications(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            V2modelsSlotValueElicitationSettingPromptSpecificationPromptAttemptsSpecificationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.promptAttemptsSpecifications = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ceccxrrxkktrbiqv")
    public suspend fun promptAttemptsSpecifications(vararg argument: suspend V2modelsSlotValueElicitationSettingPromptSpecificationPromptAttemptsSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            V2modelsSlotValueElicitationSettingPromptSpecificationPromptAttemptsSpecificationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.promptAttemptsSpecifications = mapped
    }

    /**
     * @param argument
     */
    @JvmName("bfcyugqqbuurllkn")
    public suspend fun promptAttemptsSpecifications(argument: suspend V2modelsSlotValueElicitationSettingPromptSpecificationPromptAttemptsSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                V2modelsSlotValueElicitationSettingPromptSpecificationPromptAttemptsSpecificationArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.promptAttemptsSpecifications = mapped
    }

    /**
     * @param values
     */
    @JvmName("bftlttkrwjpvhljj")
    public suspend fun promptAttemptsSpecifications(vararg values: V2modelsSlotValueElicitationSettingPromptSpecificationPromptAttemptsSpecificationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.promptAttemptsSpecifications = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy