/**
 * linglong仓库
 * 玲珑仓库接口
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: wurongjie@deepin.org
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/*
 * Schema_RepoInfo.h
 *
 * 
 */

#ifndef Schema_RepoInfo_H
#define Schema_RepoInfo_H

#include <QJsonObject>

#include <QList>
#include <QString>

#include "Enum.h"
#include "Object.h"

namespace linglong {
namespace api {
namespace client {

class Schema_RepoInfo : public Object {
public:
    Schema_RepoInfo();
    Schema_RepoInfo(QString json);
    ~Schema_RepoInfo() override;

    QString asJson() const override;
    QJsonObject asJsonObject() const override;
    void fromJsonObject(QJsonObject json) override;
    void fromJson(QString jsonString) override;

    QString getMode() const;
    void setMode(const QString &mode);
    bool is_mode_Set() const;
    bool is_mode_Valid() const;

    QString getName() const;
    void setName(const QString &name);
    bool is_name_Set() const;
    bool is_name_Valid() const;

    QList<QString> getRefs() const;
    void setRefs(const QList<QString> &refs);
    bool is_refs_Set() const;
    bool is_refs_Valid() const;

    virtual bool isSet() const override;
    virtual bool isValid() const override;

private:
    void initializeModel();

    QString m_mode;
    bool m_mode_isSet;
    bool m_mode_isValid;

    QString m_name;
    bool m_name_isSet;
    bool m_name_isValid;

    QList<QString> m_refs;
    bool m_refs_isSet;
    bool m_refs_isValid;
};

} // namespace linglong
} // namespace api
} // namespace client

Q_DECLARE_METATYPE(linglong::api::client::Schema_RepoInfo)

#endif // Schema_RepoInfo_H
