// 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 test migrate state. */
public final class TestMigrationState extends ExpandableStringEnum<TestMigrationState> {
    /** Static value None for TestMigrationState. */
    public static final TestMigrationState NONE = fromString("None");

    /** Static value TestMigrationInProgress for TestMigrationState. */
    public static final TestMigrationState TEST_MIGRATION_IN_PROGRESS = fromString("TestMigrationInProgress");

    /** Static value TestMigrationSucceeded for TestMigrationState. */
    public static final TestMigrationState TEST_MIGRATION_SUCCEEDED = fromString("TestMigrationSucceeded");

    /** Static value TestMigrationFailed for TestMigrationState. */
    public static final TestMigrationState TEST_MIGRATION_FAILED = fromString("TestMigrationFailed");

    /** Static value TestMigrationCleanupInProgress for TestMigrationState. */
    public static final TestMigrationState TEST_MIGRATION_CLEANUP_IN_PROGRESS =
        fromString("TestMigrationCleanupInProgress");

    /** Static value TestMigrationCompletedWithInformation for TestMigrationState. */
    public static final TestMigrationState TEST_MIGRATION_COMPLETED_WITH_INFORMATION =
        fromString("TestMigrationCompletedWithInformation");

    /** Static value TestMigrationPartiallySucceeded for TestMigrationState. */
    public static final TestMigrationState TEST_MIGRATION_PARTIALLY_SUCCEEDED =
        fromString("TestMigrationPartiallySucceeded");

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

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

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