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

/** Gets or sets the type of the source data store. */
public final class SourceDataStoreType extends ExpandableStringEnum<SourceDataStoreType> {
    /** Static value ArchiveStore for SourceDataStoreType. */
    public static final SourceDataStoreType ARCHIVE_STORE = fromString("ArchiveStore");

    /** Static value SnapshotStore for SourceDataStoreType. */
    public static final SourceDataStoreType SNAPSHOT_STORE = fromString("SnapshotStore");

    /** Static value OperationalStore for SourceDataStoreType. */
    public static final SourceDataStoreType OPERATIONAL_STORE = fromString("OperationalStore");

    /** Static value VaultStore for SourceDataStoreType. */
    public static final SourceDataStoreType VAULT_STORE = fromString("VaultStore");

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

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

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