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

package com.azure.resourcemanager.storage.models;

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

/** The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. */
public final class ImmutabilityPolicyState extends ExpandableStringEnum<ImmutabilityPolicyState> {
    /** Static value Locked for ImmutabilityPolicyState. */
    public static final ImmutabilityPolicyState LOCKED = fromString("Locked");

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

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

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