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

package com.azure.resourcemanager.paloaltonetworks.ngfw.models;

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

/** Enabled DNS type values. */
public final class EnabledDnsType extends ExpandableStringEnum<EnabledDnsType> {
    /** Static value CUSTOM for EnabledDnsType. */
    public static final EnabledDnsType CUSTOM = fromString("CUSTOM");

    /** Static value AZURE for EnabledDnsType. */
    public static final EnabledDnsType AZURE = fromString("AZURE");

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

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

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