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

com.pulumi.gcp.discoveryengine.kotlin.inputs.DataStoreDocumentProcessingConfigParsingConfigOverrideArgs.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.discoveryengine.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.discoveryengine.inputs.DataStoreDocumentProcessingConfigParsingConfigOverrideArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property digitalParsingConfig Configurations applied to digital parser.
 * @property fileType The identifier for this object. Format specified above.
 * @property layoutParsingConfig Configurations applied to layout parser.
 * @property ocrParsingConfig Configurations applied to OCR parser. Currently it only applies to PDFs.
 * Structure is documented below.
 */
public data class DataStoreDocumentProcessingConfigParsingConfigOverrideArgs(
    public val digitalParsingConfig: Output? =
        null,
    public val fileType: Output,
    public val layoutParsingConfig: Output? = null,
    public val ocrParsingConfig: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.discoveryengine.inputs.DataStoreDocumentProcessingConfigParsingConfigOverrideArgs =
        com.pulumi.gcp.discoveryengine.inputs.DataStoreDocumentProcessingConfigParsingConfigOverrideArgs.builder()
            .digitalParsingConfig(
                digitalParsingConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .fileType(fileType.applyValue({ args0 -> args0 }))
            .layoutParsingConfig(
                layoutParsingConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .ocrParsingConfig(
                ocrParsingConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [DataStoreDocumentProcessingConfigParsingConfigOverrideArgs].
 */
@PulumiTagMarker
public class DataStoreDocumentProcessingConfigParsingConfigOverrideArgsBuilder internal constructor() {
    private var digitalParsingConfig:
        Output? = null

    private var fileType: Output? = null

    private var layoutParsingConfig:
        Output? = null

    private var ocrParsingConfig:
        Output? = null

    /**
     * @param value Configurations applied to digital parser.
     */
    @JvmName("mkrcxgnfdugoqrxt")
    public suspend fun digitalParsingConfig(`value`: Output) {
        this.digitalParsingConfig = value
    }

    /**
     * @param value The identifier for this object. Format specified above.
     */
    @JvmName("dougygjywhyjclbk")
    public suspend fun fileType(`value`: Output) {
        this.fileType = value
    }

    /**
     * @param value Configurations applied to layout parser.
     */
    @JvmName("vwghjqejrsvuokhc")
    public suspend fun layoutParsingConfig(`value`: Output) {
        this.layoutParsingConfig = value
    }

    /**
     * @param value Configurations applied to OCR parser. Currently it only applies to PDFs.
     * Structure is documented below.
     */
    @JvmName("dtrundfacsaaagqt")
    public suspend fun ocrParsingConfig(`value`: Output) {
        this.ocrParsingConfig = value
    }

    /**
     * @param value Configurations applied to digital parser.
     */
    @JvmName("dhirttemplmghkug")
    public suspend fun digitalParsingConfig(`value`: DataStoreDocumentProcessingConfigParsingConfigOverrideDigitalParsingConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.digitalParsingConfig = mapped
    }

    /**
     * @param argument Configurations applied to digital parser.
     */
    @JvmName("hyoshphrwdxgcqdx")
    public suspend fun digitalParsingConfig(argument: suspend DataStoreDocumentProcessingConfigParsingConfigOverrideDigitalParsingConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            DataStoreDocumentProcessingConfigParsingConfigOverrideDigitalParsingConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.digitalParsingConfig = mapped
    }

    /**
     * @param value The identifier for this object. Format specified above.
     */
    @JvmName("wmhrodiyvcbeucqf")
    public suspend fun fileType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fileType = mapped
    }

    /**
     * @param value Configurations applied to layout parser.
     */
    @JvmName("ombkcqqhydfjkxdd")
    public suspend fun layoutParsingConfig(`value`: DataStoreDocumentProcessingConfigParsingConfigOverrideLayoutParsingConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.layoutParsingConfig = mapped
    }

    /**
     * @param argument Configurations applied to layout parser.
     */
    @JvmName("gipxfwqemmrdlrwo")
    public suspend fun layoutParsingConfig(argument: suspend DataStoreDocumentProcessingConfigParsingConfigOverrideLayoutParsingConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            DataStoreDocumentProcessingConfigParsingConfigOverrideLayoutParsingConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.layoutParsingConfig = mapped
    }

    /**
     * @param value Configurations applied to OCR parser. Currently it only applies to PDFs.
     * Structure is documented below.
     */
    @JvmName("yodimeclfxcahbuj")
    public suspend fun ocrParsingConfig(`value`: DataStoreDocumentProcessingConfigParsingConfigOverrideOcrParsingConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ocrParsingConfig = mapped
    }

    /**
     * @param argument Configurations applied to OCR parser. Currently it only applies to PDFs.
     * Structure is documented below.
     */
    @JvmName("bcqkxptilljgmvyx")
    public suspend fun ocrParsingConfig(argument: suspend DataStoreDocumentProcessingConfigParsingConfigOverrideOcrParsingConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            DataStoreDocumentProcessingConfigParsingConfigOverrideOcrParsingConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.ocrParsingConfig = mapped
    }

    internal fun build(): DataStoreDocumentProcessingConfigParsingConfigOverrideArgs =
        DataStoreDocumentProcessingConfigParsingConfigOverrideArgs(
            digitalParsingConfig = digitalParsingConfig,
            fileType = fileType ?: throw PulumiNullFieldException("fileType"),
            layoutParsingConfig = layoutParsingConfig,
            ocrParsingConfig = ocrParsingConfig,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy