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

com.pulumi.gcp.vertex.kotlin.inputs.AiIndexMetadataArgs.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.12.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.AiIndexMetadataArgs.builder
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 config The configuration of the Matching Engine Index.
 * Structure is documented below.
 * @property contentsDeltaUri Allows inserting, updating  or deleting the contents of the Matching Engine Index.
 * The string must be a valid Cloud Storage directory path. If this
 * field is set when calling IndexService.UpdateIndex, then no other
 * Index field can be also updated as part of the same call.
 * The expected structure and format of the files this URI points to is
 * described at https://cloud.google.com/vertex-ai/docs/matching-engine/using-matching-engine#input-data-format
 * @property isCompleteOverwrite If this field is set together with contentsDeltaUri when calling IndexService.UpdateIndex,
 * then existing content of the Index will be replaced by the data from the contentsDeltaUri.
 */
public data class AiIndexMetadataArgs(
    public val config: Output? = null,
    public val contentsDeltaUri: Output,
    public val isCompleteOverwrite: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vertex.inputs.AiIndexMetadataArgs =
        com.pulumi.gcp.vertex.inputs.AiIndexMetadataArgs.builder()
            .config(config?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .contentsDeltaUri(contentsDeltaUri.applyValue({ args0 -> args0 }))
            .isCompleteOverwrite(isCompleteOverwrite?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AiIndexMetadataArgs].
 */
@PulumiTagMarker
public class AiIndexMetadataArgsBuilder internal constructor() {
    private var config: Output? = null

    private var contentsDeltaUri: Output? = null

    private var isCompleteOverwrite: Output? = null

    /**
     * @param value The configuration of the Matching Engine Index.
     * Structure is documented below.
     */
    @JvmName("mwlbrrgkluufilfp")
    public suspend fun config(`value`: Output) {
        this.config = value
    }

    /**
     * @param value Allows inserting, updating  or deleting the contents of the Matching Engine Index.
     * The string must be a valid Cloud Storage directory path. If this
     * field is set when calling IndexService.UpdateIndex, then no other
     * Index field can be also updated as part of the same call.
     * The expected structure and format of the files this URI points to is
     * described at https://cloud.google.com/vertex-ai/docs/matching-engine/using-matching-engine#input-data-format
     */
    @JvmName("jsnatjtyfykxswpp")
    public suspend fun contentsDeltaUri(`value`: Output) {
        this.contentsDeltaUri = value
    }

    /**
     * @param value If this field is set together with contentsDeltaUri when calling IndexService.UpdateIndex,
     * then existing content of the Index will be replaced by the data from the contentsDeltaUri.
     */
    @JvmName("abdpexmpgruuntik")
    public suspend fun isCompleteOverwrite(`value`: Output) {
        this.isCompleteOverwrite = value
    }

    /**
     * @param value The configuration of the Matching Engine Index.
     * Structure is documented below.
     */
    @JvmName("osgmkcoqxxdsmtuf")
    public suspend fun config(`value`: AiIndexMetadataConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.config = mapped
    }

    /**
     * @param argument The configuration of the Matching Engine Index.
     * Structure is documented below.
     */
    @JvmName("xsmfmyeybcngycxe")
    public suspend fun config(argument: suspend AiIndexMetadataConfigArgsBuilder.() -> Unit) {
        val toBeMapped = AiIndexMetadataConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.config = mapped
    }

    /**
     * @param value Allows inserting, updating  or deleting the contents of the Matching Engine Index.
     * The string must be a valid Cloud Storage directory path. If this
     * field is set when calling IndexService.UpdateIndex, then no other
     * Index field can be also updated as part of the same call.
     * The expected structure and format of the files this URI points to is
     * described at https://cloud.google.com/vertex-ai/docs/matching-engine/using-matching-engine#input-data-format
     */
    @JvmName("cjgmwaowxjpqeehe")
    public suspend fun contentsDeltaUri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contentsDeltaUri = mapped
    }

    /**
     * @param value If this field is set together with contentsDeltaUri when calling IndexService.UpdateIndex,
     * then existing content of the Index will be replaced by the data from the contentsDeltaUri.
     */
    @JvmName("nnrplqqiewqrsqll")
    public suspend fun isCompleteOverwrite(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isCompleteOverwrite = mapped
    }

    internal fun build(): AiIndexMetadataArgs = AiIndexMetadataArgs(
        config = config,
        contentsDeltaUri = contentsDeltaUri ?: throw PulumiNullFieldException("contentsDeltaUri"),
        isCompleteOverwrite = isCompleteOverwrite,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy