com.pulumi.azure.cosmosdb.kotlin.inputs.GremlinGraphIndexPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy