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

com.pulumi.azure.cosmosdb.kotlin.inputs.SqlContainerConflictResolutionPolicyArgs.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.SqlContainerConflictResolutionPolicyArgs.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.jvm.JvmName

/**
 *
 * @property conflictResolutionPath The conflict resolution path in the case of `LastWriterWins` mode.
 * @property conflictResolutionProcedure The procedure to resolve conflicts in the case of `Custom` mode.
 * @property mode Indicates the conflict resolution mode. Possible values include: `LastWriterWins`, `Custom`.
 */
public data class SqlContainerConflictResolutionPolicyArgs(
    public val conflictResolutionPath: Output? = null,
    public val conflictResolutionProcedure: Output? = null,
    public val mode: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cosmosdb.inputs.SqlContainerConflictResolutionPolicyArgs =
        com.pulumi.azure.cosmosdb.inputs.SqlContainerConflictResolutionPolicyArgs.builder()
            .conflictResolutionPath(conflictResolutionPath?.applyValue({ args0 -> args0 }))
            .conflictResolutionProcedure(conflictResolutionProcedure?.applyValue({ args0 -> args0 }))
            .mode(mode.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SqlContainerConflictResolutionPolicyArgs].
 */
@PulumiTagMarker
public class SqlContainerConflictResolutionPolicyArgsBuilder internal constructor() {
    private var conflictResolutionPath: Output? = null

    private var conflictResolutionProcedure: Output? = null

    private var mode: Output? = null

    /**
     * @param value The conflict resolution path in the case of `LastWriterWins` mode.
     */
    @JvmName("veuugndsdhcbnjwf")
    public suspend fun conflictResolutionPath(`value`: Output) {
        this.conflictResolutionPath = value
    }

    /**
     * @param value The procedure to resolve conflicts in the case of `Custom` mode.
     */
    @JvmName("reqgwesxcjtodjeu")
    public suspend fun conflictResolutionProcedure(`value`: Output) {
        this.conflictResolutionProcedure = value
    }

    /**
     * @param value Indicates the conflict resolution mode. Possible values include: `LastWriterWins`, `Custom`.
     */
    @JvmName("bmhhjompxchoidlu")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

    /**
     * @param value The conflict resolution path in the case of `LastWriterWins` mode.
     */
    @JvmName("ubhbojrkrvrxpkam")
    public suspend fun conflictResolutionPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conflictResolutionPath = mapped
    }

    /**
     * @param value The procedure to resolve conflicts in the case of `Custom` mode.
     */
    @JvmName("beldxcnojwkxrjne")
    public suspend fun conflictResolutionProcedure(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conflictResolutionProcedure = mapped
    }

    /**
     * @param value Indicates the conflict resolution mode. Possible values include: `LastWriterWins`, `Custom`.
     */
    @JvmName("aaxogcopsmouycbf")
    public suspend fun mode(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    internal fun build(): SqlContainerConflictResolutionPolicyArgs =
        SqlContainerConflictResolutionPolicyArgs(
            conflictResolutionPath = conflictResolutionPath,
            conflictResolutionProcedure = conflictResolutionProcedure,
            mode = mode ?: throw PulumiNullFieldException("mode"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy