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

package com.azure.ai.personalizer.models;

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

/** Defines values for PersonalizerErrorCode. */
public final class PersonalizerErrorCode extends ExpandableStringEnum<PersonalizerErrorCode> {
    /** Static value BadRequest for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode BAD_REQUEST = fromString("BadRequest");

    /** Static value InvalidServiceConfiguration for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_SERVICE_CONFIGURATION = fromString("InvalidServiceConfiguration");

    /** Static value InvalidLearningModeServiceConfiguration for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_LEARNING_MODE_SERVICE_CONFIGURATION =
            fromString("InvalidLearningModeServiceConfiguration");

    /** Static value InvalidPolicyConfiguration for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_POLICY_CONFIGURATION = fromString("InvalidPolicyConfiguration");

    /** Static value InvalidPolicyContract for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_POLICY_CONTRACT = fromString("InvalidPolicyContract");

    /** Static value InvalidEvaluationContract for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_EVALUATION_CONTRACT = fromString("InvalidEvaluationContract");

    /** Static value DuplicateCustomPolicyNames for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode DUPLICATE_CUSTOM_POLICY_NAMES = fromString("DuplicateCustomPolicyNames");

    /** Static value NoLogsExistInDateRange for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode NO_LOGS_EXIST_IN_DATE_RANGE = fromString("NoLogsExistInDateRange");

    /** Static value LogsSizeExceedAllowedLimit for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode LOGS_SIZE_EXCEED_ALLOWED_LIMIT = fromString("LogsSizeExceedAllowedLimit");

    /** Static value InvalidRewardRequest for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_REWARD_REQUEST = fromString("InvalidRewardRequest");

    /** Static value InvalidEventIdToActivate for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_EVENT_ID_TO_ACTIVATE = fromString("InvalidEventIdToActivate");

    /** Static value InvalidRankRequest for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_RANK_REQUEST = fromString("InvalidRankRequest");

    /** Static value InvalidExportLogsRequest for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_EXPORT_LOGS_REQUEST = fromString("InvalidExportLogsRequest");

    /** Static value InvalidRequest for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_REQUEST = fromString("InvalidRequest");

    /** Static value InvalidContainer for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_CONTAINER = fromString("InvalidContainer");

    /** Static value InvalidModelMetadata for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_MODEL_METADATA = fromString("InvalidModelMetadata");

    /** Static value ApprenticeModeNeverTurnedOn for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode APPRENTICE_MODE_NEVER_TURNED_ON =
            fromString("ApprenticeModeNeverTurnedOn");

    /** Static value MissingAppId for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode MISSING_APP_ID = fromString("MissingAppId");

    /** Static value InvalidRewardWaitTime for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_REWARD_WAIT_TIME = fromString("InvalidRewardWaitTime");

    /** Static value InvalidLogRetentionDays for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_LOG_RETENTION_DAYS = fromString("InvalidLogRetentionDays");

    /** Static value InvalidMultiSlotApiAccess for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_MULTI_SLOT_API_ACCESS = fromString("InvalidMultiSlotApiAccess");

    /** Static value PayloadSizeExceeded for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode PAYLOAD_SIZE_EXCEEDED = fromString("PayloadSizeExceeded");

    /** Static value InvalidModelImportSignature for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_MODEL_IMPORT_SIGNATURE =
            fromString("InvalidModelImportSignature");

    /** Static value InvalidModelImportFormat for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_MODEL_IMPORT_FORMAT = fromString("InvalidModelImportFormat");

    /** Static value InvalidApiAccess for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode INVALID_API_ACCESS = fromString("InvalidApiAccess");

    /** Static value ModelFileAccessDenied for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode MODEL_FILE_ACCESS_DENIED = fromString("ModelFileAccessDenied");

    /** Static value ProblemTypeIncompatibleWithAutoOptimization for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode PROBLEM_TYPE_INCOMPATIBLE_WITH_AUTO_OPTIMIZATION =
            fromString("ProblemTypeIncompatibleWithAutoOptimization");

    /** Static value ResourceNotFound for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode RESOURCE_NOT_FOUND = fromString("ResourceNotFound");

    /** Static value FrontEndNotFound for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode FRONT_END_NOT_FOUND = fromString("FrontEndNotFound");

    /** Static value EvaluationNotFound for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode EVALUATION_NOT_FOUND = fromString("EvaluationNotFound");

    /** Static value LearningSettingsNotFound for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode LEARNING_SETTINGS_NOT_FOUND = fromString("LearningSettingsNotFound");

    /** Static value EvaluationModelNotFound for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode EVALUATION_MODEL_NOT_FOUND = fromString("EvaluationModelNotFound");

    /** Static value LogsPropertiesNotFound for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode LOGS_PROPERTIES_NOT_FOUND = fromString("LogsPropertiesNotFound");

    /** Static value ModelRankingError for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode MODEL_RANKING_ERROR = fromString("ModelRankingError");

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

    /** Static value RankNullResponse for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode RANK_NULL_RESPONSE = fromString("RankNullResponse");

    /** Static value UpdateConfigurationFailed for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode UPDATE_CONFIGURATION_FAILED = fromString("UpdateConfigurationFailed");

    /** Static value ModelResetFailed for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode MODEL_RESET_FAILED = fromString("ModelResetFailed");

    /** Static value ModelPublishFailed for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode MODEL_PUBLISH_FAILED = fromString("ModelPublishFailed");

    /** Static value ModelMetadataUpdateFailed for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode MODEL_METADATA_UPDATE_FAILED = fromString("ModelMetadataUpdateFailed");

    /** Static value OperationNotAllowed for PersonalizerErrorCode. */
    public static final PersonalizerErrorCode OPERATION_NOT_ALLOWED = fromString("OperationNotAllowed");

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

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