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

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

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

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

import com.pulumi.awsnative.qbusiness.inputs.DataSourceDocumentAttributeConditionArgs.builder
import com.pulumi.awsnative.qbusiness.kotlin.enums.DataSourceDocumentEnrichmentConditionOperator
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property key The identifier of the document attribute used for the condition.
 * For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
 * Amazon Q Business currently doesn't support `_document_body` as an attribute key used for the condition.
 * @property operator The identifier of the document attribute used for the condition.
 * For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
 * Amazon Q Business currently does not support `_document_body` as an attribute key used for the condition.
 * @property value The value of a document attribute. You can only provide one value for a document attribute.
 */
public data class DataSourceDocumentAttributeConditionArgs(
    public val key: Output,
    public val `operator`: Output,
    public val `value`: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.qbusiness.inputs.DataSourceDocumentAttributeConditionArgs =
        com.pulumi.awsnative.qbusiness.inputs.DataSourceDocumentAttributeConditionArgs.builder()
            .key(key.applyValue({ args0 -> args0 }))
            .`operator`(`operator`.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DataSourceDocumentAttributeConditionArgs].
 */
@PulumiTagMarker
public class DataSourceDocumentAttributeConditionArgsBuilder internal constructor() {
    private var key: Output? = null

    private var `operator`: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The identifier of the document attribute used for the condition.
     * For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
     * Amazon Q Business currently doesn't support `_document_body` as an attribute key used for the condition.
     */
    @JvmName("owbwktwtvcqjqpya")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value The identifier of the document attribute used for the condition.
     * For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
     * Amazon Q Business currently does not support `_document_body` as an attribute key used for the condition.
     */
    @JvmName("xwmsabfbccyqohqj")
    public suspend fun `operator`(`value`: Output) {
        this.`operator` = value
    }

    /**
     * @param value The value of a document attribute. You can only provide one value for a document attribute.
     */
    @JvmName("lwwgoguyvupmobxs")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The identifier of the document attribute used for the condition.
     * For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
     * Amazon Q Business currently doesn't support `_document_body` as an attribute key used for the condition.
     */
    @JvmName("jfnhydpsabtxjrmw")
    public suspend fun key(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.key = mapped
    }

    /**
     * @param value The identifier of the document attribute used for the condition.
     * For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
     * Amazon Q Business currently does not support `_document_body` as an attribute key used for the condition.
     */
    @JvmName("kwdmcsllumdqmcxy")
    public suspend fun `operator`(`value`: DataSourceDocumentEnrichmentConditionOperator) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    /**
     * @param value The value of a document attribute. You can only provide one value for a document attribute.
     */
    @JvmName("xnasuoarifeancmu")
    public suspend fun `value`(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): DataSourceDocumentAttributeConditionArgs =
        DataSourceDocumentAttributeConditionArgs(
            key = key ?: throw PulumiNullFieldException("key"),
            `operator` = `operator` ?: throw PulumiNullFieldException("operator"),
            `value` = `value`,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy