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

package com.azure.resourcemanager.databoxedge.models;

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

/** Data policy of the share. */
public final class DataPolicy extends ExpandableStringEnum<DataPolicy> {
    /** Static value Cloud for DataPolicy. */
    public static final DataPolicy CLOUD = fromString("Cloud");

    /** Static value Local for DataPolicy. */
    public static final DataPolicy LOCAL = fromString("Local");

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

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

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