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

com.pulumi.aws.lex.kotlin.inputs.V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupArgs.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.V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property message Configuration block for the primary message that Amazon Lex should send to the user.
 * See the `aws.lex.V2modelsIntent` resource for details on the `message` argument reference - they are identical.
 * @property variations Configuration blocks for message variations to send to the user.
 * When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
 * See the `aws.lex.V2modelsIntent` resource for details on the `variation` argument reference - they are identical.
 */
public data class
V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupArgs(
    public val message: Output,
    public val variations: Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.lex.inputs.V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupArgs =
        com.pulumi.aws.lex.inputs.V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupArgs.builder()
            .message(message.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .variations(
                variations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupArgs].
 */
@PulumiTagMarker
public class
V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupArgsBuilder
internal constructor() {
    private var message:
        Output? =
        null

    private var variations:
        Output>? =
        null

    /**
     * @param value Configuration block for the primary message that Amazon Lex should send to the user.
     * See the `aws.lex.V2modelsIntent` resource for details on the `message` argument reference - they are identical.
     */
    @JvmName("yclvuiyullcbielu")
    public suspend fun message(`value`: Output) {
        this.message = value
    }

    /**
     * @param value Configuration blocks for message variations to send to the user.
     * When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
     * See the `aws.lex.V2modelsIntent` resource for details on the `variation` argument reference - they are identical.
     */
    @JvmName("rpekdqtkpovpidun")
    public suspend fun variations(`value`: Output>) {
        this.variations = value
    }

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

    /**
     * @param values Configuration blocks for message variations to send to the user.
     * When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
     * See the `aws.lex.V2modelsIntent` resource for details on the `variation` argument reference - they are identical.
     */
    @JvmName("dcfywstohefeyttw")
    public suspend fun variations(values: List>) {
        this.variations = Output.all(values)
    }

    /**
     * @param value Configuration block for the primary message that Amazon Lex should send to the user.
     * See the `aws.lex.V2modelsIntent` resource for details on the `message` argument reference - they are identical.
     */
    @JvmName("wjvitjdhgjigmpxh")
    public suspend fun message(`value`: V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupMessageArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.message = mapped
    }

    /**
     * @param argument Configuration block for the primary message that Amazon Lex should send to the user.
     * See the `aws.lex.V2modelsIntent` resource for details on the `message` argument reference - they are identical.
     */
    @JvmName("igsggcptitpyoolx")
    public suspend fun message(argument: suspend V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupMessageArgsBuilder.() -> Unit) {
        val toBeMapped =
            V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupMessageArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.message = mapped
    }

    /**
     * @param value Configuration blocks for message variations to send to the user.
     * When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
     * See the `aws.lex.V2modelsIntent` resource for details on the `variation` argument reference - they are identical.
     */
    @JvmName("lwkgpalvsuvxxwao")
    public suspend fun variations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.variations = mapped
    }

    /**
     * @param argument Configuration blocks for message variations to send to the user.
     * When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
     * See the `aws.lex.V2modelsIntent` resource for details on the `variation` argument reference - they are identical.
     */
    @JvmName("cceudwkihwvlyiak")
    public suspend fun variations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupVariationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.variations = mapped
    }

    /**
     * @param argument Configuration blocks for message variations to send to the user.
     * When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
     * See the `aws.lex.V2modelsIntent` resource for details on the `variation` argument reference - they are identical.
     */
    @JvmName("jobvosvpupsaevbg")
    public suspend fun variations(vararg argument: suspend V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupVariationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupVariationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.variations = mapped
    }

    /**
     * @param argument Configuration blocks for message variations to send to the user.
     * When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
     * See the `aws.lex.V2modelsIntent` resource for details on the `variation` argument reference - they are identical.
     */
    @JvmName("yuuperrumvuiynpd")
    public suspend fun variations(argument: suspend V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupVariationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupVariationArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.variations = mapped
    }

    /**
     * @param values Configuration blocks for message variations to send to the user.
     * When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
     * See the `aws.lex.V2modelsIntent` resource for details on the `variation` argument reference - they are identical.
     */
    @JvmName("mkqhteypkbrrcput")
    public suspend fun variations(vararg values: V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupVariationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.variations = mapped
    }

    internal fun build(): V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupArgs =
        V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupArgs(
            message = message ?: throw PulumiNullFieldException("message"),
            variations = variations,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy