// 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 ALR option. */
public final class AlternateLocationRecoveryOption extends ExpandableStringEnum<AlternateLocationRecoveryOption> {
    /** Static value CreateVmIfNotFound for AlternateLocationRecoveryOption. */
    public static final AlternateLocationRecoveryOption CREATE_VM_IF_NOT_FOUND = fromString("CreateVmIfNotFound");

    /** Static value NoAction for AlternateLocationRecoveryOption. */
    public static final AlternateLocationRecoveryOption NO_ACTION = fromString("NoAction");

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

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

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