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

package com.azure.resourcemanager.avs.models;

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

/** DNS Service status. */
public final class DnsServiceStatusEnum extends ExpandableStringEnum<DnsServiceStatusEnum> {
    /** Static value SUCCESS for DnsServiceStatusEnum. */
    public static final DnsServiceStatusEnum SUCCESS = fromString("SUCCESS");

    /** Static value FAILURE for DnsServiceStatusEnum. */
    public static final DnsServiceStatusEnum FAILURE = fromString("FAILURE");

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

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

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