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

package com.azure.resourcemanager.network.models;

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

/** Protocol to be filtered on. */
public final class PcProtocol extends ExpandableStringEnum<PcProtocol> {
    /** Static value TCP for PcProtocol. */
    public static final PcProtocol TCP = fromString("TCP");

    /** Static value UDP for PcProtocol. */
    public static final PcProtocol UDP = fromString("UDP");

    /** Static value Any for PcProtocol. */
    public static final PcProtocol ANY = fromString("Any");

    /**
     * Creates a new instance of PcProtocol value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public PcProtocol() {
    }

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

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