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

com.pulumi.awsnative.kendra.kotlin.inputs.IndexRelevanceArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.kendra.inputs.IndexRelevanceArgs.builder
import com.pulumi.awsnative.kendra.kotlin.enums.IndexOrder
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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property duration
 * @property freshness
 * @property importance
 * @property rankOrder
 * @property valueImportanceItems
 */
public data class IndexRelevanceArgs(
    public val duration: Output? = null,
    public val freshness: Output? = null,
    public val importance: Output? = null,
    public val rankOrder: Output? = null,
    public val valueImportanceItems: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kendra.inputs.IndexRelevanceArgs =
        com.pulumi.awsnative.kendra.inputs.IndexRelevanceArgs.builder()
            .duration(duration?.applyValue({ args0 -> args0 }))
            .freshness(freshness?.applyValue({ args0 -> args0 }))
            .importance(importance?.applyValue({ args0 -> args0 }))
            .rankOrder(rankOrder?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .valueImportanceItems(
                valueImportanceItems?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [IndexRelevanceArgs].
 */
@PulumiTagMarker
public class IndexRelevanceArgsBuilder internal constructor() {
    private var duration: Output? = null

    private var freshness: Output? = null

    private var importance: Output? = null

    private var rankOrder: Output? = null

    private var valueImportanceItems: Output>? = null

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

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

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

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

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

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

    /**
     * @param values
     */
    @JvmName("nguswbjhofgftlir")
    public suspend fun valueImportanceItems(values: List>) {
        this.valueImportanceItems = Output.all(values)
    }

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

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

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

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

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

    /**
     * @param argument
     */
    @JvmName("yccmitptwnwwueyv")
    public suspend fun valueImportanceItems(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            IndexValueImportanceItemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.valueImportanceItems = mapped
    }

    /**
     * @param argument
     */
    @JvmName("qihogepshrlccncc")
    public suspend fun valueImportanceItems(vararg argument: suspend IndexValueImportanceItemArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            IndexValueImportanceItemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.valueImportanceItems = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ghatupdlhmqnkpgb")
    public suspend fun valueImportanceItems(argument: suspend IndexValueImportanceItemArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            IndexValueImportanceItemArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.valueImportanceItems = mapped
    }

    /**
     * @param values
     */
    @JvmName("mwpdyggunwnrehoa")
    public suspend fun valueImportanceItems(vararg values: IndexValueImportanceItemArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.valueImportanceItems = mapped
    }

    internal fun build(): IndexRelevanceArgs = IndexRelevanceArgs(
        duration = duration,
        freshness = freshness,
        importance = importance,
        rankOrder = rankOrder,
        valueImportanceItems = valueImportanceItems,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy