/**
 * 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.knowledge.qnamaker.models;

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

/**
 * Defines values for ErrorCodeType.
 */
public final class ErrorCodeType extends ExpandableStringEnum<ErrorCodeType> {
    /** Static value BadArgument for ErrorCodeType. */
    public static final ErrorCodeType BAD_ARGUMENT = fromString("BadArgument");

    /** Static value Forbidden for ErrorCodeType. */
    public static final ErrorCodeType FORBIDDEN = fromString("Forbidden");

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

    /** Static value KbNotFound for ErrorCodeType. */
    public static final ErrorCodeType KB_NOT_FOUND = fromString("KbNotFound");

    /** Static value Unauthorized for ErrorCodeType. */
    public static final ErrorCodeType UNAUTHORIZED = fromString("Unauthorized");

    /** Static value Unspecified for ErrorCodeType. */
    public static final ErrorCodeType UNSPECIFIED = fromString("Unspecified");

    /** Static value EndpointKeysError for ErrorCodeType. */
    public static final ErrorCodeType ENDPOINT_KEYS_ERROR = fromString("EndpointKeysError");

    /** Static value QuotaExceeded for ErrorCodeType. */
    public static final ErrorCodeType QUOTA_EXCEEDED = fromString("QuotaExceeded");

    /** Static value QnaRuntimeError for ErrorCodeType. */
    public static final ErrorCodeType QNA_RUNTIME_ERROR = fromString("QnaRuntimeError");

    /** Static value SKULimitExceeded for ErrorCodeType. */
    public static final ErrorCodeType SKULIMIT_EXCEEDED = fromString("SKULimitExceeded");

    /** Static value OperationNotFound for ErrorCodeType. */
    public static final ErrorCodeType OPERATION_NOT_FOUND = fromString("OperationNotFound");

    /** Static value ServiceError for ErrorCodeType. */
    public static final ErrorCodeType SERVICE_ERROR = fromString("ServiceError");

    /** Static value ValidationFailure for ErrorCodeType. */
    public static final ErrorCodeType VALIDATION_FAILURE = fromString("ValidationFailure");

    /** Static value ExtractionFailure for ErrorCodeType. */
    public static final ErrorCodeType EXTRACTION_FAILURE = fromString("ExtractionFailure");

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

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