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

package com.azure.resourcemanager.kusto.models;

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

/** Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6). */
public final class PublicIpType extends ExpandableStringEnum<PublicIpType> {
    /** Static value IPv4 for PublicIpType. */
    public static final PublicIpType IPV4 = fromString("IPv4");

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

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

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

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