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

package com.azure.resourcemanager.netapp.models;

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

/** Status of the Active Directory. */
public final class ActiveDirectoryStatus extends ExpandableStringEnum<ActiveDirectoryStatus> {
    /** Static value Created for ActiveDirectoryStatus. */
    public static final ActiveDirectoryStatus CREATED = fromString("Created");

    /** Static value InUse for ActiveDirectoryStatus. */
    public static final ActiveDirectoryStatus IN_USE = fromString("InUse");

    /** Static value Deleted for ActiveDirectoryStatus. */
    public static final ActiveDirectoryStatus DELETED = fromString("Deleted");

    /** Static value Error for ActiveDirectoryStatus. */
    public static final ActiveDirectoryStatus ERROR = fromString("Error");

    /** Static value Updating for ActiveDirectoryStatus. */
    public static final ActiveDirectoryStatus UPDATING = fromString("Updating");

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

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

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