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

package com.azure.resourcemanager.authorization.models;

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

/** The type of user. */
public final class UserType extends ExpandableStringEnum<UserType> {
    /** Static value User for UserType. */
    public static final UserType USER = fromString("User");

    /** Static value Group for UserType. */
    public static final UserType GROUP = fromString("Group");

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

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