// 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 InMageV2RpRecoveryPointType extends ExpandableStringEnum<InMageV2RpRecoveryPointType> {
    /** Static value Latest for InMageV2RpRecoveryPointType. */
    public static final InMageV2RpRecoveryPointType LATEST = fromString("Latest");

    /** Static value LatestApplicationConsistent for InMageV2RpRecoveryPointType. */
    public static final InMageV2RpRecoveryPointType LATEST_APPLICATION_CONSISTENT =
        fromString("LatestApplicationConsistent");

    /** Static value LatestCrashConsistent for InMageV2RpRecoveryPointType. */
    public static final InMageV2RpRecoveryPointType LATEST_CRASH_CONSISTENT = fromString("LatestCrashConsistent");

    /** Static value LatestProcessed for InMageV2RpRecoveryPointType. */
    public static final InMageV2RpRecoveryPointType LATEST_PROCESSED = fromString("LatestProcessed");

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

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

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