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

com.pulumi.googlenative.contentwarehouse.v1.kotlin.inputs.GoogleCloudDocumentaiV1DocumentPageTableArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.contentwarehouse.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.contentwarehouse.v1.inputs.GoogleCloudDocumentaiV1DocumentPageTableArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A table representation similar to HTML table structure.
 * @property bodyRows Body rows of the table.
 * @property detectedLanguages A list of detected languages together with confidence.
 * @property headerRows Header rows of the table.
 * @property layout Layout for Table.
 * @property provenance The history of this table.
 */
public data class GoogleCloudDocumentaiV1DocumentPageTableArgs(
    public val bodyRows: Output>? = null,
    public val detectedLanguages: Output>? = null,
    public val headerRows: Output>? = null,
    public val layout: Output? = null,
    public val provenance: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.contentwarehouse.v1.inputs.GoogleCloudDocumentaiV1DocumentPageTableArgs =
        com.pulumi.googlenative.contentwarehouse.v1.inputs.GoogleCloudDocumentaiV1DocumentPageTableArgs.builder()
            .bodyRows(
                bodyRows?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .detectedLanguages(
                detectedLanguages?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .headerRows(
                headerRows?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .layout(layout?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .provenance(provenance?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var detectedLanguages:
        Output>? = null

    private var headerRows: Output>? = null

    private var layout: Output? = null

    private var provenance: Output? = null

    /**
     * @param value Body rows of the table.
     */
    @JvmName("qpjmwlpvfigktobr")
    public suspend fun bodyRows(`value`: Output>) {
        this.bodyRows = value
    }

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

    /**
     * @param values Body rows of the table.
     */
    @JvmName("xjyeodnyjkgpknku")
    public suspend fun bodyRows(values: List>) {
        this.bodyRows = Output.all(values)
    }

    /**
     * @param value A list of detected languages together with confidence.
     */
    @JvmName("pddlqqlejaakliif")
    public suspend fun detectedLanguages(`value`: Output>) {
        this.detectedLanguages = value
    }

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

    /**
     * @param values A list of detected languages together with confidence.
     */
    @JvmName("qpxfwwrgjcufklct")
    public suspend fun detectedLanguages(values: List>) {
        this.detectedLanguages = Output.all(values)
    }

    /**
     * @param value Header rows of the table.
     */
    @JvmName("rwhpctqudmxescjg")
    public suspend fun headerRows(`value`: Output>) {
        this.headerRows = value
    }

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

    /**
     * @param values Header rows of the table.
     */
    @JvmName("xtfteixrnesklsis")
    public suspend fun headerRows(values: List>) {
        this.headerRows = Output.all(values)
    }

    /**
     * @param value Layout for Table.
     */
    @JvmName("xxmxfbjrfklsgnfd")
    public suspend fun layout(`value`: Output) {
        this.layout = value
    }

    /**
     * @param value The history of this table.
     */
    @JvmName("kmqplbdfpauacipk")
    public suspend fun provenance(`value`: Output) {
        this.provenance = value
    }

    /**
     * @param value Body rows of the table.
     */
    @JvmName("mmkfhcouovopvwnt")
    public suspend fun bodyRows(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bodyRows = mapped
    }

    /**
     * @param argument Body rows of the table.
     */
    @JvmName("ceughsuwqrpvcxjd")
    public suspend fun bodyRows(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDocumentaiV1DocumentPageTableTableRowArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.bodyRows = mapped
    }

    /**
     * @param argument Body rows of the table.
     */
    @JvmName("hpkqcqhidmbmulqj")
    public suspend fun bodyRows(vararg argument: suspend GoogleCloudDocumentaiV1DocumentPageTableTableRowArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDocumentaiV1DocumentPageTableTableRowArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.bodyRows = mapped
    }

    /**
     * @param argument Body rows of the table.
     */
    @JvmName("xtpnsqugtllogiyv")
    public suspend fun bodyRows(argument: suspend GoogleCloudDocumentaiV1DocumentPageTableTableRowArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                GoogleCloudDocumentaiV1DocumentPageTableTableRowArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.bodyRows = mapped
    }

    /**
     * @param values Body rows of the table.
     */
    @JvmName("wllscwahptucgmnu")
    public suspend fun bodyRows(vararg values: GoogleCloudDocumentaiV1DocumentPageTableTableRowArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bodyRows = mapped
    }

    /**
     * @param value A list of detected languages together with confidence.
     */
    @JvmName("bynwxiexaronqqjh")
    public suspend fun detectedLanguages(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.detectedLanguages = mapped
    }

    /**
     * @param argument A list of detected languages together with confidence.
     */
    @JvmName("njkrdedgmnsxllhk")
    public suspend fun detectedLanguages(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDocumentaiV1DocumentPageDetectedLanguageArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.detectedLanguages = mapped
    }

    /**
     * @param argument A list of detected languages together with confidence.
     */
    @JvmName("ywstlyoxffssmsdy")
    public suspend fun detectedLanguages(vararg argument: suspend GoogleCloudDocumentaiV1DocumentPageDetectedLanguageArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDocumentaiV1DocumentPageDetectedLanguageArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.detectedLanguages = mapped
    }

    /**
     * @param argument A list of detected languages together with confidence.
     */
    @JvmName("ivphrxmumqcssmev")
    public suspend fun detectedLanguages(argument: suspend GoogleCloudDocumentaiV1DocumentPageDetectedLanguageArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                GoogleCloudDocumentaiV1DocumentPageDetectedLanguageArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.detectedLanguages = mapped
    }

    /**
     * @param values A list of detected languages together with confidence.
     */
    @JvmName("arjiqefcsthwroan")
    public suspend fun detectedLanguages(vararg values: GoogleCloudDocumentaiV1DocumentPageDetectedLanguageArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.detectedLanguages = mapped
    }

    /**
     * @param value Header rows of the table.
     */
    @JvmName("bfktskvbanuatilj")
    public suspend fun headerRows(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.headerRows = mapped
    }

    /**
     * @param argument Header rows of the table.
     */
    @JvmName("stnwgmxwidqhyedq")
    public suspend fun headerRows(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDocumentaiV1DocumentPageTableTableRowArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.headerRows = mapped
    }

    /**
     * @param argument Header rows of the table.
     */
    @JvmName("tufxduesmsveriar")
    public suspend fun headerRows(vararg argument: suspend GoogleCloudDocumentaiV1DocumentPageTableTableRowArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDocumentaiV1DocumentPageTableTableRowArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.headerRows = mapped
    }

    /**
     * @param argument Header rows of the table.
     */
    @JvmName("apvrjspmkchaknbt")
    public suspend fun headerRows(argument: suspend GoogleCloudDocumentaiV1DocumentPageTableTableRowArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                GoogleCloudDocumentaiV1DocumentPageTableTableRowArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.headerRows = mapped
    }

    /**
     * @param values Header rows of the table.
     */
    @JvmName("xrbveduaanyfdbhh")
    public suspend fun headerRows(vararg values: GoogleCloudDocumentaiV1DocumentPageTableTableRowArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerRows = mapped
    }

    /**
     * @param value Layout for Table.
     */
    @JvmName("utarcrooiunsmkys")
    public suspend fun layout(`value`: GoogleCloudDocumentaiV1DocumentPageLayoutArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.layout = mapped
    }

    /**
     * @param argument Layout for Table.
     */
    @JvmName("aifuxbdxnyjtkpwi")
    public suspend fun layout(argument: suspend GoogleCloudDocumentaiV1DocumentPageLayoutArgsBuilder.() -> Unit) {
        val toBeMapped = GoogleCloudDocumentaiV1DocumentPageLayoutArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.layout = mapped
    }

    /**
     * @param value The history of this table.
     */
    @JvmName("mpyfuqapqfiofenf")
    public suspend fun provenance(`value`: GoogleCloudDocumentaiV1DocumentProvenanceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provenance = mapped
    }

    /**
     * @param argument The history of this table.
     */
    @JvmName("gbvermrxjexvpdxb")
    public suspend fun provenance(argument: suspend GoogleCloudDocumentaiV1DocumentProvenanceArgsBuilder.() -> Unit) {
        val toBeMapped = GoogleCloudDocumentaiV1DocumentProvenanceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.provenance = mapped
    }

    internal fun build(): GoogleCloudDocumentaiV1DocumentPageTableArgs =
        GoogleCloudDocumentaiV1DocumentPageTableArgs(
            bodyRows = bodyRows,
            detectedLanguages = detectedLanguages,
            headerRows = headerRows,
            layout = layout,
            provenance = provenance,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy