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

package com.azure.resourcemanager.security.models;

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

/** The type of the file (for Linux files - Executable is used). */
public final class FileType extends ExpandableStringEnum<FileType> {
    /** Static value Exe for FileType. */
    public static final FileType EXE = fromString("Exe");

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

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

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

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

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

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

    /**
     * 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);
    }

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