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

    /** Static value soap for ApiType. */
    public static final ApiType SOAP = fromString("soap");

    /** Static value websocket for ApiType. */
    public static final ApiType WEBSOCKET = fromString("websocket");

    /** Static value graphql for ApiType. */
    public static final ApiType GRAPHQL = fromString("graphql");

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

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