// 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;

/** IP address family. Example: ipv4 | ipv6. */
public final class AddressFamily extends ExpandableStringEnum<AddressFamily> {
    /** Static value ipv4 for AddressFamily. */
    public static final AddressFamily IPV4 = fromString("ipv4");

    /** Static value ipv6 for AddressFamily. */
    public static final AddressFamily IPV6 = fromString("ipv6");

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

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

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