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

package com.azure.resourcemanager.peering.models;

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

/** The family of the peering SKU. */
public final class Family extends ExpandableStringEnum<Family> {
    /** Static value Direct for Family. */
    public static final Family DIRECT = fromString("Direct");

    /** Static value Exchange for Family. */
    public static final Family EXCHANGE = fromString("Exchange");

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

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

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