| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- /*
- * 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.
- */
- #include <alibabacloud/emr/model/RefreshBackupListResult.h>
- #include <json/json.h>
- using namespace AlibabaCloud::Emr;
- using namespace AlibabaCloud::Emr::Model;
- RefreshBackupListResult::RefreshBackupListResult() :
- ServiceResult()
- {}
- RefreshBackupListResult::RefreshBackupListResult(const std::string &payload) :
- ServiceResult()
- {
- parse(payload);
- }
- RefreshBackupListResult::~RefreshBackupListResult()
- {}
- void RefreshBackupListResult::parse(const std::string &payload)
- {
- Json::Reader reader;
- Json::Value value;
- reader.parse(payload, value);
- setRequestId(value["RequestId"].asString());
- if(!value["BizId"].isNull())
- bizId_ = value["BizId"].asString();
- if(!value["DataSourceId"].isNull())
- dataSourceId_ = std::stol(value["DataSourceId"].asString());
- if(!value["TaskType"].isNull())
- taskType_ = value["TaskType"].asString();
- if(!value["TaskStatus"].isNull())
- taskStatus_ = value["TaskStatus"].asString();
- if(!value["StartTime"].isNull())
- startTime_ = std::stol(value["StartTime"].asString());
- if(!value["EndTime"].isNull())
- endTime_ = std::stol(value["EndTime"].asString());
- if(!value["TaskDetail"].isNull())
- taskDetail_ = value["TaskDetail"].asString();
- if(!value["TaskResultDetail"].isNull())
- taskResultDetail_ = value["TaskResultDetail"].asString();
- if(!value["TaskProcess"].isNull())
- taskProcess_ = std::stoi(value["TaskProcess"].asString());
- if(!value["TriggerUser"].isNull())
- triggerUser_ = value["TriggerUser"].asString();
- if(!value["TriggerType"].isNull())
- triggerType_ = value["TriggerType"].asString();
- if(!value["GmtCreate"].isNull())
- gmtCreate_ = std::stol(value["GmtCreate"].asString());
- if(!value["GmtModified"].isNull())
- gmtModified_ = std::stol(value["GmtModified"].asString());
- if(!value["ClusterBizId"].isNull())
- clusterBizId_ = value["ClusterBizId"].asString();
- if(!value["HostName"].isNull())
- hostName_ = value["HostName"].asString();
- if(!value["EcmTaskId"].isNull())
- ecmTaskId_ = std::stol(value["EcmTaskId"].asString());
- }
- std::string RefreshBackupListResult::getTriggerType()const
- {
- return triggerType_;
- }
- long RefreshBackupListResult::getEndTime()const
- {
- return endTime_;
- }
- long RefreshBackupListResult::getStartTime()const
- {
- return startTime_;
- }
- long RefreshBackupListResult::getGmtModified()const
- {
- return gmtModified_;
- }
- std::string RefreshBackupListResult::getTaskStatus()const
- {
- return taskStatus_;
- }
- std::string RefreshBackupListResult::getTaskDetail()const
- {
- return taskDetail_;
- }
- std::string RefreshBackupListResult::getTriggerUser()const
- {
- return triggerUser_;
- }
- long RefreshBackupListResult::getGmtCreate()const
- {
- return gmtCreate_;
- }
- int RefreshBackupListResult::getTaskProcess()const
- {
- return taskProcess_;
- }
- std::string RefreshBackupListResult::getClusterBizId()const
- {
- return clusterBizId_;
- }
- std::string RefreshBackupListResult::getTaskType()const
- {
- return taskType_;
- }
- std::string RefreshBackupListResult::getBizId()const
- {
- return bizId_;
- }
- long RefreshBackupListResult::getDataSourceId()const
- {
- return dataSourceId_;
- }
- std::string RefreshBackupListResult::getHostName()const
- {
- return hostName_;
- }
- long RefreshBackupListResult::getEcmTaskId()const
- {
- return ecmTaskId_;
- }
- std::string RefreshBackupListResult::getTaskResultDetail()const
- {
- return taskResultDetail_;
- }
|