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

package com.azure.resourcemanager.redisenterprise.models;

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

/** Current resource status. */
public final class ResourceState extends ExpandableStringEnum<ResourceState> {
    /** Static value Running for ResourceState. */
    public static final ResourceState RUNNING = fromString("Running");

    /** Static value Creating for ResourceState. */
    public static final ResourceState CREATING = fromString("Creating");

    /** Static value CreateFailed for ResourceState. */
    public static final ResourceState CREATE_FAILED = fromString("CreateFailed");

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

    /** Static value UpdateFailed for ResourceState. */
    public static final ResourceState UPDATE_FAILED = fromString("UpdateFailed");

    /** Static value Deleting for ResourceState. */
    public static final ResourceState DELETING = fromString("Deleting");

    /** Static value DeleteFailed for ResourceState. */
    public static final ResourceState DELETE_FAILED = fromString("DeleteFailed");

    /** Static value Enabling for ResourceState. */
    public static final ResourceState ENABLING = fromString("Enabling");

    /** Static value EnableFailed for ResourceState. */
    public static final ResourceState ENABLE_FAILED = fromString("EnableFailed");

    /** Static value Disabling for ResourceState. */
    public static final ResourceState DISABLING = fromString("Disabling");

    /** Static value DisableFailed for ResourceState. */
    public static final ResourceState DISABLE_FAILED = fromString("DisableFailed");

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

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

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

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