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

package com.azure.resourcemanager.networkcloud.models;

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

/** The type of the IP address allocation, defaulted to "DualStack". */
public final class IpAllocationType extends ExpandableStringEnum<IpAllocationType> {
    /** Static value IPV4 for IpAllocationType. */
    public static final IpAllocationType IPV4 = fromString("IPV4");

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

    /** Static value DualStack for IpAllocationType. */
    public static final IpAllocationType DUAL_STACK = fromString("DualStack");

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

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

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