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

/** Recovery Option. */
public final class RecoveryOption extends ExpandableStringEnum<RecoveryOption> {
    /** Static value FailIfExists for RecoveryOption. */
    public static final RecoveryOption FAIL_IF_EXISTS = fromString("FailIfExists");

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

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

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