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

package com.azure.resourcemanager.dnsresolver.models;

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

/**
 * The current status of the DNS resolver. This is a read-only property and any attempt to set this value will be
 * ignored.
 */
public final class DnsResolverState extends ExpandableStringEnum<DnsResolverState> {
    /** Static value Connected for DnsResolverState. */
    public static final DnsResolverState CONNECTED = fromString("Connected");

    /** Static value Disconnected for DnsResolverState. */
    public static final DnsResolverState DISCONNECTED = fromString("Disconnected");

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

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