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

com.pulumi.aws.lex.kotlin.inputs.IntentFollowUpPromptRejectionStatementMessageArgs.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.IntentFollowUpPromptRejectionStatementMessageArgs.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 kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property content The text of the message. Must be less than or equal to 1000 characters in length.
 * @property contentType The content type of the message string.
 * @property groupNumber Identifies the message group that the message belongs to. When a group
 * is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).
 */
public data class IntentFollowUpPromptRejectionStatementMessageArgs(
    public val content: Output,
    public val contentType: Output,
    public val groupNumber: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.lex.inputs.IntentFollowUpPromptRejectionStatementMessageArgs = com.pulumi.aws.lex.inputs.IntentFollowUpPromptRejectionStatementMessageArgs.builder()
        .content(content.applyValue({ args0 -> args0 }))
        .contentType(contentType.applyValue({ args0 -> args0 }))
        .groupNumber(groupNumber?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IntentFollowUpPromptRejectionStatementMessageArgs].
 */
@PulumiTagMarker
public class IntentFollowUpPromptRejectionStatementMessageArgsBuilder internal constructor() {
    private var content: Output? = null

    private var contentType: Output? = null

    private var groupNumber: Output? = null

    /**
     * @param value The text of the message. Must be less than or equal to 1000 characters in length.
     */
    @JvmName("rxwdtvciatktrrrh")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

    /**
     * @param value The content type of the message string.
     */
    @JvmName("malkoiclxaqnewac")
    public suspend fun contentType(`value`: Output) {
        this.contentType = value
    }

    /**
     * @param value Identifies the message group that the message belongs to. When a group
     * is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).
     */
    @JvmName("fdurrbliyruirycq")
    public suspend fun groupNumber(`value`: Output) {
        this.groupNumber = value
    }

    /**
     * @param value The text of the message. Must be less than or equal to 1000 characters in length.
     */
    @JvmName("pnbhkvkfeslithnj")
    public suspend fun content(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.content = mapped
    }

    /**
     * @param value The content type of the message string.
     */
    @JvmName("ttfkuurxvaghgfan")
    public suspend fun contentType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contentType = mapped
    }

    /**
     * @param value Identifies the message group that the message belongs to. When a group
     * is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).
     */
    @JvmName("skjccjmdrbcyjhmd")
    public suspend fun groupNumber(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupNumber = mapped
    }

    internal fun build(): IntentFollowUpPromptRejectionStatementMessageArgs =
        IntentFollowUpPromptRejectionStatementMessageArgs(
            content = content ?: throw PulumiNullFieldException("content"),
            contentType = contentType ?: throw PulumiNullFieldException("contentType"),
            groupNumber = groupNumber,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy