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

package com.azure.resourcemanager.datamigration.models;

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

/** Enum of the different backup types. */
public final class BackupType extends ExpandableStringEnum<BackupType> {
    /** Static value Database for BackupType. */
    public static final BackupType DATABASE = fromString("Database");

    /** Static value TransactionLog for BackupType. */
    public static final BackupType TRANSACTION_LOG = fromString("TransactionLog");

    /** Static value File for BackupType. */
    public static final BackupType FILE = fromString("File");

    /** Static value DifferentialDatabase for BackupType. */
    public static final BackupType DIFFERENTIAL_DATABASE = fromString("DifferentialDatabase");

    /** Static value DifferentialFile for BackupType. */
    public static final BackupType DIFFERENTIAL_FILE = fromString("DifferentialFile");

    /** Static value Partial for BackupType. */
    public static final BackupType PARTIAL = fromString("Partial");

    /** Static value DifferentialPartial for BackupType. */
    public static final BackupType DIFFERENTIAL_PARTIAL = fromString("DifferentialPartial");

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

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

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