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

/** Enum to determine which reference method to use for an asset. */
public final class ReferenceType extends ExpandableStringEnum<ReferenceType> {
    /** Static value Id for ReferenceType. */
    public static final ReferenceType ID = fromString("Id");

    /** Static value DataPath for ReferenceType. */
    public static final ReferenceType DATA_PATH = fromString("DataPath");

    /** Static value OutputPath for ReferenceType. */
    public static final ReferenceType OUTPUT_PATH = fromString("OutputPath");

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

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

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