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

package com.azure.resourcemanager.recoveryservicesbackup.models;

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

/** Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. */
public final class StorageTypeState extends ExpandableStringEnum<StorageTypeState> {
    /** Static value Invalid for StorageTypeState. */
    public static final StorageTypeState INVALID = fromString("Invalid");

    /** Static value Locked for StorageTypeState. */
    public static final StorageTypeState LOCKED = fromString("Locked");

    /** Static value Unlocked for StorageTypeState. */
    public static final StorageTypeState UNLOCKED = fromString("Unlocked");

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

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

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