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

package com.azure.analytics.purview.sharing.models;

import java.util.Collection;

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

/**
 * Defines the type of resource being shared.
 */
public final class ReferenceNameType extends ExpandableStringEnum<ReferenceNameType> {
    /**
     * The type of reference is an ARM resource.
     */
    public static final ReferenceNameType ARM_RESOURCE_REFERENCE = fromString("ArmResourceReference");

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

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

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