// 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 Regionality. */
public final class Regionality extends ExpandableStringEnum<Regionality> {
    /** Static value NotSpecified for Regionality. */
    public static final Regionality NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value Global for Regionality. */
    public static final Regionality GLOBAL = fromString("Global");

    /** Static value Regional for Regionality. */
    public static final Regionality REGIONAL = fromString("Regional");

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

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

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