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

package com.azure.resourcemanager.machinelearning.models;

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

/** Caching type of Data Disk. */
public final class Caching extends ExpandableStringEnum<Caching> {
    /** Static value None for Caching. */
    public static final Caching NONE = fromString("None");

    /** Static value ReadOnly for Caching. */
    public static final Caching READ_ONLY = fromString("ReadOnly");

    /** Static value ReadWrite for Caching. */
    public static final Caching READ_WRITE = fromString("ReadWrite");

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

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

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