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

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

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

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

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

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