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

package com.azure.resourcemanager.logic.models;

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

/** The schema type. */
public final class SchemaType extends ExpandableStringEnum<SchemaType> {
    /** Static value NotSpecified for SchemaType. */
    public static final SchemaType NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value Xml for SchemaType. */
    public static final SchemaType XML = fromString("Xml");

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

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

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