// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.cosmos.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Indicates the conflict resolution mode. */
public final class ConflictResolutionMode extends ExpandableStringEnum<ConflictResolutionMode> {
    /** Static value LastWriterWins for ConflictResolutionMode. */
    public static final ConflictResolutionMode LAST_WRITER_WINS = fromString("LastWriterWins");

    /** Static value Custom for ConflictResolutionMode. */
    public static final ConflictResolutionMode CUSTOM = fromString("Custom");

    /**
     * Creates a new instance of ConflictResolutionMode value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public ConflictResolutionMode() {
    }

    /**
     * Creates or finds a ConflictResolutionMode from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding ConflictResolutionMode.
     */
    @JsonCreator
    public static ConflictResolutionMode fromString(String name) {
        return fromString(name, ConflictResolutionMode.class);
    }

    /**
     * Gets known ConflictResolutionMode values.
     *
     * @return known ConflictResolutionMode values.
     */
    public static Collection<ConflictResolutionMode> values() {
        return values(ConflictResolutionMode.class);
    }
}
