/**
 * OpenAPI Generated Petstore Client
 *
 * This is a sample of Petstore application.
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/*
 * petstatus.h
 *
 * 
 */

#ifndef PETSTATUS_H
#define PETSTATUS_H

#include "cmakegeneratedclientexports.h"
#include "qoaienum.h"



namespace QtOpenAPI {

class CMAKEGENERATEDCLIENT_EXPORT PetStatus : public QtOpenApiCommon::QOAIEnum {
    Q_GADGET

public:
    PetStatus();
    Q_IMPLICIT PetStatus(const QString &json);
    ~PetStatus() override;

    QString asJson() const override;
    QJsonValue asJsonValue() const override;
    void fromJsonValue(const QJsonValue &json) override;
    void fromJson(const QString &jsonString) override;

    enum class ePetStatus {
        INVALID_VALUE_OPENAPI_GENERATED = 0,
        AVAILABLE,
        PENDING,
        SOLD
    };
    PetStatus::ePetStatus getValue() const;
    void setValue(PetStatus::ePetStatus value);
    bool isSet() const override;
    bool isValid() const override;

private:
    void initializeModel();
    ePetStatus m_value;
    bool m_valueIsSet;
    bool m_valueIsValid;
};

} // namespace QtOpenAPI

Q_DECLARE_METATYPE(QtOpenAPI::PetStatus)

#endif // PETSTATUS_H
