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

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

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

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

import com.pulumi.aws.lex.inputs.V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowInterrupt Whether the user can interrupt a speech response from Amazon Lex.
 * @property messageGroups Configuration blocks for responses that Amazon Lex can send to the user.
 * Amazon Lex chooses the actual response to send at runtime.
 * See `message_group`.
 */
public data class
V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseArgs(
    public val allowInterrupt: Output? = null,
    public val messageGroups: Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.lex.inputs.V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseArgs =
        com.pulumi.aws.lex.inputs.V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseArgs.builder()
            .allowInterrupt(allowInterrupt?.applyValue({ args0 -> args0 }))
            .messageGroups(
                messageGroups?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseArgs].
 */
@PulumiTagMarker
public class
V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseArgsBuilder
internal constructor() {
    private var allowInterrupt: Output? = null

    private var messageGroups:
        Output>? =
        null

    /**
     * @param value Whether the user can interrupt a speech response from Amazon Lex.
     */
    @JvmName("bypqtocgpuumbmql")
    public suspend fun allowInterrupt(`value`: Output) {
        this.allowInterrupt = value
    }

    /**
     * @param value Configuration blocks for responses that Amazon Lex can send to the user.
     * Amazon Lex chooses the actual response to send at runtime.
     * See `message_group`.
     */
    @JvmName("ymhhjqsdkqvofcqh")
    public suspend fun messageGroups(`value`: Output>) {
        this.messageGroups = value
    }

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

    /**
     * @param values Configuration blocks for responses that Amazon Lex can send to the user.
     * Amazon Lex chooses the actual response to send at runtime.
     * See `message_group`.
     */
    @JvmName("tweqmbtguehyywvy")
    public suspend fun messageGroups(values: List>) {
        this.messageGroups = Output.all(values)
    }

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

    /**
     * @param value Configuration blocks for responses that Amazon Lex can send to the user.
     * Amazon Lex chooses the actual response to send at runtime.
     * See `message_group`.
     */
    @JvmName("btnivsrslxotgiid")
    public suspend fun messageGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.messageGroups = mapped
    }

    /**
     * @param argument Configuration blocks for responses that Amazon Lex can send to the user.
     * Amazon Lex chooses the actual response to send at runtime.
     * See `message_group`.
     */
    @JvmName("xtuqkqetnuegcpny")
    public suspend fun messageGroups(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseMessageGroupArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.messageGroups = mapped
    }

    /**
     * @param argument Configuration blocks for responses that Amazon Lex can send to the user.
     * Amazon Lex chooses the actual response to send at runtime.
     * See `message_group`.
     */
    @JvmName("ldvsepivxqmotjwt")
    public suspend fun messageGroups(vararg argument: suspend V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseMessageGroupArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseMessageGroupArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.messageGroups = mapped
    }

    /**
     * @param argument Configuration blocks for responses that Amazon Lex can send to the user.
     * Amazon Lex chooses the actual response to send at runtime.
     * See `message_group`.
     */
    @JvmName("mhrondvsiclhnopo")
    public suspend fun messageGroups(argument: suspend V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseMessageGroupArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseMessageGroupArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.messageGroups = mapped
    }

    /**
     * @param values Configuration blocks for responses that Amazon Lex can send to the user.
     * Amazon Lex chooses the actual response to send at runtime.
     * See `message_group`.
     */
    @JvmName("ndvqbebwljgegvma")
    public suspend fun messageGroups(vararg values: V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseMessageGroupArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.messageGroups = mapped
    }

    internal fun build(): V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseArgs =
        V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationWaitingResponseArgs(
            allowInterrupt = allowInterrupt,
            messageGroups = messageGroups,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy