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

com.pulumi.azure.cosmosdb.kotlin.inputs.GremlinGraphIndexPolicySpatialIndexArgs.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.GremlinGraphIndexPolicySpatialIndexArgs.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
 */
public data class GremlinGraphIndexPolicySpatialIndexArgs(
    public val path: Output,
    public val types: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cosmosdb.inputs.GremlinGraphIndexPolicySpatialIndexArgs =
        com.pulumi.azure.cosmosdb.inputs.GremlinGraphIndexPolicySpatialIndexArgs.builder()
            .path(path.applyValue({ args0 -> args0 }))
            .types(types?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [GremlinGraphIndexPolicySpatialIndexArgs].
 */
@PulumiTagMarker
public class GremlinGraphIndexPolicySpatialIndexArgsBuilder 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("yaivdkpounhqdusq")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value
     */
    @JvmName("yaajuuxiynrjjkvm")
    public suspend fun types(`value`: Output>) {
        this.types = value
    }

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

    /**
     * @param values
     */
    @JvmName("ynhxeqdflxgffulp")
    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("lnjgspaxwvylewga")
    public suspend fun path(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.path = mapped
    }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy