File diff suppressed because it is too large
Load Diff
@@ -33,6 +33,6 @@ long AccessKeyGetRequest::getUserId()const
|
||||
void AccessKeyGetRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", std::to_string(userId));
|
||||
setCoreParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AccessKeyGetResult::~AccessKeyGetResult()
|
||||
|
||||
void AccessKeyGetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string AddMyGroupInstancesRequest::getInstances()const
|
||||
void AddMyGroupInstancesRequest::setInstances(const std::string& instances)
|
||||
{
|
||||
instances_ = instances;
|
||||
setParameter("Instances", instances);
|
||||
setCoreParameter("Instances", instances);
|
||||
}
|
||||
|
||||
long AddMyGroupInstancesRequest::getGroupId()const
|
||||
@@ -44,6 +44,6 @@ long AddMyGroupInstancesRequest::getGroupId()const
|
||||
void AddMyGroupInstancesRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AddMyGroupInstancesResult::~AddMyGroupInstancesResult()
|
||||
|
||||
void AddMyGroupInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ long ApplyMonitoringTemplateRequest::getEnableStartTime()const
|
||||
void ApplyMonitoringTemplateRequest::setEnableStartTime(long enableStartTime)
|
||||
{
|
||||
enableStartTime_ = enableStartTime;
|
||||
setParameter("EnableStartTime", std::to_string(enableStartTime));
|
||||
setCoreParameter("EnableStartTime", std::to_string(enableStartTime));
|
||||
}
|
||||
|
||||
std::string ApplyMonitoringTemplateRequest::getApplyMode()const
|
||||
@@ -44,7 +44,7 @@ std::string ApplyMonitoringTemplateRequest::getApplyMode()const
|
||||
void ApplyMonitoringTemplateRequest::setApplyMode(const std::string& applyMode)
|
||||
{
|
||||
applyMode_ = applyMode;
|
||||
setParameter("ApplyMode", applyMode);
|
||||
setCoreParameter("ApplyMode", applyMode);
|
||||
}
|
||||
|
||||
std::string ApplyMonitoringTemplateRequest::getWebhook()const
|
||||
@@ -55,7 +55,7 @@ std::string ApplyMonitoringTemplateRequest::getWebhook()const
|
||||
void ApplyMonitoringTemplateRequest::setWebhook(const std::string& webhook)
|
||||
{
|
||||
webhook_ = webhook;
|
||||
setParameter("Webhook", webhook);
|
||||
setCoreParameter("Webhook", webhook);
|
||||
}
|
||||
|
||||
std::string ApplyMonitoringTemplateRequest::getTemplateIds()const
|
||||
@@ -66,7 +66,7 @@ std::string ApplyMonitoringTemplateRequest::getTemplateIds()const
|
||||
void ApplyMonitoringTemplateRequest::setTemplateIds(const std::string& templateIds)
|
||||
{
|
||||
templateIds_ = templateIds;
|
||||
setParameter("TemplateIds", templateIds);
|
||||
setCoreParameter("TemplateIds", templateIds);
|
||||
}
|
||||
|
||||
long ApplyMonitoringTemplateRequest::getEnableEndTime()const
|
||||
@@ -77,7 +77,7 @@ long ApplyMonitoringTemplateRequest::getEnableEndTime()const
|
||||
void ApplyMonitoringTemplateRequest::setEnableEndTime(long enableEndTime)
|
||||
{
|
||||
enableEndTime_ = enableEndTime;
|
||||
setParameter("EnableEndTime", std::to_string(enableEndTime));
|
||||
setCoreParameter("EnableEndTime", std::to_string(enableEndTime));
|
||||
}
|
||||
|
||||
long ApplyMonitoringTemplateRequest::getGroupId()const
|
||||
@@ -88,7 +88,7 @@ long ApplyMonitoringTemplateRequest::getGroupId()const
|
||||
void ApplyMonitoringTemplateRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
long ApplyMonitoringTemplateRequest::getNotifyLevel()const
|
||||
@@ -99,7 +99,7 @@ long ApplyMonitoringTemplateRequest::getNotifyLevel()const
|
||||
void ApplyMonitoringTemplateRequest::setNotifyLevel(long notifyLevel)
|
||||
{
|
||||
notifyLevel_ = notifyLevel;
|
||||
setParameter("NotifyLevel", std::to_string(notifyLevel));
|
||||
setCoreParameter("NotifyLevel", std::to_string(notifyLevel));
|
||||
}
|
||||
|
||||
long ApplyMonitoringTemplateRequest::getSilenceTime()const
|
||||
@@ -110,6 +110,6 @@ long ApplyMonitoringTemplateRequest::getSilenceTime()const
|
||||
void ApplyMonitoringTemplateRequest::setSilenceTime(long silenceTime)
|
||||
{
|
||||
silenceTime_ = silenceTime;
|
||||
setParameter("SilenceTime", std::to_string(silenceTime));
|
||||
setCoreParameter("SilenceTime", std::to_string(silenceTime));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ApplyMonitoringTemplateResult::~ApplyMonitoringTemplateResult()
|
||||
|
||||
void ApplyMonitoringTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceNode = value["Resource"];
|
||||
if(!resourceNode["GroupId"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ long ApplyTemplateRequest::getEnableStartTime()const
|
||||
void ApplyTemplateRequest::setEnableStartTime(long enableStartTime)
|
||||
{
|
||||
enableStartTime_ = enableStartTime;
|
||||
setParameter("EnableStartTime", std::to_string(enableStartTime));
|
||||
setCoreParameter("EnableStartTime", std::to_string(enableStartTime));
|
||||
}
|
||||
|
||||
std::string ApplyTemplateRequest::getApplyMode()const
|
||||
@@ -44,7 +44,7 @@ std::string ApplyTemplateRequest::getApplyMode()const
|
||||
void ApplyTemplateRequest::setApplyMode(const std::string& applyMode)
|
||||
{
|
||||
applyMode_ = applyMode;
|
||||
setParameter("ApplyMode", applyMode);
|
||||
setCoreParameter("ApplyMode", applyMode);
|
||||
}
|
||||
|
||||
std::string ApplyTemplateRequest::getTemplateIds()const
|
||||
@@ -55,7 +55,7 @@ std::string ApplyTemplateRequest::getTemplateIds()const
|
||||
void ApplyTemplateRequest::setTemplateIds(const std::string& templateIds)
|
||||
{
|
||||
templateIds_ = templateIds;
|
||||
setParameter("TemplateIds", templateIds);
|
||||
setCoreParameter("TemplateIds", templateIds);
|
||||
}
|
||||
|
||||
long ApplyTemplateRequest::getEnableEndTime()const
|
||||
@@ -66,7 +66,7 @@ long ApplyTemplateRequest::getEnableEndTime()const
|
||||
void ApplyTemplateRequest::setEnableEndTime(long enableEndTime)
|
||||
{
|
||||
enableEndTime_ = enableEndTime;
|
||||
setParameter("EnableEndTime", std::to_string(enableEndTime));
|
||||
setCoreParameter("EnableEndTime", std::to_string(enableEndTime));
|
||||
}
|
||||
|
||||
long ApplyTemplateRequest::getGroupId()const
|
||||
@@ -77,7 +77,7 @@ long ApplyTemplateRequest::getGroupId()const
|
||||
void ApplyTemplateRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
long ApplyTemplateRequest::getNotifyLevel()const
|
||||
@@ -88,7 +88,7 @@ long ApplyTemplateRequest::getNotifyLevel()const
|
||||
void ApplyTemplateRequest::setNotifyLevel(long notifyLevel)
|
||||
{
|
||||
notifyLevel_ = notifyLevel;
|
||||
setParameter("NotifyLevel", std::to_string(notifyLevel));
|
||||
setCoreParameter("NotifyLevel", std::to_string(notifyLevel));
|
||||
}
|
||||
|
||||
long ApplyTemplateRequest::getSilenceTime()const
|
||||
@@ -99,6 +99,6 @@ long ApplyTemplateRequest::getSilenceTime()const
|
||||
void ApplyTemplateRequest::setSilenceTime(long silenceTime)
|
||||
{
|
||||
silenceTime_ = silenceTime;
|
||||
setParameter("SilenceTime", std::to_string(silenceTime));
|
||||
setCoreParameter("SilenceTime", std::to_string(silenceTime));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ApplyTemplateResult::~ApplyTemplateResult()
|
||||
|
||||
void ApplyTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceNode = value["Resource"];
|
||||
auto allCreateAlertResults = value["CreateAlertResults"]["AlertResult"];
|
||||
|
||||
@@ -33,7 +33,7 @@ int CreateAlarmRequest::getPeriod()const
|
||||
void CreateAlarmRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getWebhook()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateAlarmRequest::getWebhook()const
|
||||
void CreateAlarmRequest::setWebhook(const std::string& webhook)
|
||||
{
|
||||
webhook_ = webhook;
|
||||
setParameter("Webhook", webhook);
|
||||
setCoreParameter("Webhook", webhook);
|
||||
}
|
||||
|
||||
bool CreateAlarmRequest::getDryRun()const
|
||||
@@ -55,7 +55,7 @@ bool CreateAlarmRequest::getDryRun()const
|
||||
void CreateAlarmRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
setCoreParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getContactGroups()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateAlarmRequest::getContactGroups()const
|
||||
void CreateAlarmRequest::setContactGroups(const std::string& contactGroups)
|
||||
{
|
||||
contactGroups_ = contactGroups;
|
||||
setParameter("ContactGroups", contactGroups);
|
||||
setCoreParameter("ContactGroups", contactGroups);
|
||||
}
|
||||
|
||||
int CreateAlarmRequest::getEndTime()const
|
||||
@@ -77,7 +77,7 @@ int CreateAlarmRequest::getEndTime()const
|
||||
void CreateAlarmRequest::setEndTime(int endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getThreshold()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateAlarmRequest::getThreshold()const
|
||||
void CreateAlarmRequest::setThreshold(const std::string& threshold)
|
||||
{
|
||||
threshold_ = threshold;
|
||||
setParameter("Threshold", threshold);
|
||||
setCoreParameter("Threshold", threshold);
|
||||
}
|
||||
|
||||
int CreateAlarmRequest::getStartTime()const
|
||||
@@ -99,7 +99,7 @@ int CreateAlarmRequest::getStartTime()const
|
||||
void CreateAlarmRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getName()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateAlarmRequest::getName()const
|
||||
void CreateAlarmRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::get_Namespace()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateAlarmRequest::get_Namespace()const
|
||||
void CreateAlarmRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
int CreateAlarmRequest::getEvaluationCount()const
|
||||
@@ -132,7 +132,7 @@ int CreateAlarmRequest::getEvaluationCount()const
|
||||
void CreateAlarmRequest::setEvaluationCount(int evaluationCount)
|
||||
{
|
||||
evaluationCount_ = evaluationCount;
|
||||
setParameter("EvaluationCount", std::to_string(evaluationCount));
|
||||
setCoreParameter("EvaluationCount", std::to_string(evaluationCount));
|
||||
}
|
||||
|
||||
int CreateAlarmRequest::getSilenceTime()const
|
||||
@@ -143,7 +143,7 @@ int CreateAlarmRequest::getSilenceTime()const
|
||||
void CreateAlarmRequest::setSilenceTime(int silenceTime)
|
||||
{
|
||||
silenceTime_ = silenceTime;
|
||||
setParameter("SilenceTime", std::to_string(silenceTime));
|
||||
setCoreParameter("SilenceTime", std::to_string(silenceTime));
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getMetricName()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateAlarmRequest::getMetricName()const
|
||||
void CreateAlarmRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setParameter("MetricName", metricName);
|
||||
setCoreParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
int CreateAlarmRequest::getNotifyType()const
|
||||
@@ -165,7 +165,7 @@ int CreateAlarmRequest::getNotifyType()const
|
||||
void CreateAlarmRequest::setNotifyType(int notifyType)
|
||||
{
|
||||
notifyType_ = notifyType;
|
||||
setParameter("NotifyType", std::to_string(notifyType));
|
||||
setCoreParameter("NotifyType", std::to_string(notifyType));
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getComparisonOperator()const
|
||||
@@ -176,7 +176,7 @@ std::string CreateAlarmRequest::getComparisonOperator()const
|
||||
void CreateAlarmRequest::setComparisonOperator(const std::string& comparisonOperator)
|
||||
{
|
||||
comparisonOperator_ = comparisonOperator;
|
||||
setParameter("ComparisonOperator", comparisonOperator);
|
||||
setCoreParameter("ComparisonOperator", comparisonOperator);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getDimensions()const
|
||||
@@ -187,7 +187,7 @@ std::string CreateAlarmRequest::getDimensions()const
|
||||
void CreateAlarmRequest::setDimensions(const std::string& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
setParameter("Dimensions", dimensions);
|
||||
setCoreParameter("Dimensions", dimensions);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getStatistics()const
|
||||
@@ -198,6 +198,6 @@ std::string CreateAlarmRequest::getStatistics()const
|
||||
void CreateAlarmRequest::setStatistics(const std::string& statistics)
|
||||
{
|
||||
statistics_ = statistics;
|
||||
setParameter("Statistics", statistics);
|
||||
setCoreParameter("Statistics", statistics);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateAlarmResult::~CreateAlarmResult()
|
||||
|
||||
void CreateAlarmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateMonitoringTemplateRequest::getEventRuleTemplatesJson()const
|
||||
void CreateMonitoringTemplateRequest::setEventRuleTemplatesJson(const std::string& eventRuleTemplatesJson)
|
||||
{
|
||||
eventRuleTemplatesJson_ = eventRuleTemplatesJson;
|
||||
setParameter("EventRuleTemplatesJson", eventRuleTemplatesJson);
|
||||
setCoreParameter("EventRuleTemplatesJson", eventRuleTemplatesJson);
|
||||
}
|
||||
|
||||
std::string CreateMonitoringTemplateRequest::getName()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateMonitoringTemplateRequest::getName()const
|
||||
void CreateMonitoringTemplateRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateMonitoringTemplateRequest::get_Namespace()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateMonitoringTemplateRequest::get_Namespace()const
|
||||
void CreateMonitoringTemplateRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string CreateMonitoringTemplateRequest::getDescription()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateMonitoringTemplateRequest::getDescription()const
|
||||
void CreateMonitoringTemplateRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateMonitoringTemplateRequest::getAlertTemplatesJson()const
|
||||
@@ -77,6 +77,6 @@ std::string CreateMonitoringTemplateRequest::getAlertTemplatesJson()const
|
||||
void CreateMonitoringTemplateRequest::setAlertTemplatesJson(const std::string& alertTemplatesJson)
|
||||
{
|
||||
alertTemplatesJson_ = alertTemplatesJson;
|
||||
setParameter("AlertTemplatesJson", alertTemplatesJson);
|
||||
setCoreParameter("AlertTemplatesJson", alertTemplatesJson);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateMonitoringTemplateResult::~CreateMonitoringTemplateResult()
|
||||
|
||||
void CreateMonitoringTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateMyGroupAlertBatchRequest::getGroupId()const
|
||||
void CreateMyGroupAlertBatchRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string CreateMyGroupAlertBatchRequest::getGroupAlertJsonArray()const
|
||||
@@ -44,6 +44,6 @@ std::string CreateMyGroupAlertBatchRequest::getGroupAlertJsonArray()const
|
||||
void CreateMyGroupAlertBatchRequest::setGroupAlertJsonArray(const std::string& groupAlertJsonArray)
|
||||
{
|
||||
groupAlertJsonArray_ = groupAlertJsonArray;
|
||||
setParameter("GroupAlertJsonArray", groupAlertJsonArray);
|
||||
setCoreParameter("GroupAlertJsonArray", groupAlertJsonArray);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateMyGroupAlertBatchResult::~CreateMyGroupAlertBatchResult()
|
||||
|
||||
void CreateMyGroupAlertBatchResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResources = value["Resources"]["AlertResult"];
|
||||
for (auto value : allResources)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateMyGroupsRequest::getContactGroups()const
|
||||
void CreateMyGroupsRequest::setContactGroups(const std::string& contactGroups)
|
||||
{
|
||||
contactGroups_ = contactGroups;
|
||||
setParameter("ContactGroups", contactGroups);
|
||||
setCoreParameter("ContactGroups", contactGroups);
|
||||
}
|
||||
|
||||
std::string CreateMyGroupsRequest::getOptions()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateMyGroupsRequest::getOptions()const
|
||||
void CreateMyGroupsRequest::setOptions(const std::string& options)
|
||||
{
|
||||
options_ = options;
|
||||
setParameter("Options", options);
|
||||
setCoreParameter("Options", options);
|
||||
}
|
||||
|
||||
std::string CreateMyGroupsRequest::getType()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateMyGroupsRequest::getType()const
|
||||
void CreateMyGroupsRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
long CreateMyGroupsRequest::getServiceId()const
|
||||
@@ -66,7 +66,7 @@ long CreateMyGroupsRequest::getServiceId()const
|
||||
void CreateMyGroupsRequest::setServiceId(long serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", std::to_string(serviceId));
|
||||
setCoreParameter("ServiceId", std::to_string(serviceId));
|
||||
}
|
||||
|
||||
std::string CreateMyGroupsRequest::getGroupName()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateMyGroupsRequest::getGroupName()const
|
||||
void CreateMyGroupsRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setParameter("GroupName", groupName);
|
||||
setCoreParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
std::string CreateMyGroupsRequest::getBindUrl()const
|
||||
@@ -88,6 +88,6 @@ std::string CreateMyGroupsRequest::getBindUrl()const
|
||||
void CreateMyGroupsRequest::setBindUrl(const std::string& bindUrl)
|
||||
{
|
||||
bindUrl_ = bindUrl;
|
||||
setParameter("BindUrl", bindUrl);
|
||||
setCoreParameter("BindUrl", bindUrl);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateMyGroupsResult::~CreateMyGroupsResult()
|
||||
|
||||
void CreateMyGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateNotifyPolicyRequest::getPolicyType()const
|
||||
void CreateNotifyPolicyRequest::setPolicyType(const std::string& policyType)
|
||||
{
|
||||
policyType_ = policyType;
|
||||
setParameter("PolicyType", policyType);
|
||||
setCoreParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string CreateNotifyPolicyRequest::getAlertName()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateNotifyPolicyRequest::getAlertName()const
|
||||
void CreateNotifyPolicyRequest::setAlertName(const std::string& alertName)
|
||||
{
|
||||
alertName_ = alertName;
|
||||
setParameter("AlertName", alertName);
|
||||
setCoreParameter("AlertName", alertName);
|
||||
}
|
||||
|
||||
std::string CreateNotifyPolicyRequest::getGroupId()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateNotifyPolicyRequest::getGroupId()const
|
||||
void CreateNotifyPolicyRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
long CreateNotifyPolicyRequest::getEndTime()const
|
||||
@@ -66,7 +66,7 @@ long CreateNotifyPolicyRequest::getEndTime()const
|
||||
void CreateNotifyPolicyRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
long CreateNotifyPolicyRequest::getStartTime()const
|
||||
@@ -77,7 +77,7 @@ long CreateNotifyPolicyRequest::getStartTime()const
|
||||
void CreateNotifyPolicyRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string CreateNotifyPolicyRequest::getDimensions()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateNotifyPolicyRequest::getDimensions()const
|
||||
void CreateNotifyPolicyRequest::setDimensions(const std::string& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
setParameter("Dimensions", dimensions);
|
||||
setCoreParameter("Dimensions", dimensions);
|
||||
}
|
||||
|
||||
std::string CreateNotifyPolicyRequest::getAccessKeyId()const
|
||||
@@ -99,6 +99,6 @@ std::string CreateNotifyPolicyRequest::getAccessKeyId()const
|
||||
void CreateNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateNotifyPolicyResult::~CreateNotifyPolicyResult()
|
||||
|
||||
void CreateNotifyPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateTaskRequest::getCaller()const
|
||||
void CreateTaskRequest::setCaller(const std::string& caller)
|
||||
{
|
||||
caller_ = caller;
|
||||
setParameter("Caller", caller);
|
||||
setCoreParameter("Caller", caller);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getAddress()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateTaskRequest::getAddress()const
|
||||
void CreateTaskRequest::setAddress(const std::string& address)
|
||||
{
|
||||
address_ = address;
|
||||
setParameter("Address", address);
|
||||
setCoreParameter("Address", address);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getTaskType()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateTaskRequest::getTaskType()const
|
||||
void CreateTaskRequest::setTaskType(const std::string& taskType)
|
||||
{
|
||||
taskType_ = taskType;
|
||||
setParameter("TaskType", taskType);
|
||||
setCoreParameter("TaskType", taskType);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getIspCity()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateTaskRequest::getIspCity()const
|
||||
void CreateTaskRequest::setIspCity(const std::string& ispCity)
|
||||
{
|
||||
ispCity_ = ispCity;
|
||||
setParameter("IspCity", ispCity);
|
||||
setCoreParameter("IspCity", ispCity);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getAlertIds()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateTaskRequest::getAlertIds()const
|
||||
void CreateTaskRequest::setAlertIds(const std::string& alertIds)
|
||||
{
|
||||
alertIds_ = alertIds;
|
||||
setParameter("AlertIds", alertIds);
|
||||
setCoreParameter("AlertIds", alertIds);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getOptions()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateTaskRequest::getOptions()const
|
||||
void CreateTaskRequest::setOptions(const std::string& options)
|
||||
{
|
||||
options_ = options;
|
||||
setParameter("Options", options);
|
||||
setCoreParameter("Options", options);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getTaskName()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateTaskRequest::getTaskName()const
|
||||
void CreateTaskRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setParameter("TaskName", taskName);
|
||||
setCoreParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getInterval()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateTaskRequest::getInterval()const
|
||||
void CreateTaskRequest::setInterval(const std::string& interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setParameter("Interval", interval);
|
||||
setCoreParameter("Interval", interval);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getAlertRule()const
|
||||
@@ -121,6 +121,6 @@ std::string CreateTaskRequest::getAlertRule()const
|
||||
void CreateTaskRequest::setAlertRule(const std::string& alertRule)
|
||||
{
|
||||
alertRule_ = alertRule;
|
||||
setParameter("AlertRule", alertRule);
|
||||
setCoreParameter("AlertRule", alertRule);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateTaskResult::~CreateTaskResult()
|
||||
|
||||
void CreateTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string DeleteAlarmRequest::getId()const
|
||||
void DeleteAlarmRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteAlarmResult::~DeleteAlarmResult()
|
||||
|
||||
void DeleteAlarmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DeleteCustomMetricRequest::getGroupId()const
|
||||
void DeleteCustomMetricRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DeleteCustomMetricRequest::getMetricName()const
|
||||
@@ -44,7 +44,7 @@ std::string DeleteCustomMetricRequest::getMetricName()const
|
||||
void DeleteCustomMetricRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setParameter("MetricName", metricName);
|
||||
setCoreParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DeleteCustomMetricRequest::getUUID()const
|
||||
@@ -55,7 +55,7 @@ std::string DeleteCustomMetricRequest::getUUID()const
|
||||
void DeleteCustomMetricRequest::setUUID(const std::string& uUID)
|
||||
{
|
||||
uUID_ = uUID;
|
||||
setParameter("UUID", uUID);
|
||||
setCoreParameter("UUID", uUID);
|
||||
}
|
||||
|
||||
std::string DeleteCustomMetricRequest::getMd5()const
|
||||
@@ -66,6 +66,6 @@ std::string DeleteCustomMetricRequest::getMd5()const
|
||||
void DeleteCustomMetricRequest::setMd5(const std::string& md5)
|
||||
{
|
||||
md5_ = md5;
|
||||
setParameter("Md5", md5);
|
||||
setCoreParameter("Md5", md5);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteCustomMetricResult::~DeleteCustomMetricResult()
|
||||
|
||||
void DeleteCustomMetricResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -34,7 +34,7 @@ void DeleteEventRuleRequest::setRuleNames(const std::vector<std::string>& ruleNa
|
||||
{
|
||||
ruleNames_ = ruleNames;
|
||||
for(int i = 0; i!= ruleNames.size(); i++)
|
||||
setParameter("RuleNames."+ std::to_string(i), ruleNames.at(i));
|
||||
setCoreParameter("RuleNames."+ std::to_string(i), ruleNames.at(i));
|
||||
}
|
||||
|
||||
std::string DeleteEventRuleRequest::getRuleName()const
|
||||
@@ -45,6 +45,6 @@ std::string DeleteEventRuleRequest::getRuleName()const
|
||||
void DeleteEventRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteEventRuleResult::~DeleteEventRuleResult()
|
||||
|
||||
void DeleteEventRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -34,7 +34,7 @@ void DeleteEventTargetsRequest::setIds(const std::vector<std::string>& ids)
|
||||
{
|
||||
ids_ = ids;
|
||||
for(int i = 0; i!= ids.size(); i++)
|
||||
setParameter("Ids."+ std::to_string(i), ids.at(i));
|
||||
setCoreParameter("Ids."+ std::to_string(i), ids.at(i));
|
||||
}
|
||||
|
||||
std::string DeleteEventTargetsRequest::getRuleName()const
|
||||
@@ -45,6 +45,6 @@ std::string DeleteEventTargetsRequest::getRuleName()const
|
||||
void DeleteEventTargetsRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteEventTargetsResult::~DeleteEventTargetsResult()
|
||||
|
||||
void DeleteEventTargetsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ long DeleteGroupDynamicRuleRequest::getGroupId()const
|
||||
void DeleteGroupDynamicRuleRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string DeleteGroupDynamicRuleRequest::getCategory()const
|
||||
@@ -44,6 +44,6 @@ std::string DeleteGroupDynamicRuleRequest::getCategory()const
|
||||
void DeleteGroupDynamicRuleRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setParameter("Category", category);
|
||||
setCoreParameter("Category", category);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteGroupDynamicRuleResult::~DeleteGroupDynamicRuleResult()
|
||||
|
||||
void DeleteGroupDynamicRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string DeleteMonitoringTemplateRequest::getId()const
|
||||
void DeleteMonitoringTemplateRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteMonitoringTemplateResult::~DeleteMonitoringTemplateResult()
|
||||
|
||||
void DeleteMonitoringTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceNode = value["Resource"];
|
||||
if(!resourceNode["Name"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DeleteMyGroupInstancesRequest::getInstanceIds()const
|
||||
void DeleteMyGroupInstancesRequest::setInstanceIds(const std::string& instanceIds)
|
||||
{
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter("InstanceIds", instanceIds);
|
||||
setCoreParameter("InstanceIds", instanceIds);
|
||||
}
|
||||
|
||||
std::string DeleteMyGroupInstancesRequest::getInstanceIdList()const
|
||||
@@ -44,7 +44,7 @@ std::string DeleteMyGroupInstancesRequest::getInstanceIdList()const
|
||||
void DeleteMyGroupInstancesRequest::setInstanceIdList(const std::string& instanceIdList)
|
||||
{
|
||||
instanceIdList_ = instanceIdList;
|
||||
setParameter("InstanceIdList", instanceIdList);
|
||||
setCoreParameter("InstanceIdList", instanceIdList);
|
||||
}
|
||||
|
||||
long DeleteMyGroupInstancesRequest::getGroupId()const
|
||||
@@ -55,7 +55,7 @@ long DeleteMyGroupInstancesRequest::getGroupId()const
|
||||
void DeleteMyGroupInstancesRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string DeleteMyGroupInstancesRequest::getCategory()const
|
||||
@@ -66,6 +66,6 @@ std::string DeleteMyGroupInstancesRequest::getCategory()const
|
||||
void DeleteMyGroupInstancesRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setParameter("Category", category);
|
||||
setCoreParameter("Category", category);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteMyGroupInstancesResult::~DeleteMyGroupInstancesResult()
|
||||
|
||||
void DeleteMyGroupInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,6 +33,6 @@ long DeleteMyGroupsRequest::getGroupId()const
|
||||
void DeleteMyGroupsRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteMyGroupsResult::~DeleteMyGroupsResult()
|
||||
|
||||
void DeleteMyGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto groupNode = value["Group"];
|
||||
if(!groupNode["GroupId"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DeleteNotifyPolicyRequest::getPolicyType()const
|
||||
void DeleteNotifyPolicyRequest::setPolicyType(const std::string& policyType)
|
||||
{
|
||||
policyType_ = policyType;
|
||||
setParameter("PolicyType", policyType);
|
||||
setCoreParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string DeleteNotifyPolicyRequest::getAlertName()const
|
||||
@@ -44,7 +44,7 @@ std::string DeleteNotifyPolicyRequest::getAlertName()const
|
||||
void DeleteNotifyPolicyRequest::setAlertName(const std::string& alertName)
|
||||
{
|
||||
alertName_ = alertName;
|
||||
setParameter("AlertName", alertName);
|
||||
setCoreParameter("AlertName", alertName);
|
||||
}
|
||||
|
||||
std::string DeleteNotifyPolicyRequest::getGroupId()const
|
||||
@@ -55,7 +55,7 @@ std::string DeleteNotifyPolicyRequest::getGroupId()const
|
||||
void DeleteNotifyPolicyRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DeleteNotifyPolicyRequest::getId()const
|
||||
@@ -66,7 +66,7 @@ std::string DeleteNotifyPolicyRequest::getId()const
|
||||
void DeleteNotifyPolicyRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string DeleteNotifyPolicyRequest::getDimensions()const
|
||||
@@ -77,7 +77,7 @@ std::string DeleteNotifyPolicyRequest::getDimensions()const
|
||||
void DeleteNotifyPolicyRequest::setDimensions(const std::string& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
setParameter("Dimensions", dimensions);
|
||||
setCoreParameter("Dimensions", dimensions);
|
||||
}
|
||||
|
||||
std::string DeleteNotifyPolicyRequest::getAccessKeyId()const
|
||||
@@ -88,6 +88,6 @@ std::string DeleteNotifyPolicyRequest::getAccessKeyId()const
|
||||
void DeleteNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteNotifyPolicyResult::~DeleteNotifyPolicyResult()
|
||||
|
||||
void DeleteNotifyPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ int DeleteTasksRequest::getIsDeleteAlarms()const
|
||||
void DeleteTasksRequest::setIsDeleteAlarms(int isDeleteAlarms)
|
||||
{
|
||||
isDeleteAlarms_ = isDeleteAlarms;
|
||||
setParameter("IsDeleteAlarms", std::to_string(isDeleteAlarms));
|
||||
setCoreParameter("IsDeleteAlarms", std::to_string(isDeleteAlarms));
|
||||
}
|
||||
|
||||
std::string DeleteTasksRequest::getTaskIds()const
|
||||
@@ -44,6 +44,6 @@ std::string DeleteTasksRequest::getTaskIds()const
|
||||
void DeleteTasksRequest::setTaskIds(const std::string& taskIds)
|
||||
{
|
||||
taskIds_ = taskIds;
|
||||
setParameter("TaskIds", taskIds);
|
||||
setCoreParameter("TaskIds", taskIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteTasksResult::~DeleteTasksResult()
|
||||
|
||||
void DeleteTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribeAlarmHistoryRequest::getAlertName()const
|
||||
void DescribeAlarmHistoryRequest::setAlertName(const std::string& alertName)
|
||||
{
|
||||
alertName_ = alertName;
|
||||
setParameter("AlertName", alertName);
|
||||
setCoreParameter("AlertName", alertName);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getGroupId()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeAlarmHistoryRequest::getGroupId()const
|
||||
void DescribeAlarmHistoryRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getEndTime()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeAlarmHistoryRequest::getEndTime()const
|
||||
void DescribeAlarmHistoryRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getRuleName()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeAlarmHistoryRequest::getRuleName()const
|
||||
void DescribeAlarmHistoryRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getStartTime()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeAlarmHistoryRequest::getStartTime()const
|
||||
void DescribeAlarmHistoryRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
bool DescribeAlarmHistoryRequest::getAscending()const
|
||||
@@ -88,7 +88,7 @@ bool DescribeAlarmHistoryRequest::getAscending()const
|
||||
void DescribeAlarmHistoryRequest::setAscending(bool ascending)
|
||||
{
|
||||
ascending_ = ascending;
|
||||
setParameter("Ascending", ascending ? "true" : "false");
|
||||
setCoreParameter("Ascending", ascending ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getAccessKeyId()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribeAlarmHistoryRequest::getAccessKeyId()const
|
||||
void DescribeAlarmHistoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DescribeAlarmHistoryRequest::getOnlyCount()const
|
||||
@@ -110,7 +110,7 @@ bool DescribeAlarmHistoryRequest::getOnlyCount()const
|
||||
void DescribeAlarmHistoryRequest::setOnlyCount(bool onlyCount)
|
||||
{
|
||||
onlyCount_ = onlyCount;
|
||||
setParameter("OnlyCount", onlyCount ? "true" : "false");
|
||||
setCoreParameter("OnlyCount", onlyCount ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::get_Namespace()const
|
||||
@@ -121,7 +121,7 @@ std::string DescribeAlarmHistoryRequest::get_Namespace()const
|
||||
void DescribeAlarmHistoryRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
int DescribeAlarmHistoryRequest::getPageSize()const
|
||||
@@ -132,7 +132,7 @@ int DescribeAlarmHistoryRequest::getPageSize()const
|
||||
void DescribeAlarmHistoryRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getState()const
|
||||
@@ -143,7 +143,7 @@ std::string DescribeAlarmHistoryRequest::getState()const
|
||||
void DescribeAlarmHistoryRequest::setState(const std::string& state)
|
||||
{
|
||||
state_ = state;
|
||||
setParameter("State", state);
|
||||
setCoreParameter("State", state);
|
||||
}
|
||||
|
||||
int DescribeAlarmHistoryRequest::getPage()const
|
||||
@@ -154,7 +154,7 @@ int DescribeAlarmHistoryRequest::getPage()const
|
||||
void DescribeAlarmHistoryRequest::setPage(int page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", std::to_string(page));
|
||||
setCoreParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getMetricName()const
|
||||
@@ -165,7 +165,7 @@ std::string DescribeAlarmHistoryRequest::getMetricName()const
|
||||
void DescribeAlarmHistoryRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setParameter("MetricName", metricName);
|
||||
setCoreParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmHistoryRequest::getStatus()const
|
||||
@@ -176,6 +176,6 @@ std::string DescribeAlarmHistoryRequest::getStatus()const
|
||||
void DescribeAlarmHistoryRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeAlarmHistoryResult::~DescribeAlarmHistoryResult()
|
||||
|
||||
void DescribeAlarmHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlarmHistoryList = value["AlarmHistoryList"]["AlarmHistory"];
|
||||
for (auto value : allAlarmHistoryList)
|
||||
|
||||
@@ -33,7 +33,7 @@ bool DescribeAlarmsForResourcesRequest::getEnableState()const
|
||||
void DescribeAlarmsForResourcesRequest::setEnableState(bool enableState)
|
||||
{
|
||||
enableState_ = enableState;
|
||||
setParameter("EnableState", enableState ? "true" : "false");
|
||||
setCoreParameter("EnableState", enableState ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsForResourcesRequest::getGroupId()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeAlarmsForResourcesRequest::getGroupId()const
|
||||
void DescribeAlarmsForResourcesRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsForResourcesRequest::get_Namespace()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeAlarmsForResourcesRequest::get_Namespace()const
|
||||
void DescribeAlarmsForResourcesRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsForResourcesRequest::getPageSize()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeAlarmsForResourcesRequest::getPageSize()const
|
||||
void DescribeAlarmsForResourcesRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", pageSize);
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsForResourcesRequest::getAlertState()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeAlarmsForResourcesRequest::getAlertState()const
|
||||
void DescribeAlarmsForResourcesRequest::setAlertState(const std::string& alertState)
|
||||
{
|
||||
alertState_ = alertState;
|
||||
setParameter("AlertState", alertState);
|
||||
setCoreParameter("AlertState", alertState);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsForResourcesRequest::getPage()const
|
||||
@@ -88,7 +88,7 @@ std::string DescribeAlarmsForResourcesRequest::getPage()const
|
||||
void DescribeAlarmsForResourcesRequest::setPage(const std::string& page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", page);
|
||||
setCoreParameter("Page", page);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsForResourcesRequest::getMetricName()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribeAlarmsForResourcesRequest::getMetricName()const
|
||||
void DescribeAlarmsForResourcesRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setParameter("MetricName", metricName);
|
||||
setCoreParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsForResourcesRequest::getDimensions()const
|
||||
@@ -110,6 +110,6 @@ std::string DescribeAlarmsForResourcesRequest::getDimensions()const
|
||||
void DescribeAlarmsForResourcesRequest::setDimensions(const std::string& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
setParameter("Dimensions", dimensions);
|
||||
setCoreParameter("Dimensions", dimensions);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeAlarmsForResourcesResult::~DescribeAlarmsForResourcesResult()
|
||||
|
||||
void DescribeAlarmsForResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatapoints = value["Datapoints"]["Alarm"];
|
||||
for (auto value : allDatapoints)
|
||||
|
||||
@@ -33,7 +33,7 @@ bool DescribeAlarmsRequest::getEnableState()const
|
||||
void DescribeAlarmsRequest::setEnableState(bool enableState)
|
||||
{
|
||||
enableState_ = enableState;
|
||||
setParameter("EnableState", enableState ? "true" : "false");
|
||||
setCoreParameter("EnableState", enableState ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getNames()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeAlarmsRequest::getNames()const
|
||||
void DescribeAlarmsRequest::setNames(const std::string& names)
|
||||
{
|
||||
names_ = names;
|
||||
setParameter("Names", names);
|
||||
setCoreParameter("Names", names);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getDisplayName()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeAlarmsRequest::getDisplayName()const
|
||||
void DescribeAlarmsRequest::setDisplayName(const std::string& displayName)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setParameter("DisplayName", displayName);
|
||||
setCoreParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getGroupId()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeAlarmsRequest::getGroupId()const
|
||||
void DescribeAlarmsRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::get_Namespace()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeAlarmsRequest::get_Namespace()const
|
||||
void DescribeAlarmsRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getPageSize()const
|
||||
@@ -88,7 +88,7 @@ std::string DescribeAlarmsRequest::getPageSize()const
|
||||
void DescribeAlarmsRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", pageSize);
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getAlertState()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribeAlarmsRequest::getAlertState()const
|
||||
void DescribeAlarmsRequest::setAlertState(const std::string& alertState)
|
||||
{
|
||||
alertState_ = alertState;
|
||||
setParameter("AlertState", alertState);
|
||||
setCoreParameter("AlertState", alertState);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getNameKeyword()const
|
||||
@@ -110,7 +110,7 @@ std::string DescribeAlarmsRequest::getNameKeyword()const
|
||||
void DescribeAlarmsRequest::setNameKeyword(const std::string& nameKeyword)
|
||||
{
|
||||
nameKeyword_ = nameKeyword;
|
||||
setParameter("NameKeyword", nameKeyword);
|
||||
setCoreParameter("NameKeyword", nameKeyword);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getGroupBy()const
|
||||
@@ -121,7 +121,7 @@ std::string DescribeAlarmsRequest::getGroupBy()const
|
||||
void DescribeAlarmsRequest::setGroupBy(const std::string& groupBy)
|
||||
{
|
||||
groupBy_ = groupBy;
|
||||
setParameter("GroupBy", groupBy);
|
||||
setCoreParameter("GroupBy", groupBy);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getPage()const
|
||||
@@ -132,7 +132,7 @@ std::string DescribeAlarmsRequest::getPage()const
|
||||
void DescribeAlarmsRequest::setPage(const std::string& page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", page);
|
||||
setCoreParameter("Page", page);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmsRequest::getMetricName()const
|
||||
@@ -143,6 +143,6 @@ std::string DescribeAlarmsRequest::getMetricName()const
|
||||
void DescribeAlarmsRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setParameter("MetricName", metricName);
|
||||
setCoreParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeAlarmsResult::~DescribeAlarmsResult()
|
||||
|
||||
void DescribeAlarmsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatapoints = value["Datapoints"]["Alarm"];
|
||||
for (auto value : allDatapoints)
|
||||
|
||||
181
cms/src/model/DescribeAlertHistoryListRequest.cc
Normal file
181
cms/src/model/DescribeAlertHistoryListRequest.cc
Normal file
@@ -0,0 +1,181 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DescribeAlertHistoryListRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::DescribeAlertHistoryListRequest;
|
||||
|
||||
DescribeAlertHistoryListRequest::DescribeAlertHistoryListRequest() :
|
||||
RpcServiceRequest("cms", "2018-03-08", "DescribeAlertHistoryList")
|
||||
{}
|
||||
|
||||
DescribeAlertHistoryListRequest::~DescribeAlertHistoryListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getAlertName()const
|
||||
{
|
||||
return alertName_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setAlertName(const std::string& alertName)
|
||||
{
|
||||
alertName_ = 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_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = 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_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DescribeAlertHistoryListRequest::getOnlyCount()const
|
||||
{
|
||||
return onlyCount_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setOnlyCount(bool onlyCount)
|
||||
{
|
||||
onlyCount_ = 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_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setState(const std::string& state)
|
||||
{
|
||||
state_ = 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_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setCoreParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeAlertHistoryListRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
140
cms/src/model/DescribeAlertHistoryListResult.cc
Normal file
140
cms/src/model/DescribeAlertHistoryListResult.cc
Normal file
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DescribeAlertHistoryListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DescribeAlertHistoryListResult::DescribeAlertHistoryListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAlertHistoryListResult::DescribeAlertHistoryListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAlertHistoryListResult::~DescribeAlertHistoryListResult()
|
||||
{}
|
||||
|
||||
void DescribeAlertHistoryListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlarmHistoryList = value["AlarmHistoryList"]["AlarmHistory"];
|
||||
for (auto value : allAlarmHistoryList)
|
||||
{
|
||||
AlarmHistory alarmHistoryListObject;
|
||||
if(!value["Id"].isNull())
|
||||
alarmHistoryListObject.id = value["Id"].asString();
|
||||
if(!value["AlertName"].isNull())
|
||||
alarmHistoryListObject.alertName = value["AlertName"].asString();
|
||||
if(!value["GroupId"].isNull())
|
||||
alarmHistoryListObject.groupId = value["GroupId"].asString();
|
||||
if(!value["Namespace"].isNull())
|
||||
alarmHistoryListObject._namespace = value["Namespace"].asString();
|
||||
if(!value["MetricName"].isNull())
|
||||
alarmHistoryListObject.metricName = value["MetricName"].asString();
|
||||
if(!value["Dimensions"].isNull())
|
||||
alarmHistoryListObject.dimensions = value["Dimensions"].asString();
|
||||
if(!value["Expression"].isNull())
|
||||
alarmHistoryListObject.expression = value["Expression"].asString();
|
||||
if(!value["EvaluationCount"].isNull())
|
||||
alarmHistoryListObject.evaluationCount = std::stoi(value["EvaluationCount"].asString());
|
||||
if(!value["Value"].isNull())
|
||||
alarmHistoryListObject.value = value["Value"].asString();
|
||||
if(!value["AlertTime"].isNull())
|
||||
alarmHistoryListObject.alertTime = std::stol(value["AlertTime"].asString());
|
||||
if(!value["LastTime"].isNull())
|
||||
alarmHistoryListObject.lastTime = std::stol(value["LastTime"].asString());
|
||||
if(!value["Level"].isNull())
|
||||
alarmHistoryListObject.level = value["Level"].asString();
|
||||
if(!value["PreLevel"].isNull())
|
||||
alarmHistoryListObject.preLevel = value["PreLevel"].asString();
|
||||
if(!value["RuleName"].isNull())
|
||||
alarmHistoryListObject.ruleName = value["RuleName"].asString();
|
||||
if(!value["State"].isNull())
|
||||
alarmHistoryListObject.state = value["State"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
alarmHistoryListObject.status = std::stoi(value["Status"].asString());
|
||||
if(!value["UserId"].isNull())
|
||||
alarmHistoryListObject.userId = value["UserId"].asString();
|
||||
if(!value["Webhooks"].isNull())
|
||||
alarmHistoryListObject.webhooks = value["Webhooks"].asString();
|
||||
if(!value["InstanceName"].isNull())
|
||||
alarmHistoryListObject.instanceName = value["InstanceName"].asString();
|
||||
auto allContactGroups = value["ContactGroups"]["ContactGroup"];
|
||||
for (auto value : allContactGroups)
|
||||
alarmHistoryListObject.contactGroups.push_back(value.asString());
|
||||
auto allContacts = value["Contacts"]["Contact"];
|
||||
for (auto value : allContacts)
|
||||
alarmHistoryListObject.contacts.push_back(value.asString());
|
||||
auto allContactALIIMs = value["ContactALIIMs"]["ContactALIIM"];
|
||||
for (auto value : allContactALIIMs)
|
||||
alarmHistoryListObject.contactALIIMs.push_back(value.asString());
|
||||
auto allContactSmses = value["ContactSmses"]["ContactSms"];
|
||||
for (auto value : allContactSmses)
|
||||
alarmHistoryListObject.contactSmses.push_back(value.asString());
|
||||
auto allContactMails = value["ContactMails"]["ContactMail"];
|
||||
for (auto value : allContactMails)
|
||||
alarmHistoryListObject.contactMails.push_back(value.asString());
|
||||
alarmHistoryList_.push_back(alarmHistoryListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Total"].isNull())
|
||||
total_ = value["Total"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAlertHistoryListResult::AlarmHistory> DescribeAlertHistoryListResult::getAlarmHistoryList()const
|
||||
{
|
||||
return alarmHistoryList_;
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeAlertHistoryListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string DescribeContactRequest::getContactName()const
|
||||
void DescribeContactRequest::setContactName(const std::string& contactName)
|
||||
{
|
||||
contactName_ = contactName;
|
||||
setParameter("ContactName", contactName);
|
||||
setCoreParameter("ContactName", contactName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeContactResult::~DescribeContactResult()
|
||||
|
||||
void DescribeContactResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto datapointsNode = value["Datapoints"];
|
||||
if(!datapointsNode["Name"].isNull())
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string DescribeEventRuleRequest::getRuleName()const
|
||||
void DescribeEventRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeEventRuleResult::~DescribeEventRuleResult()
|
||||
|
||||
void DescribeEventRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Description"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribeISPAreaCityRequest::getCity()const
|
||||
void DescribeISPAreaCityRequest::setCity(const std::string& city)
|
||||
{
|
||||
city_ = city;
|
||||
setParameter("City", city);
|
||||
setCoreParameter("City", city);
|
||||
}
|
||||
|
||||
std::string DescribeISPAreaCityRequest::getIsp()const
|
||||
@@ -44,6 +44,6 @@ std::string DescribeISPAreaCityRequest::getIsp()const
|
||||
void DescribeISPAreaCityRequest::setIsp(const std::string& isp)
|
||||
{
|
||||
isp_ = isp;
|
||||
setParameter("Isp", isp);
|
||||
setCoreParameter("Isp", isp);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeISPAreaCityResult::~DescribeISPAreaCityResult()
|
||||
|
||||
void DescribeISPAreaCityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
38
cms/src/model/DescribeMetricRuleTargetsRequest.cc
Normal file
38
cms/src/model/DescribeMetricRuleTargetsRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::DescribeMetricRuleTargetsRequest;
|
||||
|
||||
DescribeMetricRuleTargetsRequest::DescribeMetricRuleTargetsRequest() :
|
||||
RpcServiceRequest("cms", "2018-03-08", "DescribeMetricRuleTargets")
|
||||
{}
|
||||
|
||||
DescribeMetricRuleTargetsRequest::~DescribeMetricRuleTargetsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeMetricRuleTargetsRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DescribeMetricRuleTargetsRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
79
cms/src/model/DescribeMetricRuleTargetsResult.cc
Normal file
79
cms/src/model/DescribeMetricRuleTargetsResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DescribeMetricRuleTargetsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DescribeMetricRuleTargetsResult::DescribeMetricRuleTargetsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMetricRuleTargetsResult::DescribeMetricRuleTargetsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMetricRuleTargetsResult::~DescribeMetricRuleTargetsResult()
|
||||
{}
|
||||
|
||||
void DescribeMetricRuleTargetsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTargets = value["Targets"]["Target"];
|
||||
for (auto value : allTargets)
|
||||
{
|
||||
Target targetsObject;
|
||||
if(!value["Id"].isNull())
|
||||
targetsObject.id = value["Id"].asString();
|
||||
if(!value["Arn"].isNull())
|
||||
targetsObject.arn = value["Arn"].asString();
|
||||
if(!value["Level"].isNull())
|
||||
targetsObject.level = value["Level"].asString();
|
||||
targets_.push_back(targetsObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeMetricRuleTargetsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<DescribeMetricRuleTargetsResult::Target> DescribeMetricRuleTargetsResult::getTargets()const
|
||||
{
|
||||
return targets_;
|
||||
}
|
||||
|
||||
std::string DescribeMetricRuleTargetsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
49
cms/src/model/DescribeSiteMonitorISPAreaCityRequest.cc
Normal file
49
cms/src/model/DescribeSiteMonitorISPAreaCityRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::DescribeSiteMonitorISPAreaCityRequest;
|
||||
|
||||
DescribeSiteMonitorISPAreaCityRequest::DescribeSiteMonitorISPAreaCityRequest() :
|
||||
RpcServiceRequest("cms", "2018-03-08", "DescribeSiteMonitorISPAreaCity")
|
||||
{}
|
||||
|
||||
DescribeSiteMonitorISPAreaCityRequest::~DescribeSiteMonitorISPAreaCityRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSiteMonitorISPAreaCityRequest::getCity()const
|
||||
{
|
||||
return city_;
|
||||
}
|
||||
|
||||
void DescribeSiteMonitorISPAreaCityRequest::setCity(const std::string& city)
|
||||
{
|
||||
city_ = city;
|
||||
setCoreParameter("City", city);
|
||||
}
|
||||
|
||||
std::string DescribeSiteMonitorISPAreaCityRequest::getIsp()const
|
||||
{
|
||||
return isp_;
|
||||
}
|
||||
|
||||
void DescribeSiteMonitorISPAreaCityRequest::setIsp(const std::string& isp)
|
||||
{
|
||||
isp_ = isp;
|
||||
setCoreParameter("Isp", isp);
|
||||
}
|
||||
|
||||
99
cms/src/model/DescribeSiteMonitorISPAreaCityResult.cc
Normal file
99
cms/src/model/DescribeSiteMonitorISPAreaCityResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DescribeSiteMonitorISPAreaCityResult::DescribeSiteMonitorISPAreaCityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSiteMonitorISPAreaCityResult::DescribeSiteMonitorISPAreaCityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSiteMonitorISPAreaCityResult::~DescribeSiteMonitorISPAreaCityResult()
|
||||
{}
|
||||
|
||||
void DescribeSiteMonitorISPAreaCityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allIspCityList = value["IspCityList"]["IspCity"];
|
||||
for (auto value : allIspCityList)
|
||||
{
|
||||
IspCity ispCityListObject;
|
||||
if(!value["City"].isNull())
|
||||
ispCityListObject.city = value["City"].asString();
|
||||
if(!value["Isp"].isNull())
|
||||
ispCityListObject.isp = value["Isp"].asString();
|
||||
if(!value["CityName"].isNull())
|
||||
ispCityListObject.cityName = value["CityName"].asString();
|
||||
if(!value["IspName"].isNull())
|
||||
ispCityListObject.ispName = value["IspName"].asString();
|
||||
if(!value["Country"].isNull())
|
||||
ispCityListObject.country = value["Country"].asString();
|
||||
if(!value["Region"].isNull())
|
||||
ispCityListObject.region = value["Region"].asString();
|
||||
ispCityList_.push_back(ispCityListObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSiteMonitorISPAreaCityResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeSiteMonitorISPAreaCityResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeSiteMonitorISPAreaCityResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::vector<DescribeSiteMonitorISPAreaCityResult::IspCity> DescribeSiteMonitorISPAreaCityResult::getIspCityList()const
|
||||
{
|
||||
return ispCityList_;
|
||||
}
|
||||
|
||||
std::string DescribeSiteMonitorISPAreaCityResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
49
cms/src/model/DescribeSiteMonitorISPCityListRequest.cc
Normal file
49
cms/src/model/DescribeSiteMonitorISPCityListRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::DescribeSiteMonitorISPCityListRequest;
|
||||
|
||||
DescribeSiteMonitorISPCityListRequest::DescribeSiteMonitorISPCityListRequest() :
|
||||
RpcServiceRequest("cms", "2018-03-08", "DescribeSiteMonitorISPCityList")
|
||||
{}
|
||||
|
||||
DescribeSiteMonitorISPCityListRequest::~DescribeSiteMonitorISPCityListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSiteMonitorISPCityListRequest::getCity()const
|
||||
{
|
||||
return city_;
|
||||
}
|
||||
|
||||
void DescribeSiteMonitorISPCityListRequest::setCity(const std::string& city)
|
||||
{
|
||||
city_ = city;
|
||||
setCoreParameter("City", city);
|
||||
}
|
||||
|
||||
std::string DescribeSiteMonitorISPCityListRequest::getIsp()const
|
||||
{
|
||||
return isp_;
|
||||
}
|
||||
|
||||
void DescribeSiteMonitorISPCityListRequest::setIsp(const std::string& isp)
|
||||
{
|
||||
isp_ = isp;
|
||||
setCoreParameter("Isp", isp);
|
||||
}
|
||||
|
||||
92
cms/src/model/DescribeSiteMonitorISPCityListResult.cc
Normal file
92
cms/src/model/DescribeSiteMonitorISPCityListResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DescribeSiteMonitorISPCityListResult::DescribeSiteMonitorISPCityListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSiteMonitorISPCityListResult::DescribeSiteMonitorISPCityListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSiteMonitorISPCityListResult::~DescribeSiteMonitorISPCityListResult()
|
||||
{}
|
||||
|
||||
void DescribeSiteMonitorISPCityListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allIspCityList = value["IspCityList"]["IspCity"];
|
||||
for (auto value : allIspCityList)
|
||||
{
|
||||
IspCity ispCityListObject;
|
||||
if(!value["Isp"].isNull())
|
||||
ispCityListObject.isp = value["Isp"].asString();
|
||||
if(!value["City"].isNull())
|
||||
ispCityListObject.city = value["City"].asString();
|
||||
if(!value["IspName.zh_CN"].isNull())
|
||||
ispCityListObject.ispNamezh_CN = value["IspName.zh_CN"].asString();
|
||||
if(!value["CityName.zh_CN"].isNull())
|
||||
ispCityListObject.cityNamezh_CN = value["CityName.zh_CN"].asString();
|
||||
if(!value["Region.zh_CN"].isNull())
|
||||
ispCityListObject.regionzh_CN = value["Region.zh_CN"].asString();
|
||||
if(!value["Country.zh_CN"].isNull())
|
||||
ispCityListObject.countryzh_CN = value["Country.zh_CN"].asString();
|
||||
ispCityList_.push_back(ispCityListObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSiteMonitorISPCityListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeSiteMonitorISPCityListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::vector<DescribeSiteMonitorISPCityListResult::IspCity> DescribeSiteMonitorISPCityListResult::getIspCityList()const
|
||||
{
|
||||
return ispCityList_;
|
||||
}
|
||||
|
||||
std::string DescribeSiteMonitorISPCityListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string DescribeTaskDetailRequest::getTaskId()const
|
||||
void DescribeTaskDetailRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeTaskDetailResult::~DescribeTaskDetailResult()
|
||||
|
||||
void DescribeTaskDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribeTasksRequest::getTaskType()const
|
||||
void DescribeTasksRequest::setTaskType(const std::string& taskType)
|
||||
{
|
||||
taskType_ = taskType;
|
||||
setParameter("TaskType", taskType);
|
||||
setCoreParameter("TaskType", taskType);
|
||||
}
|
||||
|
||||
int DescribeTasksRequest::getPageSize()const
|
||||
@@ -44,7 +44,7 @@ int DescribeTasksRequest::getPageSize()const
|
||||
void DescribeTasksRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeTasksRequest::getPage()const
|
||||
@@ -55,7 +55,7 @@ int DescribeTasksRequest::getPage()const
|
||||
void DescribeTasksRequest::setPage(int page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", std::to_string(page));
|
||||
setCoreParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
std::string DescribeTasksRequest::getKeyword()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeTasksRequest::getKeyword()const
|
||||
void DescribeTasksRequest::setKeyword(const std::string& keyword)
|
||||
{
|
||||
keyword_ = keyword;
|
||||
setParameter("Keyword", keyword);
|
||||
setCoreParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
std::string DescribeTasksRequest::getTaskId()const
|
||||
@@ -77,6 +77,6 @@ std::string DescribeTasksRequest::getTaskId()const
|
||||
void DescribeTasksRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeTasksResult::~DescribeTasksResult()
|
||||
|
||||
void DescribeTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DisableActiveAlertRequest::getProduct()const
|
||||
void DisableActiveAlertRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
setCoreParameter("Product", product);
|
||||
}
|
||||
|
||||
std::string DisableActiveAlertRequest::getUserId()const
|
||||
@@ -44,6 +44,6 @@ std::string DisableActiveAlertRequest::getUserId()const
|
||||
void DisableActiveAlertRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
setCoreParameter("UserId", userId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DisableActiveAlertResult::~DisableActiveAlertResult()
|
||||
|
||||
void DisableActiveAlertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string DisableAlarmRequest::getId()const
|
||||
void DisableAlarmRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DisableAlarmResult::~DisableAlarmResult()
|
||||
|
||||
void DisableAlarmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -34,7 +34,7 @@ void DisableEventRuleRequest::setRuleNames(const std::vector<std::string>& ruleN
|
||||
{
|
||||
ruleNames_ = ruleNames;
|
||||
for(int i = 0; i!= ruleNames.size(); i++)
|
||||
setParameter("RuleNames."+ std::to_string(i), ruleNames.at(i));
|
||||
setCoreParameter("RuleNames."+ std::to_string(i), ruleNames.at(i));
|
||||
}
|
||||
|
||||
std::string DisableEventRuleRequest::getRuleName()const
|
||||
@@ -45,6 +45,6 @@ std::string DisableEventRuleRequest::getRuleName()const
|
||||
void DisableEventRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DisableEventRuleResult::~DisableEventRuleResult()
|
||||
|
||||
void DisableEventRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string EnableActiveAlertRequest::getProduct()const
|
||||
void EnableActiveAlertRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
setCoreParameter("Product", product);
|
||||
}
|
||||
|
||||
std::string EnableActiveAlertRequest::getUserId()const
|
||||
@@ -44,6 +44,6 @@ std::string EnableActiveAlertRequest::getUserId()const
|
||||
void EnableActiveAlertRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
setCoreParameter("UserId", userId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ EnableActiveAlertResult::~EnableActiveAlertResult()
|
||||
|
||||
void EnableActiveAlertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string EnableAlarmRequest::getId()const
|
||||
void EnableAlarmRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ EnableAlarmResult::~EnableAlarmResult()
|
||||
|
||||
void EnableAlarmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -34,7 +34,7 @@ void EnableEventRuleRequest::setRuleNames(const std::vector<std::string>& ruleNa
|
||||
{
|
||||
ruleNames_ = ruleNames;
|
||||
for(int i = 0; i!= ruleNames.size(); i++)
|
||||
setParameter("RuleNames."+ std::to_string(i), ruleNames.at(i));
|
||||
setCoreParameter("RuleNames."+ std::to_string(i), ruleNames.at(i));
|
||||
}
|
||||
|
||||
std::string EnableEventRuleRequest::getRuleName()const
|
||||
@@ -45,6 +45,6 @@ std::string EnableEventRuleRequest::getRuleName()const
|
||||
void EnableEventRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ EnableEventRuleResult::~EnableEventRuleResult()
|
||||
|
||||
void EnableEventRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string GetContactsRequest::getGroupName()const
|
||||
void GetContactsRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setParameter("GroupName", groupName);
|
||||
setCoreParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetContactsResult::~GetContactsResult()
|
||||
|
||||
void GetContactsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto datapointsNode = value["Datapoints"];
|
||||
if(!datapointsNode["Name"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetMonitoringTemplateRequest::getName()const
|
||||
void GetMonitoringTemplateRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string GetMonitoringTemplateRequest::getId()const
|
||||
@@ -44,6 +44,6 @@ std::string GetMonitoringTemplateRequest::getId()const
|
||||
void GetMonitoringTemplateRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetMonitoringTemplateResult::~GetMonitoringTemplateResult()
|
||||
|
||||
void GetMonitoringTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceNode = value["Resource"];
|
||||
if(!resourceNode["Name"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ long GetMyGroupAlertRequest::getGroupId()const
|
||||
void GetMyGroupAlertRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string GetMyGroupAlertRequest::getAlertName()const
|
||||
@@ -44,6 +44,6 @@ std::string GetMyGroupAlertRequest::getAlertName()const
|
||||
void GetMyGroupAlertRequest::setAlertName(const std::string& alertName)
|
||||
{
|
||||
alertName_ = alertName;
|
||||
setParameter("AlertName", alertName);
|
||||
setCoreParameter("AlertName", alertName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetMyGroupAlertResult::~GetMyGroupAlertResult()
|
||||
|
||||
void GetMyGroupAlertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto groupAlertNode = value["GroupAlert"];
|
||||
if(!groupAlertNode["GroupId"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ bool GetMyGroupsRequest::getSelectContactGroups()const
|
||||
void GetMyGroupsRequest::setSelectContactGroups(bool selectContactGroups)
|
||||
{
|
||||
selectContactGroups_ = selectContactGroups;
|
||||
setParameter("SelectContactGroups", selectContactGroups ? "true" : "false");
|
||||
setCoreParameter("SelectContactGroups", selectContactGroups ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetMyGroupsRequest::getInstanceId()const
|
||||
@@ -44,7 +44,7 @@ std::string GetMyGroupsRequest::getInstanceId()const
|
||||
void GetMyGroupsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
long GetMyGroupsRequest::getGroupId()const
|
||||
@@ -55,7 +55,7 @@ long GetMyGroupsRequest::getGroupId()const
|
||||
void GetMyGroupsRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string GetMyGroupsRequest::getType()const
|
||||
@@ -66,7 +66,7 @@ std::string GetMyGroupsRequest::getType()const
|
||||
void GetMyGroupsRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string GetMyGroupsRequest::getGroupName()const
|
||||
@@ -77,7 +77,7 @@ std::string GetMyGroupsRequest::getGroupName()const
|
||||
void GetMyGroupsRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setParameter("GroupName", groupName);
|
||||
setCoreParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
std::string GetMyGroupsRequest::getBindUrl()const
|
||||
@@ -88,6 +88,6 @@ std::string GetMyGroupsRequest::getBindUrl()const
|
||||
void GetMyGroupsRequest::setBindUrl(const std::string& bindUrl)
|
||||
{
|
||||
bindUrl_ = bindUrl;
|
||||
setParameter("BindUrl", bindUrl);
|
||||
setCoreParameter("BindUrl", bindUrl);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetMyGroupsResult::~GetMyGroupsResult()
|
||||
|
||||
void GetMyGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto groupNode = value["Group"];
|
||||
if(!groupNode["GroupId"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetNotifyPolicyRequest::getPolicyType()const
|
||||
void GetNotifyPolicyRequest::setPolicyType(const std::string& policyType)
|
||||
{
|
||||
policyType_ = policyType;
|
||||
setParameter("PolicyType", policyType);
|
||||
setCoreParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyRequest::getAlertName()const
|
||||
@@ -44,7 +44,7 @@ std::string GetNotifyPolicyRequest::getAlertName()const
|
||||
void GetNotifyPolicyRequest::setAlertName(const std::string& alertName)
|
||||
{
|
||||
alertName_ = alertName;
|
||||
setParameter("AlertName", alertName);
|
||||
setCoreParameter("AlertName", alertName);
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyRequest::getGroupId()const
|
||||
@@ -55,7 +55,7 @@ std::string GetNotifyPolicyRequest::getGroupId()const
|
||||
void GetNotifyPolicyRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyRequest::getId()const
|
||||
@@ -66,7 +66,7 @@ std::string GetNotifyPolicyRequest::getId()const
|
||||
void GetNotifyPolicyRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyRequest::getDimensions()const
|
||||
@@ -77,7 +77,7 @@ std::string GetNotifyPolicyRequest::getDimensions()const
|
||||
void GetNotifyPolicyRequest::setDimensions(const std::string& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
setParameter("Dimensions", dimensions);
|
||||
setCoreParameter("Dimensions", dimensions);
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyRequest::getAccessKeyId()const
|
||||
@@ -88,6 +88,6 @@ std::string GetNotifyPolicyRequest::getAccessKeyId()const
|
||||
void GetNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetNotifyPolicyResult::~GetNotifyPolicyResult()
|
||||
|
||||
void GetNotifyPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["AlertName"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string ListActiveAlertRuleRequest::getProduct()const
|
||||
void ListActiveAlertRuleRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
setCoreParameter("Product", product);
|
||||
}
|
||||
|
||||
std::string ListActiveAlertRuleRequest::getUserId()const
|
||||
@@ -44,6 +44,6 @@ std::string ListActiveAlertRuleRequest::getUserId()const
|
||||
void ListActiveAlertRuleRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
setCoreParameter("UserId", userId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ListActiveAlertRuleResult::~ListActiveAlertRuleResult()
|
||||
|
||||
void ListActiveAlertRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatapoints = value["Datapoints"]["Alarm"];
|
||||
for (auto value : allDatapoints)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string ListAlarmHistoryRequest::getCursor()const
|
||||
void ListAlarmHistoryRequest::setCursor(const std::string& cursor)
|
||||
{
|
||||
cursor_ = cursor;
|
||||
setParameter("Cursor", cursor);
|
||||
setCoreParameter("Cursor", cursor);
|
||||
}
|
||||
|
||||
int ListAlarmHistoryRequest::getSize()const
|
||||
@@ -44,7 +44,7 @@ int ListAlarmHistoryRequest::getSize()const
|
||||
void ListAlarmHistoryRequest::setSize(int size)
|
||||
{
|
||||
size_ = size;
|
||||
setParameter("Size", std::to_string(size));
|
||||
setCoreParameter("Size", std::to_string(size));
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoryRequest::getEndTime()const
|
||||
@@ -55,7 +55,7 @@ std::string ListAlarmHistoryRequest::getEndTime()const
|
||||
void ListAlarmHistoryRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoryRequest::getId()const
|
||||
@@ -66,7 +66,7 @@ std::string ListAlarmHistoryRequest::getId()const
|
||||
void ListAlarmHistoryRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoryRequest::getStartTime()const
|
||||
@@ -77,7 +77,7 @@ std::string ListAlarmHistoryRequest::getStartTime()const
|
||||
void ListAlarmHistoryRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoryRequest::getAccessKeyId()const
|
||||
@@ -88,6 +88,6 @@ std::string ListAlarmHistoryRequest::getAccessKeyId()const
|
||||
void ListAlarmHistoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ListAlarmHistoryResult::~ListAlarmHistoryResult()
|
||||
|
||||
void ListAlarmHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlarmHistoryList = value["AlarmHistoryList"]["AlarmHistory"];
|
||||
for (auto value : allAlarmHistoryList)
|
||||
|
||||
@@ -33,7 +33,7 @@ bool ListAlarmRequest::getIsEnable()const
|
||||
void ListAlarmRequest::setIsEnable(bool isEnable)
|
||||
{
|
||||
isEnable_ = isEnable;
|
||||
setParameter("IsEnable", isEnable ? "true" : "false");
|
||||
setCoreParameter("IsEnable", isEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListAlarmRequest::getName()const
|
||||
@@ -44,7 +44,7 @@ std::string ListAlarmRequest::getName()const
|
||||
void ListAlarmRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ListAlarmRequest::get_Namespace()const
|
||||
@@ -55,7 +55,7 @@ std::string ListAlarmRequest::get_Namespace()const
|
||||
void ListAlarmRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
int ListAlarmRequest::getPageSize()const
|
||||
@@ -66,7 +66,7 @@ int ListAlarmRequest::getPageSize()const
|
||||
void ListAlarmRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListAlarmRequest::getId()const
|
||||
@@ -77,7 +77,7 @@ std::string ListAlarmRequest::getId()const
|
||||
void ListAlarmRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string ListAlarmRequest::getState()const
|
||||
@@ -88,7 +88,7 @@ std::string ListAlarmRequest::getState()const
|
||||
void ListAlarmRequest::setState(const std::string& state)
|
||||
{
|
||||
state_ = state;
|
||||
setParameter("State", state);
|
||||
setCoreParameter("State", state);
|
||||
}
|
||||
|
||||
std::string ListAlarmRequest::getDimension()const
|
||||
@@ -99,7 +99,7 @@ std::string ListAlarmRequest::getDimension()const
|
||||
void ListAlarmRequest::setDimension(const std::string& dimension)
|
||||
{
|
||||
dimension_ = dimension;
|
||||
setParameter("Dimension", dimension);
|
||||
setCoreParameter("Dimension", dimension);
|
||||
}
|
||||
|
||||
int ListAlarmRequest::getPageNumber()const
|
||||
@@ -110,6 +110,6 @@ int ListAlarmRequest::getPageNumber()const
|
||||
void ListAlarmRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ListAlarmResult::~ListAlarmResult()
|
||||
|
||||
void ListAlarmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlarmList = value["AlarmList"]["Alarm"];
|
||||
for (auto value : allAlarmList)
|
||||
|
||||
@@ -33,7 +33,7 @@ int ListContactGroupRequest::getPageSize()const
|
||||
void ListContactGroupRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListContactGroupRequest::getPageNumber()const
|
||||
@@ -44,6 +44,6 @@ int ListContactGroupRequest::getPageNumber()const
|
||||
void ListContactGroupRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ListContactGroupResult::~ListContactGroupResult()
|
||||
|
||||
void ListContactGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allContactGroups = value["ContactGroups"]["ContactGroup"];
|
||||
for (const auto &item : allContactGroups)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string ListEventRulesRequest::getGroupId()const
|
||||
void ListEventRulesRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string ListEventRulesRequest::getPageSize()const
|
||||
@@ -44,7 +44,7 @@ std::string ListEventRulesRequest::getPageSize()const
|
||||
void ListEventRulesRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", pageSize);
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string ListEventRulesRequest::getNamePrefix()const
|
||||
@@ -55,7 +55,7 @@ std::string ListEventRulesRequest::getNamePrefix()const
|
||||
void ListEventRulesRequest::setNamePrefix(const std::string& namePrefix)
|
||||
{
|
||||
namePrefix_ = namePrefix;
|
||||
setParameter("NamePrefix", namePrefix);
|
||||
setCoreParameter("NamePrefix", namePrefix);
|
||||
}
|
||||
|
||||
std::string ListEventRulesRequest::getPage()const
|
||||
@@ -66,6 +66,6 @@ std::string ListEventRulesRequest::getPage()const
|
||||
void ListEventRulesRequest::setPage(const std::string& page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", page);
|
||||
setCoreParameter("Page", page);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ListEventRulesResult::~ListEventRulesResult()
|
||||
|
||||
void ListEventRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatapoints = value["Datapoints"]["EventRule"];
|
||||
for (auto value : allDatapoints)
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string ListEventTargetsByRuleRequest::getRuleName()const
|
||||
void ListEventTargetsByRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ListEventTargetsByRuleResult::~ListEventTargetsByRuleResult()
|
||||
|
||||
void ListEventTargetsByRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allContactParameters = value["ContactParameters"]["ContactParameter"];
|
||||
for (auto value : allContactParameters)
|
||||
|
||||
@@ -33,6 +33,6 @@ long ListGroupDynamicRuleRequest::getGroupId()const
|
||||
void ListGroupDynamicRuleRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user