// 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;

/** Source type of the content. */
public final class SourceKind extends ExpandableStringEnum<SourceKind> {
    /** Static value LocalWorkspace for SourceKind. */
    public static final SourceKind LOCAL_WORKSPACE = fromString("LocalWorkspace");

    /** Static value Community for SourceKind. */
    public static final SourceKind COMMUNITY = fromString("Community");

    /** Static value Solution for SourceKind. */
    public static final SourceKind SOLUTION = fromString("Solution");

    /** Static value SourceRepository for SourceKind. */
    public static final SourceKind SOURCE_REPOSITORY = fromString("SourceRepository");

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

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