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

package com.azure.resourcemanager.apimanagement.models;

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

/** Defines values for SchemaType. */
public final class SchemaType extends ExpandableStringEnum<SchemaType> {
    /** Static value xml for SchemaType. */
    public static final SchemaType XML = fromString("xml");

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

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

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