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

package com.azure.resourcemanager.advisor.models;

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

/** State of digest configuration. */
public final class DigestConfigState extends ExpandableStringEnum<DigestConfigState> {
    /** Static value Active for DigestConfigState. */
    public static final DigestConfigState ACTIVE = fromString("Active");

    /** Static value Disabled for DigestConfigState. */
    public static final DigestConfigState DISABLED = fromString("Disabled");

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

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

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