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

package com.azure.resourcemanager.securityinsights.models;

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

/** The hash algorithm type. */
public final class FileHashAlgorithm extends ExpandableStringEnum<FileHashAlgorithm> {
    /** Static value Unknown for FileHashAlgorithm. */
    public static final FileHashAlgorithm UNKNOWN = fromString("Unknown");

    /** Static value MD5 for FileHashAlgorithm. */
    public static final FileHashAlgorithm MD5 = fromString("MD5");

    /** Static value SHA1 for FileHashAlgorithm. */
    public static final FileHashAlgorithm SHA1 = fromString("SHA1");

    /** Static value SHA256 for FileHashAlgorithm. */
    public static final FileHashAlgorithm SHA256 = fromString("SHA256");

    /** Static value SHA256AC for FileHashAlgorithm. */
    public static final FileHashAlgorithm SHA256AC = fromString("SHA256AC");

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

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