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

package com.azure.resourcemanager.providerhub.models;

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

/** Defines values for ResourceProviderType. */
public final class ResourceProviderType extends ExpandableStringEnum<ResourceProviderType> {
    /** Static value NotSpecified for ResourceProviderType. */
    public static final ResourceProviderType NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value Internal for ResourceProviderType. */
    public static final ResourceProviderType INTERNAL = fromString("Internal");

    /** Static value External for ResourceProviderType. */
    public static final ResourceProviderType EXTERNAL = fromString("External");

    /** Static value Hidden for ResourceProviderType. */
    public static final ResourceProviderType HIDDEN = fromString("Hidden");

    /** Static value RegistrationFree for ResourceProviderType. */
    public static final ResourceProviderType REGISTRATION_FREE = fromString("RegistrationFree");

    /** Static value LegacyRegistrationRequired for ResourceProviderType. */
    public static final ResourceProviderType LEGACY_REGISTRATION_REQUIRED = fromString("LegacyRegistrationRequired");

    /** Static value TenantOnly for ResourceProviderType. */
    public static final ResourceProviderType TENANT_ONLY = fromString("TenantOnly");

    /** Static value AuthorizationFree for ResourceProviderType. */
    public static final ResourceProviderType AUTHORIZATION_FREE = fromString("AuthorizationFree");

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

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

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