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

    /** Static value HTTP for ConnectivityCheckProtocol. */
    public static final ConnectivityCheckProtocol HTTP = fromString("HTTP");

    /** Static value HTTPS for ConnectivityCheckProtocol. */
    public static final ConnectivityCheckProtocol HTTPS = fromString("HTTPS");

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

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