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

package com.azure.resourcemanager.managednetworkfabric.models;

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

/** Role for the network device. */
public final class NetworkDeviceRackRoleType extends ExpandableStringEnum<NetworkDeviceRackRoleType> {
    /** Static value CE for NetworkDeviceRackRoleType. */
    public static final NetworkDeviceRackRoleType CE = fromString("CE");

    /** Static value ToR for NetworkDeviceRackRoleType. */
    public static final NetworkDeviceRackRoleType TOR = fromString("ToR");

    /** Static value NPB for NetworkDeviceRackRoleType. */
    public static final NetworkDeviceRackRoleType NPB = fromString("NPB");

    /** Static value TS for NetworkDeviceRackRoleType. */
    public static final NetworkDeviceRackRoleType TS = fromString("TS");

    /** Static value Management for NetworkDeviceRackRoleType. */
    public static final NetworkDeviceRackRoleType MANAGEMENT = fromString("Management");

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

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

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