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

package com.azure.resourcemanager.postgresqlflexibleserver.models;

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

/** Migration sub state. */
public final class MigrationSubState extends ExpandableStringEnum<MigrationSubState> {
    /** Static value PerformingPreRequisiteSteps for MigrationSubState. */
    public static final MigrationSubState PERFORMING_PRE_REQUISITE_STEPS = fromString("PerformingPreRequisiteSteps");

    /** Static value WaitingForLogicalReplicationSetupRequestOnSourceDB for MigrationSubState. */
    public static final MigrationSubState WAITING_FOR_LOGICAL_REPLICATION_SETUP_REQUEST_ON_SOURCE_DB =
        fromString("WaitingForLogicalReplicationSetupRequestOnSourceDB");

    /** Static value WaitingForDBsToMigrateSpecification for MigrationSubState. */
    public static final MigrationSubState WAITING_FOR_DBS_TO_MIGRATE_SPECIFICATION =
        fromString("WaitingForDBsToMigrateSpecification");

    /** Static value WaitingForTargetDBOverwriteConfirmation for MigrationSubState. */
    public static final MigrationSubState WAITING_FOR_TARGET_DBOVERWRITE_CONFIRMATION =
        fromString("WaitingForTargetDBOverwriteConfirmation");

    /** Static value WaitingForDataMigrationScheduling for MigrationSubState. */
    public static final MigrationSubState WAITING_FOR_DATA_MIGRATION_SCHEDULING =
        fromString("WaitingForDataMigrationScheduling");

    /** Static value WaitingForDataMigrationWindow for MigrationSubState. */
    public static final MigrationSubState WAITING_FOR_DATA_MIGRATION_WINDOW =
        fromString("WaitingForDataMigrationWindow");

    /** Static value MigratingData for MigrationSubState. */
    public static final MigrationSubState MIGRATING_DATA = fromString("MigratingData");

    /** Static value WaitingForCutoverTrigger for MigrationSubState. */
    public static final MigrationSubState WAITING_FOR_CUTOVER_TRIGGER = fromString("WaitingForCutoverTrigger");

    /** Static value CompletingMigration for MigrationSubState. */
    public static final MigrationSubState COMPLETING_MIGRATION = fromString("CompletingMigration");

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

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

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

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