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

com.pulumi.awsnative.qbusiness.kotlin.inputs.DataSourceInlineDocumentEnrichmentConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.qbusiness.kotlin.inputs

import com.pulumi.awsnative.qbusiness.inputs.DataSourceInlineDocumentEnrichmentConfigurationArgs.builder
import com.pulumi.awsnative.qbusiness.kotlin.enums.DataSourceDocumentContentOperator
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property condition Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Q Business .
 * @property documentContentOperator `TRUE` to delete content if the condition used for the target attribute is met.
 * @property target Configuration of the target document attribute or metadata field when ingesting documents into Amazon Q Business . You can also include a value.
 */
public data class DataSourceInlineDocumentEnrichmentConfigurationArgs(
    public val condition: Output? = null,
    public val documentContentOperator: Output? = null,
    public val target: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.qbusiness.inputs.DataSourceInlineDocumentEnrichmentConfigurationArgs =
        com.pulumi.awsnative.qbusiness.inputs.DataSourceInlineDocumentEnrichmentConfigurationArgs.builder()
            .condition(condition?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .documentContentOperator(
                documentContentOperator?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .target(target?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [DataSourceInlineDocumentEnrichmentConfigurationArgs].
 */
@PulumiTagMarker
public class DataSourceInlineDocumentEnrichmentConfigurationArgsBuilder internal constructor() {
    private var condition: Output? = null

    private var documentContentOperator: Output? = null

    private var target: Output? = null

    /**
     * @param value Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Q Business .
     */
    @JvmName("bxtqolwaeuvlkxrx")
    public suspend fun condition(`value`: Output) {
        this.condition = value
    }

    /**
     * @param value `TRUE` to delete content if the condition used for the target attribute is met.
     */
    @JvmName("ulstekcbewfhbyua")
    public suspend fun documentContentOperator(`value`: Output) {
        this.documentContentOperator = value
    }

    /**
     * @param value Configuration of the target document attribute or metadata field when ingesting documents into Amazon Q Business . You can also include a value.
     */
    @JvmName("bmwsssctjetljasy")
    public suspend fun target(`value`: Output) {
        this.target = value
    }

    /**
     * @param value Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Q Business .
     */
    @JvmName("gealcqvrekuaacul")
    public suspend fun condition(`value`: DataSourceDocumentAttributeConditionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.condition = mapped
    }

    /**
     * @param argument Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Q Business .
     */
    @JvmName("wgpliyxenyaqeyyf")
    public suspend fun condition(argument: suspend DataSourceDocumentAttributeConditionArgsBuilder.() -> Unit) {
        val toBeMapped = DataSourceDocumentAttributeConditionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.condition = mapped
    }

    /**
     * @param value `TRUE` to delete content if the condition used for the target attribute is met.
     */
    @JvmName("gtnppfmscqiohivr")
    public suspend fun documentContentOperator(`value`: DataSourceDocumentContentOperator?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.documentContentOperator = mapped
    }

    /**
     * @param value Configuration of the target document attribute or metadata field when ingesting documents into Amazon Q Business . You can also include a value.
     */
    @JvmName("duatnjmuvcbgmcmb")
    public suspend fun target(`value`: DataSourceDocumentAttributeTargetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.target = mapped
    }

    /**
     * @param argument Configuration of the target document attribute or metadata field when ingesting documents into Amazon Q Business . You can also include a value.
     */
    @JvmName("xgdlgvicxvbhbhmf")
    public suspend fun target(argument: suspend DataSourceDocumentAttributeTargetArgsBuilder.() -> Unit) {
        val toBeMapped = DataSourceDocumentAttributeTargetArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.target = mapped
    }

    internal fun build(): DataSourceInlineDocumentEnrichmentConfigurationArgs =
        DataSourceInlineDocumentEnrichmentConfigurationArgs(
            condition = condition,
            documentContentOperator = documentContentOperator,
            target = target,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy