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

/** DNS Proxy. */
public final class DnsProxy extends ExpandableStringEnum<DnsProxy> {
    /** Static value DISABLED for DnsProxy. */
    public static final DnsProxy DISABLED = fromString("DISABLED");

    /** Static value ENABLED for DnsProxy. */
    public static final DnsProxy ENABLED = fromString("ENABLED");

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

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

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