// 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;

/** Defines values for MigrationItemOperation. */
public final class MigrationItemOperation extends ExpandableStringEnum<MigrationItemOperation> {
    /** Static value DisableMigration for MigrationItemOperation. */
    public static final MigrationItemOperation DISABLE_MIGRATION = fromString("DisableMigration");

    /** Static value TestMigrate for MigrationItemOperation. */
    public static final MigrationItemOperation TEST_MIGRATE = fromString("TestMigrate");

    /** Static value TestMigrateCleanup for MigrationItemOperation. */
    public static final MigrationItemOperation TEST_MIGRATE_CLEANUP = fromString("TestMigrateCleanup");

    /** Static value Migrate for MigrationItemOperation. */
    public static final MigrationItemOperation MIGRATE = fromString("Migrate");

    /** Static value StartResync for MigrationItemOperation. */
    public static final MigrationItemOperation START_RESYNC = fromString("StartResync");

    /** Static value PauseReplication for MigrationItemOperation. */
    public static final MigrationItemOperation PAUSE_REPLICATION = fromString("PauseReplication");

    /** Static value ResumeReplication for MigrationItemOperation. */
    public static final MigrationItemOperation RESUME_REPLICATION = fromString("ResumeReplication");

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

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

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