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

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

/**
 *
 * @property messages
 * @property responseCard
 */
public data class IntentConclusionStatementArgs(
    public val messages: Output>,
    public val responseCard: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.lex.inputs.IntentConclusionStatementArgs =
        com.pulumi.aws.lex.inputs.IntentConclusionStatementArgs.builder()
            .messages(
                messages.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .responseCard(responseCard?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IntentConclusionStatementArgs].
 */
@PulumiTagMarker
public class IntentConclusionStatementArgsBuilder internal constructor() {
    private var messages: Output>? = null

    private var responseCard: Output? = null

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

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

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

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

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

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

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

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

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

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

    internal fun build(): IntentConclusionStatementArgs = IntentConclusionStatementArgs(
        messages = messages ?: throw PulumiNullFieldException("messages"),
        responseCard = responseCard,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy