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

com.pulumi.googlenative.dialogflow.v2beta1.kotlin.inputs.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.dialogflow.v2beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.dialogflow.v2beta1.inputs.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
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

/**
 * Rich Business Messaging (RBM) Card content
 * @property description Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
 * @property media Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
 * @property suggestions Optional. List of suggestions to include in the card.
 * @property title Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
 */
public data class GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentArgs(
    public val description: Output? = null,
    public val media: Output? =
        null,
    public val suggestions: Output>? =
        null,
    public val title: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.dialogflow.v2beta1.inputs.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentArgs =
        com.pulumi.googlenative.dialogflow.v2beta1.inputs.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .media(media?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .suggestions(
                suggestions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .title(title?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentArgs].
 */
@PulumiTagMarker
public class GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentArgsBuilder internal constructor() {
    private var description: Output? = null

    private var media: Output? =
        null

    private var suggestions: Output>? =
        null

    private var title: Output? = null

    /**
     * @param value Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
     */
    @JvmName("ucysyhycqcsdmecd")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
     */
    @JvmName("safhjhxcvugcabud")
    public suspend fun media(`value`: Output) {
        this.media = value
    }

    /**
     * @param value Optional. List of suggestions to include in the card.
     */
    @JvmName("moppiyisapegfpbv")
    public suspend fun suggestions(`value`: Output>) {
        this.suggestions = value
    }

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

    /**
     * @param values Optional. List of suggestions to include in the card.
     */
    @JvmName("webohnjxjfvqnclf")
    public suspend fun suggestions(values: List>) {
        this.suggestions = Output.all(values)
    }

    /**
     * @param value Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
     */
    @JvmName("jxinlaquogkawkku")
    public suspend fun title(`value`: Output) {
        this.title = value
    }

    /**
     * @param value Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
     */
    @JvmName("clbcvqrswvsdwihp")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
     */
    @JvmName("tmnybvwyckfjnhar")
    public suspend fun media(`value`: GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMediaArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.media = mapped
    }

    /**
     * @param argument Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
     */
    @JvmName("dyarvonrdqhfsbqx")
    public suspend fun media(argument: suspend GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMediaArgsBuilder.() -> Unit) {
        val toBeMapped =
            GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMediaArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.media = mapped
    }

    /**
     * @param value Optional. List of suggestions to include in the card.
     */
    @JvmName("hiknwjpksfbttphe")
    public suspend fun suggestions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.suggestions = mapped
    }

    /**
     * @param argument Optional. List of suggestions to include in the card.
     */
    @JvmName("uogsvitrflexldmt")
    public suspend fun suggestions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.suggestions = mapped
    }

    /**
     * @param argument Optional. List of suggestions to include in the card.
     */
    @JvmName("uswwqqtsiqgvwqqv")
    public suspend fun suggestions(vararg argument: suspend GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.suggestions = mapped
    }

    /**
     * @param argument Optional. List of suggestions to include in the card.
     */
    @JvmName("mvythsocfuqdbdgf")
    public suspend fun suggestions(argument: suspend GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.suggestions = mapped
    }

    /**
     * @param values Optional. List of suggestions to include in the card.
     */
    @JvmName("romfsdwrxkigmfgl")
    public suspend fun suggestions(vararg values: GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.suggestions = mapped
    }

    /**
     * @param value Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
     */
    @JvmName("gdxwlswwshcdngsi")
    public suspend fun title(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.title = mapped
    }

    internal fun build(): GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentArgs =
        GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentArgs(
            description = description,
            media = media,
            suggestions = suggestions,
            title = title,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy