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

package com.azure.resourcemanager.dataprotection.models;

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

/** Field indicating sync type e.g. to sync only in case of failure or in all cases. */
public final class SyncType extends ExpandableStringEnum<SyncType> {
    /** Static value Default for SyncType. */
    public static final SyncType DEFAULT = fromString("Default");

    /** Static value ForceResync for SyncType. */
    public static final SyncType FORCE_RESYNC = fromString("ForceResync");

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

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

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