// 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.fluent.models;

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

/** onenoteUserRole. */
public final class MicrosoftGraphOnenoteUserRole extends ExpandableStringEnum<MicrosoftGraphOnenoteUserRole> {
    /** Static value None for MicrosoftGraphOnenoteUserRole. */
    public static final MicrosoftGraphOnenoteUserRole NONE = fromString("None");

    /** Static value Owner for MicrosoftGraphOnenoteUserRole. */
    public static final MicrosoftGraphOnenoteUserRole OWNER = fromString("Owner");

    /** Static value Contributor for MicrosoftGraphOnenoteUserRole. */
    public static final MicrosoftGraphOnenoteUserRole CONTRIBUTOR = fromString("Contributor");

    /** Static value Reader for MicrosoftGraphOnenoteUserRole. */
    public static final MicrosoftGraphOnenoteUserRole READER = fromString("Reader");

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

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