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

package com.azure.resourcemanager.dataprotection.models;

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

/** State of soft delete. */
public final class SoftDeleteState extends ExpandableStringEnum<SoftDeleteState> {
    /** Static value Off for SoftDeleteState. */
    public static final SoftDeleteState OFF = fromString("Off");

    /** Static value On for SoftDeleteState. */
    public static final SoftDeleteState ON = fromString("On");

    /** Static value AlwaysOn for SoftDeleteState. */
    public static final SoftDeleteState ALWAYS_ON = fromString("AlwaysOn");

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

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

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