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

com.pulumi.azure.cosmosdb.kotlin.inputs.GremlinGraphIndexPolicyArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.cosmosdb.kotlin.inputs

import com.pulumi.azure.cosmosdb.inputs.GremlinGraphIndexPolicyArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property automatic Indicates if the indexing policy is automatic. Defaults to `true`.
 * @property compositeIndices One or more `composite_index` blocks as defined below.
 * @property excludedPaths List of paths to exclude from indexing. Required if `indexing_mode` is `Consistent` or `Lazy`.
 * @property includedPaths List of paths to include in the indexing. Required if `indexing_mode` is `Consistent` or `Lazy`.
 * @property indexingMode Indicates the indexing mode. Possible values include: `Consistent`, `Lazy`, `None`.
 * @property spatialIndices One or more `spatial_index` blocks as defined below.
 */
public data class GremlinGraphIndexPolicyArgs(
    public val automatic: Output? = null,
    public val compositeIndices: Output>? = null,
    public val excludedPaths: Output>? = null,
    public val includedPaths: Output>? = null,
    public val indexingMode: Output,
    public val spatialIndices: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cosmosdb.inputs.GremlinGraphIndexPolicyArgs =
        com.pulumi.azure.cosmosdb.inputs.GremlinGraphIndexPolicyArgs.builder()
            .automatic(automatic?.applyValue({ args0 -> args0 }))
            .compositeIndices(
                compositeIndices?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .excludedPaths(excludedPaths?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .includedPaths(includedPaths?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .indexingMode(indexingMode.applyValue({ args0 -> args0 }))
            .spatialIndices(
                spatialIndices?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GremlinGraphIndexPolicyArgs].
 */
@PulumiTagMarker
public class GremlinGraphIndexPolicyArgsBuilder internal constructor() {
    private var automatic: Output? = null

    private var compositeIndices: Output>? = null

    private var excludedPaths: Output>? = null

    private var includedPaths: Output>? = null

    private var indexingMode: Output? = null

    private var spatialIndices: Output>? = null

    /**
     * @param value Indicates if the indexing policy is automatic. Defaults to `true`.
     */
    @JvmName("nrcphdiagdeywvgf")
    public suspend fun automatic(`value`: Output) {
        this.automatic = value
    }

    /**
     * @param value One or more `composite_index` blocks as defined below.
     */
    @JvmName("ikfbwcreiuekiagq")
    public suspend
    fun compositeIndices(`value`: Output>) {
        this.compositeIndices = value
    }

    @JvmName("cjwbinruswigjcee")
    public suspend fun compositeIndices(
        vararg
        values: Output,
    ) {
        this.compositeIndices = Output.all(values.asList())
    }

    /**
     * @param values One or more `composite_index` blocks as defined below.
     */
    @JvmName("oknyohubyaskaarc")
    public suspend
    fun compositeIndices(values: List>) {
        this.compositeIndices = Output.all(values)
    }

    /**
     * @param value List of paths to exclude from indexing. Required if `indexing_mode` is `Consistent` or `Lazy`.
     */
    @JvmName("nandgiwajcgmjlxu")
    public suspend fun excludedPaths(`value`: Output>) {
        this.excludedPaths = value
    }

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

    /**
     * @param values List of paths to exclude from indexing. Required if `indexing_mode` is `Consistent` or `Lazy`.
     */
    @JvmName("vylffgewcotipugt")
    public suspend fun excludedPaths(values: List>) {
        this.excludedPaths = Output.all(values)
    }

    /**
     * @param value List of paths to include in the indexing. Required if `indexing_mode` is `Consistent` or `Lazy`.
     */
    @JvmName("dwfcjxrhhwsgwjxy")
    public suspend fun includedPaths(`value`: Output>) {
        this.includedPaths = value
    }

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

    /**
     * @param values List of paths to include in the indexing. Required if `indexing_mode` is `Consistent` or `Lazy`.
     */
    @JvmName("cskcwifujulpsbvd")
    public suspend fun includedPaths(values: List>) {
        this.includedPaths = Output.all(values)
    }

    /**
     * @param value Indicates the indexing mode. Possible values include: `Consistent`, `Lazy`, `None`.
     */
    @JvmName("qtfusyvhtgmlvwic")
    public suspend fun indexingMode(`value`: Output) {
        this.indexingMode = value
    }

    /**
     * @param value One or more `spatial_index` blocks as defined below.
     */
    @JvmName("ddblblsguvysqmmh")
    public suspend
    fun spatialIndices(`value`: Output>) {
        this.spatialIndices = value
    }

    @JvmName("uwedlvljcjcoginv")
    public suspend fun spatialIndices(
        vararg
        values: Output,
    ) {
        this.spatialIndices = Output.all(values.asList())
    }

    /**
     * @param values One or more `spatial_index` blocks as defined below.
     */
    @JvmName("vuprfqkvuhprmjmg")
    public suspend fun spatialIndices(values: List>) {
        this.spatialIndices = Output.all(values)
    }

    /**
     * @param value Indicates if the indexing policy is automatic. Defaults to `true`.
     */
    @JvmName("usnluqmekswkjpuy")
    public suspend fun automatic(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automatic = mapped
    }

    /**
     * @param value One or more `composite_index` blocks as defined below.
     */
    @JvmName("mkcssbcpgocencxk")
    public suspend fun compositeIndices(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.compositeIndices = mapped
    }

    /**
     * @param argument One or more `composite_index` blocks as defined below.
     */
    @JvmName("lvladbswxwiytvpp")
    public suspend
    fun compositeIndices(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GremlinGraphIndexPolicyCompositeIndexArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.compositeIndices = mapped
    }

    /**
     * @param argument One or more `composite_index` blocks as defined below.
     */
    @JvmName("rgyxsqygkpnulwnp")
    public suspend fun compositeIndices(
        vararg
        argument: suspend GremlinGraphIndexPolicyCompositeIndexArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            GremlinGraphIndexPolicyCompositeIndexArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.compositeIndices = mapped
    }

    /**
     * @param argument One or more `composite_index` blocks as defined below.
     */
    @JvmName("pyasqpeedhpwaxyn")
    public suspend
    fun compositeIndices(argument: suspend GremlinGraphIndexPolicyCompositeIndexArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            GremlinGraphIndexPolicyCompositeIndexArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.compositeIndices = mapped
    }

    /**
     * @param values One or more `composite_index` blocks as defined below.
     */
    @JvmName("gfbdpbanwawnaukt")
    public suspend fun compositeIndices(vararg values: GremlinGraphIndexPolicyCompositeIndexArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.compositeIndices = mapped
    }

    /**
     * @param value List of paths to exclude from indexing. Required if `indexing_mode` is `Consistent` or `Lazy`.
     */
    @JvmName("xkfkxexppmhxgwbp")
    public suspend fun excludedPaths(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludedPaths = mapped
    }

    /**
     * @param values List of paths to exclude from indexing. Required if `indexing_mode` is `Consistent` or `Lazy`.
     */
    @JvmName("prmyamstalkueblr")
    public suspend fun excludedPaths(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludedPaths = mapped
    }

    /**
     * @param value List of paths to include in the indexing. Required if `indexing_mode` is `Consistent` or `Lazy`.
     */
    @JvmName("bsdmyichcjegwoff")
    public suspend fun includedPaths(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includedPaths = mapped
    }

    /**
     * @param values List of paths to include in the indexing. Required if `indexing_mode` is `Consistent` or `Lazy`.
     */
    @JvmName("oadxoehfihapdrry")
    public suspend fun includedPaths(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includedPaths = mapped
    }

    /**
     * @param value Indicates the indexing mode. Possible values include: `Consistent`, `Lazy`, `None`.
     */
    @JvmName("ojssdckdyysyoudc")
    public suspend fun indexingMode(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.indexingMode = mapped
    }

    /**
     * @param value One or more `spatial_index` blocks as defined below.
     */
    @JvmName("tvjtffhgtnqixwqa")
    public suspend fun spatialIndices(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.spatialIndices = mapped
    }

    /**
     * @param argument One or more `spatial_index` blocks as defined below.
     */
    @JvmName("nfdhqvpwitumwqgx")
    public suspend
    fun spatialIndices(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GremlinGraphIndexPolicySpatialIndexArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.spatialIndices = mapped
    }

    /**
     * @param argument One or more `spatial_index` blocks as defined below.
     */
    @JvmName("joblowldbowtwjdr")
    public suspend fun spatialIndices(
        vararg
        argument: suspend GremlinGraphIndexPolicySpatialIndexArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            GremlinGraphIndexPolicySpatialIndexArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.spatialIndices = mapped
    }

    /**
     * @param argument One or more `spatial_index` blocks as defined below.
     */
    @JvmName("xujxtdlqxubfinwb")
    public suspend
    fun spatialIndices(argument: suspend GremlinGraphIndexPolicySpatialIndexArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            GremlinGraphIndexPolicySpatialIndexArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.spatialIndices = mapped
    }

    /**
     * @param values One or more `spatial_index` blocks as defined below.
     */
    @JvmName("lshvjgwrqbtdhtum")
    public suspend fun spatialIndices(vararg values: GremlinGraphIndexPolicySpatialIndexArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.spatialIndices = mapped
    }

    internal fun build(): GremlinGraphIndexPolicyArgs = GremlinGraphIndexPolicyArgs(
        automatic = automatic,
        compositeIndices = compositeIndices,
        excludedPaths = excludedPaths,
        includedPaths = includedPaths,
        indexingMode = indexingMode ?: throw PulumiNullFieldException("indexingMode"),
        spatialIndices = spatialIndices,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy