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

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

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

import com.pulumi.azure.cosmosdb.inputs.SqlContainerIndexingPolicyArgs.builder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property compositeIndices One or more `composite_index` blocks as defined below.
 * @property excludedPaths One or more `excluded_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
 * @property includedPaths One or more `included_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
 * @property indexingMode Indicates the indexing mode. Possible values include: `consistent` and `none`. Defaults to `consistent`.
 * @property spatialIndices One or more `spatial_index` blocks as defined below.
 * */*/
 */
public data class SqlContainerIndexingPolicyArgs(
    public val compositeIndices: Output>? = null,
    public val excludedPaths: Output>? = null,
    public val includedPaths: Output>? = null,
    public val indexingMode: Output? = null,
    public val spatialIndices: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cosmosdb.inputs.SqlContainerIndexingPolicyArgs =
        com.pulumi.azure.cosmosdb.inputs.SqlContainerIndexingPolicyArgs.builder()
            .compositeIndices(
                compositeIndices?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .excludedPaths(
                excludedPaths?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .includedPaths(
                includedPaths?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .indexingMode(indexingMode?.applyValue({ args0 -> args0 }))
            .spatialIndices(
                spatialIndices?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [SqlContainerIndexingPolicyArgs].
 */
@PulumiTagMarker
public class SqlContainerIndexingPolicyArgsBuilder internal constructor() {
    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 One or more `composite_index` blocks as defined below.
     */
    @JvmName("jitpltypoackrjja")
    public suspend
    fun compositeIndices(`value`: Output>) {
        this.compositeIndices = value
    }

    @JvmName("uvwbueqcyxhjojlv")
    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("qgcwgmkayxxgtkvr")
    public suspend
    fun compositeIndices(values: List>) {
        this.compositeIndices = Output.all(values)
    }

    /**
     * @param value One or more `excluded_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("nrpyawkrkjxmisis")
    public suspend
    fun excludedPaths(`value`: Output>) {
        this.excludedPaths = value
    }

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

    /**
     * @param values One or more `excluded_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("iehaagqgdonhigyj")
    public suspend
    fun excludedPaths(values: List>) {
        this.excludedPaths = Output.all(values)
    }

    /**
     * @param value One or more `included_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("qcyjshlldjtlhwtb")
    public suspend
    fun includedPaths(`value`: Output>) {
        this.includedPaths = value
    }

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

    /**
     * @param values One or more `included_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("neulackojobowslt")
    public suspend
    fun includedPaths(values: List>) {
        this.includedPaths = Output.all(values)
    }

    /**
     * @param value Indicates the indexing mode. Possible values include: `consistent` and `none`. Defaults to `consistent`.
     */
    @JvmName("sgbfiuokdxepbqcq")
    public suspend fun indexingMode(`value`: Output) {
        this.indexingMode = value
    }

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

    @JvmName("nrmeguxkgthbpqeo")
    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("ysgjmfhaobqsvrmj")
    public suspend
    fun spatialIndices(values: List>) {
        this.spatialIndices = Output.all(values)
    }

    /**
     * @param value One or more `composite_index` blocks as defined below.
     */
    @JvmName("tolhpasscvecaeli")
    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("rwirvprutbrkdodd")
    public suspend
    fun compositeIndices(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SqlContainerIndexingPolicyCompositeIndexArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.compositeIndices = mapped
    }

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

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

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

    /**
     * @param value One or more `excluded_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("foyfxadkuuprpwip")
    public suspend fun excludedPaths(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludedPaths = mapped
    }

    /**
     * @param argument One or more `excluded_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("kapusivvlohcgqym")
    public suspend
    fun excludedPaths(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SqlContainerIndexingPolicyExcludedPathArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.excludedPaths = mapped
    }

    /**
     * @param argument One or more `excluded_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("aaraqpxajiwgnnbb")
    public suspend fun excludedPaths(
        vararg
        argument: suspend SqlContainerIndexingPolicyExcludedPathArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            SqlContainerIndexingPolicyExcludedPathArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.excludedPaths = mapped
    }

    /**
     * @param argument One or more `excluded_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("prqewxwayqmxmfku")
    public suspend
    fun excludedPaths(argument: suspend SqlContainerIndexingPolicyExcludedPathArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SqlContainerIndexingPolicyExcludedPathArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.excludedPaths = mapped
    }

    /**
     * @param values One or more `excluded_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("yavqpavtcxwxcsdt")
    public suspend fun excludedPaths(vararg values: SqlContainerIndexingPolicyExcludedPathArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludedPaths = mapped
    }

    /**
     * @param value One or more `included_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("wtwubqbcbasasnmd")
    public suspend fun includedPaths(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includedPaths = mapped
    }

    /**
     * @param argument One or more `included_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("fnaggtfmvgyorlvt")
    public suspend
    fun includedPaths(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SqlContainerIndexingPolicyIncludedPathArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.includedPaths = mapped
    }

    /**
     * @param argument One or more `included_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("rdttppjyqitxubaf")
    public suspend fun includedPaths(
        vararg
        argument: suspend SqlContainerIndexingPolicyIncludedPathArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            SqlContainerIndexingPolicyIncludedPathArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.includedPaths = mapped
    }

    /**
     * @param argument One or more `included_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("jpdvisuekumvcgpk")
    public suspend
    fun includedPaths(argument: suspend SqlContainerIndexingPolicyIncludedPathArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SqlContainerIndexingPolicyIncludedPathArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.includedPaths = mapped
    }

    /**
     * @param values One or more `included_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * */
     */
    @JvmName("sbsfcqsosjsbpetv")
    public suspend fun includedPaths(vararg values: SqlContainerIndexingPolicyIncludedPathArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includedPaths = mapped
    }

    /**
     * @param value Indicates the indexing mode. Possible values include: `consistent` and `none`. Defaults to `consistent`.
     */
    @JvmName("qgjgildxqxnfkrry")
    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("xssjgmtxjpqcnwij")
    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("oqsijscnkfpxqtyn")
    public suspend
    fun spatialIndices(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SqlContainerIndexingPolicySpatialIndexArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.spatialIndices = mapped
    }

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

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

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

    internal fun build(): SqlContainerIndexingPolicyArgs = SqlContainerIndexingPolicyArgs(
        compositeIndices = compositeIndices,
        excludedPaths = excludedPaths,
        includedPaths = includedPaths,
        indexingMode = indexingMode,
        spatialIndices = spatialIndices,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy