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

package com.azure.resourcemanager.recoveryservicessiterecovery.models;

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

/** The fabric location. */
public final class RecoveryPlanActionLocation extends ExpandableStringEnum<RecoveryPlanActionLocation> {
    /** Static value Primary for RecoveryPlanActionLocation. */
    public static final RecoveryPlanActionLocation PRIMARY = fromString("Primary");

    /** Static value Recovery for RecoveryPlanActionLocation. */
    public static final RecoveryPlanActionLocation RECOVERY = fromString("Recovery");

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

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

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