// 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 VersioningScheme. */
public final class VersioningScheme extends ExpandableStringEnum<VersioningScheme> {
    /** Static value Segment for VersioningScheme. */
    public static final VersioningScheme SEGMENT = fromString("Segment");

    /** Static value Query for VersioningScheme. */
    public static final VersioningScheme QUERY = fromString("Query");

    /** Static value Header for VersioningScheme. */
    public static final VersioningScheme HEADER = fromString("Header");

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

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