// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.recoveryservicesbackup.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Type of restore point. */
public final class RestorePointType extends ExpandableStringEnum<RestorePointType> {
    /** Static value Invalid for RestorePointType. */
    public static final RestorePointType INVALID = fromString("Invalid");

    /** Static value Full for RestorePointType. */
    public static final RestorePointType FULL = fromString("Full");

    /** Static value Log for RestorePointType. */
    public static final RestorePointType LOG = fromString("Log");

    /** Static value Differential for RestorePointType. */
    public static final RestorePointType DIFFERENTIAL = fromString("Differential");

    /** Static value Incremental for RestorePointType. */
    public static final RestorePointType INCREMENTAL = fromString("Incremental");

    /** Static value SnapshotFull for RestorePointType. */
    public static final RestorePointType SNAPSHOT_FULL = fromString("SnapshotFull");

    /** Static value SnapshotCopyOnlyFull for RestorePointType. */
    public static final RestorePointType SNAPSHOT_COPY_ONLY_FULL = fromString("SnapshotCopyOnlyFull");

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

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

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