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

com.pulumi.gcp.vertex.kotlin.inputs.AiIndexMetadataConfigAlgorithmConfigArgs.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.vertex.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vertex.inputs.AiIndexMetadataConfigAlgorithmConfigArgs.builder
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 bruteForceConfig Configuration options for using brute force search, which simply implements the
 * standard linear search in the database for each query.
 * @property treeAhConfig Configuration options for using the tree-AH algorithm (Shallow tree + Asymmetric Hashing).
 * Please refer to this paper for more details: https://arxiv.org/abs/1908.10396
 * Structure is documented below.
 */
public data class AiIndexMetadataConfigAlgorithmConfigArgs(
    public val bruteForceConfig: Output? =
        null,
    public val treeAhConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vertex.inputs.AiIndexMetadataConfigAlgorithmConfigArgs =
        com.pulumi.gcp.vertex.inputs.AiIndexMetadataConfigAlgorithmConfigArgs.builder()
            .bruteForceConfig(bruteForceConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .treeAhConfig(treeAhConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AiIndexMetadataConfigAlgorithmConfigArgs].
 */
@PulumiTagMarker
public class AiIndexMetadataConfigAlgorithmConfigArgsBuilder internal constructor() {
    private var bruteForceConfig: Output? =
        null

    private var treeAhConfig: Output? = null

    /**
     * @param value Configuration options for using brute force search, which simply implements the
     * standard linear search in the database for each query.
     */
    @JvmName("ncxdgymlytpwioah")
    public suspend fun bruteForceConfig(`value`: Output) {
        this.bruteForceConfig = value
    }

    /**
     * @param value Configuration options for using the tree-AH algorithm (Shallow tree + Asymmetric Hashing).
     * Please refer to this paper for more details: https://arxiv.org/abs/1908.10396
     * Structure is documented below.
     */
    @JvmName("wnwgcyebvvyvmwyu")
    public suspend fun treeAhConfig(`value`: Output) {
        this.treeAhConfig = value
    }

    /**
     * @param value Configuration options for using brute force search, which simply implements the
     * standard linear search in the database for each query.
     */
    @JvmName("lulkutsmqawwfqhp")
    public suspend fun bruteForceConfig(`value`: AiIndexMetadataConfigAlgorithmConfigBruteForceConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bruteForceConfig = mapped
    }

    /**
     * @param argument Configuration options for using brute force search, which simply implements the
     * standard linear search in the database for each query.
     */
    @JvmName("kiikbxwsnaacstej")
    public suspend fun bruteForceConfig(argument: suspend AiIndexMetadataConfigAlgorithmConfigBruteForceConfigArgsBuilder.() -> Unit) {
        val toBeMapped = AiIndexMetadataConfigAlgorithmConfigBruteForceConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.bruteForceConfig = mapped
    }

    /**
     * @param value Configuration options for using the tree-AH algorithm (Shallow tree + Asymmetric Hashing).
     * Please refer to this paper for more details: https://arxiv.org/abs/1908.10396
     * Structure is documented below.
     */
    @JvmName("cvuawpdierigabkd")
    public suspend fun treeAhConfig(`value`: AiIndexMetadataConfigAlgorithmConfigTreeAhConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.treeAhConfig = mapped
    }

    /**
     * @param argument Configuration options for using the tree-AH algorithm (Shallow tree + Asymmetric Hashing).
     * Please refer to this paper for more details: https://arxiv.org/abs/1908.10396
     * Structure is documented below.
     */
    @JvmName("bryipupjuxpjgwsm")
    public suspend fun treeAhConfig(argument: suspend AiIndexMetadataConfigAlgorithmConfigTreeAhConfigArgsBuilder.() -> Unit) {
        val toBeMapped = AiIndexMetadataConfigAlgorithmConfigTreeAhConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.treeAhConfig = mapped
    }

    internal fun build(): AiIndexMetadataConfigAlgorithmConfigArgs =
        AiIndexMetadataConfigAlgorithmConfigArgs(
            bruteForceConfig = bruteForceConfig,
            treeAhConfig = treeAhConfig,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy