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

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

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

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

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