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

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>) {
        this.paths = Output.all(values)
    }

    /**
     * @param value List of paths must be unique for each document in the Azure Cosmos DB service
     */
    @JvmName("epdbwxharlmljnvf")
    public suspend fun paths(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.paths = mapped
    }

    /**
     * @param values List of paths must be unique for each document in the Azure Cosmos DB service
     */
    @JvmName("uqtdqrknnaievlkh")
    public suspend fun paths(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.paths = mapped
    }

    internal fun build(): UniqueKeyArgs = UniqueKeyArgs(
        paths = paths,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy