// 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;

/** Whether storage account lock is to be acquired for this container or not. */
public final class AcquireStorageAccountLock extends ExpandableStringEnum<AcquireStorageAccountLock> {
    /** Static value Acquire for AcquireStorageAccountLock. */
    public static final AcquireStorageAccountLock ACQUIRE = fromString("Acquire");

    /** Static value NotAcquire for AcquireStorageAccountLock. */
    public static final AcquireStorageAccountLock NOT_ACQUIRE = fromString("NotAcquire");

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

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

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