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

package com.azure.resourcemanager.batchai.models;

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

/** Defines values for FileType. */
public final class FileType extends ExpandableStringEnum<FileType> {
    /** Static value file for FileType. */
    public static final FileType FILE = fromString("file");

    /** Static value directory for FileType. */
    public static final FileType DIRECTORY = fromString("directory");

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

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