// 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 content type of a source control path. */
public final class ContentType extends ExpandableStringEnum<ContentType> {
    /** Static value AnalyticRule for ContentType. */
    public static final ContentType ANALYTIC_RULE = fromString("AnalyticRule");

    /** Static value Workbook for ContentType. */
    public static final ContentType WORKBOOK = fromString("Workbook");

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

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