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

package com.azure.resourcemanager.datamigration.models;

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

/** Current state of migration. */
public final class MigrationState extends ExpandableStringEnum<MigrationState> {
    /** Static value None for MigrationState. */
    public static final MigrationState NONE = fromString("None");

    /** Static value InProgress for MigrationState. */
    public static final MigrationState IN_PROGRESS = fromString("InProgress");

    /** Static value Failed for MigrationState. */
    public static final MigrationState FAILED = fromString("Failed");

    /** Static value Warning for MigrationState. */
    public static final MigrationState WARNING = fromString("Warning");

    /** Static value Completed for MigrationState. */
    public static final MigrationState COMPLETED = fromString("Completed");

    /** Static value Skipped for MigrationState. */
    public static final MigrationState SKIPPED = fromString("Skipped");

    /** Static value Stopped for MigrationState. */
    public static final MigrationState STOPPED = fromString("Stopped");

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

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

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