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

package com.azure.resourcemanager.devhub.models;

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

/** Determines the authorization status of requests. */
public final class AuthorizationStatus extends ExpandableStringEnum<AuthorizationStatus> {
    /** Static value Authorized for AuthorizationStatus. */
    public static final AuthorizationStatus AUTHORIZED = fromString("Authorized");

    /** Static value NotFound for AuthorizationStatus. */
    public static final AuthorizationStatus NOT_FOUND = fromString("NotFound");

    /** Static value Error for AuthorizationStatus. */
    public static final AuthorizationStatus ERROR = fromString("Error");

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

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

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