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

com.pulumi.azure.cosmosdb.kotlin.inputs.SqlContainerIndexingPolicySpatialIndexArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 *
 * @property path Path for which the indexing behaviour applies to. According to the service design, all spatial types including `LineString`, `MultiPolygon`, `Point`, and `Polygon` will be applied to the path.
 * @property types A set of spatial types of the path.
 */
public data class SqlContainerIndexingPolicySpatialIndexArgs(
    public val path: Output,
    public val types: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cosmosdb.inputs.SqlContainerIndexingPolicySpatialIndexArgs =
        com.pulumi.azure.cosmosdb.inputs.SqlContainerIndexingPolicySpatialIndexArgs.builder()
            .path(path.applyValue({ args0 -> args0 }))
            .types(types?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [SqlContainerIndexingPolicySpatialIndexArgs].
 */
@PulumiTagMarker
public class SqlContainerIndexingPolicySpatialIndexArgsBuilder internal constructor() {
    private var path: Output? = null

    private var types: Output>? = null

    /**
     * @param value Path for which the indexing behaviour applies to. According to the service design, all spatial types including `LineString`, `MultiPolygon`, `Point`, and `Polygon` will be applied to the path.
     */
    @JvmName("qrnergwmrqbfdpnx")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value A set of spatial types of the path.
     */
    @JvmName("dnqspyabydxresdf")
    public suspend fun types(`value`: Output>) {
        this.types = value
    }

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

    /**
     * @param values A set of spatial types of the path.
     */
    @JvmName("hjoewvglivraqitf")
    public suspend fun types(values: List>) {
        this.types = Output.all(values)
    }

    /**
     * @param value Path for which the indexing behaviour applies to. According to the service design, all spatial types including `LineString`, `MultiPolygon`, `Point`, and `Polygon` will be applied to the path.
     */
    @JvmName("ofrspdofxlisnxff")
    public suspend fun path(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value A set of spatial types of the path.
     */
    @JvmName("xjrwmmbbjktkkrpf")
    public suspend fun types(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.types = mapped
    }

    /**
     * @param values A set of spatial types of the path.
     */
    @JvmName("hhccantlgtguidyp")
    public suspend fun types(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.types = mapped
    }

    internal fun build(): SqlContainerIndexingPolicySpatialIndexArgs =
        SqlContainerIndexingPolicySpatialIndexArgs(
            path = path ?: throw PulumiNullFieldException("path"),
            types = types,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy