Generate SDK by new Generator
This commit is contained in:
@@ -35,13 +35,9 @@ AccessKeyGetResult::~AccessKeyGetResult()
|
||||
|
||||
void AccessKeyGetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
|
||||
@@ -35,13 +35,9 @@ AddMyGroupInstancesResult::~AddMyGroupInstancesResult()
|
||||
|
||||
void AddMyGroupInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -25,17 +25,6 @@ ApplyMonitoringTemplateRequest::ApplyMonitoringTemplateRequest() :
|
||||
ApplyMonitoringTemplateRequest::~ApplyMonitoringTemplateRequest()
|
||||
{}
|
||||
|
||||
long ApplyMonitoringTemplateRequest::getEnableStartTime()const
|
||||
{
|
||||
return enableStartTime_;
|
||||
}
|
||||
|
||||
void ApplyMonitoringTemplateRequest::setEnableStartTime(long enableStartTime)
|
||||
{
|
||||
enableStartTime_ = enableStartTime;
|
||||
setCoreParameter("EnableStartTime", std::to_string(enableStartTime));
|
||||
}
|
||||
|
||||
std::string ApplyMonitoringTemplateRequest::getApplyMode()const
|
||||
{
|
||||
return applyMode_;
|
||||
@@ -102,6 +91,17 @@ void ApplyMonitoringTemplateRequest::setNotifyLevel(long notifyLevel)
|
||||
setCoreParameter("NotifyLevel", std::to_string(notifyLevel));
|
||||
}
|
||||
|
||||
long ApplyMonitoringTemplateRequest::getEnableStartTime()const
|
||||
{
|
||||
return enableStartTime_;
|
||||
}
|
||||
|
||||
void ApplyMonitoringTemplateRequest::setEnableStartTime(long enableStartTime)
|
||||
{
|
||||
enableStartTime_ = enableStartTime;
|
||||
setCoreParameter("EnableStartTime", std::to_string(enableStartTime));
|
||||
}
|
||||
|
||||
long ApplyMonitoringTemplateRequest::getSilenceTime()const
|
||||
{
|
||||
return silenceTime_;
|
||||
|
||||
@@ -35,13 +35,9 @@ ApplyMonitoringTemplateResult::~ApplyMonitoringTemplateResult()
|
||||
|
||||
void ApplyMonitoringTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceNode = value["Resource"];
|
||||
if(!resourceNode["GroupId"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ ApplyTemplateRequest::ApplyTemplateRequest() :
|
||||
ApplyTemplateRequest::~ApplyTemplateRequest()
|
||||
{}
|
||||
|
||||
long ApplyTemplateRequest::getEnableStartTime()const
|
||||
{
|
||||
return enableStartTime_;
|
||||
}
|
||||
|
||||
void ApplyTemplateRequest::setEnableStartTime(long enableStartTime)
|
||||
{
|
||||
enableStartTime_ = enableStartTime;
|
||||
setCoreParameter("EnableStartTime", std::to_string(enableStartTime));
|
||||
}
|
||||
|
||||
std::string ApplyTemplateRequest::getApplyMode()const
|
||||
{
|
||||
return applyMode_;
|
||||
@@ -91,6 +80,17 @@ void ApplyTemplateRequest::setNotifyLevel(long notifyLevel)
|
||||
setCoreParameter("NotifyLevel", std::to_string(notifyLevel));
|
||||
}
|
||||
|
||||
long ApplyTemplateRequest::getEnableStartTime()const
|
||||
{
|
||||
return enableStartTime_;
|
||||
}
|
||||
|
||||
void ApplyTemplateRequest::setEnableStartTime(long enableStartTime)
|
||||
{
|
||||
enableStartTime_ = enableStartTime;
|
||||
setCoreParameter("EnableStartTime", std::to_string(enableStartTime));
|
||||
}
|
||||
|
||||
long ApplyTemplateRequest::getSilenceTime()const
|
||||
{
|
||||
return silenceTime_;
|
||||
|
||||
@@ -35,13 +35,9 @@ ApplyTemplateResult::~ApplyTemplateResult()
|
||||
|
||||
void ApplyTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceNode = value["Resource"];
|
||||
auto allCreateAlertResults = value["CreateAlertResults"]["AlertResult"];
|
||||
|
||||
@@ -25,17 +25,6 @@ CreateAlarmRequest::CreateAlarmRequest() :
|
||||
CreateAlarmRequest::~CreateAlarmRequest()
|
||||
{}
|
||||
|
||||
int CreateAlarmRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateAlarmRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getWebhook()const
|
||||
{
|
||||
return webhook_;
|
||||
@@ -47,39 +36,6 @@ void CreateAlarmRequest::setWebhook(const std::string& webhook)
|
||||
setCoreParameter("Webhook", webhook);
|
||||
}
|
||||
|
||||
bool CreateAlarmRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateAlarmRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setCoreParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getContactGroups()const
|
||||
{
|
||||
return contactGroups_;
|
||||
}
|
||||
|
||||
void CreateAlarmRequest::setContactGroups(const std::string& contactGroups)
|
||||
{
|
||||
contactGroups_ = contactGroups;
|
||||
setCoreParameter("ContactGroups", contactGroups);
|
||||
}
|
||||
|
||||
int CreateAlarmRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void CreateAlarmRequest::setEndTime(int endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getThreshold()const
|
||||
{
|
||||
return threshold_;
|
||||
@@ -102,28 +58,6 @@ void CreateAlarmRequest::setStartTime(int startTime)
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateAlarmRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void CreateAlarmRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
int CreateAlarmRequest::getEvaluationCount()const
|
||||
{
|
||||
return evaluationCount_;
|
||||
@@ -168,6 +102,72 @@ void CreateAlarmRequest::setNotifyType(int notifyType)
|
||||
setCoreParameter("NotifyType", std::to_string(notifyType));
|
||||
}
|
||||
|
||||
int CreateAlarmRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateAlarmRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
bool CreateAlarmRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateAlarmRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setCoreParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getContactGroups()const
|
||||
{
|
||||
return contactGroups_;
|
||||
}
|
||||
|
||||
void CreateAlarmRequest::setContactGroups(const std::string& contactGroups)
|
||||
{
|
||||
contactGroups_ = contactGroups;
|
||||
setCoreParameter("ContactGroups", contactGroups);
|
||||
}
|
||||
|
||||
int CreateAlarmRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void CreateAlarmRequest::setEndTime(int endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateAlarmRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void CreateAlarmRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getComparisonOperator()const
|
||||
{
|
||||
return comparisonOperator_;
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateAlarmResult::~CreateAlarmResult()
|
||||
|
||||
void CreateAlarmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateMonitoringTemplateResult::~CreateMonitoringTemplateResult()
|
||||
|
||||
void CreateMonitoringTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateMyGroupAlertBatchResult::~CreateMyGroupAlertBatchResult()
|
||||
|
||||
void CreateMyGroupAlertBatchResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResources = value["Resources"]["AlertResult"];
|
||||
for (auto value : allResources)
|
||||
|
||||
@@ -36,17 +36,6 @@ void CreateMyGroupsRequest::setContactGroups(const std::string& contactGroups)
|
||||
setCoreParameter("ContactGroups", contactGroups);
|
||||
}
|
||||
|
||||
std::string CreateMyGroupsRequest::getOptions()const
|
||||
{
|
||||
return options_;
|
||||
}
|
||||
|
||||
void CreateMyGroupsRequest::setOptions(const std::string& options)
|
||||
{
|
||||
options_ = options;
|
||||
setCoreParameter("Options", options);
|
||||
}
|
||||
|
||||
std::string CreateMyGroupsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
@@ -58,17 +47,6 @@ void CreateMyGroupsRequest::setType(const std::string& type)
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
long CreateMyGroupsRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void CreateMyGroupsRequest::setServiceId(long serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setCoreParameter("ServiceId", std::to_string(serviceId));
|
||||
}
|
||||
|
||||
std::string CreateMyGroupsRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
@@ -80,6 +58,28 @@ void CreateMyGroupsRequest::setGroupName(const std::string& groupName)
|
||||
setCoreParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
std::string CreateMyGroupsRequest::getOptions()const
|
||||
{
|
||||
return options_;
|
||||
}
|
||||
|
||||
void CreateMyGroupsRequest::setOptions(const std::string& options)
|
||||
{
|
||||
options_ = options;
|
||||
setCoreParameter("Options", options);
|
||||
}
|
||||
|
||||
long CreateMyGroupsRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void CreateMyGroupsRequest::setServiceId(long serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setCoreParameter("ServiceId", std::to_string(serviceId));
|
||||
}
|
||||
|
||||
std::string CreateMyGroupsRequest::getBindUrl()const
|
||||
{
|
||||
return bindUrl_;
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateMyGroupsResult::~CreateMyGroupsResult()
|
||||
|
||||
void CreateMyGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -80,17 +80,6 @@ void CreateNotifyPolicyRequest::setStartTime(long startTime)
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string CreateNotifyPolicyRequest::getDimensions()const
|
||||
{
|
||||
return dimensions_;
|
||||
}
|
||||
|
||||
void CreateNotifyPolicyRequest::setDimensions(const std::string& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
setCoreParameter("Dimensions", dimensions);
|
||||
}
|
||||
|
||||
std::string CreateNotifyPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -102,3 +91,14 @@ void CreateNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateNotifyPolicyRequest::getDimensions()const
|
||||
{
|
||||
return dimensions_;
|
||||
}
|
||||
|
||||
void CreateNotifyPolicyRequest::setDimensions(const std::string& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
setCoreParameter("Dimensions", dimensions);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateNotifyPolicyResult::~CreateNotifyPolicyResult()
|
||||
|
||||
void CreateNotifyPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -25,48 +25,15 @@ CreateTaskRequest::CreateTaskRequest() :
|
||||
CreateTaskRequest::~CreateTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateTaskRequest::getCaller()const
|
||||
std::string CreateTaskRequest::getTaskName()const
|
||||
{
|
||||
return caller_;
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void CreateTaskRequest::setCaller(const std::string& caller)
|
||||
void CreateTaskRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
caller_ = caller;
|
||||
setCoreParameter("Caller", caller);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getAddress()const
|
||||
{
|
||||
return address_;
|
||||
}
|
||||
|
||||
void CreateTaskRequest::setAddress(const std::string& address)
|
||||
{
|
||||
address_ = address;
|
||||
setCoreParameter("Address", address);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
void CreateTaskRequest::setTaskType(const std::string& taskType)
|
||||
{
|
||||
taskType_ = taskType;
|
||||
setCoreParameter("TaskType", taskType);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getIspCity()const
|
||||
{
|
||||
return ispCity_;
|
||||
}
|
||||
|
||||
void CreateTaskRequest::setIspCity(const std::string& ispCity)
|
||||
{
|
||||
ispCity_ = ispCity;
|
||||
setCoreParameter("IspCity", ispCity);
|
||||
taskName_ = taskName;
|
||||
setCoreParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getAlertIds()const
|
||||
@@ -91,15 +58,48 @@ void CreateTaskRequest::setOptions(const std::string& options)
|
||||
setCoreParameter("Options", options);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getTaskName()const
|
||||
std::string CreateTaskRequest::getAddress()const
|
||||
{
|
||||
return taskName_;
|
||||
return address_;
|
||||
}
|
||||
|
||||
void CreateTaskRequest::setTaskName(const std::string& taskName)
|
||||
void CreateTaskRequest::setAddress(const std::string& address)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setCoreParameter("TaskName", taskName);
|
||||
address_ = address;
|
||||
setCoreParameter("Address", address);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
void CreateTaskRequest::setTaskType(const std::string& taskType)
|
||||
{
|
||||
taskType_ = taskType;
|
||||
setCoreParameter("TaskType", taskType);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getCaller()const
|
||||
{
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void CreateTaskRequest::setCaller(const std::string& caller)
|
||||
{
|
||||
caller_ = caller;
|
||||
setCoreParameter("Caller", caller);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getIspCity()const
|
||||
{
|
||||
return ispCity_;
|
||||
}
|
||||
|
||||
void CreateTaskRequest::setIspCity(const std::string& ispCity)
|
||||
{
|
||||
ispCity_ = ispCity;
|
||||
setCoreParameter("IspCity", ispCity);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getInterval()const
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateTaskResult::~CreateTaskResult()
|
||||
|
||||
void CreateTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteAlarmResult::~DeleteAlarmResult()
|
||||
|
||||
void DeleteAlarmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -36,17 +36,6 @@ void DeleteCustomMetricRequest::setGroupId(const std::string& groupId)
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DeleteCustomMetricRequest::getMetricName()const
|
||||
{
|
||||
return metricName_;
|
||||
}
|
||||
|
||||
void DeleteCustomMetricRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setCoreParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DeleteCustomMetricRequest::getUUID()const
|
||||
{
|
||||
return uUID_;
|
||||
@@ -58,6 +47,17 @@ void DeleteCustomMetricRequest::setUUID(const std::string& uUID)
|
||||
setCoreParameter("UUID", uUID);
|
||||
}
|
||||
|
||||
std::string DeleteCustomMetricRequest::getMetricName()const
|
||||
{
|
||||
return metricName_;
|
||||
}
|
||||
|
||||
void DeleteCustomMetricRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setCoreParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DeleteCustomMetricRequest::getMd5()const
|
||||
{
|
||||
return md5_;
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteCustomMetricResult::~DeleteCustomMetricResult()
|
||||
|
||||
void DeleteCustomMetricResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -25,6 +25,17 @@ DeleteEventRuleRequest::DeleteEventRuleRequest() :
|
||||
DeleteEventRuleRequest::~DeleteEventRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteEventRuleRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DeleteEventRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::vector<std::string> DeleteEventRuleRequest::getRuleNames()const
|
||||
{
|
||||
return ruleNames_;
|
||||
@@ -37,14 +48,3 @@ void DeleteEventRuleRequest::setRuleNames(const std::vector<std::string>& ruleNa
|
||||
setCoreParameter("RuleNames."+ std::to_string(i), ruleNames.at(i));
|
||||
}
|
||||
|
||||
std::string DeleteEventRuleRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DeleteEventRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteEventRuleResult::~DeleteEventRuleResult()
|
||||
|
||||
void DeleteEventRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -25,6 +25,17 @@ DeleteEventTargetsRequest::DeleteEventTargetsRequest() :
|
||||
DeleteEventTargetsRequest::~DeleteEventTargetsRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteEventTargetsRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DeleteEventTargetsRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::vector<std::string> DeleteEventTargetsRequest::getIds()const
|
||||
{
|
||||
return ids_;
|
||||
@@ -37,14 +48,3 @@ void DeleteEventTargetsRequest::setIds(const std::vector<std::string>& ids)
|
||||
setCoreParameter("Ids."+ std::to_string(i), ids.at(i));
|
||||
}
|
||||
|
||||
std::string DeleteEventTargetsRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DeleteEventTargetsRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteEventTargetsResult::~DeleteEventTargetsResult()
|
||||
|
||||
void DeleteEventTargetsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteGroupDynamicRuleResult::~DeleteGroupDynamicRuleResult()
|
||||
|
||||
void DeleteGroupDynamicRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteMonitoringTemplateResult::~DeleteMonitoringTemplateResult()
|
||||
|
||||
void DeleteMonitoringTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceNode = value["Resource"];
|
||||
if(!resourceNode["Name"].isNull())
|
||||
|
||||
@@ -25,6 +25,17 @@ DeleteMyGroupInstancesRequest::DeleteMyGroupInstancesRequest() :
|
||||
DeleteMyGroupInstancesRequest::~DeleteMyGroupInstancesRequest()
|
||||
{}
|
||||
|
||||
long DeleteMyGroupInstancesRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DeleteMyGroupInstancesRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string DeleteMyGroupInstancesRequest::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
@@ -47,17 +58,6 @@ void DeleteMyGroupInstancesRequest::setInstanceIdList(const std::string& instanc
|
||||
setCoreParameter("InstanceIdList", instanceIdList);
|
||||
}
|
||||
|
||||
long DeleteMyGroupInstancesRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DeleteMyGroupInstancesRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string DeleteMyGroupInstancesRequest::getCategory()const
|
||||
{
|
||||
return category_;
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteMyGroupInstancesResult::~DeleteMyGroupInstancesResult()
|
||||
|
||||
void DeleteMyGroupInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteMyGroupsResult::~DeleteMyGroupsResult()
|
||||
|
||||
void DeleteMyGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto groupNode = value["Group"];
|
||||
if(!groupNode["GroupId"].isNull())
|
||||
|
||||
@@ -58,6 +58,17 @@ void DeleteNotifyPolicyRequest::setGroupId(const std::string& groupId)
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DeleteNotifyPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteNotifyPolicyRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
@@ -80,14 +91,3 @@ void DeleteNotifyPolicyRequest::setDimensions(const std::string& dimensions)
|
||||
setCoreParameter("Dimensions", dimensions);
|
||||
}
|
||||
|
||||
std::string DeleteNotifyPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteNotifyPolicyResult::~DeleteNotifyPolicyResult()
|
||||
|
||||
void DeleteNotifyPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteTasksResult::~DeleteTasksResult()
|
||||
|
||||
void DeleteTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -36,28 +36,6 @@ void DescribeAlarmHistoryRequest::setAlertName(const std::string& alertName)
|
||||
setCoreParameter("AlertName", alertName);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeAlarmHistoryRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAlarmHistoryRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
@@ -80,17 +58,6 @@ void DescribeAlarmHistoryRequest::setStartTime(const std::string& startTime)
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
bool DescribeAlarmHistoryRequest::getAscending()const
|
||||
{
|
||||
return ascending_;
|
||||
}
|
||||
|
||||
void DescribeAlarmHistoryRequest::setAscending(bool ascending)
|
||||
{
|
||||
ascending_ = ascending;
|
||||
setCoreParameter("Ascending", ascending ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -113,17 +80,6 @@ void DescribeAlarmHistoryRequest::setOnlyCount(bool onlyCount)
|
||||
setCoreParameter("OnlyCount", onlyCount ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DescribeAlarmHistoryRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
int DescribeAlarmHistoryRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
@@ -146,17 +102,6 @@ void DescribeAlarmHistoryRequest::setState(const std::string& state)
|
||||
setCoreParameter("State", state);
|
||||
}
|
||||
|
||||
int DescribeAlarmHistoryRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void DescribeAlarmHistoryRequest::setPage(int page)
|
||||
{
|
||||
page_ = page;
|
||||
setCoreParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getMetricName()const
|
||||
{
|
||||
return metricName_;
|
||||
@@ -168,6 +113,61 @@ void DescribeAlarmHistoryRequest::setMetricName(const std::string& metricName)
|
||||
setCoreParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeAlarmHistoryRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAlarmHistoryRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
bool DescribeAlarmHistoryRequest::getAscending()const
|
||||
{
|
||||
return ascending_;
|
||||
}
|
||||
|
||||
void DescribeAlarmHistoryRequest::setAscending(bool ascending)
|
||||
{
|
||||
ascending_ = ascending;
|
||||
setCoreParameter("Ascending", ascending ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DescribeAlarmHistoryRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
int DescribeAlarmHistoryRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void DescribeAlarmHistoryRequest::setPage(int page)
|
||||
{
|
||||
page_ = page;
|
||||
setCoreParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeAlarmHistoryResult::~DescribeAlarmHistoryResult()
|
||||
|
||||
void DescribeAlarmHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlarmHistoryList = value["AlarmHistoryList"]["AlarmHistory"];
|
||||
for (auto value : allAlarmHistoryList)
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeAlarmsForResourcesResult::~DescribeAlarmsForResourcesResult()
|
||||
|
||||
void DescribeAlarmsForResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatapoints = value["Datapoints"]["Alarm"];
|
||||
for (auto value : allDatapoints)
|
||||
|
||||
@@ -36,6 +36,50 @@ void DescribeAlarmsRequest::setEnableState(bool enableState)
|
||||
setCoreParameter("EnableState", enableState ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAlarmsRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getMetricName()const
|
||||
{
|
||||
return metricName_;
|
||||
}
|
||||
|
||||
void DescribeAlarmsRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setCoreParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeAlarmsRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getGroupBy()const
|
||||
{
|
||||
return groupBy_;
|
||||
}
|
||||
|
||||
void DescribeAlarmsRequest::setGroupBy(const std::string& groupBy)
|
||||
{
|
||||
groupBy_ = groupBy;
|
||||
setCoreParameter("GroupBy", groupBy);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getNames()const
|
||||
{
|
||||
return names_;
|
||||
@@ -58,17 +102,6 @@ void DescribeAlarmsRequest::setDisplayName(const std::string& displayName)
|
||||
setCoreParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeAlarmsRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
@@ -80,17 +113,6 @@ void DescribeAlarmsRequest::set_Namespace(const std::string& _namespace)
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAlarmsRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getAlertState()const
|
||||
{
|
||||
return alertState_;
|
||||
@@ -113,17 +135,6 @@ void DescribeAlarmsRequest::setNameKeyword(const std::string& nameKeyword)
|
||||
setCoreParameter("NameKeyword", nameKeyword);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getGroupBy()const
|
||||
{
|
||||
return groupBy_;
|
||||
}
|
||||
|
||||
void DescribeAlarmsRequest::setGroupBy(const std::string& groupBy)
|
||||
{
|
||||
groupBy_ = groupBy;
|
||||
setCoreParameter("GroupBy", groupBy);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
@@ -135,14 +146,3 @@ void DescribeAlarmsRequest::setPage(const std::string& page)
|
||||
setCoreParameter("Page", page);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getMetricName()const
|
||||
{
|
||||
return metricName_;
|
||||
}
|
||||
|
||||
void DescribeAlarmsRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setCoreParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeAlarmsResult::~DescribeAlarmsResult()
|
||||
|
||||
void DescribeAlarmsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatapoints = value["Datapoints"]["Alarm"];
|
||||
for (auto value : allDatapoints)
|
||||
|
||||
@@ -36,28 +36,6 @@ void DescribeAlertHistoryListRequest::setAlertName(const std::string& alertName)
|
||||
setCoreParameter("AlertName", alertName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
@@ -80,17 +58,6 @@ void DescribeAlertHistoryListRequest::setStartTime(const std::string& startTime)
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
bool DescribeAlertHistoryListRequest::getAscending()const
|
||||
{
|
||||
return ascending_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setAscending(bool ascending)
|
||||
{
|
||||
ascending_ = ascending;
|
||||
setCoreParameter("Ascending", ascending ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -113,17 +80,6 @@ void DescribeAlertHistoryListRequest::setOnlyCount(bool onlyCount)
|
||||
setCoreParameter("OnlyCount", onlyCount ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
int DescribeAlertHistoryListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
@@ -146,17 +102,6 @@ void DescribeAlertHistoryListRequest::setState(const std::string& state)
|
||||
setCoreParameter("State", state);
|
||||
}
|
||||
|
||||
int DescribeAlertHistoryListRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setPage(int page)
|
||||
{
|
||||
page_ = page;
|
||||
setCoreParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getMetricName()const
|
||||
{
|
||||
return metricName_;
|
||||
@@ -168,6 +113,61 @@ void DescribeAlertHistoryListRequest::setMetricName(const std::string& metricNam
|
||||
setCoreParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
bool DescribeAlertHistoryListRequest::getAscending()const
|
||||
{
|
||||
return ascending_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setAscending(bool ascending)
|
||||
{
|
||||
ascending_ = ascending;
|
||||
setCoreParameter("Ascending", ascending ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
int DescribeAlertHistoryListRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setPage(int page)
|
||||
{
|
||||
page_ = page;
|
||||
setCoreParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeAlertHistoryListResult::~DescribeAlertHistoryListResult()
|
||||
|
||||
void DescribeAlertHistoryListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlarmHistoryList = value["AlarmHistoryList"]["AlarmHistory"];
|
||||
for (auto value : allAlarmHistoryList)
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeContactResult::~DescribeContactResult()
|
||||
|
||||
void DescribeContactResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto datapointsNode = value["Datapoints"];
|
||||
if(!datapointsNode["Name"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeEventRuleResult::~DescribeEventRuleResult()
|
||||
|
||||
void DescribeEventRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Description"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeISPAreaCityResult::~DescribeISPAreaCityResult()
|
||||
|
||||
void DescribeISPAreaCityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeMetricRuleTargetsResult::~DescribeMetricRuleTargetsResult()
|
||||
|
||||
void DescribeMetricRuleTargetsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTargets = value["Targets"]["Target"];
|
||||
for (auto value : allTargets)
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeSiteMonitorISPAreaCityResult::~DescribeSiteMonitorISPAreaCityResult()
|
||||
|
||||
void DescribeSiteMonitorISPAreaCityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allIspCityList = value["IspCityList"]["IspCity"];
|
||||
for (auto value : allIspCityList)
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeSiteMonitorISPCityListResult::~DescribeSiteMonitorISPCityListResult()
|
||||
|
||||
void DescribeSiteMonitorISPCityListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allIspCityList = value["IspCityList"]["IspCity"];
|
||||
for (auto value : allIspCityList)
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeTaskDetailResult::~DescribeTaskDetailResult()
|
||||
|
||||
void DescribeTaskDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeTasksResult::~DescribeTasksResult()
|
||||
|
||||
void DescribeTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -35,13 +35,9 @@ DisableActiveAlertResult::~DisableActiveAlertResult()
|
||||
|
||||
void DisableActiveAlertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -35,13 +35,9 @@ DisableAlarmResult::~DisableAlarmResult()
|
||||
|
||||
void DisableAlarmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -25,6 +25,17 @@ DisableEventRuleRequest::DisableEventRuleRequest() :
|
||||
DisableEventRuleRequest::~DisableEventRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DisableEventRuleRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DisableEventRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::vector<std::string> DisableEventRuleRequest::getRuleNames()const
|
||||
{
|
||||
return ruleNames_;
|
||||
@@ -37,14 +48,3 @@ void DisableEventRuleRequest::setRuleNames(const std::vector<std::string>& ruleN
|
||||
setCoreParameter("RuleNames."+ std::to_string(i), ruleNames.at(i));
|
||||
}
|
||||
|
||||
std::string DisableEventRuleRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DisableEventRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DisableEventRuleResult::~DisableEventRuleResult()
|
||||
|
||||
void DisableEventRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -35,13 +35,9 @@ EnableActiveAlertResult::~EnableActiveAlertResult()
|
||||
|
||||
void EnableActiveAlertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -35,13 +35,9 @@ EnableAlarmResult::~EnableAlarmResult()
|
||||
|
||||
void EnableAlarmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -25,6 +25,17 @@ EnableEventRuleRequest::EnableEventRuleRequest() :
|
||||
EnableEventRuleRequest::~EnableEventRuleRequest()
|
||||
{}
|
||||
|
||||
std::string EnableEventRuleRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void EnableEventRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::vector<std::string> EnableEventRuleRequest::getRuleNames()const
|
||||
{
|
||||
return ruleNames_;
|
||||
@@ -37,14 +48,3 @@ void EnableEventRuleRequest::setRuleNames(const std::vector<std::string>& ruleNa
|
||||
setCoreParameter("RuleNames."+ std::to_string(i), ruleNames.at(i));
|
||||
}
|
||||
|
||||
std::string EnableEventRuleRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void EnableEventRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ EnableEventRuleResult::~EnableEventRuleResult()
|
||||
|
||||
void EnableEventRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -35,13 +35,9 @@ GetContactsResult::~GetContactsResult()
|
||||
|
||||
void GetContactsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto datapointsNode = value["Datapoints"];
|
||||
if(!datapointsNode["Name"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ GetMonitoringTemplateResult::~GetMonitoringTemplateResult()
|
||||
|
||||
void GetMonitoringTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceNode = value["Resource"];
|
||||
if(!resourceNode["Name"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ GetMyGroupAlertResult::~GetMyGroupAlertResult()
|
||||
|
||||
void GetMyGroupAlertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto groupAlertNode = value["GroupAlert"];
|
||||
if(!groupAlertNode["GroupId"].isNull())
|
||||
|
||||
@@ -36,17 +36,6 @@ void GetMyGroupsRequest::setSelectContactGroups(bool selectContactGroups)
|
||||
setCoreParameter("SelectContactGroups", selectContactGroups ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetMyGroupsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetMyGroupsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
long GetMyGroupsRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
@@ -80,6 +69,17 @@ void GetMyGroupsRequest::setGroupName(const std::string& groupName)
|
||||
setCoreParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
std::string GetMyGroupsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetMyGroupsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetMyGroupsRequest::getBindUrl()const
|
||||
{
|
||||
return bindUrl_;
|
||||
|
||||
@@ -35,13 +35,9 @@ GetMyGroupsResult::~GetMyGroupsResult()
|
||||
|
||||
void GetMyGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto groupNode = value["Group"];
|
||||
if(!groupNode["GroupId"].isNull())
|
||||
|
||||
@@ -58,6 +58,17 @@ void GetNotifyPolicyRequest::setGroupId(const std::string& groupId)
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
@@ -80,14 +91,3 @@ void GetNotifyPolicyRequest::setDimensions(const std::string& dimensions)
|
||||
setCoreParameter("Dimensions", dimensions);
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ GetNotifyPolicyResult::~GetNotifyPolicyResult()
|
||||
|
||||
void GetNotifyPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["AlertName"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ ListActiveAlertRuleResult::~ListActiveAlertRuleResult()
|
||||
|
||||
void ListActiveAlertRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatapoints = value["Datapoints"]["Alarm"];
|
||||
for (auto value : allDatapoints)
|
||||
|
||||
@@ -36,17 +36,6 @@ void ListAlarmHistoryRequest::setCursor(const std::string& cursor)
|
||||
setCoreParameter("Cursor", cursor);
|
||||
}
|
||||
|
||||
int ListAlarmHistoryRequest::getSize()const
|
||||
{
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListAlarmHistoryRequest::setSize(int size)
|
||||
{
|
||||
size_ = size;
|
||||
setCoreParameter("Size", std::to_string(size));
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoryRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
@@ -58,17 +47,6 @@ void ListAlarmHistoryRequest::setEndTime(const std::string& endTime)
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoryRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void ListAlarmHistoryRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoryRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
@@ -91,3 +69,25 @@ void ListAlarmHistoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int ListAlarmHistoryRequest::getSize()const
|
||||
{
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListAlarmHistoryRequest::setSize(int size)
|
||||
{
|
||||
size_ = size;
|
||||
setCoreParameter("Size", std::to_string(size));
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoryRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void ListAlarmHistoryRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ ListAlarmHistoryResult::~ListAlarmHistoryResult()
|
||||
|
||||
void ListAlarmHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlarmHistoryList = value["AlarmHistoryList"]["AlarmHistory"];
|
||||
for (auto value : allAlarmHistoryList)
|
||||
|
||||
@@ -25,6 +25,17 @@ ListAlarmRequest::ListAlarmRequest() :
|
||||
ListAlarmRequest::~ListAlarmRequest()
|
||||
{}
|
||||
|
||||
int ListAlarmRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListAlarmRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
bool ListAlarmRequest::getIsEnable()const
|
||||
{
|
||||
return isEnable_;
|
||||
@@ -102,14 +113,3 @@ void ListAlarmRequest::setDimension(const std::string& dimension)
|
||||
setCoreParameter("Dimension", dimension);
|
||||
}
|
||||
|
||||
int ListAlarmRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListAlarmRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ ListAlarmResult::~ListAlarmResult()
|
||||
|
||||
void ListAlarmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlarmList = value["AlarmList"]["Alarm"];
|
||||
for (auto value : allAlarmList)
|
||||
|
||||
@@ -25,17 +25,6 @@ ListContactGroupRequest::ListContactGroupRequest() :
|
||||
ListContactGroupRequest::~ListContactGroupRequest()
|
||||
{}
|
||||
|
||||
int ListContactGroupRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListContactGroupRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListContactGroupRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -47,3 +36,14 @@ void ListContactGroupRequest::setPageNumber(int pageNumber)
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ListContactGroupRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListContactGroupRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ ListContactGroupResult::~ListContactGroupResult()
|
||||
|
||||
void ListContactGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allContactGroups = value["ContactGroups"]["ContactGroup"];
|
||||
for (const auto &item : allContactGroups)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListEventRulesResult::~ListEventRulesResult()
|
||||
|
||||
void ListEventRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatapoints = value["Datapoints"]["EventRule"];
|
||||
for (auto value : allDatapoints)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListEventTargetsByRuleResult::~ListEventTargetsByRuleResult()
|
||||
|
||||
void ListEventTargetsByRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allContactParameters = value["ContactParameters"]["ContactParameter"];
|
||||
for (auto value : allContactParameters)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListGroupDynamicRuleResult::~ListGroupDynamicRuleResult()
|
||||
|
||||
void ListGroupDynamicRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResource = value["Resource"]["ResourceItem"];
|
||||
for (auto value : allResource)
|
||||
|
||||
@@ -25,6 +25,28 @@ ListMonitoringTemplatesRequest::ListMonitoringTemplatesRequest() :
|
||||
ListMonitoringTemplatesRequest::~ListMonitoringTemplatesRequest()
|
||||
{}
|
||||
|
||||
bool ListMonitoringTemplatesRequest::getHistory()const
|
||||
{
|
||||
return history_;
|
||||
}
|
||||
|
||||
void ListMonitoringTemplatesRequest::setHistory(bool history)
|
||||
{
|
||||
history_ = history;
|
||||
setCoreParameter("History", history ? "true" : "false");
|
||||
}
|
||||
|
||||
long ListMonitoringTemplatesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListMonitoringTemplatesRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
bool ListMonitoringTemplatesRequest::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
@@ -69,17 +91,6 @@ void ListMonitoringTemplatesRequest::setId(long id)
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
bool ListMonitoringTemplatesRequest::getHistory()const
|
||||
{
|
||||
return history_;
|
||||
}
|
||||
|
||||
void ListMonitoringTemplatesRequest::setHistory(bool history)
|
||||
{
|
||||
history_ = history;
|
||||
setCoreParameter("History", history ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListMonitoringTemplatesRequest::getKeyword()const
|
||||
{
|
||||
return keyword_;
|
||||
@@ -91,14 +102,3 @@ void ListMonitoringTemplatesRequest::setKeyword(const std::string& keyword)
|
||||
setCoreParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
long ListMonitoringTemplatesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListMonitoringTemplatesRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ ListMonitoringTemplatesResult::~ListMonitoringTemplatesResult()
|
||||
|
||||
void ListMonitoringTemplatesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResources = value["Resources"]["Resource"];
|
||||
for (auto value : allResources)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListMyGroupCategoriesResult::~ListMyGroupCategoriesResult()
|
||||
|
||||
void ListMyGroupCategoriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto categoryNode = value["Category"];
|
||||
if(!categoryNode["GroupId"].isNull())
|
||||
|
||||
@@ -25,6 +25,28 @@ ListMyGroupInstancesDetailsRequest::ListMyGroupInstancesDetailsRequest() :
|
||||
ListMyGroupInstancesDetailsRequest::~ListMyGroupInstancesDetailsRequest()
|
||||
{}
|
||||
|
||||
long ListMyGroupInstancesDetailsRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void ListMyGroupInstancesDetailsRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
int ListMyGroupInstancesDetailsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListMyGroupInstancesDetailsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
bool ListMyGroupInstancesDetailsRequest::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
@@ -47,17 +69,6 @@ void ListMyGroupInstancesDetailsRequest::setInstanceIds(const std::string& insta
|
||||
setCoreParameter("InstanceIds", instanceIds);
|
||||
}
|
||||
|
||||
long ListMyGroupInstancesDetailsRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void ListMyGroupInstancesDetailsRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
int ListMyGroupInstancesDetailsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
@@ -91,14 +102,3 @@ void ListMyGroupInstancesDetailsRequest::setKeyword(const std::string& keyword)
|
||||
setCoreParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
int ListMyGroupInstancesDetailsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListMyGroupInstancesDetailsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ ListMyGroupInstancesDetailsResult::~ListMyGroupInstancesDetailsResult()
|
||||
|
||||
void ListMyGroupInstancesDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResources = value["Resources"]["Resource"];
|
||||
for (auto value : allResources)
|
||||
|
||||
@@ -25,6 +25,28 @@ ListMyGroupInstancesRequest::ListMyGroupInstancesRequest() :
|
||||
ListMyGroupInstancesRequest::~ListMyGroupInstancesRequest()
|
||||
{}
|
||||
|
||||
long ListMyGroupInstancesRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void ListMyGroupInstancesRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
int ListMyGroupInstancesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListMyGroupInstancesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
bool ListMyGroupInstancesRequest::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
@@ -47,17 +69,6 @@ void ListMyGroupInstancesRequest::setInstanceIds(const std::string& instanceIds)
|
||||
setCoreParameter("InstanceIds", instanceIds);
|
||||
}
|
||||
|
||||
long ListMyGroupInstancesRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void ListMyGroupInstancesRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
int ListMyGroupInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
@@ -91,14 +102,3 @@ void ListMyGroupInstancesRequest::setKeyword(const std::string& keyword)
|
||||
setCoreParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
int ListMyGroupInstancesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListMyGroupInstancesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ ListMyGroupInstancesResult::~ListMyGroupInstancesResult()
|
||||
|
||||
void ListMyGroupInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResources = value["Resources"]["Resource"];
|
||||
for (auto value : allResources)
|
||||
|
||||
@@ -36,28 +36,6 @@ void ListMyGroupsRequest::setSelectContactGroups(bool selectContactGroups)
|
||||
setCoreParameter("SelectContactGroups", selectContactGroups ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListMyGroupsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListMyGroupsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int ListMyGroupsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListMyGroupsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListMyGroupsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
@@ -69,17 +47,6 @@ void ListMyGroupsRequest::setType(const std::string& type)
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string ListMyGroupsRequest::getKeyword()const
|
||||
{
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void ListMyGroupsRequest::setKeyword(const std::string& keyword)
|
||||
{
|
||||
keyword_ = keyword;
|
||||
setCoreParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
std::string ListMyGroupsRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
@@ -113,3 +80,36 @@ void ListMyGroupsRequest::setBindUrls(const std::string& bindUrls)
|
||||
setCoreParameter("BindUrls", bindUrls);
|
||||
}
|
||||
|
||||
std::string ListMyGroupsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListMyGroupsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int ListMyGroupsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListMyGroupsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListMyGroupsRequest::getKeyword()const
|
||||
{
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void ListMyGroupsRequest::setKeyword(const std::string& keyword)
|
||||
{
|
||||
keyword_ = keyword;
|
||||
setCoreParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ ListMyGroupsResult::~ListMyGroupsResult()
|
||||
|
||||
void ListMyGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResources = value["Resources"]["Resource"];
|
||||
for (auto value : allResources)
|
||||
|
||||
@@ -58,6 +58,17 @@ void ListNotifyPolicyRequest::setGroupId(const std::string& groupId)
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string ListNotifyPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int ListNotifyPolicyRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
@@ -91,14 +102,3 @@ void ListNotifyPolicyRequest::setDimensions(const std::string& dimensions)
|
||||
setCoreParameter("Dimensions", dimensions);
|
||||
}
|
||||
|
||||
std::string ListNotifyPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ ListNotifyPolicyResult::~ListNotifyPolicyResult()
|
||||
|
||||
void ListNotifyPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNotifyPolicyList = value["NotifyPolicyList"]["NotifyPolicy"];
|
||||
for (auto value : allNotifyPolicyList)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListProductOfActiveAlertResult::~ListProductOfActiveAlertResult()
|
||||
|
||||
void ListProductOfActiveAlertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -25,37 +25,15 @@ ModifyTaskRequest::ModifyTaskRequest() :
|
||||
ModifyTaskRequest::~ModifyTaskRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyTaskRequest::getCaller()const
|
||||
std::string ModifyTaskRequest::getTaskName()const
|
||||
{
|
||||
return caller_;
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void ModifyTaskRequest::setCaller(const std::string& caller)
|
||||
void ModifyTaskRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
caller_ = caller;
|
||||
setCoreParameter("Caller", caller);
|
||||
}
|
||||
|
||||
std::string ModifyTaskRequest::getAddress()const
|
||||
{
|
||||
return address_;
|
||||
}
|
||||
|
||||
void ModifyTaskRequest::setAddress(const std::string& address)
|
||||
{
|
||||
address_ = address;
|
||||
setCoreParameter("Address", address);
|
||||
}
|
||||
|
||||
std::string ModifyTaskRequest::getIspCity()const
|
||||
{
|
||||
return ispCity_;
|
||||
}
|
||||
|
||||
void ModifyTaskRequest::setIspCity(const std::string& ispCity)
|
||||
{
|
||||
ispCity_ = ispCity;
|
||||
setCoreParameter("IspCity", ispCity);
|
||||
taskName_ = taskName;
|
||||
setCoreParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
std::string ModifyTaskRequest::getAlertIds()const
|
||||
@@ -80,15 +58,48 @@ void ModifyTaskRequest::setOptions(const std::string& options)
|
||||
setCoreParameter("Options", options);
|
||||
}
|
||||
|
||||
std::string ModifyTaskRequest::getTaskName()const
|
||||
std::string ModifyTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskName_;
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void ModifyTaskRequest::setTaskName(const std::string& taskName)
|
||||
void ModifyTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setCoreParameter("TaskName", taskName);
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string ModifyTaskRequest::getAddress()const
|
||||
{
|
||||
return address_;
|
||||
}
|
||||
|
||||
void ModifyTaskRequest::setAddress(const std::string& address)
|
||||
{
|
||||
address_ = address;
|
||||
setCoreParameter("Address", address);
|
||||
}
|
||||
|
||||
std::string ModifyTaskRequest::getCaller()const
|
||||
{
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void ModifyTaskRequest::setCaller(const std::string& caller)
|
||||
{
|
||||
caller_ = caller;
|
||||
setCoreParameter("Caller", caller);
|
||||
}
|
||||
|
||||
std::string ModifyTaskRequest::getIspCity()const
|
||||
{
|
||||
return ispCity_;
|
||||
}
|
||||
|
||||
void ModifyTaskRequest::setIspCity(const std::string& ispCity)
|
||||
{
|
||||
ispCity_ = ispCity;
|
||||
setCoreParameter("IspCity", ispCity);
|
||||
}
|
||||
|
||||
std::string ModifyTaskRequest::getInterval()const
|
||||
@@ -113,14 +124,3 @@ void ModifyTaskRequest::setAlertRule(const std::string& alertRule)
|
||||
setCoreParameter("AlertRule", alertRule);
|
||||
}
|
||||
|
||||
std::string ModifyTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void ModifyTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ ModifyTaskResult::~ModifyTaskResult()
|
||||
|
||||
void ModifyTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -35,13 +35,9 @@ NodeInstallResult::~NodeInstallResult()
|
||||
|
||||
void NodeInstallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
|
||||
@@ -25,6 +25,39 @@ NodeListRequest::NodeListRequest() :
|
||||
NodeListRequest::~NodeListRequest()
|
||||
{}
|
||||
|
||||
long NodeListRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void NodeListRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
std::string NodeListRequest::getSerialNumbers()const
|
||||
{
|
||||
return serialNumbers_;
|
||||
}
|
||||
|
||||
void NodeListRequest::setSerialNumbers(const std::string& serialNumbers)
|
||||
{
|
||||
serialNumbers_ = serialNumbers;
|
||||
setCoreParameter("SerialNumbers", serialNumbers);
|
||||
}
|
||||
|
||||
int NodeListRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void NodeListRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string NodeListRequest::getHostName()const
|
||||
{
|
||||
return hostName_;
|
||||
@@ -80,39 +113,6 @@ void NodeListRequest::setKeyWord(const std::string& keyWord)
|
||||
setCoreParameter("KeyWord", keyWord);
|
||||
}
|
||||
|
||||
long NodeListRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void NodeListRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
std::string NodeListRequest::getSerialNumbers()const
|
||||
{
|
||||
return serialNumbers_;
|
||||
}
|
||||
|
||||
void NodeListRequest::setSerialNumbers(const std::string& serialNumbers)
|
||||
{
|
||||
serialNumbers_ = serialNumbers;
|
||||
setCoreParameter("SerialNumbers", serialNumbers);
|
||||
}
|
||||
|
||||
int NodeListRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void NodeListRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string NodeListRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
|
||||
@@ -35,13 +35,9 @@ NodeListResult::~NodeListResult()
|
||||
|
||||
void NodeListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNodes = value["Nodes"]["Node"];
|
||||
for (auto value : allNodes)
|
||||
|
||||
@@ -25,17 +25,6 @@ NodeProcessCreateRequest::NodeProcessCreateRequest() :
|
||||
NodeProcessCreateRequest::~NodeProcessCreateRequest()
|
||||
{}
|
||||
|
||||
std::string NodeProcessCreateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void NodeProcessCreateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string NodeProcessCreateRequest::getProcessName()const
|
||||
{
|
||||
return processName_;
|
||||
@@ -47,6 +36,28 @@ void NodeProcessCreateRequest::setProcessName(const std::string& processName)
|
||||
setCoreParameter("ProcessName", processName);
|
||||
}
|
||||
|
||||
std::string NodeProcessCreateRequest::getCommand()const
|
||||
{
|
||||
return command_;
|
||||
}
|
||||
|
||||
void NodeProcessCreateRequest::setCommand(const std::string& command)
|
||||
{
|
||||
command_ = command;
|
||||
setCoreParameter("Command", command);
|
||||
}
|
||||
|
||||
std::string NodeProcessCreateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void NodeProcessCreateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string NodeProcessCreateRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
@@ -69,14 +80,3 @@ void NodeProcessCreateRequest::setProcessUser(const std::string& processUser)
|
||||
setCoreParameter("ProcessUser", processUser);
|
||||
}
|
||||
|
||||
std::string NodeProcessCreateRequest::getCommand()const
|
||||
{
|
||||
return command_;
|
||||
}
|
||||
|
||||
void NodeProcessCreateRequest::setCommand(const std::string& command)
|
||||
{
|
||||
command_ = command;
|
||||
setCoreParameter("Command", command);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ NodeProcessCreateResult::~NodeProcessCreateResult()
|
||||
|
||||
void NodeProcessCreateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
|
||||
@@ -35,13 +35,9 @@ NodeProcessDeleteResult::~NodeProcessDeleteResult()
|
||||
|
||||
void NodeProcessDeleteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
|
||||
@@ -35,13 +35,9 @@ NodeProcessesResult::~NodeProcessesResult()
|
||||
|
||||
void NodeProcessesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNodeProcesses = value["NodeProcesses"]["NodeProcess"];
|
||||
for (auto value : allNodeProcesses)
|
||||
|
||||
@@ -35,13 +35,9 @@ NodeStatusListResult::~NodeStatusListResult()
|
||||
|
||||
void NodeStatusListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNodeStatusList = value["NodeStatusList"]["NodeStatus"];
|
||||
for (auto value : allNodeStatusList)
|
||||
|
||||
@@ -35,13 +35,9 @@ NodeStatusResult::~NodeStatusResult()
|
||||
|
||||
void NodeStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
|
||||
@@ -35,13 +35,9 @@ NodeUninstallResult::~NodeUninstallResult()
|
||||
|
||||
void NodeUninstallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
|
||||
@@ -35,13 +35,9 @@ ProfileGetResult::~ProfileGetResult()
|
||||
|
||||
void ProfileGetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
|
||||
@@ -35,13 +35,9 @@ ProfileSetResult::~ProfileSetResult()
|
||||
|
||||
void ProfileSetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
|
||||
@@ -35,13 +35,9 @@ PutCustomMetricResult::~PutCustomMetricResult()
|
||||
|
||||
void PutCustomMetricResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -35,13 +35,9 @@ PutEventResult::~PutEventResult()
|
||||
|
||||
void PutEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -25,6 +25,28 @@ PutEventRuleRequest::PutEventRuleRequest() :
|
||||
PutEventRuleRequest::~PutEventRuleRequest()
|
||||
{}
|
||||
|
||||
std::string PutEventRuleRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void PutEventRuleRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string PutEventRuleRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void PutEventRuleRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::vector<PutEventRuleRequest::EventPattern> PutEventRuleRequest::getEventPattern()const
|
||||
{
|
||||
return eventPattern_;
|
||||
@@ -45,17 +67,6 @@ void PutEventRuleRequest::setEventPattern(const std::vector<EventPattern>& event
|
||||
for(int i = 0; i!= obj.nameList.size(); i++)
|
||||
setCoreParameter(str + ".NameList."+ std::to_string(i), obj.nameList.at(i));
|
||||
for(int i = 0; i!= obj.eventTypeList.size(); i++)
|
||||
setCoreParameter(str + ".EventTypeList."+ std::to_string(i), obj.eventTypeList.at(i));
|
||||
}
|
||||
}
|
||||
|
||||
std::string PutEventRuleRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void PutEventRuleRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
setCoreParameter(str + ".EventTypeList."+ std::to_string(i), obj.eventTypeList.at(i));
|
||||
}
|
||||
}
|
||||
@@ -67,17 +78,6 @@ void PutEventRuleRequest::setName(const std::string& name)
|
||||
|
||||
void PutEventRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string PutEventRuleRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void PutEventRuleRequest::setDescription(const std::string& description)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user