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

package com.azure.resourcemanager.resources.models;

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

/** The type of the region. */
public final class RegionType extends ExpandableStringEnum<RegionType> {
    /** Static value Physical for RegionType. */
    public static final RegionType PHYSICAL = fromString("Physical");

    /** Static value Logical for RegionType. */
    public static final RegionType LOGICAL = fromString("Logical");

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

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

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