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

com.pulumi.awsnative.kendra.kotlin.inputs.DataSourceDocumentAttributeTargetArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.kendra.kotlin.inputs

import com.pulumi.awsnative.kendra.inputs.DataSourceDocumentAttributeTargetArgs.builder
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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property targetDocumentAttributeKey
 * @property targetDocumentAttributeValue
 * @property targetDocumentAttributeValueDeletion
 */
public data class DataSourceDocumentAttributeTargetArgs(
    public val targetDocumentAttributeKey: Output,
    public val targetDocumentAttributeValue: Output? = null,
    public val targetDocumentAttributeValueDeletion: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kendra.inputs.DataSourceDocumentAttributeTargetArgs =
        com.pulumi.awsnative.kendra.inputs.DataSourceDocumentAttributeTargetArgs.builder()
            .targetDocumentAttributeKey(targetDocumentAttributeKey.applyValue({ args0 -> args0 }))
            .targetDocumentAttributeValue(
                targetDocumentAttributeValue?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .targetDocumentAttributeValueDeletion(
                targetDocumentAttributeValueDeletion?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [DataSourceDocumentAttributeTargetArgs].
 */
@PulumiTagMarker
public class DataSourceDocumentAttributeTargetArgsBuilder internal constructor() {
    private var targetDocumentAttributeKey: Output? = null

    private var targetDocumentAttributeValue: Output? = null

    private var targetDocumentAttributeValueDeletion: Output? = null

    /**
     * @param value
     */
    @JvmName("pyxhdlmhcclcqcgb")
    public suspend fun targetDocumentAttributeKey(`value`: Output) {
        this.targetDocumentAttributeKey = value
    }

    /**
     * @param value
     */
    @JvmName("tghgacfghotdhbqv")
    public suspend fun targetDocumentAttributeValue(`value`: Output) {
        this.targetDocumentAttributeValue = value
    }

    /**
     * @param value
     */
    @JvmName("gijidrhnetykoisp")
    public suspend fun targetDocumentAttributeValueDeletion(`value`: Output) {
        this.targetDocumentAttributeValueDeletion = value
    }

    /**
     * @param value
     */
    @JvmName("pawufavkabjbflhg")
    public suspend fun targetDocumentAttributeKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetDocumentAttributeKey = mapped
    }

    /**
     * @param value
     */
    @JvmName("gywkdfndxupidryf")
    public suspend fun targetDocumentAttributeValue(`value`: DataSourceDocumentAttributeValueArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetDocumentAttributeValue = mapped
    }

    /**
     * @param argument
     */
    @JvmName("wqbltkoefedrtdel")
    public suspend fun targetDocumentAttributeValue(argument: suspend DataSourceDocumentAttributeValueArgsBuilder.() -> Unit) {
        val toBeMapped = DataSourceDocumentAttributeValueArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.targetDocumentAttributeValue = mapped
    }

    /**
     * @param value
     */
    @JvmName("kkmkjislsnxnpiyj")
    public suspend fun targetDocumentAttributeValueDeletion(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetDocumentAttributeValueDeletion = mapped
    }

    internal fun build(): DataSourceDocumentAttributeTargetArgs =
        DataSourceDocumentAttributeTargetArgs(
            targetDocumentAttributeKey = targetDocumentAttributeKey ?: throw
                PulumiNullFieldException("targetDocumentAttributeKey"),
            targetDocumentAttributeValue = targetDocumentAttributeValue,
            targetDocumentAttributeValueDeletion = targetDocumentAttributeValueDeletion,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy