| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- /*
- * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #ifndef ALIBABACLOUD_MSE_MODEL_ADDTESTRESULT_H_
- #define ALIBABACLOUD_MSE_MODEL_ADDTESTRESULT_H_
- #include <string>
- #include <vector>
- #include <utility>
- #include <alibabacloud/core/ServiceResult.h>
- #include <alibabacloud/mse/MseExport.h>
- namespace AlibabaCloud
- {
- namespace Mse
- {
- namespace Model
- {
- class ALIBABACLOUD_MSE_EXPORT AddTestResult : public ServiceResult
- {
- public:
- struct Data
- {
- struct Gateways
- {
- struct SlbItem
- {
- std::string slbId;
- std::string slbPort;
- std::string statusDesc;
- std::string type;
- std::string gatewaySlbMode;
- std::string slbIp;
- std::string gatewaySlbStatus;
- std::string slbSpec;
- };
- struct InternetSlbItem
- {
- std::string slbId;
- std::string slbPort;
- std::string statusDesc;
- std::string type;
- std::string gatewaySlbMode;
- std::string slbIp;
- std::string gatewaySlbStatus;
- std::string slbSpec;
- std::string internetNetworkFlow;
- };
- std::string currentVersion;
- std::vector<Gateways::SlbItem> slb;
- std::string gmtModified;
- std::string vswitch2;
- std::string gatewayType;
- bool upgrade;
- std::string name;
- std::string statusDesc;
- bool armsOn;
- std::vector<Gateways::InternetSlbItem> internetSlb;
- int status;
- bool mustUpgrade;
- std::string instanceId;
- bool ahasOn;
- int replica;
- std::string endDate;
- std::string gatewayUniqueId;
- std::string gmtCreate;
- std::string latestVersion;
- std::string chargeType;
- std::string region;
- std::string primaryUser;
- long id;
- std::string tag;
- std::string spec;
- };
- int pageSize;
- int pageNumber;
- long totalSize;
- std::vector<Gateways> result;
- };
- AddTestResult();
- explicit AddTestResult(const std::string &payload);
- ~AddTestResult();
- std::string getMessage()const;
- int getHttpStatusCode()const;
- Data getData()const;
- int getCode()const;
- bool getSuccess()const;
- protected:
- void parse(const std::string &payload);
- private:
- std::string message_;
- int httpStatusCode_;
- Data data_;
- int code_;
- bool success_;
- };
- }
- }
- }
- #endif // !ALIBABACLOUD_MSE_MODEL_ADDTESTRESULT_H_
|