// 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. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point
 * provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored.
 */
public final class RecoveryPointType extends ExpandableStringEnum<RecoveryPointType> {
    /** Static value LatestTime for RecoveryPointType. */
    public static final RecoveryPointType LATEST_TIME = fromString("LatestTime");

    /** Static value LatestTag for RecoveryPointType. */
    public static final RecoveryPointType LATEST_TAG = fromString("LatestTag");

    /** Static value Custom for RecoveryPointType. */
    public static final RecoveryPointType CUSTOM = fromString("Custom");

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

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

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