/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.cognitiveservices.vision.computervision.models;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
 * Defines values for ComputerVisionErrorCodes.
 */
public final class ComputerVisionErrorCodes extends ExpandableStringEnum<ComputerVisionErrorCodes> {
    /** Static value InvalidRequest for ComputerVisionErrorCodes. */
    public static final ComputerVisionErrorCodes INVALID_REQUEST = fromString("InvalidRequest");

    /** Static value InvalidArgument for ComputerVisionErrorCodes. */
    public static final ComputerVisionErrorCodes INVALID_ARGUMENT = fromString("InvalidArgument");

    /** Static value InternalServerError for ComputerVisionErrorCodes. */
    public static final ComputerVisionErrorCodes INTERNAL_SERVER_ERROR = fromString("InternalServerError");

    /** Static value ServiceUnavailable for ComputerVisionErrorCodes. */
    public static final ComputerVisionErrorCodes SERVICE_UNAVAILABLE = fromString("ServiceUnavailable");

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

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