// 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 data directory mapping. */
public final class SqlDataDirectoryType extends ExpandableStringEnum<SqlDataDirectoryType> {
    /** Static value Invalid for SqlDataDirectoryType. */
    public static final SqlDataDirectoryType INVALID = fromString("Invalid");

    /** Static value Data for SqlDataDirectoryType. */
    public static final SqlDataDirectoryType DATA = fromString("Data");

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

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

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

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