com.pulumi.azurenative.documentdb.kotlin.inputs.UniqueKeyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.documentdb.kotlin.inputs
import com.pulumi.azurenative.documentdb.inputs.UniqueKeyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The unique key on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
* @property paths List of paths must be unique for each document in the Azure Cosmos DB service
*/
public data class UniqueKeyArgs(
public val paths: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.documentdb.inputs.UniqueKeyArgs =
com.pulumi.azurenative.documentdb.inputs.UniqueKeyArgs.builder()
.paths(paths?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [UniqueKeyArgs].
*/
@PulumiTagMarker
public class UniqueKeyArgsBuilder internal constructor() {
private var paths: Output>? = null
/**
* @param value List of paths must be unique for each document in the Azure Cosmos DB service
*/
@JvmName("rbmvtojdclvjlgju")
public suspend fun paths(`value`: Output>) {
this.paths = value
}
@JvmName("rtyldegullyofmbj")
public suspend fun paths(vararg values: Output) {
this.paths = Output.all(values.asList())
}
/**
* @param values List of paths must be unique for each document in the Azure Cosmos DB service
*/
@JvmName("nreaxydhxbxrgast")
public suspend fun paths(values: List