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

package com.azure.resourcemanager.recoveryservicessiterecovery.models;

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

/** The resync state. */
public final class ResyncState extends ExpandableStringEnum<ResyncState> {
    /** Static value None for ResyncState. */
    public static final ResyncState NONE = fromString("None");

    /** Static value PreparedForResynchronization for ResyncState. */
    public static final ResyncState PREPARED_FOR_RESYNCHRONIZATION = fromString("PreparedForResynchronization");

    /** Static value StartedResynchronization for ResyncState. */
    public static final ResyncState STARTED_RESYNCHRONIZATION = fromString("StartedResynchronization");

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

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

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