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

com.pulumi.googlenative.dialogflow.v2beta1.kotlin.inputs.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardArgs.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.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardArgs.builder
import com.pulumi.googlenative.dialogflow.v2beta1.kotlin.enums.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardImageDisplayOptions
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

/**
 * Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel
 * @property imageDisplayOptions Optional. Settings for displaying the image. Applies to every image in items.
 * @property items List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
 */
public data class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardArgs(
    public val imageDisplayOptions: Output? =
        null,
    public val items: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.dialogflow.v2beta1.inputs.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardArgs =
        com.pulumi.googlenative.dialogflow.v2beta1.inputs.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardArgs.builder()
            .imageDisplayOptions(
                imageDisplayOptions?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .items(
                items.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardArgs].
 */
@PulumiTagMarker
public class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardArgsBuilder internal constructor() {
    private var imageDisplayOptions:
        Output? = null

    private var items:
        Output>? =
        null

    /**
     * @param value Optional. Settings for displaying the image. Applies to every image in items.
     */
    @JvmName("cqtmjjrnvnfcyilh")
    public suspend fun imageDisplayOptions(`value`: Output) {
        this.imageDisplayOptions = value
    }

    /**
     * @param value List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
     */
    @JvmName("wtglaeswolpeihjt")
    public suspend fun items(`value`: Output>) {
        this.items = value
    }

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

    /**
     * @param values List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
     */
    @JvmName("tpclnmwrogvcjifs")
    public suspend fun items(values: List>) {
        this.items = Output.all(values)
    }

    /**
     * @param value Optional. Settings for displaying the image. Applies to every image in items.
     */
    @JvmName("xemkvcwbscdmjjqf")
    public suspend fun imageDisplayOptions(`value`: GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardImageDisplayOptions?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageDisplayOptions = mapped
    }

    /**
     * @param value List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
     */
    @JvmName("gersyybxyiosctnk")
    public suspend fun items(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.items = mapped
    }

    /**
     * @param argument List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
     */
    @JvmName("tlbaarbywwuqljts")
    public suspend fun items(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.items = mapped
    }

    /**
     * @param argument List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
     */
    @JvmName("bxgqrqrximpilxye")
    public suspend fun items(vararg argument: suspend GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.items = mapped
    }

    /**
     * @param argument List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
     */
    @JvmName("eucpnrgbnwbvyyew")
    public suspend fun items(argument: suspend GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.items = mapped
    }

    /**
     * @param values List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
     */
    @JvmName("rwqvtlkjeepqtyip")
    public suspend fun items(vararg values: GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.items = mapped
    }

    internal fun build(): GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardArgs =
        GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardArgs(
            imageDisplayOptions = imageDisplayOptions,
            items = items ?: throw PulumiNullFieldException("items"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy