-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathOAIFiles_not_found.cpp
More file actions
190 lines (152 loc) · 5 KB
/
OAIFiles_not_found.cpp
File metadata and controls
190 lines (152 loc) · 5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/**
* GAMS Engine
* With GAMS Engine you can register and solve GAMS models. It has a namespace management system, so you can restrict your users to certain models.
*
* The version of the OpenAPI document: 26.01.08
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
#include "OAIFiles_not_found.h"
#include <QDebug>
#include <QJsonArray>
#include <QJsonDocument>
#include <QObject>
#include "OAIHelpers.h"
namespace OpenAPI {
OAIFiles_not_found::OAIFiles_not_found(QString json) {
this->initializeModel();
this->fromJson(json);
}
OAIFiles_not_found::OAIFiles_not_found() {
this->initializeModel();
}
OAIFiles_not_found::~OAIFiles_not_found() {}
void OAIFiles_not_found::initializeModel() {
m_filename_isSet = false;
m_filename_isValid = false;
m_hypercube_token_isSet = false;
m_hypercube_token_isValid = false;
m_message_isSet = false;
m_message_isValid = false;
m_token_isSet = false;
m_token_isValid = false;
}
void OAIFiles_not_found::fromJson(QString jsonString) {
QByteArray array(jsonString.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
}
void OAIFiles_not_found::fromJsonObject(QJsonObject json) {
m_filename_isValid = ::OpenAPI::fromJsonValue(m_filename, json[QString("filename")]);
m_filename_isSet = !json[QString("filename")].isNull() && m_filename_isValid;
m_hypercube_token_isValid = ::OpenAPI::fromJsonValue(m_hypercube_token, json[QString("hypercube_token")]);
m_hypercube_token_isSet = !json[QString("hypercube_token")].isNull() && m_hypercube_token_isValid;
m_message_isValid = ::OpenAPI::fromJsonValue(m_message, json[QString("message")]);
m_message_isSet = !json[QString("message")].isNull() && m_message_isValid;
m_token_isValid = ::OpenAPI::fromJsonValue(m_token, json[QString("token")]);
m_token_isSet = !json[QString("token")].isNull() && m_token_isValid;
}
QString OAIFiles_not_found::asJson() const {
QJsonObject obj = this->asJsonObject();
QJsonDocument doc(obj);
QByteArray bytes = doc.toJson();
return QString(bytes);
}
QJsonObject OAIFiles_not_found::asJsonObject() const {
QJsonObject obj;
if (m_filename.size() > 0) {
obj.insert(QString("filename"), ::OpenAPI::toJsonValue(m_filename));
}
if (m_hypercube_token.size() > 0) {
obj.insert(QString("hypercube_token"), ::OpenAPI::toJsonValue(m_hypercube_token));
}
if (m_message_isSet) {
obj.insert(QString("message"), ::OpenAPI::toJsonValue(m_message));
}
if (m_token.size() > 0) {
obj.insert(QString("token"), ::OpenAPI::toJsonValue(m_token));
}
return obj;
}
QList<QString> OAIFiles_not_found::getFilename() const {
return m_filename;
}
void OAIFiles_not_found::setFilename(const QList<QString> &filename) {
m_filename = filename;
m_filename_isSet = true;
}
bool OAIFiles_not_found::is_filename_Set() const{
return m_filename_isSet;
}
bool OAIFiles_not_found::is_filename_Valid() const{
return m_filename_isValid;
}
QList<QString> OAIFiles_not_found::getHypercubeToken() const {
return m_hypercube_token;
}
void OAIFiles_not_found::setHypercubeToken(const QList<QString> &hypercube_token) {
m_hypercube_token = hypercube_token;
m_hypercube_token_isSet = true;
}
bool OAIFiles_not_found::is_hypercube_token_Set() const{
return m_hypercube_token_isSet;
}
bool OAIFiles_not_found::is_hypercube_token_Valid() const{
return m_hypercube_token_isValid;
}
QString OAIFiles_not_found::getMessage() const {
return m_message;
}
void OAIFiles_not_found::setMessage(const QString &message) {
m_message = message;
m_message_isSet = true;
}
bool OAIFiles_not_found::is_message_Set() const{
return m_message_isSet;
}
bool OAIFiles_not_found::is_message_Valid() const{
return m_message_isValid;
}
QList<QString> OAIFiles_not_found::getToken() const {
return m_token;
}
void OAIFiles_not_found::setToken(const QList<QString> &token) {
m_token = token;
m_token_isSet = true;
}
bool OAIFiles_not_found::is_token_Set() const{
return m_token_isSet;
}
bool OAIFiles_not_found::is_token_Valid() const{
return m_token_isValid;
}
bool OAIFiles_not_found::isSet() const {
bool isObjectUpdated = false;
do {
if (m_filename.size() > 0) {
isObjectUpdated = true;
break;
}
if (m_hypercube_token.size() > 0) {
isObjectUpdated = true;
break;
}
if (m_message_isSet) {
isObjectUpdated = true;
break;
}
if (m_token.size() > 0) {
isObjectUpdated = true;
break;
}
} while (false);
return isObjectUpdated;
}
bool OAIFiles_not_found::isValid() const {
// only required properties are required for the object to be considered valid
return true;
}
} // namespace OpenAPI