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

com.pulumi.googlenative.contentwarehouse.v1.kotlin.inputs.GoogleCloudDocumentaiV1DocumentPageParagraphArgs.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.

The newest version!
@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.GoogleCloudDocumentaiV1DocumentPageParagraphArgs.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 collection of lines that a human would perceive as a paragraph.
 * @property detectedLanguages A list of detected languages together with confidence.
 * @property layout Layout for Paragraph.
 * @property provenance The history of this annotation.
 */
public data class GoogleCloudDocumentaiV1DocumentPageParagraphArgs(
    public val detectedLanguages: Output>? = null,
    public val layout: Output? = null,
    public val provenance: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.contentwarehouse.v1.inputs.GoogleCloudDocumentaiV1DocumentPageParagraphArgs =
        com.pulumi.googlenative.contentwarehouse.v1.inputs.GoogleCloudDocumentaiV1DocumentPageParagraphArgs.builder()
            .detectedLanguages(
                detectedLanguages?.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 [GoogleCloudDocumentaiV1DocumentPageParagraphArgs].
 */
@PulumiTagMarker
public class GoogleCloudDocumentaiV1DocumentPageParagraphArgsBuilder internal constructor() {
    private var detectedLanguages:
        Output>? = null

    private var layout: Output? = null

    private var provenance: Output? = null

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

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

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

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

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

    /**
     * @param value A list of detected languages together with confidence.
     */
    @JvmName("bauhuduxkgiyxxhr")
    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("ftvdoihoswspgmcs")
    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("dfjnuekcdjpniqxe")
    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("tuobhoxssmgmgvxt")
    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("ahcdwisnconqftqs")
    public suspend fun detectedLanguages(vararg values: GoogleCloudDocumentaiV1DocumentPageDetectedLanguageArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.detectedLanguages = mapped
    }

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

    /**
     * @param argument Layout for Paragraph.
     */
    @JvmName("lljbyvflartxrtru")
    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 annotation.
     */
    @JvmName("aqcdckedwmscsacl")
    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 annotation.
     */
    @JvmName("cfxomtmlrtbxckqx")
    public suspend fun provenance(argument: suspend GoogleCloudDocumentaiV1DocumentProvenanceArgsBuilder.() -> Unit) {
        val toBeMapped = GoogleCloudDocumentaiV1DocumentProvenanceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.provenance = mapped
    }

    internal fun build(): GoogleCloudDocumentaiV1DocumentPageParagraphArgs =
        GoogleCloudDocumentaiV1DocumentPageParagraphArgs(
            detectedLanguages = detectedLanguages,
            layout = layout,
            provenance = provenance,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy