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

/**
 * Denotes the target location where the data will be restored, string value for the enum
 * {Microsoft.Internal.AzureBackup.DataProtection.Common.Interface.RestoreTargetLocationType}.
 */
public final class RestoreTargetLocationType extends ExpandableStringEnum<RestoreTargetLocationType> {
    /** Static value Invalid for RestoreTargetLocationType. */
    public static final RestoreTargetLocationType INVALID = fromString("Invalid");

    /** Static value AzureBlobs for RestoreTargetLocationType. */
    public static final RestoreTargetLocationType AZURE_BLOBS = fromString("AzureBlobs");

    /** Static value AzureFiles for RestoreTargetLocationType. */
    public static final RestoreTargetLocationType AZURE_FILES = fromString("AzureFiles");

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

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

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