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

package com.azure.resourcemanager.sql.models;

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

/** Conflict resolution policy of the sync group. */
public final class SyncConflictResolutionPolicy extends ExpandableStringEnum<SyncConflictResolutionPolicy> {
    /** Static value HubWin for SyncConflictResolutionPolicy. */
    public static final SyncConflictResolutionPolicy HUB_WIN = fromString("HubWin");

    /** Static value MemberWin for SyncConflictResolutionPolicy. */
    public static final SyncConflictResolutionPolicy MEMBER_WIN = fromString("MemberWin");

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

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