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

com.pulumi.gcp.discoveryengine.kotlin.inputs.DataStoreDocumentProcessingConfigArgs.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.DataStoreDocumentProcessingConfigArgs.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

/**
 *
 * @property defaultParsingConfig Configurations for default Document parser. If not specified, this resource
 * will be configured to use a default DigitalParsingConfig, and the default parsing
 * config will be applied to all file types for Document parsing.
 * Structure is documented below.
 * @property name (Output)
 * The full resource name of the Document Processing Config. Format:
 * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig`.
 * @property parsingConfigOverrides Map from file type to override the default parsing configuration based on the file type. Supported keys:
 */
public data class DataStoreDocumentProcessingConfigArgs(
    public val defaultParsingConfig: Output? = null,
    public val name: Output? = null,
    public val parsingConfigOverrides: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.discoveryengine.inputs.DataStoreDocumentProcessingConfigArgs = com.pulumi.gcp.discoveryengine.inputs.DataStoreDocumentProcessingConfigArgs.builder()
        .defaultParsingConfig(
            defaultParsingConfig?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        )
        .name(name?.applyValue({ args0 -> args0 }))
        .parsingConfigOverrides(
            parsingConfigOverrides?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                })
            }),
        ).build()
}

/**
 * Builder for [DataStoreDocumentProcessingConfigArgs].
 */
@PulumiTagMarker
public class DataStoreDocumentProcessingConfigArgsBuilder internal constructor() {
    private var defaultParsingConfig:
        Output? = null

    private var name: Output? = null

    private var parsingConfigOverrides:
        Output>? = null

    /**
     * @param value Configurations for default Document parser. If not specified, this resource
     * will be configured to use a default DigitalParsingConfig, and the default parsing
     * config will be applied to all file types for Document parsing.
     * Structure is documented below.
     */
    @JvmName("tvdlybcftpvnatht")
    public suspend fun defaultParsingConfig(`value`: Output) {
        this.defaultParsingConfig = value
    }

    /**
     * @param value (Output)
     * The full resource name of the Document Processing Config. Format:
     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig`.
     */
    @JvmName("qrnjpbarvrsnxwsy")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Map from file type to override the default parsing configuration based on the file type. Supported keys:
     */
    @JvmName("dgpsgxucnxykjtsq")
    public suspend fun parsingConfigOverrides(`value`: Output>) {
        this.parsingConfigOverrides = value
    }

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

    /**
     * @param values Map from file type to override the default parsing configuration based on the file type. Supported keys:
     */
    @JvmName("cflqtmljdbshjner")
    public suspend fun parsingConfigOverrides(values: List>) {
        this.parsingConfigOverrides = Output.all(values)
    }

    /**
     * @param value Configurations for default Document parser. If not specified, this resource
     * will be configured to use a default DigitalParsingConfig, and the default parsing
     * config will be applied to all file types for Document parsing.
     * Structure is documented below.
     */
    @JvmName("vvhenxpfdidedamo")
    public suspend fun defaultParsingConfig(`value`: DataStoreDocumentProcessingConfigDefaultParsingConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultParsingConfig = mapped
    }

    /**
     * @param argument Configurations for default Document parser. If not specified, this resource
     * will be configured to use a default DigitalParsingConfig, and the default parsing
     * config will be applied to all file types for Document parsing.
     * Structure is documented below.
     */
    @JvmName("idodhdmvwdsyktvr")
    public suspend fun defaultParsingConfig(argument: suspend DataStoreDocumentProcessingConfigDefaultParsingConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            DataStoreDocumentProcessingConfigDefaultParsingConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.defaultParsingConfig = mapped
    }

    /**
     * @param value (Output)
     * The full resource name of the Document Processing Config. Format:
     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig`.
     */
    @JvmName("qpjwukqsbxjcxwaw")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Map from file type to override the default parsing configuration based on the file type. Supported keys:
     */
    @JvmName("jesufulyerwuakct")
    public suspend fun parsingConfigOverrides(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parsingConfigOverrides = mapped
    }

    /**
     * @param argument Map from file type to override the default parsing configuration based on the file type. Supported keys:
     */
    @JvmName("rjpkrslhhvfwmcah")
    public suspend fun parsingConfigOverrides(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataStoreDocumentProcessingConfigParsingConfigOverrideArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parsingConfigOverrides = mapped
    }

    /**
     * @param argument Map from file type to override the default parsing configuration based on the file type. Supported keys:
     */
    @JvmName("wqxkguvuxcxarucc")
    public suspend fun parsingConfigOverrides(vararg argument: suspend DataStoreDocumentProcessingConfigParsingConfigOverrideArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataStoreDocumentProcessingConfigParsingConfigOverrideArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parsingConfigOverrides = mapped
    }

    /**
     * @param argument Map from file type to override the default parsing configuration based on the file type. Supported keys:
     */
    @JvmName("bmrxxwsnmmhhlhaf")
    public suspend fun parsingConfigOverrides(argument: suspend DataStoreDocumentProcessingConfigParsingConfigOverrideArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                DataStoreDocumentProcessingConfigParsingConfigOverrideArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.parsingConfigOverrides = mapped
    }

    /**
     * @param values Map from file type to override the default parsing configuration based on the file type. Supported keys:
     */
    @JvmName("lqmkakjfhuirttxg")
    public suspend fun parsingConfigOverrides(vararg values: DataStoreDocumentProcessingConfigParsingConfigOverrideArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parsingConfigOverrides = mapped
    }

    internal fun build(): DataStoreDocumentProcessingConfigArgs =
        DataStoreDocumentProcessingConfigArgs(
            defaultParsingConfig = defaultParsingConfig,
            name = name,
            parsingConfigOverrides = parsingConfigOverrides,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy