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

package com.azure.resourcemanager.reservations.models;

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

/** Error code describing the reason that service is not able to process the incoming request. */
public final class ErrorResponseCode extends ExpandableStringEnum<ErrorResponseCode> {
    /** Static value NotSpecified for ErrorResponseCode. */
    public static final ErrorResponseCode NOT_SPECIFIED = fromString("NotSpecified");

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

    /** Static value ServerTimeout for ErrorResponseCode. */
    public static final ErrorResponseCode SERVER_TIMEOUT = fromString("ServerTimeout");

    /** Static value AuthorizationFailed for ErrorResponseCode. */
    public static final ErrorResponseCode AUTHORIZATION_FAILED = fromString("AuthorizationFailed");

    /** Static value BadRequest for ErrorResponseCode. */
    public static final ErrorResponseCode BAD_REQUEST = fromString("BadRequest");

    /** Static value ClientCertificateThumbprintNotSet for ErrorResponseCode. */
    public static final ErrorResponseCode CLIENT_CERTIFICATE_THUMBPRINT_NOT_SET =
        fromString("ClientCertificateThumbprintNotSet");

    /** Static value InvalidRequestContent for ErrorResponseCode. */
    public static final ErrorResponseCode INVALID_REQUEST_CONTENT = fromString("InvalidRequestContent");

    /** Static value OperationFailed for ErrorResponseCode. */
    public static final ErrorResponseCode OPERATION_FAILED = fromString("OperationFailed");

    /** Static value HttpMethodNotSupported for ErrorResponseCode. */
    public static final ErrorResponseCode HTTP_METHOD_NOT_SUPPORTED = fromString("HttpMethodNotSupported");

    /** Static value InvalidRequestUri for ErrorResponseCode. */
    public static final ErrorResponseCode INVALID_REQUEST_URI = fromString("InvalidRequestUri");

    /** Static value MissingTenantId for ErrorResponseCode. */
    public static final ErrorResponseCode MISSING_TENANT_ID = fromString("MissingTenantId");

    /** Static value InvalidTenantId for ErrorResponseCode. */
    public static final ErrorResponseCode INVALID_TENANT_ID = fromString("InvalidTenantId");

    /** Static value InvalidReservationOrderId for ErrorResponseCode. */
    public static final ErrorResponseCode INVALID_RESERVATION_ORDER_ID = fromString("InvalidReservationOrderId");

    /** Static value InvalidReservationId for ErrorResponseCode. */
    public static final ErrorResponseCode INVALID_RESERVATION_ID = fromString("InvalidReservationId");

    /** Static value ReservationIdNotInReservationOrder for ErrorResponseCode. */
    public static final ErrorResponseCode RESERVATION_ID_NOT_IN_RESERVATION_ORDER =
        fromString("ReservationIdNotInReservationOrder");

    /** Static value ReservationOrderNotFound for ErrorResponseCode. */
    public static final ErrorResponseCode RESERVATION_ORDER_NOT_FOUND = fromString("ReservationOrderNotFound");

    /** Static value InvalidSubscriptionId for ErrorResponseCode. */
    public static final ErrorResponseCode INVALID_SUBSCRIPTION_ID = fromString("InvalidSubscriptionId");

    /** Static value InvalidAccessToken for ErrorResponseCode. */
    public static final ErrorResponseCode INVALID_ACCESS_TOKEN = fromString("InvalidAccessToken");

    /** Static value InvalidLocationId for ErrorResponseCode. */
    public static final ErrorResponseCode INVALID_LOCATION_ID = fromString("InvalidLocationId");

    /** Static value UnauthenticatedRequestsThrottled for ErrorResponseCode. */
    public static final ErrorResponseCode UNAUTHENTICATED_REQUESTS_THROTTLED =
        fromString("UnauthenticatedRequestsThrottled");

    /** Static value InvalidHealthCheckType for ErrorResponseCode. */
    public static final ErrorResponseCode INVALID_HEALTH_CHECK_TYPE = fromString("InvalidHealthCheckType");

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

    /** Static value BillingScopeIdCannotBeChanged for ErrorResponseCode. */
    public static final ErrorResponseCode BILLING_SCOPE_ID_CANNOT_BE_CHANGED =
        fromString("BillingScopeIdCannotBeChanged");

    /** Static value AppliedScopesNotAssociatedWithCommerceAccount for ErrorResponseCode. */
    public static final ErrorResponseCode APPLIED_SCOPES_NOT_ASSOCIATED_WITH_COMMERCE_ACCOUNT =
        fromString("AppliedScopesNotAssociatedWithCommerceAccount");

    /** Static value PatchValuesSameAsExisting for ErrorResponseCode. */
    public static final ErrorResponseCode PATCH_VALUES_SAME_AS_EXISTING = fromString("PatchValuesSameAsExisting");

    /** Static value RoleAssignmentCreationFailed for ErrorResponseCode. */
    public static final ErrorResponseCode ROLE_ASSIGNMENT_CREATION_FAILED = fromString("RoleAssignmentCreationFailed");

    /** Static value ReservationOrderCreationFailed for ErrorResponseCode. */
    public static final ErrorResponseCode RESERVATION_ORDER_CREATION_FAILED =
        fromString("ReservationOrderCreationFailed");

    /** Static value ReservationOrderNotEnabled for ErrorResponseCode. */
    public static final ErrorResponseCode RESERVATION_ORDER_NOT_ENABLED = fromString("ReservationOrderNotEnabled");

    /** Static value CapacityUpdateScopesFailed for ErrorResponseCode. */
    public static final ErrorResponseCode CAPACITY_UPDATE_SCOPES_FAILED = fromString("CapacityUpdateScopesFailed");

    /** Static value UnsupportedReservationTerm for ErrorResponseCode. */
    public static final ErrorResponseCode UNSUPPORTED_RESERVATION_TERM = fromString("UnsupportedReservationTerm");

    /** Static value ReservationOrderIdAlreadyExists for ErrorResponseCode. */
    public static final ErrorResponseCode RESERVATION_ORDER_ID_ALREADY_EXISTS =
        fromString("ReservationOrderIdAlreadyExists");

    /** Static value RiskCheckFailed for ErrorResponseCode. */
    public static final ErrorResponseCode RISK_CHECK_FAILED = fromString("RiskCheckFailed");

    /** Static value CreateQuoteFailed for ErrorResponseCode. */
    public static final ErrorResponseCode CREATE_QUOTE_FAILED = fromString("CreateQuoteFailed");

    /** Static value ActivateQuoteFailed for ErrorResponseCode. */
    public static final ErrorResponseCode ACTIVATE_QUOTE_FAILED = fromString("ActivateQuoteFailed");

    /** Static value NonsupportedAccountId for ErrorResponseCode. */
    public static final ErrorResponseCode NONSUPPORTED_ACCOUNT_ID = fromString("NonsupportedAccountId");

    /** Static value PaymentInstrumentNotFound for ErrorResponseCode. */
    public static final ErrorResponseCode PAYMENT_INSTRUMENT_NOT_FOUND = fromString("PaymentInstrumentNotFound");

    /** Static value MissingAppliedScopesForSingle for ErrorResponseCode. */
    public static final ErrorResponseCode MISSING_APPLIED_SCOPES_FOR_SINGLE =
        fromString("MissingAppliedScopesForSingle");

    /** Static value NoValidReservationsToReRate for ErrorResponseCode. */
    public static final ErrorResponseCode NO_VALID_RESERVATIONS_TO_RE_RATE = fromString("NoValidReservationsToReRate");

    /** Static value ReRateOnlyAllowedForEA for ErrorResponseCode. */
    public static final ErrorResponseCode RE_RATE_ONLY_ALLOWED_FOR_EA = fromString("ReRateOnlyAllowedForEA");

    /** Static value OperationCannotBePerformedInCurrentState for ErrorResponseCode. */
    public static final ErrorResponseCode OPERATION_CANNOT_BE_PERFORMED_IN_CURRENT_STATE =
        fromString("OperationCannotBePerformedInCurrentState");

    /** Static value InvalidSingleAppliedScopesCount for ErrorResponseCode. */
    public static final ErrorResponseCode INVALID_SINGLE_APPLIED_SCOPES_COUNT =
        fromString("InvalidSingleAppliedScopesCount");

    /** Static value InvalidFulfillmentRequestParameters for ErrorResponseCode. */
    public static final ErrorResponseCode INVALID_FULFILLMENT_REQUEST_PARAMETERS =
        fromString("InvalidFulfillmentRequestParameters");

    /** Static value NotSupportedCountry for ErrorResponseCode. */
    public static final ErrorResponseCode NOT_SUPPORTED_COUNTRY = fromString("NotSupportedCountry");

    /** Static value InvalidRefundQuantity for ErrorResponseCode. */
    public static final ErrorResponseCode INVALID_REFUND_QUANTITY = fromString("InvalidRefundQuantity");

    /** Static value PurchaseError for ErrorResponseCode. */
    public static final ErrorResponseCode PURCHASE_ERROR = fromString("PurchaseError");

    /** Static value BillingCustomerInputError for ErrorResponseCode. */
    public static final ErrorResponseCode BILLING_CUSTOMER_INPUT_ERROR = fromString("BillingCustomerInputError");

    /** Static value BillingPaymentInstrumentSoftError for ErrorResponseCode. */
    public static final ErrorResponseCode BILLING_PAYMENT_INSTRUMENT_SOFT_ERROR =
        fromString("BillingPaymentInstrumentSoftError");

    /** Static value BillingPaymentInstrumentHardError for ErrorResponseCode. */
    public static final ErrorResponseCode BILLING_PAYMENT_INSTRUMENT_HARD_ERROR =
        fromString("BillingPaymentInstrumentHardError");

    /** Static value BillingTransientError for ErrorResponseCode. */
    public static final ErrorResponseCode BILLING_TRANSIENT_ERROR = fromString("BillingTransientError");

    /** Static value BillingError for ErrorResponseCode. */
    public static final ErrorResponseCode BILLING_ERROR = fromString("BillingError");

    /** Static value FulfillmentConfigurationError for ErrorResponseCode. */
    public static final ErrorResponseCode FULFILLMENT_CONFIGURATION_ERROR = fromString("FulfillmentConfigurationError");

    /** Static value FulfillmentOutOfStockError for ErrorResponseCode. */
    public static final ErrorResponseCode FULFILLMENT_OUT_OF_STOCK_ERROR = fromString("FulfillmentOutOfStockError");

    /** Static value FulfillmentTransientError for ErrorResponseCode. */
    public static final ErrorResponseCode FULFILLMENT_TRANSIENT_ERROR = fromString("FulfillmentTransientError");

    /** Static value FulfillmentError for ErrorResponseCode. */
    public static final ErrorResponseCode FULFILLMENT_ERROR = fromString("FulfillmentError");

    /** Static value CalculatePriceFailed for ErrorResponseCode. */
    public static final ErrorResponseCode CALCULATE_PRICE_FAILED = fromString("CalculatePriceFailed");

    /** Static value AppliedScopesSameAsExisting for ErrorResponseCode. */
    public static final ErrorResponseCode APPLIED_SCOPES_SAME_AS_EXISTING = fromString("AppliedScopesSameAsExisting");

    /** Static value SelfServiceRefundNotSupported for ErrorResponseCode. */
    public static final ErrorResponseCode SELF_SERVICE_REFUND_NOT_SUPPORTED =
        fromString("SelfServiceRefundNotSupported");

    /** Static value RefundLimitExceeded for ErrorResponseCode. */
    public static final ErrorResponseCode REFUND_LIMIT_EXCEEDED = fromString("RefundLimitExceeded");

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

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

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