// 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 recovery point type. */
public final class MigrationRecoveryPointType extends ExpandableStringEnum<MigrationRecoveryPointType> {
    /** Static value NotSpecified for MigrationRecoveryPointType. */
    public static final MigrationRecoveryPointType NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value ApplicationConsistent for MigrationRecoveryPointType. */
    public static final MigrationRecoveryPointType APPLICATION_CONSISTENT = fromString("ApplicationConsistent");

    /** Static value CrashConsistent for MigrationRecoveryPointType. */
    public static final MigrationRecoveryPointType CRASH_CONSISTENT = fromString("CrashConsistent");

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

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

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