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

package com.azure.resourcemanager.education.models;

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

/** Grant status. */
public final class GrantStatus extends ExpandableStringEnum<GrantStatus> {
    /** Static value Active for GrantStatus. */
    public static final GrantStatus ACTIVE = fromString("Active");

    /** Static value Inactive for GrantStatus. */
    public static final GrantStatus INACTIVE = fromString("Inactive");

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

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