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

com.pulumi.azure.cosmosdb.kotlin.inputs.GremlinGraphConflictResolutionPolicyArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.cosmosdb.kotlin.inputs

import com.pulumi.azure.cosmosdb.inputs.GremlinGraphConflictResolutionPolicyArgs.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 GremlinGraphConflictResolutionPolicyArgs(
    public val conflictResolutionPath: Output? = null,
    public val conflictResolutionProcedure: Output? = null,
    public val mode: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cosmosdb.inputs.GremlinGraphConflictResolutionPolicyArgs =
        com.pulumi.azure.cosmosdb.inputs.GremlinGraphConflictResolutionPolicyArgs.builder()
            .conflictResolutionPath(conflictResolutionPath?.applyValue({ args0 -> args0 }))
            .conflictResolutionProcedure(conflictResolutionProcedure?.applyValue({ args0 -> args0 }))
            .mode(mode.applyValue({ args0 -> args0 })).build()
}

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

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

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

    /**
     * @param value The conflict resolution path in the case of LastWriterWins mode.
     */
    @JvmName("kmodrdmunimeekbf")
    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("olpcowxayadamaov")
    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("arhdryehrevmbseu")
    public suspend fun mode(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy