AEGIS SDK Auto Released By lai.zhoulai,Version:1.36.5

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-04-15 14:17:29 +08:00
parent a99e207d8f
commit 643a939c6d
884 changed files with 64083 additions and 2289 deletions

View 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/aegis/model/AutoUpgradeSasRequest.h>
using AlibabaCloud::Aegis::Model::AutoUpgradeSasRequest;
AutoUpgradeSasRequest::AutoUpgradeSasRequest() :
RpcServiceRequest("aegis", "2016-11-11", "AutoUpgradeSas")
{}
AutoUpgradeSasRequest::~AutoUpgradeSasRequest()
{}
std::string AutoUpgradeSasRequest::getSourceIp()const
{
return sourceIp_;
}
void AutoUpgradeSasRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/aegis/model/AutoUpgradeSasResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
AutoUpgradeSasResult::AutoUpgradeSasResult() :
ServiceResult()
{}
AutoUpgradeSasResult::AutoUpgradeSasResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AutoUpgradeSasResult::~AutoUpgradeSasResult()
{}
void AutoUpgradeSasResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
bool AutoUpgradeSasResult::getSuccess()const
{
return success_;
}

View 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/aegis/model/AutoUpgradeToSasAdvancedVersionRequest.h>
using AlibabaCloud::Aegis::Model::AutoUpgradeToSasAdvancedVersionRequest;
AutoUpgradeToSasAdvancedVersionRequest::AutoUpgradeToSasAdvancedVersionRequest() :
RpcServiceRequest("aegis", "2016-11-11", "AutoUpgradeToSasAdvancedVersion")
{}
AutoUpgradeToSasAdvancedVersionRequest::~AutoUpgradeToSasAdvancedVersionRequest()
{}
std::string AutoUpgradeToSasAdvancedVersionRequest::getSourceIp()const
{
return sourceIp_;
}
void AutoUpgradeToSasAdvancedVersionRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/AutoUpgradeToSasAdvancedVersionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
AutoUpgradeToSasAdvancedVersionResult::AutoUpgradeToSasAdvancedVersionResult() :
ServiceResult()
{}
AutoUpgradeToSasAdvancedVersionResult::AutoUpgradeToSasAdvancedVersionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AutoUpgradeToSasAdvancedVersionResult::~AutoUpgradeToSasAdvancedVersionResult()
{}
void AutoUpgradeToSasAdvancedVersionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/aegis/model/BatchDeleteWhiteListRequest.h>
using AlibabaCloud::Aegis::Model::BatchDeleteWhiteListRequest;
BatchDeleteWhiteListRequest::BatchDeleteWhiteListRequest() :
RpcServiceRequest("aegis", "2016-11-11", "BatchDeleteWhiteList")
{}
BatchDeleteWhiteListRequest::~BatchDeleteWhiteListRequest()
{}
std::string BatchDeleteWhiteListRequest::getRiskIdList()const
{
return riskIdList_;
}
void BatchDeleteWhiteListRequest::setRiskIdList(const std::string& riskIdList)
{
riskIdList_ = riskIdList;
setCoreParameter("RiskIdList", riskIdList);
}
std::string BatchDeleteWhiteListRequest::getSourceIp()const
{
return sourceIp_;
}
void BatchDeleteWhiteListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/BatchDeleteWhiteListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
BatchDeleteWhiteListResult::BatchDeleteWhiteListResult() :
ServiceResult()
{}
BatchDeleteWhiteListResult::BatchDeleteWhiteListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BatchDeleteWhiteListResult::~BatchDeleteWhiteListResult()
{}
void BatchDeleteWhiteListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/aegis/model/CanTrySasRequest.h>
using AlibabaCloud::Aegis::Model::CanTrySasRequest;
CanTrySasRequest::CanTrySasRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CanTrySas")
{}
CanTrySasRequest::~CanTrySasRequest()
{}
std::string CanTrySasRequest::getSourceIp()const
{
return sourceIp_;
}
void CanTrySasRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/aegis/model/CanTrySasResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CanTrySasResult::CanTrySasResult() :
ServiceResult()
{}
CanTrySasResult::CanTrySasResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CanTrySasResult::~CanTrySasResult()
{}
void CanTrySasResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CanTry"].isNull())
canTry_ = std::stoi(value["CanTry"].asString());
}
int CanTrySasResult::getCanTry()const
{
return canTry_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/CreatScreenSettingRequest.h>
using AlibabaCloud::Aegis::Model::CreatScreenSettingRequest;
CreatScreenSettingRequest::CreatScreenSettingRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CreatScreenSetting")
{}
CreatScreenSettingRequest::~CreatScreenSettingRequest()
{}
std::string CreatScreenSettingRequest::getSourceIp()const
{
return sourceIp_;
}
void CreatScreenSettingRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string CreatScreenSettingRequest::getScreenTitle()const
{
return screenTitle_;
}
void CreatScreenSettingRequest::setScreenTitle(const std::string& screenTitle)
{
screenTitle_ = screenTitle;
setCoreParameter("ScreenTitle", screenTitle);
}
std::string CreatScreenSettingRequest::getScreenIdSetting()const
{
return screenIdSetting_;
}
void CreatScreenSettingRequest::setScreenIdSetting(const std::string& screenIdSetting)
{
screenIdSetting_ = screenIdSetting;
setCoreParameter("ScreenIdSetting", screenIdSetting);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/CreatScreenSettingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CreatScreenSettingResult::CreatScreenSettingResult() :
ServiceResult()
{}
CreatScreenSettingResult::CreatScreenSettingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatScreenSettingResult::~CreatScreenSettingResult()
{}
void CreatScreenSettingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -33,7 +33,7 @@ int CreateInstanceRequest::getDuration()const
void CreateInstanceRequest::setDuration(int duration)
{
duration_ = duration;
setParameter("Duration", std::to_string(duration));
setCoreParameter("Duration", std::to_string(duration));
}
bool CreateInstanceRequest::getIsAutoRenew()const
@@ -44,7 +44,7 @@ bool CreateInstanceRequest::getIsAutoRenew()const
void CreateInstanceRequest::setIsAutoRenew(bool isAutoRenew)
{
isAutoRenew_ = isAutoRenew;
setParameter("IsAutoRenew", std::to_string(isAutoRenew));
setCoreParameter("IsAutoRenew", isAutoRenew ? "true" : "false");
}
std::string CreateInstanceRequest::getClientToken()const
@@ -55,7 +55,7 @@ std::string CreateInstanceRequest::getClientToken()const
void CreateInstanceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
setCoreParameter("ClientToken", clientToken);
}
int CreateInstanceRequest::getVmNumber()const
@@ -66,7 +66,7 @@ int CreateInstanceRequest::getVmNumber()const
void CreateInstanceRequest::setVmNumber(int vmNumber)
{
vmNumber_ = vmNumber;
setParameter("VmNumber", std::to_string(vmNumber));
setCoreParameter("VmNumber", std::to_string(vmNumber));
}
long CreateInstanceRequest::getOwnerId()const
@@ -77,7 +77,7 @@ long CreateInstanceRequest::getOwnerId()const
void CreateInstanceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
int CreateInstanceRequest::getVersionCode()const
@@ -88,7 +88,7 @@ int CreateInstanceRequest::getVersionCode()const
void CreateInstanceRequest::setVersionCode(int versionCode)
{
versionCode_ = versionCode;
setParameter("VersionCode", std::to_string(versionCode));
setCoreParameter("VersionCode", std::to_string(versionCode));
}
std::string CreateInstanceRequest::getPricingCycle()const
@@ -99,7 +99,7 @@ std::string CreateInstanceRequest::getPricingCycle()const
void CreateInstanceRequest::setPricingCycle(const std::string& pricingCycle)
{
pricingCycle_ = pricingCycle;
setParameter("PricingCycle", pricingCycle);
setCoreParameter("PricingCycle", pricingCycle);
}
int CreateInstanceRequest::getAutoRenewDuration()const
@@ -110,6 +110,6 @@ int CreateInstanceRequest::getAutoRenewDuration()const
void CreateInstanceRequest::setAutoRenewDuration(int autoRenewDuration)
{
autoRenewDuration_ = autoRenewDuration;
setParameter("AutoRenewDuration", std::to_string(autoRenewDuration));
setCoreParameter("AutoRenewDuration", std::to_string(autoRenewDuration));
}

View File

@@ -40,20 +40,20 @@ void CreateInstanceResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
}
std::string CreateInstanceResult::getInstanceId()const
{
return instanceId_;
}
std::string CreateInstanceResult::getOrderId()const
{
return orderId_;
}
std::string CreateInstanceResult::getInstanceId()const
{
return instanceId_;
}
std::string CreateInstanceResult::getOrderId()const
{
return orderId_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/aegis/model/CreateLogQueryRequest.h>
using AlibabaCloud::Aegis::Model::CreateLogQueryRequest;
CreateLogQueryRequest::CreateLogQueryRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CreateLogQuery")
{}
CreateLogQueryRequest::~CreateLogQueryRequest()
{}
std::string CreateLogQueryRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateLogQueryRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string CreateLogQueryRequest::getQueryName()const
{
return queryName_;
}
void CreateLogQueryRequest::setQueryName(const std::string& queryName)
{
queryName_ = queryName;
setCoreParameter("QueryName", queryName);
}
std::string CreateLogQueryRequest::getConditions()const
{
return conditions_;
}
void CreateLogQueryRequest::setConditions(const std::string& conditions)
{
conditions_ = conditions;
setCoreParameter("Conditions", conditions);
}
std::string CreateLogQueryRequest::getQueryDetail()const
{
return queryDetail_;
}
void CreateLogQueryRequest::setQueryDetail(const std::string& queryDetail)
{
queryDetail_ = queryDetail;
setCoreParameter("QueryDetail", queryDetail);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/CreateLogQueryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CreateLogQueryResult::CreateLogQueryResult() :
ServiceResult()
{}
CreateLogQueryResult::CreateLogQueryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLogQueryResult::~CreateLogQueryResult()
{}
void CreateLogQueryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,93 @@
/*
* 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/aegis/model/CreateOrUpdateDataSourceRequest.h>
using AlibabaCloud::Aegis::Model::CreateOrUpdateDataSourceRequest;
CreateOrUpdateDataSourceRequest::CreateOrUpdateDataSourceRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CreateOrUpdateDataSource")
{}
CreateOrUpdateDataSourceRequest::~CreateOrUpdateDataSourceRequest()
{}
std::string CreateOrUpdateDataSourceRequest::getProjectName()const
{
return projectName_;
}
void CreateOrUpdateDataSourceRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setCoreParameter("ProjectName", projectName);
}
std::string CreateOrUpdateDataSourceRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateOrUpdateDataSourceRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string CreateOrUpdateDataSourceRequest::getLogStoreName()const
{
return logStoreName_;
}
void CreateOrUpdateDataSourceRequest::setLogStoreName(const std::string& logStoreName)
{
logStoreName_ = logStoreName;
setCoreParameter("LogStoreName", logStoreName);
}
std::string CreateOrUpdateDataSourceRequest::getDatasourceDescription()const
{
return datasourceDescription_;
}
void CreateOrUpdateDataSourceRequest::setDatasourceDescription(const std::string& datasourceDescription)
{
datasourceDescription_ = datasourceDescription;
setCoreParameter("DatasourceDescription", datasourceDescription);
}
std::string CreateOrUpdateDataSourceRequest::getFields()const
{
return fields_;
}
void CreateOrUpdateDataSourceRequest::setFields(const std::string& fields)
{
fields_ = fields;
setCoreParameter("Fields", fields);
}
std::string CreateOrUpdateDataSourceRequest::getRegionNo()const
{
return regionNo_;
}
void CreateOrUpdateDataSourceRequest::setRegionNo(const std::string& regionNo)
{
regionNo_ = regionNo;
setCoreParameter("RegionNo", regionNo);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/CreateOrUpdateDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CreateOrUpdateDataSourceResult::CreateOrUpdateDataSourceResult() :
ServiceResult()
{}
CreateOrUpdateDataSourceResult::CreateOrUpdateDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateOrUpdateDataSourceResult::~CreateOrUpdateDataSourceResult()
{}
void CreateOrUpdateDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,82 @@
/*
* 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/aegis/model/CreateOrUpdateDingTalkRequest.h>
using AlibabaCloud::Aegis::Model::CreateOrUpdateDingTalkRequest;
CreateOrUpdateDingTalkRequest::CreateOrUpdateDingTalkRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CreateOrUpdateDingTalk")
{}
CreateOrUpdateDingTalkRequest::~CreateOrUpdateDingTalkRequest()
{}
std::string CreateOrUpdateDingTalkRequest::getRuleActionName()const
{
return ruleActionName_;
}
void CreateOrUpdateDingTalkRequest::setRuleActionName(const std::string& ruleActionName)
{
ruleActionName_ = ruleActionName;
setCoreParameter("RuleActionName", ruleActionName);
}
std::string CreateOrUpdateDingTalkRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateOrUpdateDingTalkRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string CreateOrUpdateDingTalkRequest::getSendUrl()const
{
return sendUrl_;
}
void CreateOrUpdateDingTalkRequest::setSendUrl(const std::string& sendUrl)
{
sendUrl_ = sendUrl;
setCoreParameter("SendUrl", sendUrl);
}
long CreateOrUpdateDingTalkRequest::getId()const
{
return id_;
}
void CreateOrUpdateDingTalkRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
long CreateOrUpdateDingTalkRequest::getIntervalTime()const
{
return intervalTime_;
}
void CreateOrUpdateDingTalkRequest::setIntervalTime(long intervalTime)
{
intervalTime_ = intervalTime;
setCoreParameter("IntervalTime", std::to_string(intervalTime));
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/CreateOrUpdateDingTalkResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CreateOrUpdateDingTalkResult::CreateOrUpdateDingTalkResult() :
ServiceResult()
{}
CreateOrUpdateDingTalkResult::CreateOrUpdateDingTalkResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateOrUpdateDingTalkResult::~CreateOrUpdateDingTalkResult()
{}
void CreateOrUpdateDingTalkResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,104 @@
/*
* 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/aegis/model/CreateOrUpdateGroupRequest.h>
using AlibabaCloud::Aegis::Model::CreateOrUpdateGroupRequest;
CreateOrUpdateGroupRequest::CreateOrUpdateGroupRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CreateOrUpdateGroup")
{}
CreateOrUpdateGroupRequest::~CreateOrUpdateGroupRequest()
{}
std::string CreateOrUpdateGroupRequest::getRuleIds()const
{
return ruleIds_;
}
void CreateOrUpdateGroupRequest::setRuleIds(const std::string& ruleIds)
{
ruleIds_ = ruleIds;
setCoreParameter("RuleIds", ruleIds);
}
std::string CreateOrUpdateGroupRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateOrUpdateGroupRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string CreateOrUpdateGroupRequest::getMachineGroupIds()const
{
return machineGroupIds_;
}
void CreateOrUpdateGroupRequest::setMachineGroupIds(const std::string& machineGroupIds)
{
machineGroupIds_ = machineGroupIds;
setCoreParameter("MachineGroupIds", machineGroupIds);
}
std::string CreateOrUpdateGroupRequest::getDescription()const
{
return description_;
}
void CreateOrUpdateGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
long CreateOrUpdateGroupRequest::getId()const
{
return id_;
}
void CreateOrUpdateGroupRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
std::string CreateOrUpdateGroupRequest::getLang()const
{
return lang_;
}
void CreateOrUpdateGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string CreateOrUpdateGroupRequest::getGroupName()const
{
return groupName_;
}
void CreateOrUpdateGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/CreateOrUpdateGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CreateOrUpdateGroupResult::CreateOrUpdateGroupResult() :
ServiceResult()
{}
CreateOrUpdateGroupResult::CreateOrUpdateGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateOrUpdateGroupResult::~CreateOrUpdateGroupResult()
{}
void CreateOrUpdateGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,170 @@
/*
* 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/aegis/model/CreateOrUpdateJoinRuleRequest.h>
using AlibabaCloud::Aegis::Model::CreateOrUpdateJoinRuleRequest;
CreateOrUpdateJoinRuleRequest::CreateOrUpdateJoinRuleRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CreateOrUpdateJoinRule")
{}
CreateOrUpdateJoinRuleRequest::~CreateOrUpdateJoinRuleRequest()
{}
std::string CreateOrUpdateJoinRuleRequest::getWarnLevel()const
{
return warnLevel_;
}
void CreateOrUpdateJoinRuleRequest::setWarnLevel(const std::string& warnLevel)
{
warnLevel_ = warnLevel;
setCoreParameter("WarnLevel", warnLevel);
}
long CreateOrUpdateJoinRuleRequest::getDataSourceId2()const
{
return dataSourceId2_;
}
void CreateOrUpdateJoinRuleRequest::setDataSourceId2(long dataSourceId2)
{
dataSourceId2_ = dataSourceId2;
setCoreParameter("DataSourceId2", std::to_string(dataSourceId2));
}
long CreateOrUpdateJoinRuleRequest::getDataSourceId1()const
{
return dataSourceId1_;
}
void CreateOrUpdateJoinRuleRequest::setDataSourceId1(long dataSourceId1)
{
dataSourceId1_ = dataSourceId1;
setCoreParameter("DataSourceId1", std::to_string(dataSourceId1));
}
long CreateOrUpdateJoinRuleRequest::getTimeWindow()const
{
return timeWindow_;
}
void CreateOrUpdateJoinRuleRequest::setTimeWindow(long timeWindow)
{
timeWindow_ = timeWindow;
setCoreParameter("TimeWindow", std::to_string(timeWindow));
}
std::string CreateOrUpdateJoinRuleRequest::getDescription()const
{
return description_;
}
void CreateOrUpdateJoinRuleRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string CreateOrUpdateJoinRuleRequest::getRuleName()const
{
return ruleName_;
}
void CreateOrUpdateJoinRuleRequest::setRuleName(const std::string& ruleName)
{
ruleName_ = ruleName;
setCoreParameter("RuleName", ruleName);
}
std::string CreateOrUpdateJoinRuleRequest::getExpression2()const
{
return expression2_;
}
void CreateOrUpdateJoinRuleRequest::setExpression2(const std::string& expression2)
{
expression2_ = expression2;
setCoreParameter("Expression2", expression2);
}
std::string CreateOrUpdateJoinRuleRequest::getExpression1()const
{
return expression1_;
}
void CreateOrUpdateJoinRuleRequest::setExpression1(const std::string& expression1)
{
expression1_ = expression1;
setCoreParameter("Expression1", expression1);
}
std::string CreateOrUpdateJoinRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateOrUpdateJoinRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string CreateOrUpdateJoinRuleRequest::getStatisticsRules()const
{
return statisticsRules_;
}
void CreateOrUpdateJoinRuleRequest::setStatisticsRules(const std::string& statisticsRules)
{
statisticsRules_ = statisticsRules;
setCoreParameter("StatisticsRules", statisticsRules);
}
std::string CreateOrUpdateJoinRuleRequest::getJoinRelation()const
{
return joinRelation_;
}
void CreateOrUpdateJoinRuleRequest::setJoinRelation(const std::string& joinRelation)
{
joinRelation_ = joinRelation;
setCoreParameter("JoinRelation", joinRelation);
}
long CreateOrUpdateJoinRuleRequest::getRuleId()const
{
return ruleId_;
}
void CreateOrUpdateJoinRuleRequest::setRuleId(long ruleId)
{
ruleId_ = ruleId;
setCoreParameter("RuleId", std::to_string(ruleId));
}
std::string CreateOrUpdateJoinRuleRequest::getActions()const
{
return actions_;
}
void CreateOrUpdateJoinRuleRequest::setActions(const std::string& actions)
{
actions_ = actions;
setCoreParameter("Actions", actions);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/CreateOrUpdateJoinRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CreateOrUpdateJoinRuleResult::CreateOrUpdateJoinRuleResult() :
ServiceResult()
{}
CreateOrUpdateJoinRuleResult::CreateOrUpdateJoinRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateOrUpdateJoinRuleResult::~CreateOrUpdateJoinRuleResult()
{}
void CreateOrUpdateJoinRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,148 @@
/*
* 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/aegis/model/CreateOrUpdateRuleRequest.h>
using AlibabaCloud::Aegis::Model::CreateOrUpdateRuleRequest;
CreateOrUpdateRuleRequest::CreateOrUpdateRuleRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CreateOrUpdateRule")
{}
CreateOrUpdateRuleRequest::~CreateOrUpdateRuleRequest()
{}
std::string CreateOrUpdateRuleRequest::getWarnLevel()const
{
return warnLevel_;
}
void CreateOrUpdateRuleRequest::setWarnLevel(const std::string& warnLevel)
{
warnLevel_ = warnLevel;
setCoreParameter("WarnLevel", warnLevel);
}
std::string CreateOrUpdateRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateOrUpdateRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string CreateOrUpdateRuleRequest::getStatisticsRules()const
{
return statisticsRules_;
}
void CreateOrUpdateRuleRequest::setStatisticsRules(const std::string& statisticsRules)
{
statisticsRules_ = statisticsRules;
setCoreParameter("StatisticsRules", statisticsRules);
}
long CreateOrUpdateRuleRequest::getDataSourceId()const
{
return dataSourceId_;
}
void CreateOrUpdateRuleRequest::setDataSourceId(long dataSourceId)
{
dataSourceId_ = dataSourceId;
setCoreParameter("DataSourceId", std::to_string(dataSourceId));
}
std::string CreateOrUpdateRuleRequest::getDescription()const
{
return description_;
}
void CreateOrUpdateRuleRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string CreateOrUpdateRuleRequest::getRuleName()const
{
return ruleName_;
}
void CreateOrUpdateRuleRequest::setRuleName(const std::string& ruleName)
{
ruleName_ = ruleName;
setCoreParameter("RuleName", ruleName);
}
long CreateOrUpdateRuleRequest::getId()const
{
return id_;
}
void CreateOrUpdateRuleRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
std::string CreateOrUpdateRuleRequest::getLang()const
{
return lang_;
}
void CreateOrUpdateRuleRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string CreateOrUpdateRuleRequest::getExpressions()const
{
return expressions_;
}
void CreateOrUpdateRuleRequest::setExpressions(const std::string& expressions)
{
expressions_ = expressions;
setCoreParameter("Expressions", expressions);
}
std::string CreateOrUpdateRuleRequest::getActions()const
{
return actions_;
}
void CreateOrUpdateRuleRequest::setActions(const std::string& actions)
{
actions_ = actions;
setCoreParameter("Actions", actions);
}
std::string CreateOrUpdateRuleRequest::getRuleGroupIds()const
{
return ruleGroupIds_;
}
void CreateOrUpdateRuleRequest::setRuleGroupIds(const std::string& ruleGroupIds)
{
ruleGroupIds_ = ruleGroupIds;
setCoreParameter("RuleGroupIds", ruleGroupIds);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/CreateOrUpdateRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CreateOrUpdateRuleResult::CreateOrUpdateRuleResult() :
ServiceResult()
{}
CreateOrUpdateRuleResult::CreateOrUpdateRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateOrUpdateRuleResult::~CreateOrUpdateRuleResult()
{}
void CreateOrUpdateRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,126 @@
/*
* 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/aegis/model/CreateSuspiciousExportRequest.h>
using AlibabaCloud::Aegis::Model::CreateSuspiciousExportRequest;
CreateSuspiciousExportRequest::CreateSuspiciousExportRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CreateSuspiciousExport")
{}
CreateSuspiciousExportRequest::~CreateSuspiciousExportRequest()
{}
std::string CreateSuspiciousExportRequest::getStatusList()const
{
return statusList_;
}
void CreateSuspiciousExportRequest::setStatusList(const std::string& statusList)
{
statusList_ = statusList;
setCoreParameter("StatusList", statusList);
}
std::string CreateSuspiciousExportRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateSuspiciousExportRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string CreateSuspiciousExportRequest::getEventNameRemark()const
{
return eventNameRemark_;
}
void CreateSuspiciousExportRequest::setEventNameRemark(const std::string& eventNameRemark)
{
eventNameRemark_ = eventNameRemark;
setCoreParameter("EventNameRemark", eventNameRemark);
}
std::string CreateSuspiciousExportRequest::getLevel()const
{
return level_;
}
void CreateSuspiciousExportRequest::setLevel(const std::string& level)
{
level_ = level;
setCoreParameter("Level", level);
}
std::string CreateSuspiciousExportRequest::getGroupId()const
{
return groupId_;
}
void CreateSuspiciousExportRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string CreateSuspiciousExportRequest::getDealed()const
{
return dealed_;
}
void CreateSuspiciousExportRequest::setDealed(const std::string& dealed)
{
dealed_ = dealed;
setCoreParameter("Dealed", dealed);
}
std::string CreateSuspiciousExportRequest::getEventType()const
{
return eventType_;
}
void CreateSuspiciousExportRequest::setEventType(const std::string& eventType)
{
eventType_ = eventType;
setCoreParameter("EventType", eventType);
}
std::string CreateSuspiciousExportRequest::getRemark()const
{
return remark_;
}
void CreateSuspiciousExportRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setCoreParameter("Remark", remark);
}
std::string CreateSuspiciousExportRequest::getTag()const
{
return tag_;
}
void CreateSuspiciousExportRequest::setTag(const std::string& tag)
{
tag_ = tag;
setCoreParameter("Tag", tag);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/aegis/model/CreateSuspiciousExportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CreateSuspiciousExportResult::CreateSuspiciousExportResult() :
ServiceResult()
{}
CreateSuspiciousExportResult::CreateSuspiciousExportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSuspiciousExportResult::~CreateSuspiciousExportResult()
{}
void CreateSuspiciousExportResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Id"].isNull())
id_ = std::stol(value["Id"].asString());
if(!value["FileName"].isNull())
fileName_ = value["FileName"].asString();
}
std::string CreateSuspiciousExportResult::getFileName()const
{
return fileName_;
}
long CreateSuspiciousExportResult::getId()const
{
return id_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/CreateUserSettingRequest.h>
using AlibabaCloud::Aegis::Model::CreateUserSettingRequest;
CreateUserSettingRequest::CreateUserSettingRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CreateUserSetting")
{}
CreateUserSettingRequest::~CreateUserSettingRequest()
{}
std::string CreateUserSettingRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateUserSettingRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string CreateUserSettingRequest::getAlertLevels()const
{
return alertLevels_;
}
void CreateUserSettingRequest::setAlertLevels(const std::string& alertLevels)
{
alertLevels_ = alertLevels;
setCoreParameter("AlertLevels", alertLevels);
}
int CreateUserSettingRequest::getInvalidWarningKeepDays()const
{
return invalidWarningKeepDays_;
}
void CreateUserSettingRequest::setInvalidWarningKeepDays(int invalidWarningKeepDays)
{
invalidWarningKeepDays_ = invalidWarningKeepDays;
setCoreParameter("InvalidWarningKeepDays", std::to_string(invalidWarningKeepDays));
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/CreateUserSettingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CreateUserSettingResult::CreateUserSettingResult() :
ServiceResult()
{}
CreateUserSettingResult::CreateUserSettingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateUserSettingResult::~CreateUserSettingResult()
{}
void CreateUserSettingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/CreateUserWhiteListRequest.h>
using AlibabaCloud::Aegis::Model::CreateUserWhiteListRequest;
CreateUserWhiteListRequest::CreateUserWhiteListRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CreateUserWhiteList")
{}
CreateUserWhiteListRequest::~CreateUserWhiteListRequest()
{}
std::string CreateUserWhiteListRequest::getRiskIdList()const
{
return riskIdList_;
}
void CreateUserWhiteListRequest::setRiskIdList(const std::string& riskIdList)
{
riskIdList_ = riskIdList;
setCoreParameter("RiskIdList", riskIdList);
}
std::string CreateUserWhiteListRequest::getReason()const
{
return reason_;
}
void CreateUserWhiteListRequest::setReason(const std::string& reason)
{
reason_ = reason;
setCoreParameter("Reason", reason);
}
std::string CreateUserWhiteListRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateUserWhiteListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/CreateUserWhiteListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CreateUserWhiteListResult::CreateUserWhiteListResult() :
ServiceResult()
{}
CreateUserWhiteListResult::CreateUserWhiteListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateUserWhiteListResult::~CreateUserWhiteListResult()
{}
void CreateUserWhiteListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/CreateVulWhitelistRequest.h>
using AlibabaCloud::Aegis::Model::CreateVulWhitelistRequest;
CreateVulWhitelistRequest::CreateVulWhitelistRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CreateVulWhitelist")
{}
CreateVulWhitelistRequest::~CreateVulWhitelistRequest()
{}
std::string CreateVulWhitelistRequest::getReason()const
{
return reason_;
}
void CreateVulWhitelistRequest::setReason(const std::string& reason)
{
reason_ = reason;
setCoreParameter("Reason", reason);
}
std::string CreateVulWhitelistRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateVulWhitelistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string CreateVulWhitelistRequest::getWhitelist()const
{
return whitelist_;
}
void CreateVulWhitelistRequest::setWhitelist(const std::string& whitelist)
{
whitelist_ = whitelist;
setCoreParameter("Whitelist", whitelist);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/CreateVulWhitelistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CreateVulWhitelistResult::CreateVulWhitelistResult() :
ServiceResult()
{}
CreateVulWhitelistResult::CreateVulWhitelistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateVulWhitelistResult::~CreateVulWhitelistResult()
{}
void CreateVulWhitelistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/aegis/model/DeleteDingTalkRequest.h>
using AlibabaCloud::Aegis::Model::DeleteDingTalkRequest;
DeleteDingTalkRequest::DeleteDingTalkRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DeleteDingTalk")
{}
DeleteDingTalkRequest::~DeleteDingTalkRequest()
{}
std::string DeleteDingTalkRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteDingTalkRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DeleteDingTalkRequest::getIds()const
{
return ids_;
}
void DeleteDingTalkRequest::setIds(const std::string& ids)
{
ids_ = ids;
setCoreParameter("Ids", ids);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/DeleteDingTalkResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DeleteDingTalkResult::DeleteDingTalkResult() :
ServiceResult()
{}
DeleteDingTalkResult::DeleteDingTalkResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDingTalkResult::~DeleteDingTalkResult()
{}
void DeleteDingTalkResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/aegis/model/DeleteJoinRuleRequest.h>
using AlibabaCloud::Aegis::Model::DeleteJoinRuleRequest;
DeleteJoinRuleRequest::DeleteJoinRuleRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DeleteJoinRule")
{}
DeleteJoinRuleRequest::~DeleteJoinRuleRequest()
{}
std::string DeleteJoinRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteJoinRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DeleteJoinRuleRequest::getIds()const
{
return ids_;
}
void DeleteJoinRuleRequest::setIds(const std::string& ids)
{
ids_ = ids;
setCoreParameter("Ids", ids);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/DeleteJoinRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DeleteJoinRuleResult::DeleteJoinRuleResult() :
ServiceResult()
{}
DeleteJoinRuleResult::DeleteJoinRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteJoinRuleResult::~DeleteJoinRuleResult()
{}
void DeleteJoinRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/aegis/model/DeleteLogQueryRequest.h>
using AlibabaCloud::Aegis::Model::DeleteLogQueryRequest;
DeleteLogQueryRequest::DeleteLogQueryRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DeleteLogQuery")
{}
DeleteLogQueryRequest::~DeleteLogQueryRequest()
{}
std::string DeleteLogQueryRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteLogQueryRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DeleteLogQueryRequest::getQueryName()const
{
return queryName_;
}
void DeleteLogQueryRequest::setQueryName(const std::string& queryName)
{
queryName_ = queryName;
setCoreParameter("QueryName", queryName);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/DeleteLogQueryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DeleteLogQueryResult::DeleteLogQueryResult() :
ServiceResult()
{}
DeleteLogQueryResult::DeleteLogQueryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteLogQueryResult::~DeleteLogQueryResult()
{}
void DeleteLogQueryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/DeleteRuleGroupRequest.h>
using AlibabaCloud::Aegis::Model::DeleteRuleGroupRequest;
DeleteRuleGroupRequest::DeleteRuleGroupRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DeleteRuleGroup")
{}
DeleteRuleGroupRequest::~DeleteRuleGroupRequest()
{}
std::string DeleteRuleGroupRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteRuleGroupRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
long DeleteRuleGroupRequest::getId()const
{
return id_;
}
void DeleteRuleGroupRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
std::string DeleteRuleGroupRequest::getLang()const
{
return lang_;
}
void DeleteRuleGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/DeleteRuleGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DeleteRuleGroupResult::DeleteRuleGroupResult() :
ServiceResult()
{}
DeleteRuleGroupResult::DeleteRuleGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRuleGroupResult::~DeleteRuleGroupResult()
{}
void DeleteRuleGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/DeleteRuleRequest.h>
using AlibabaCloud::Aegis::Model::DeleteRuleRequest;
DeleteRuleRequest::DeleteRuleRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DeleteRule")
{}
DeleteRuleRequest::~DeleteRuleRequest()
{}
std::string DeleteRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DeleteRuleRequest::getId()const
{
return id_;
}
void DeleteRuleRequest::setId(const std::string& id)
{
id_ = id;
setCoreParameter("Id", id);
}
std::string DeleteRuleRequest::getLang()const
{
return lang_;
}
void DeleteRuleRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/DeleteRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DeleteRuleResult::DeleteRuleResult() :
ServiceResult()
{}
DeleteRuleResult::DeleteRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRuleResult::~DeleteRuleResult()
{}
void DeleteRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/aegis/model/DeleteScreenSettingRequest.h>
using AlibabaCloud::Aegis::Model::DeleteScreenSettingRequest;
DeleteScreenSettingRequest::DeleteScreenSettingRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DeleteScreenSetting")
{}
DeleteScreenSettingRequest::~DeleteScreenSettingRequest()
{}
std::string DeleteScreenSettingRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteScreenSettingRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DeleteScreenSettingRequest::getScreenTitle()const
{
return screenTitle_;
}
void DeleteScreenSettingRequest::setScreenTitle(const std::string& screenTitle)
{
screenTitle_ = screenTitle;
setCoreParameter("ScreenTitle", screenTitle);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/DeleteScreenSettingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DeleteScreenSettingResult::DeleteScreenSettingResult() :
ServiceResult()
{}
DeleteScreenSettingResult::DeleteScreenSettingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteScreenSettingResult::~DeleteScreenSettingResult()
{}
void DeleteScreenSettingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/aegis/model/DeleteSearchConditionRequest.h>
using AlibabaCloud::Aegis::Model::DeleteSearchConditionRequest;
DeleteSearchConditionRequest::DeleteSearchConditionRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DeleteSearchCondition")
{}
DeleteSearchConditionRequest::~DeleteSearchConditionRequest()
{}
std::string DeleteSearchConditionRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteSearchConditionRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DeleteSearchConditionRequest::getName()const
{
return name_;
}
void DeleteSearchConditionRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/DeleteSearchConditionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DeleteSearchConditionResult::DeleteSearchConditionResult() :
ServiceResult()
{}
DeleteSearchConditionResult::DeleteSearchConditionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSearchConditionResult::~DeleteSearchConditionResult()
{}
void DeleteSearchConditionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -25,17 +25,6 @@ DeleteStrategyRequest::DeleteStrategyRequest() :
DeleteStrategyRequest::~DeleteStrategyRequest()
{}
long DeleteStrategyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteStrategyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteStrategyRequest::getSourceIp()const
{
return sourceIp_;
@@ -44,7 +33,7 @@ std::string DeleteStrategyRequest::getSourceIp()const
void DeleteStrategyRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
setCoreParameter("SourceIp", sourceIp);
}
std::string DeleteStrategyRequest::getId()const
@@ -55,6 +44,6 @@ std::string DeleteStrategyRequest::getId()const
void DeleteStrategyRequest::setId(const std::string& id)
{
id_ = id;
setParameter("Id", id);
setCoreParameter("Id", id);
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/DeleteVulBatchRequest.h>
using AlibabaCloud::Aegis::Model::DeleteVulBatchRequest;
DeleteVulBatchRequest::DeleteVulBatchRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DeleteVulBatch")
{}
DeleteVulBatchRequest::~DeleteVulBatchRequest()
{}
std::string DeleteVulBatchRequest::getBatchName()const
{
return batchName_;
}
void DeleteVulBatchRequest::setBatchName(const std::string& batchName)
{
batchName_ = batchName;
setCoreParameter("BatchName", batchName);
}
std::string DeleteVulBatchRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteVulBatchRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DeleteVulBatchRequest::getResource()const
{
return resource_;
}
void DeleteVulBatchRequest::setResource(const std::string& resource)
{
resource_ = resource;
setCoreParameter("Resource", resource);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/DeleteVulBatchResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DeleteVulBatchResult::DeleteVulBatchResult() :
ServiceResult()
{}
DeleteVulBatchResult::DeleteVulBatchResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteVulBatchResult::~DeleteVulBatchResult()
{}
void DeleteVulBatchResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/aegis/model/DeleteVulWhitelistRequest.h>
using AlibabaCloud::Aegis::Model::DeleteVulWhitelistRequest;
DeleteVulWhitelistRequest::DeleteVulWhitelistRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DeleteVulWhitelist")
{}
DeleteVulWhitelistRequest::~DeleteVulWhitelistRequest()
{}
std::string DeleteVulWhitelistRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteVulWhitelistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DeleteVulWhitelistRequest::getWhitelist()const
{
return whitelist_;
}
void DeleteVulWhitelistRequest::setWhitelist(const std::string& whitelist)
{
whitelist_ = whitelist;
setCoreParameter("Whitelist", whitelist);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/aegis/model/DeleteVulWhitelistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DeleteVulWhitelistResult::DeleteVulWhitelistResult() :
ServiceResult()
{}
DeleteVulWhitelistResult::DeleteVulWhitelistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteVulWhitelistResult::~DeleteVulWhitelistResult()
{}
void DeleteVulWhitelistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/DescribeAgentInstallStatusRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAgentInstallStatusRequest;
DescribeAgentInstallStatusRequest::DescribeAgentInstallStatusRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAgentInstallStatus")
{}
DescribeAgentInstallStatusRequest::~DescribeAgentInstallStatusRequest()
{}
std::string DescribeAgentInstallStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAgentInstallStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeAgentInstallStatusRequest::getLang()const
{
return lang_;
}
void DescribeAgentInstallStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribeAgentInstallStatusRequest::getUuids()const
{
return uuids_;
}
void DescribeAgentInstallStatusRequest::setUuids(const std::string& uuids)
{
uuids_ = uuids;
setCoreParameter("Uuids", uuids);
}

View File

@@ -0,0 +1,62 @@
/*
* 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/aegis/model/DescribeAgentInstallStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAgentInstallStatusResult::DescribeAgentInstallStatusResult() :
ServiceResult()
{}
DescribeAgentInstallStatusResult::DescribeAgentInstallStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAgentInstallStatusResult::~DescribeAgentInstallStatusResult()
{}
void DescribeAgentInstallStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAegisClientInvokeStatusResponseList = value["AegisClientInvokeStatusResponseList"]["AegisClientInvokeStatusResponse"];
for (auto value : allAegisClientInvokeStatusResponseList)
{
AegisClientInvokeStatusResponse aegisClientInvokeStatusResponseListObject;
if(!value["Uuid"].isNull())
aegisClientInvokeStatusResponseListObject.uuid = value["Uuid"].asString();
if(!value["Message"].isNull())
aegisClientInvokeStatusResponseListObject.message = value["Message"].asString();
if(!value["Result"].isNull())
aegisClientInvokeStatusResponseListObject.result = std::stoi(value["Result"].asString());
aegisClientInvokeStatusResponseList_.push_back(aegisClientInvokeStatusResponseListObject);
}
}
std::vector<DescribeAgentInstallStatusResult::AegisClientInvokeStatusResponse> DescribeAgentInstallStatusResult::getAegisClientInvokeStatusResponseList()const
{
return aegisClientInvokeStatusResponseList_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/aegis/model/DescribeAlarmEventDetailRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAlarmEventDetailRequest;
DescribeAlarmEventDetailRequest::DescribeAlarmEventDetailRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAlarmEventDetail")
{}
DescribeAlarmEventDetailRequest::~DescribeAlarmEventDetailRequest()
{}
std::string DescribeAlarmEventDetailRequest::getAlarmUniqueInfo()const
{
return alarmUniqueInfo_;
}
void DescribeAlarmEventDetailRequest::setAlarmUniqueInfo(const std::string& alarmUniqueInfo)
{
alarmUniqueInfo_ = alarmUniqueInfo;
setCoreParameter("AlarmUniqueInfo", alarmUniqueInfo);
}
std::string DescribeAlarmEventDetailRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAlarmEventDetailRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeAlarmEventDetailRequest::getFrom()const
{
return from_;
}
void DescribeAlarmEventDetailRequest::setFrom(const std::string& from)
{
from_ = from;
setCoreParameter("From", from);
}
std::string DescribeAlarmEventDetailRequest::getLang()const
{
return lang_;
}
void DescribeAlarmEventDetailRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,103 @@
/*
* 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/aegis/model/DescribeAlarmEventDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAlarmEventDetailResult::DescribeAlarmEventDetailResult() :
ServiceResult()
{}
DescribeAlarmEventDetailResult::DescribeAlarmEventDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAlarmEventDetailResult::~DescribeAlarmEventDetailResult()
{}
void DescribeAlarmEventDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["InternetIp"].isNull())
data_.internetIp = dataNode["InternetIp"].asString();
if(!dataNode["Level"].isNull())
data_.level = dataNode["Level"].asString();
if(!dataNode["InstanceName"].isNull())
data_.instanceName = dataNode["InstanceName"].asString();
if(!dataNode["AlarmEventAliasName"].isNull())
data_.alarmEventAliasName = dataNode["AlarmEventAliasName"].asString();
if(!dataNode["Type"].isNull())
data_.type = dataNode["Type"].asString();
if(!dataNode["Uuid"].isNull())
data_.uuid = dataNode["Uuid"].asString();
if(!dataNode["Solution"].isNull())
data_.solution = dataNode["Solution"].asString();
if(!dataNode["StartTime"].isNull())
data_.startTime = std::stol(dataNode["StartTime"].asString());
if(!dataNode["EndTime"].isNull())
data_.endTime = std::stol(dataNode["EndTime"].asString());
if(!dataNode["AlarmEventDesc"].isNull())
data_.alarmEventDesc = dataNode["AlarmEventDesc"].asString();
if(!dataNode["IntranetIp"].isNull())
data_.intranetIp = dataNode["IntranetIp"].asString();
if(!dataNode["CanBeDealOnLine"].isNull())
data_.canBeDealOnLine = dataNode["CanBeDealOnLine"].asString() == "true";
if(!dataNode["AlarmUniqueInfo"].isNull())
data_.alarmUniqueInfo = dataNode["AlarmUniqueInfo"].asString();
if(!dataNode["DataSource"].isNull())
data_.dataSource = dataNode["DataSource"].asString();
if(!dataNode["CanCancelFault"].isNull())
data_.canCancelFault = dataNode["CanCancelFault"].asString() == "true";
if(!dataNode["HasTraceInfo"].isNull())
data_.hasTraceInfo = dataNode["HasTraceInfo"].asString() == "true";
auto allCauseDetails = value["CauseDetails"]["CauseDetail"];
for (auto value : allCauseDetails)
{
Data::CauseDetail causeDetailObject;
if(!value["Key"].isNull())
causeDetailObject.key = value["Key"].asString();
auto allValue = value["Value"]["ValueItem"];
for (auto value : allValue)
{
Data::CauseDetail::ValueItem valueObject;
if(!value["Name"].isNull())
valueObject.name = value["Name"].asString();
if(!value["Type"].isNull())
valueObject.type = value["Type"].asString();
if(!value["Value"].isNull())
valueObject.value = value["Value"].asString();
causeDetailObject.value.push_back(valueObject);
}
data_.causeDetails.push_back(causeDetailObject);
}
}
DescribeAlarmEventDetailResult::Data DescribeAlarmEventDetailResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,137 @@
/*
* 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/aegis/model/DescribeAlarmEventListRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAlarmEventListRequest;
DescribeAlarmEventListRequest::DescribeAlarmEventListRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAlarmEventList")
{}
DescribeAlarmEventListRequest::~DescribeAlarmEventListRequest()
{}
std::string DescribeAlarmEventListRequest::getAlarmEventName()const
{
return alarmEventName_;
}
void DescribeAlarmEventListRequest::setAlarmEventName(const std::string& alarmEventName)
{
alarmEventName_ = alarmEventName;
setCoreParameter("AlarmEventName", alarmEventName);
}
std::string DescribeAlarmEventListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAlarmEventListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeAlarmEventListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAlarmEventListRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", pageSize);
}
std::string DescribeAlarmEventListRequest::getAlarmEventType()const
{
return alarmEventType_;
}
void DescribeAlarmEventListRequest::setAlarmEventType(const std::string& alarmEventType)
{
alarmEventType_ = alarmEventType;
setCoreParameter("AlarmEventType", alarmEventType);
}
std::string DescribeAlarmEventListRequest::getDealed()const
{
return dealed_;
}
void DescribeAlarmEventListRequest::setDealed(const std::string& dealed)
{
dealed_ = dealed;
setCoreParameter("Dealed", dealed);
}
std::string DescribeAlarmEventListRequest::getFrom()const
{
return from_;
}
void DescribeAlarmEventListRequest::setFrom(const std::string& from)
{
from_ = from;
setCoreParameter("From", from);
}
std::string DescribeAlarmEventListRequest::getRemark()const
{
return remark_;
}
void DescribeAlarmEventListRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setCoreParameter("Remark", remark);
}
int DescribeAlarmEventListRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAlarmEventListRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeAlarmEventListRequest::getLang()const
{
return lang_;
}
void DescribeAlarmEventListRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribeAlarmEventListRequest::getLevels()const
{
return levels_;
}
void DescribeAlarmEventListRequest::setLevels(const std::string& levels)
{
levels_ = levels;
setCoreParameter("Levels", levels);
}

View File

@@ -0,0 +1,110 @@
/*
* 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/aegis/model/DescribeAlarmEventListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAlarmEventListResult::DescribeAlarmEventListResult() :
ServiceResult()
{}
DescribeAlarmEventListResult::DescribeAlarmEventListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAlarmEventListResult::~DescribeAlarmEventListResult()
{}
void DescribeAlarmEventListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSuspEvents = value["SuspEvents"]["SuspEventsItem"];
for (auto value : allSuspEvents)
{
SuspEventsItem suspEventsObject;
if(!value["AlarmUniqueInfo"].isNull())
suspEventsObject.alarmUniqueInfo = value["AlarmUniqueInfo"].asString();
if(!value["Solution"].isNull())
suspEventsObject.solution = value["Solution"].asString();
if(!value["Level"].isNull())
suspEventsObject.level = value["Level"].asString();
if(!value["CanBeDealOnLine"].isNull())
suspEventsObject.canBeDealOnLine = value["CanBeDealOnLine"].asString() == "true";
if(!value["Description"].isNull())
suspEventsObject.description = value["Description"].asString();
if(!value["StartTime"].isNull())
suspEventsObject.startTime = std::stol(value["StartTime"].asString());
if(!value["EndTime"].isNull())
suspEventsObject.endTime = std::stol(value["EndTime"].asString());
if(!value["AlarmEventType"].isNull())
suspEventsObject.alarmEventType = value["AlarmEventType"].asString();
if(!value["SuspiciousEventCount"].isNull())
suspEventsObject.suspiciousEventCount = std::stoi(value["SuspiciousEventCount"].asString());
if(!value["Uuid"].isNull())
suspEventsObject.uuid = value["Uuid"].asString();
if(!value["InstanceName"].isNull())
suspEventsObject.instanceName = value["InstanceName"].asString();
if(!value["InternetIp"].isNull())
suspEventsObject.internetIp = value["InternetIp"].asString();
if(!value["IntranetIp"].isNull())
suspEventsObject.intranetIp = value["IntranetIp"].asString();
if(!value["AlarmEventName"].isNull())
suspEventsObject.alarmEventName = value["AlarmEventName"].asString();
if(!value["SaleVersion"].isNull())
suspEventsObject.saleVersion = value["SaleVersion"].asString();
if(!value["DataSource"].isNull())
suspEventsObject.dataSource = value["DataSource"].asString();
if(!value["CanCancelFault"].isNull())
suspEventsObject.canCancelFault = value["CanCancelFault"].asString() == "true";
if(!value["Dealed"].isNull())
suspEventsObject.dealed = value["Dealed"].asString() == "true";
if(!value["GmtModified"].isNull())
suspEventsObject.gmtModified = std::stol(value["GmtModified"].asString());
if(!value["HasTraceInfo"].isNull())
suspEventsObject.hasTraceInfo = value["HasTraceInfo"].asString() == "true";
suspEvents_.push_back(suspEventsObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].asString());
if(!pageInfoNode["PageSize"].isNull())
pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
if(!pageInfoNode["TotalCount"].isNull())
pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString());
if(!pageInfoNode["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
}
DescribeAlarmEventListResult::PageInfo DescribeAlarmEventListResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<DescribeAlarmEventListResult::SuspEventsItem> DescribeAlarmEventListResult::getSuspEvents()const
{
return suspEvents_;
}

View File

@@ -0,0 +1,236 @@
/*
* 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/aegis/model/DescribeAllRegionsStatisticsRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAllRegionsStatisticsRequest;
DescribeAllRegionsStatisticsRequest::DescribeAllRegionsStatisticsRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAllRegionsStatistics")
{}
DescribeAllRegionsStatisticsRequest::~DescribeAllRegionsStatisticsRequest()
{}
std::string DescribeAllRegionsStatisticsRequest::getStatusList()const
{
return statusList_;
}
void DescribeAllRegionsStatisticsRequest::setStatusList(const std::string& statusList)
{
statusList_ = statusList;
setCoreParameter("StatusList", statusList);
}
std::string DescribeAllRegionsStatisticsRequest::getSaleId()const
{
return saleId_;
}
void DescribeAllRegionsStatisticsRequest::setSaleId(const std::string& saleId)
{
saleId_ = saleId;
setCoreParameter("SaleId", saleId);
}
int DescribeAllRegionsStatisticsRequest::getRuleType()const
{
return ruleType_;
}
void DescribeAllRegionsStatisticsRequest::setRuleType(int ruleType)
{
ruleType_ = ruleType;
setCoreParameter("RuleType", std::to_string(ruleType));
}
long DescribeAllRegionsStatisticsRequest::getGroupId()const
{
return groupId_;
}
void DescribeAllRegionsStatisticsRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));
}
std::string DescribeAllRegionsStatisticsRequest::getEndTime()const
{
return endTime_;
}
void DescribeAllRegionsStatisticsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string DescribeAllRegionsStatisticsRequest::getRemark()const
{
return remark_;
}
void DescribeAllRegionsStatisticsRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setCoreParameter("Remark", remark);
}
std::string DescribeAllRegionsStatisticsRequest::getDealed()const
{
return dealed_;
}
void DescribeAllRegionsStatisticsRequest::setDealed(const std::string& dealed)
{
dealed_ = dealed;
setCoreParameter("Dealed", dealed);
}
int DescribeAllRegionsStatisticsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAllRegionsStatisticsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeAllRegionsStatisticsRequest::getStartTime()const
{
return startTime_;
}
void DescribeAllRegionsStatisticsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string DescribeAllRegionsStatisticsRequest::getType()const
{
return type_;
}
void DescribeAllRegionsStatisticsRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
}
std::string DescribeAllRegionsStatisticsRequest::getUuid()const
{
return uuid_;
}
void DescribeAllRegionsStatisticsRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setCoreParameter("Uuid", uuid);
}
std::string DescribeAllRegionsStatisticsRequest::getSecureToken()const
{
return secureToken_;
}
void DescribeAllRegionsStatisticsRequest::setSecureToken(const std::string& secureToken)
{
secureToken_ = secureToken;
setCoreParameter("SecureToken", secureToken);
}
std::string DescribeAllRegionsStatisticsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAllRegionsStatisticsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
long DescribeAllRegionsStatisticsRequest::getWebGroupId()const
{
return webGroupId_;
}
void DescribeAllRegionsStatisticsRequest::setWebGroupId(long webGroupId)
{
webGroupId_ = webGroupId;
setCoreParameter("WebGroupId", std::to_string(webGroupId));
}
int DescribeAllRegionsStatisticsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAllRegionsStatisticsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeAllRegionsStatisticsRequest::getAction1()const
{
return action1_;
}
void DescribeAllRegionsStatisticsRequest::setAction1(int action1)
{
action1_ = action1;
setCoreParameter("Action1", std::to_string(action1));
}
std::string DescribeAllRegionsStatisticsRequest::getTag()const
{
return tag_;
}
void DescribeAllRegionsStatisticsRequest::setTag(const std::string& tag)
{
tag_ = tag;
setCoreParameter("Tag", tag);
}
int DescribeAllRegionsStatisticsRequest::getFlow()const
{
return flow_;
}
void DescribeAllRegionsStatisticsRequest::setFlow(int flow)
{
flow_ = flow;
setCoreParameter("Flow", std::to_string(flow));
}
int DescribeAllRegionsStatisticsRequest::getStatus()const
{
return status_;
}
void DescribeAllRegionsStatisticsRequest::setStatus(int status)
{
status_ = status;
setCoreParameter("Status", std::to_string(status));
}

View File

@@ -0,0 +1,61 @@
/*
* 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/aegis/model/DescribeAllRegionsStatisticsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAllRegionsStatisticsResult::DescribeAllRegionsStatisticsResult() :
ServiceResult()
{}
DescribeAllRegionsStatisticsResult::DescribeAllRegionsStatisticsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAllRegionsStatisticsResult::~DescribeAllRegionsStatisticsResult()
{}
void DescribeAllRegionsStatisticsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Account"].isNull())
data_.account = std::stoi(dataNode["Account"].asString());
if(!dataNode["Health"].isNull())
data_.health = std::stoi(dataNode["Health"].asString());
if(!dataNode["Trojan"].isNull())
data_.trojan = std::stoi(dataNode["Trojan"].asString());
if(!dataNode["Suspicious"].isNull())
data_.suspicious = std::stoi(dataNode["Suspicious"].asString());
if(!dataNode["Vul"].isNull())
data_.vul = std::stoi(dataNode["Vul"].asString());
}
DescribeAllRegionsStatisticsResult::Data DescribeAllRegionsStatisticsResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/DescribeAnalysisCurveRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAnalysisCurveRequest;
DescribeAnalysisCurveRequest::DescribeAnalysisCurveRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAnalysisCurve")
{}
DescribeAnalysisCurveRequest::~DescribeAnalysisCurveRequest()
{}
std::string DescribeAnalysisCurveRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAnalysisCurveRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
long DescribeAnalysisCurveRequest::getStartTimeStamp()const
{
return startTimeStamp_;
}
void DescribeAnalysisCurveRequest::setStartTimeStamp(long startTimeStamp)
{
startTimeStamp_ = startTimeStamp;
setCoreParameter("StartTimeStamp", std::to_string(startTimeStamp));
}
long DescribeAnalysisCurveRequest::getEndTimeStamp()const
{
return endTimeStamp_;
}
void DescribeAnalysisCurveRequest::setEndTimeStamp(long endTimeStamp)
{
endTimeStamp_ = endTimeStamp;
setCoreParameter("EndTimeStamp", std::to_string(endTimeStamp));
}

View File

@@ -0,0 +1,71 @@
/*
* 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/aegis/model/DescribeAnalysisCurveResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAnalysisCurveResult::DescribeAnalysisCurveResult() :
ServiceResult()
{}
DescribeAnalysisCurveResult::DescribeAnalysisCurveResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAnalysisCurveResult::~DescribeAnalysisCurveResult()
{}
void DescribeAnalysisCurveResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto curvesNode = value["Curves"];
auto allOriginalCurveList = value["OriginalCurveList"]["OriginalCurve"];
for (auto value : allOriginalCurveList)
{
Curves::OriginalCurve originalCurveObject;
if(!value["Count"].isNull())
originalCurveObject.count = std::stoi(value["Count"].asString());
if(!value["DsTimestamp"].isNull())
originalCurveObject.dsTimestamp = std::stol(value["DsTimestamp"].asString());
curves_.originalCurveList.push_back(originalCurveObject);
}
auto allResultCurveList = value["ResultCurveList"]["ResultCurve"];
for (auto value : allResultCurveList)
{
Curves::ResultCurve resultCurveObject;
if(!value["Count"].isNull())
resultCurveObject.count = std::stoi(value["Count"].asString());
if(!value["DsTimestamp"].isNull())
resultCurveObject.dsTimestamp = std::stol(value["DsTimestamp"].asString());
curves_.resultCurveList.push_back(resultCurveObject);
}
}
DescribeAnalysisCurveResult::Curves DescribeAnalysisCurveResult::getCurves()const
{
return curves_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/aegis/model/DescribeAnalysisHistogramsRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAnalysisHistogramsRequest;
DescribeAnalysisHistogramsRequest::DescribeAnalysisHistogramsRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAnalysisHistograms")
{}
DescribeAnalysisHistogramsRequest::~DescribeAnalysisHistogramsRequest()
{}
std::string DescribeAnalysisHistogramsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAnalysisHistogramsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeAnalysisHistogramsRequest::getQuery()const
{
return query_;
}
void DescribeAnalysisHistogramsRequest::setQuery(const std::string& query)
{
query_ = query;
setCoreParameter("Query", query);
}
int DescribeAnalysisHistogramsRequest::getFrom()const
{
return from_;
}
void DescribeAnalysisHistogramsRequest::setFrom(int from)
{
from_ = from;
setCoreParameter("From", std::to_string(from));
}
int DescribeAnalysisHistogramsRequest::getTo()const
{
return to_;
}
void DescribeAnalysisHistogramsRequest::setTo(int to)
{
to_ = to;
setCoreParameter("To", std::to_string(to));
}

View File

@@ -0,0 +1,55 @@
/*
* 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/aegis/model/DescribeAnalysisHistogramsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAnalysisHistogramsResult::DescribeAnalysisHistogramsResult() :
ServiceResult()
{}
DescribeAnalysisHistogramsResult::DescribeAnalysisHistogramsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAnalysisHistogramsResult::~DescribeAnalysisHistogramsResult()
{}
void DescribeAnalysisHistogramsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto histogramsNode = value["Histograms"];
if(!histogramsNode["Histograms"].isNull())
histograms_.histograms = histogramsNode["Histograms"].asString();
if(!histogramsNode["TotalCount"].isNull())
histograms_.totalCount = std::stoi(histogramsNode["TotalCount"].asString());
}
DescribeAnalysisHistogramsResult::Histograms DescribeAnalysisHistogramsResult::getHistograms()const
{
return histograms_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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/aegis/model/DescribeAnalysisLogsRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAnalysisLogsRequest;
DescribeAnalysisLogsRequest::DescribeAnalysisLogsRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAnalysisLogs")
{}
DescribeAnalysisLogsRequest::~DescribeAnalysisLogsRequest()
{}
std::string DescribeAnalysisLogsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAnalysisLogsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeAnalysisLogsRequest::getQuery()const
{
return query_;
}
void DescribeAnalysisLogsRequest::setQuery(const std::string& query)
{
query_ = query;
setCoreParameter("Query", query);
}
int DescribeAnalysisLogsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAnalysisLogsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeAnalysisLogsRequest::getFrom()const
{
return from_;
}
void DescribeAnalysisLogsRequest::setFrom(int from)
{
from_ = from;
setCoreParameter("From", std::to_string(from));
}
int DescribeAnalysisLogsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAnalysisLogsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
int DescribeAnalysisLogsRequest::getTo()const
{
return to_;
}
void DescribeAnalysisLogsRequest::setTo(int to)
{
to_ = to;
setCoreParameter("To", std::to_string(to));
}
bool DescribeAnalysisLogsRequest::getReverse()const
{
return reverse_;
}
void DescribeAnalysisLogsRequest::setReverse(bool reverse)
{
reverse_ = reverse;
setCoreParameter("Reverse", reverse ? "true" : "false");
}

View File

@@ -0,0 +1,71 @@
/*
* 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/aegis/model/DescribeAnalysisLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAnalysisLogsResult::DescribeAnalysisLogsResult() :
ServiceResult()
{}
DescribeAnalysisLogsResult::DescribeAnalysisLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAnalysisLogsResult::~DescribeAnalysisLogsResult()
{}
void DescribeAnalysisLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto logsNode = value["Logs"];
if(!logsNode["ProcessedRow"].isNull())
logs_.processedRow = std::stoi(logsNode["ProcessedRow"].asString());
if(!logsNode["WhereQuery"].isNull())
logs_.whereQuery = logsNode["WhereQuery"].asString();
if(!logsNode["AggQuery"].isNull())
logs_.aggQuery = logsNode["AggQuery"].asString();
if(!logsNode["MLimited"].isNull())
logs_.mLimited = std::stoi(logsNode["MLimited"].asString());
if(!logsNode["Terms"].isNull())
logs_.terms = logsNode["Terms"].asString();
if(!logsNode["Keys"].isNull())
logs_.keys = logsNode["Keys"].asString();
if(!logsNode["Count"].isNull())
logs_.count = std::stoi(logsNode["Count"].asString());
if(!logsNode["ElapsedMilliSecond"].isNull())
logs_.elapsedMilliSecond = std::stoi(logsNode["ElapsedMilliSecond"].asString());
if(!logsNode["Logs"].isNull())
logs_.logs = logsNode["Logs"].asString();
if(!logsNode["MMarker"].isNull())
logs_.mMarker = logsNode["MMarker"].asString();
}
DescribeAnalysisLogsResult::Logs DescribeAnalysisLogsResult::getLogs()const
{
return logs_;
}

View 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/aegis/model/DescribeAnalysisShipperStatusRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAnalysisShipperStatusRequest;
DescribeAnalysisShipperStatusRequest::DescribeAnalysisShipperStatusRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAnalysisShipperStatus")
{}
DescribeAnalysisShipperStatusRequest::~DescribeAnalysisShipperStatusRequest()
{}
std::string DescribeAnalysisShipperStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAnalysisShipperStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,53 @@
/*
* 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/aegis/model/DescribeAnalysisShipperStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAnalysisShipperStatusResult::DescribeAnalysisShipperStatusResult() :
ServiceResult()
{}
DescribeAnalysisShipperStatusResult::DescribeAnalysisShipperStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAnalysisShipperStatusResult::~DescribeAnalysisShipperStatusResult()
{}
void DescribeAnalysisShipperStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto shipperDataNode = value["ShipperData"];
if(!shipperDataNode["AuthStatus"].isNull())
shipperData_.authStatus = shipperDataNode["AuthStatus"].asString();
}
DescribeAnalysisShipperStatusResult::ShipperData DescribeAnalysisShipperStatusResult::getShipperData()const
{
return shipperData_;
}

View 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/aegis/model/DescribeAnalysisSlsIndexRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAnalysisSlsIndexRequest;
DescribeAnalysisSlsIndexRequest::DescribeAnalysisSlsIndexRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAnalysisSlsIndex")
{}
DescribeAnalysisSlsIndexRequest::~DescribeAnalysisSlsIndexRequest()
{}
std::string DescribeAnalysisSlsIndexRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAnalysisSlsIndexRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,53 @@
/*
* 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/aegis/model/DescribeAnalysisSlsIndexResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAnalysisSlsIndexResult::DescribeAnalysisSlsIndexResult() :
ServiceResult()
{}
DescribeAnalysisSlsIndexResult::DescribeAnalysisSlsIndexResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAnalysisSlsIndexResult::~DescribeAnalysisSlsIndexResult()
{}
void DescribeAnalysisSlsIndexResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto slsIndexNode = value["SlsIndex"];
if(!slsIndexNode["Index"].isNull())
slsIndex_.index = slsIndexNode["Index"].asString();
}
DescribeAnalysisSlsIndexResult::SlsIndex DescribeAnalysisSlsIndexResult::getSlsIndex()const
{
return slsIndex_;
}

View 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/aegis/model/DescribeAnalysisStatisticsRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAnalysisStatisticsRequest;
DescribeAnalysisStatisticsRequest::DescribeAnalysisStatisticsRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAnalysisStatistics")
{}
DescribeAnalysisStatisticsRequest::~DescribeAnalysisStatisticsRequest()
{}
std::string DescribeAnalysisStatisticsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAnalysisStatisticsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/aegis/model/DescribeAnalysisStatisticsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAnalysisStatisticsResult::DescribeAnalysisStatisticsResult() :
ServiceResult()
{}
DescribeAnalysisStatisticsResult::DescribeAnalysisStatisticsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAnalysisStatisticsResult::~DescribeAnalysisStatisticsResult()
{}
void DescribeAnalysisStatisticsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto statisticsNode = value["Statistics"];
if(!statisticsNode["Total"].isNull())
statistics_.total = std::stoi(statisticsNode["Total"].asString());
if(!statisticsNode["Serious"].isNull())
statistics_.serious = std::stoi(statisticsNode["Serious"].asString());
if(!statisticsNode["Suspicious"].isNull())
statistics_.suspicious = std::stoi(statisticsNode["Suspicious"].asString());
if(!statisticsNode["Remind"].isNull())
statistics_.remind = std::stoi(statisticsNode["Remind"].asString());
}
DescribeAnalysisStatisticsResult::Statistics DescribeAnalysisStatisticsResult::getStatistics()const
{
return statistics_;
}

View 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/aegis/model/DescribeApiBuySummaryRequest.h>
using AlibabaCloud::Aegis::Model::DescribeApiBuySummaryRequest;
DescribeApiBuySummaryRequest::DescribeApiBuySummaryRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeApiBuySummary")
{}
DescribeApiBuySummaryRequest::~DescribeApiBuySummaryRequest()
{}
std::string DescribeApiBuySummaryRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeApiBuySummaryRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,55 @@
/*
* 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/aegis/model/DescribeApiBuySummaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeApiBuySummaryResult::DescribeApiBuySummaryResult() :
ServiceResult()
{}
DescribeApiBuySummaryResult::DescribeApiBuySummaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiBuySummaryResult::~DescribeApiBuySummaryResult()
{}
void DescribeApiBuySummaryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto buySummaryNode = value["BuySummary"];
if(!buySummaryNode["Status"].isNull())
buySummary_.status = std::stol(buySummaryNode["Status"].asString());
if(!buySummaryNode["BuyThreatBook"].isNull())
buySummary_.buyThreatBook = buySummaryNode["BuyThreatBook"].asString() == "true";
}
DescribeApiBuySummaryResult::BuySummary DescribeApiBuySummaryResult::getBuySummary()const
{
return buySummary_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/DescribeAssetDetailByUuidRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAssetDetailByUuidRequest;
DescribeAssetDetailByUuidRequest::DescribeAssetDetailByUuidRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAssetDetailByUuid")
{}
DescribeAssetDetailByUuidRequest::~DescribeAssetDetailByUuidRequest()
{}
std::string DescribeAssetDetailByUuidRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAssetDetailByUuidRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeAssetDetailByUuidRequest::getLang()const
{
return lang_;
}
void DescribeAssetDetailByUuidRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribeAssetDetailByUuidRequest::getUuid()const
{
return uuid_;
}
void DescribeAssetDetailByUuidRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setCoreParameter("Uuid", uuid);
}

View File

@@ -0,0 +1,100 @@
/*
* 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/aegis/model/DescribeAssetDetailByUuidResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAssetDetailByUuidResult::DescribeAssetDetailByUuidResult() :
ServiceResult()
{}
DescribeAssetDetailByUuidResult::DescribeAssetDetailByUuidResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAssetDetailByUuidResult::~DescribeAssetDetailByUuidResult()
{}
void DescribeAssetDetailByUuidResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto assetDetailNode = value["AssetDetail"];
if(!assetDetailNode["InternetIp"].isNull())
assetDetail_.internetIp = assetDetailNode["InternetIp"].asString();
if(!assetDetailNode["IntranetIp"].isNull())
assetDetail_.intranetIp = assetDetailNode["IntranetIp"].asString();
if(!assetDetailNode["InstanceName"].isNull())
assetDetail_.instanceName = std::stoi(assetDetailNode["InstanceName"].asString());
if(!assetDetailNode["InstanceId"].isNull())
assetDetail_.instanceId = std::stoi(assetDetailNode["InstanceId"].asString());
if(!assetDetailNode["Ip"].isNull())
assetDetail_.ip = assetDetailNode["Ip"].asString();
if(!assetDetailNode["Uuid"].isNull())
assetDetail_.uuid = assetDetailNode["Uuid"].asString();
if(!assetDetailNode["AssetType"].isNull())
assetDetail_.assetType = assetDetailNode["AssetType"].asString();
if(!assetDetailNode["Os"].isNull())
assetDetail_.os = assetDetailNode["Os"].asString();
if(!assetDetailNode["ClientStatus"].isNull())
assetDetail_.clientStatus = assetDetailNode["ClientStatus"].asString();
if(!assetDetailNode["Region"].isNull())
assetDetail_.region = assetDetailNode["Region"].asString();
if(!assetDetailNode["RegionName"].isNull())
assetDetail_.regionName = assetDetailNode["RegionName"].asString();
if(!assetDetailNode["Tag"].isNull())
assetDetail_.tag = assetDetailNode["Tag"].asString();
if(!assetDetailNode["GroupTrace"].isNull())
assetDetail_.groupTrace = assetDetailNode["GroupTrace"].asString();
if(!assetDetailNode["Cpu"].isNull())
assetDetail_.cpu = std::stoi(assetDetailNode["Cpu"].asString());
if(!assetDetailNode["CpuInfo"].isNull())
assetDetail_.cpuInfo = assetDetailNode["CpuInfo"].asString();
if(!assetDetailNode["Kernel"].isNull())
assetDetail_.kernel = assetDetailNode["Kernel"].asString();
if(!assetDetailNode["OsDetail"].isNull())
assetDetail_.osDetail = assetDetailNode["OsDetail"].asString();
if(!assetDetailNode["Mem"].isNull())
assetDetail_.mem = std::stoi(assetDetailNode["Mem"].asString());
if(!assetDetailNode["SysInfo"].isNull())
assetDetail_.sysInfo = assetDetailNode["SysInfo"].asString();
if(!assetDetailNode["HostName"].isNull())
assetDetail_.hostName = assetDetailNode["HostName"].asString();
auto allIpList = assetDetailNode["IpList"]["IpList"];
for (auto value : allIpList)
assetDetail_.ipList.push_back(value.asString());
auto allMacList = assetDetailNode["MacList"]["MacList"];
for (auto value : allMacList)
assetDetail_.macList.push_back(value.asString());
auto allDiskInfoList = assetDetailNode["DiskInfoList"]["DiskInfo"];
for (auto value : allDiskInfoList)
assetDetail_.diskInfoList.push_back(value.asString());
}
DescribeAssetDetailByUuidResult::AssetDetail DescribeAssetDetailByUuidResult::getAssetDetail()const
{
return assetDetail_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/aegis/model/DescribeAssetListRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAssetListRequest;
DescribeAssetListRequest::DescribeAssetListRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAssetList")
{}
DescribeAssetListRequest::~DescribeAssetListRequest()
{}
std::string DescribeAssetListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAssetListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeAssetListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAssetListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeAssetListRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAssetListRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeAssetListRequest::getLang()const
{
return lang_;
}
void DescribeAssetListRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribeAssetListRequest::getFilterConditions()const
{
return filterConditions_;
}
void DescribeAssetListRequest::setFilterConditions(const std::string& filterConditions)
{
filterConditions_ = filterConditions;
setCoreParameter("FilterConditions", filterConditions);
}

View File

@@ -0,0 +1,97 @@
/*
* 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/aegis/model/DescribeAssetListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAssetListResult::DescribeAssetListResult() :
ServiceResult()
{}
DescribeAssetListResult::DescribeAssetListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAssetListResult::~DescribeAssetListResult()
{}
void DescribeAssetListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAssetList = value["AssetList"]["Asset"];
for (auto value : allAssetList)
{
Asset assetListObject;
if(!value["InternetIp"].isNull())
assetListObject.internetIp = value["InternetIp"].asString();
if(!value["IntranetIp"].isNull())
assetListObject.intranetIp = value["IntranetIp"].asString();
if(!value["InstanceName"].isNull())
assetListObject.instanceName = value["InstanceName"].asString();
if(!value["Ip"].isNull())
assetListObject.ip = value["Ip"].asString();
if(!value["Uuid"].isNull())
assetListObject.uuid = value["Uuid"].asString();
if(!value["AssetType"].isNull())
assetListObject.assetType = value["AssetType"].asString();
if(!value["Os"].isNull())
assetListObject.os = value["Os"].asString();
if(!value["ClientStatus"].isNull())
assetListObject.clientStatus = value["ClientStatus"].asString();
if(!value["Region"].isNull())
assetListObject.region = value["Region"].asString();
if(!value["RegionName"].isNull())
assetListObject.regionName = value["RegionName"].asString();
assetList_.push_back(assetListObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeAssetListResult::getTotalCount()const
{
return totalCount_;
}
int DescribeAssetListResult::getPageSize()const
{
return pageSize_;
}
int DescribeAssetListResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeAssetListResult::Asset> DescribeAssetListResult::getAssetList()const
{
return assetList_;
}

View 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/aegis/model/DescribeAssetSummaryRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAssetSummaryRequest;
DescribeAssetSummaryRequest::DescribeAssetSummaryRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAssetSummary")
{}
DescribeAssetSummaryRequest::~DescribeAssetSummaryRequest()
{}
std::string DescribeAssetSummaryRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAssetSummaryRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeAssetSummaryRequest::getLang()const
{
return lang_;
}
void DescribeAssetSummaryRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/aegis/model/DescribeAssetSummaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAssetSummaryResult::DescribeAssetSummaryResult() :
ServiceResult()
{}
DescribeAssetSummaryResult::DescribeAssetSummaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAssetSummaryResult::~DescribeAssetSummaryResult()
{}
void DescribeAssetSummaryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto summaryNode = value["Summary"];
if(!summaryNode["TotalCount"].isNull())
summary_.totalCount = std::stoi(summaryNode["TotalCount"].asString());
if(!summaryNode["Offline"].isNull())
summary_.offline = std::stoi(summaryNode["Offline"].asString());
if(!summaryNode["Online"].isNull())
summary_.online = std::stoi(summaryNode["Online"].asString());
if(!summaryNode["AllRegionCount"].isNull())
summary_.allRegionCount = std::stoi(summaryNode["AllRegionCount"].asString());
}
DescribeAssetSummaryResult::Summary DescribeAssetSummaryResult::getSummary()const
{
return summary_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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/aegis/model/DescribeAttackAnalysisDataRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAttackAnalysisDataRequest;
DescribeAttackAnalysisDataRequest::DescribeAttackAnalysisDataRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAttackAnalysisData")
{}
DescribeAttackAnalysisDataRequest::~DescribeAttackAnalysisDataRequest()
{}
std::string DescribeAttackAnalysisDataRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAttackAnalysisDataRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeAttackAnalysisDataRequest::getData()const
{
return data_;
}
void DescribeAttackAnalysisDataRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
}
std::string DescribeAttackAnalysisDataRequest::getBase64()const
{
return base64_;
}
void DescribeAttackAnalysisDataRequest::setBase64(const std::string& base64)
{
base64_ = base64;
setCoreParameter("Base64", base64);
}
int DescribeAttackAnalysisDataRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAttackAnalysisDataRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
long DescribeAttackAnalysisDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeAttackAnalysisDataRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", std::to_string(endTime));
}
int DescribeAttackAnalysisDataRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAttackAnalysisDataRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
long DescribeAttackAnalysisDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeAttackAnalysisDataRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", std::to_string(startTime));
}
std::string DescribeAttackAnalysisDataRequest::getLang()const
{
return lang_;
}
void DescribeAttackAnalysisDataRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribeAttackAnalysisDataRequest::getType()const
{
return type_;
}
void DescribeAttackAnalysisDataRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
}

View File

@@ -0,0 +1,73 @@
/*
* 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/aegis/model/DescribeAttackAnalysisDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAttackAnalysisDataResult::DescribeAttackAnalysisDataResult() :
ServiceResult()
{}
DescribeAttackAnalysisDataResult::DescribeAttackAnalysisDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAttackAnalysisDataResult::~DescribeAttackAnalysisDataResult()
{}
void DescribeAttackAnalysisDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
if(!value["Page"].isNull())
page_ = std::stoi(value["Page"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeAttackAnalysisDataResult::getPageSize()const
{
return pageSize_;
}
int DescribeAttackAnalysisDataResult::getTotal()const
{
return total_;
}
std::string DescribeAttackAnalysisDataResult::getData()const
{
return data_;
}
int DescribeAttackAnalysisDataResult::getPage()const
{
return page_;
}

View 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/aegis/model/DescribeAutoDelConfigRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAutoDelConfigRequest;
DescribeAutoDelConfigRequest::DescribeAutoDelConfigRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAutoDelConfig")
{}
DescribeAutoDelConfigRequest::~DescribeAutoDelConfigRequest()
{}
std::string DescribeAutoDelConfigRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAutoDelConfigRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/aegis/model/DescribeAutoDelConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAutoDelConfigResult::DescribeAutoDelConfigResult() :
ServiceResult()
{}
DescribeAutoDelConfigResult::DescribeAutoDelConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAutoDelConfigResult::~DescribeAutoDelConfigResult()
{}
void DescribeAutoDelConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Days"].isNull())
days_ = std::stoi(value["Days"].asString());
}
int DescribeAutoDelConfigResult::getDays()const
{
return days_;
}

View 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/aegis/model/DescribeBuySummaryRequest.h>
using AlibabaCloud::Aegis::Model::DescribeBuySummaryRequest;
DescribeBuySummaryRequest::DescribeBuySummaryRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeBuySummary")
{}
DescribeBuySummaryRequest::~DescribeBuySummaryRequest()
{}
std::string DescribeBuySummaryRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeBuySummaryRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,93 @@
/*
* 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/aegis/model/DescribeBuySummaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeBuySummaryResult::DescribeBuySummaryResult() :
ServiceResult()
{}
DescribeBuySummaryResult::DescribeBuySummaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBuySummaryResult::~DescribeBuySummaryResult()
{}
void DescribeBuySummaryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto buySummaryNode = value["BuySummary"];
if(!buySummaryNode["ExpireDateTimestamp"].isNull())
buySummary_.expireDateTimestamp = std::stol(buySummaryNode["ExpireDateTimestamp"].asString());
if(!buySummaryNode["PurchaseDate"].isNull())
buySummary_.purchaseDate = std::stol(buySummaryNode["PurchaseDate"].asString());
if(!buySummaryNode["BuyVersion"].isNull())
buySummary_.buyVersion = buySummaryNode["BuyVersion"].asString();
if(!buySummaryNode["SafePointSurplusDays"].isNull())
buySummary_.safePointSurplusDays = std::stoi(buySummaryNode["SafePointSurplusDays"].asString());
if(!buySummaryNode["SafePointdailyCost"].isNull())
buySummary_.safePointdailyCost = std::stoi(buySummaryNode["SafePointdailyCost"].asString());
if(!buySummaryNode["Capacity"].isNull())
buySummary_.capacity = std::stoi(buySummaryNode["Capacity"].asString());
if(!buySummaryNode["TotalMachineNum"].isNull())
buySummary_.totalMachineNum = std::stoi(buySummaryNode["TotalMachineNum"].asString());
if(!buySummaryNode["CanApplyTrial"].isNull())
buySummary_.canApplyTrial = buySummaryNode["CanApplyTrial"].asString() == "true";
if(!buySummaryNode["InstanceId"].isNull())
buySummary_.instanceId = buySummaryNode["InstanceId"].asString();
if(!buySummaryNode["UseCapacity"].isNull())
buySummary_.useCapacity = std::stoi(buySummaryNode["UseCapacity"].asString());
if(!buySummaryNode["CanAccessHidden"].isNull())
buySummary_.canAccessHidden = buySummaryNode["CanAccessHidden"].asString() == "true";
if(!buySummaryNode["BuyStatus"].isNull())
buySummary_.buyStatus = buySummaryNode["BuyStatus"].asString() == "true";
if(!buySummaryNode["BuyType"].isNull())
buySummary_.buyType = buySummaryNode["BuyType"].asString();
if(!buySummaryNode["ExpireDate"].isNull())
buySummary_.expireDate = std::stol(buySummaryNode["ExpireDate"].asString());
if(!buySummaryNode["SafePointCapacity"].isNull())
buySummary_.safePointCapacity = std::stoi(buySummaryNode["SafePointCapacity"].asString());
if(!buySummaryNode["NeedFeedBack"].isNull())
buySummary_.needFeedBack = buySummaryNode["NeedFeedBack"].asString() == "true";
if(!buySummaryNode["SafePointBuyVersion"].isNull())
buySummary_.safePointBuyVersion = buySummaryNode["SafePointBuyVersion"].asString();
if(!buySummaryNode["OriginalVersion"].isNull())
buySummary_.originalVersion = buySummaryNode["OriginalVersion"].asString();
if(!buySummaryNode["OriginalBuyType"].isNull())
buySummary_.originalBuyType = buySummaryNode["OriginalBuyType"].asString();
if(!buySummaryNode["SafePointExpireDate"].isNull())
buySummary_.safePointExpireDate = std::stol(buySummaryNode["SafePointExpireDate"].asString());
if(!buySummaryNode["SpecialCount"].isNull())
buySummary_.specialCount = std::stoi(buySummaryNode["SpecialCount"].asString());
}
DescribeBuySummaryResult::BuySummary DescribeBuySummaryResult::getBuySummary()const
{
return buySummary_;
}

View 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/aegis/model/DescribeCanTrySasRequest.h>
using AlibabaCloud::Aegis::Model::DescribeCanTrySasRequest;
DescribeCanTrySasRequest::DescribeCanTrySasRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeCanTrySas")
{}
DescribeCanTrySasRequest::~DescribeCanTrySasRequest()
{}
std::string DescribeCanTrySasRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCanTrySasRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/aegis/model/DescribeCanTrySasResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeCanTrySasResult::DescribeCanTrySasResult() :
ServiceResult()
{}
DescribeCanTrySasResult::DescribeCanTrySasResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCanTrySasResult::~DescribeCanTrySasResult()
{}
void DescribeCanTrySasResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CanTry"].isNull())
canTry_ = std::stoi(value["CanTry"].asString());
}
int DescribeCanTrySasResult::getCanTry()const
{
return canTry_;
}

View 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/aegis/model/DescribeCanUpgradeSasRequest.h>
using AlibabaCloud::Aegis::Model::DescribeCanUpgradeSasRequest;
DescribeCanUpgradeSasRequest::DescribeCanUpgradeSasRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeCanUpgradeSas")
{}
DescribeCanUpgradeSasRequest::~DescribeCanUpgradeSasRequest()
{}
std::string DescribeCanUpgradeSasRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCanUpgradeSasRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/aegis/model/DescribeCanUpgradeSasResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeCanUpgradeSasResult::DescribeCanUpgradeSasResult() :
ServiceResult()
{}
DescribeCanUpgradeSasResult::DescribeCanUpgradeSasResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCanUpgradeSasResult::~DescribeCanUpgradeSasResult()
{}
void DescribeCanUpgradeSasResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool DescribeCanUpgradeSasResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/DescribeCheckWarningDetailRequest.h>
using AlibabaCloud::Aegis::Model::DescribeCheckWarningDetailRequest;
DescribeCheckWarningDetailRequest::DescribeCheckWarningDetailRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeCheckWarningDetail")
{}
DescribeCheckWarningDetailRequest::~DescribeCheckWarningDetailRequest()
{}
std::string DescribeCheckWarningDetailRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCheckWarningDetailRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeCheckWarningDetailRequest::getLang()const
{
return lang_;
}
void DescribeCheckWarningDetailRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeCheckWarningDetailRequest::getCheckWarningId()const
{
return checkWarningId_;
}
void DescribeCheckWarningDetailRequest::setCheckWarningId(long checkWarningId)
{
checkWarningId_ = checkWarningId;
setCoreParameter("CheckWarningId", std::to_string(checkWarningId));
}

View File

@@ -0,0 +1,94 @@
/*
* 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/aegis/model/DescribeCheckWarningDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeCheckWarningDetailResult::DescribeCheckWarningDetailResult() :
ServiceResult()
{}
DescribeCheckWarningDetailResult::DescribeCheckWarningDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCheckWarningDetailResult::~DescribeCheckWarningDetailResult()
{}
void DescribeCheckWarningDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CheckId"].isNull())
checkId_ = std::stol(value["CheckId"].asString());
if(!value["Level"].isNull())
level_ = value["Level"].asString();
if(!value["Item"].isNull())
item_ = value["Item"].asString();
if(!value["Prompt"].isNull())
prompt_ = value["Prompt"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["Advice"].isNull())
advice_ = value["Advice"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
}
std::string DescribeCheckWarningDetailResult::getItem()const
{
return item_;
}
std::string DescribeCheckWarningDetailResult::getType()const
{
return type_;
}
std::string DescribeCheckWarningDetailResult::getDescription()const
{
return description_;
}
long DescribeCheckWarningDetailResult::getCheckId()const
{
return checkId_;
}
std::string DescribeCheckWarningDetailResult::getLevel()const
{
return level_;
}
std::string DescribeCheckWarningDetailResult::getPrompt()const
{
return prompt_;
}
std::string DescribeCheckWarningDetailResult::getAdvice()const
{
return advice_;
}

View File

@@ -0,0 +1,137 @@
/*
* 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/aegis/model/DescribeCheckWarningSummaryRequest.h>
using AlibabaCloud::Aegis::Model::DescribeCheckWarningSummaryRequest;
DescribeCheckWarningSummaryRequest::DescribeCheckWarningSummaryRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeCheckWarningSummary")
{}
DescribeCheckWarningSummaryRequest::~DescribeCheckWarningSummaryRequest()
{}
std::string DescribeCheckWarningSummaryRequest::getRiskName()const
{
return riskName_;
}
void DescribeCheckWarningSummaryRequest::setRiskName(const std::string& riskName)
{
riskName_ = riskName;
setCoreParameter("RiskName", riskName);
}
std::string DescribeCheckWarningSummaryRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCheckWarningSummaryRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeCheckWarningSummaryRequest::getRiskStatus()const
{
return riskStatus_;
}
void DescribeCheckWarningSummaryRequest::setRiskStatus(int riskStatus)
{
riskStatus_ = riskStatus;
setCoreParameter("RiskStatus", std::to_string(riskStatus));
}
int DescribeCheckWarningSummaryRequest::getPageSize()const
{
return pageSize_;
}
void DescribeCheckWarningSummaryRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
long DescribeCheckWarningSummaryRequest::getStrategyId()const
{
return strategyId_;
}
void DescribeCheckWarningSummaryRequest::setStrategyId(long strategyId)
{
strategyId_ = strategyId;
setCoreParameter("StrategyId", std::to_string(strategyId));
}
int DescribeCheckWarningSummaryRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeCheckWarningSummaryRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeCheckWarningSummaryRequest::getLang()const
{
return lang_;
}
void DescribeCheckWarningSummaryRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribeCheckWarningSummaryRequest::getTypeName()const
{
return typeName_;
}
void DescribeCheckWarningSummaryRequest::setTypeName(const std::string& typeName)
{
typeName_ = typeName;
setCoreParameter("TypeName", typeName);
}
std::string DescribeCheckWarningSummaryRequest::getStatus()const
{
return status_;
}
void DescribeCheckWarningSummaryRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
}
std::string DescribeCheckWarningSummaryRequest::getUuids()const
{
return uuids_;
}
void DescribeCheckWarningSummaryRequest::setUuids(const std::string& uuids)
{
uuids_ = uuids;
setCoreParameter("Uuids", uuids);
}

View File

@@ -0,0 +1,106 @@
/*
* 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/aegis/model/DescribeCheckWarningSummaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeCheckWarningSummaryResult::DescribeCheckWarningSummaryResult() :
ServiceResult()
{}
DescribeCheckWarningSummaryResult::DescribeCheckWarningSummaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCheckWarningSummaryResult::~DescribeCheckWarningSummaryResult()
{}
void DescribeCheckWarningSummaryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allWarningSummarys = value["WarningSummarys"]["WarningSummary"];
for (auto value : allWarningSummarys)
{
WarningSummary warningSummarysObject;
if(!value["RiskId"].isNull())
warningSummarysObject.riskId = std::stol(value["RiskId"].asString());
if(!value["RiskName"].isNull())
warningSummarysObject.riskName = value["RiskName"].asString();
if(!value["TypeAlias"].isNull())
warningSummarysObject.typeAlias = value["TypeAlias"].asString();
if(!value["SubTypeAlias"].isNull())
warningSummarysObject.subTypeAlias = value["SubTypeAlias"].asString();
if(!value["LastFoundTime"].isNull())
warningSummarysObject.lastFoundTime = value["LastFoundTime"].asString();
if(!value["Level"].isNull())
warningSummarysObject.level = value["Level"].asString();
if(!value["CheckCount"].isNull())
warningSummarysObject.checkCount = std::stoi(value["CheckCount"].asString());
if(!value["HighWarningCount"].isNull())
warningSummarysObject.highWarningCount = std::stoi(value["HighWarningCount"].asString());
if(!value["MediumWarningCount"].isNull())
warningSummarysObject.mediumWarningCount = std::stoi(value["MediumWarningCount"].asString());
if(!value["LowWarningCount"].isNull())
warningSummarysObject.lowWarningCount = std::stoi(value["LowWarningCount"].asString());
if(!value["WarningMachineCount"].isNull())
warningSummarysObject.warningMachineCount = std::stoi(value["WarningMachineCount"].asString());
warningSummarys_.push_back(warningSummarysObject);
}
if(!value["Count"].isNull())
count_ = std::stoi(value["Count"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
}
int DescribeCheckWarningSummaryResult::getTotalCount()const
{
return totalCount_;
}
int DescribeCheckWarningSummaryResult::getPageSize()const
{
return pageSize_;
}
int DescribeCheckWarningSummaryResult::getCurrentPage()const
{
return currentPage_;
}
int DescribeCheckWarningSummaryResult::getCount()const
{
return count_;
}
std::vector<DescribeCheckWarningSummaryResult::WarningSummary> DescribeCheckWarningSummaryResult::getWarningSummarys()const
{
return warningSummarys_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/aegis/model/DescribeCheckWarningsRequest.h>
using AlibabaCloud::Aegis::Model::DescribeCheckWarningsRequest;
DescribeCheckWarningsRequest::DescribeCheckWarningsRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeCheckWarnings")
{}
DescribeCheckWarningsRequest::~DescribeCheckWarningsRequest()
{}
std::string DescribeCheckWarningsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCheckWarningsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeCheckWarningsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeCheckWarningsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeCheckWarningsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeCheckWarningsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeCheckWarningsRequest::getLang()const
{
return lang_;
}
void DescribeCheckWarningsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeCheckWarningsRequest::getRiskId()const
{
return riskId_;
}
void DescribeCheckWarningsRequest::setRiskId(long riskId)
{
riskId_ = riskId;
setCoreParameter("RiskId", std::to_string(riskId));
}
std::string DescribeCheckWarningsRequest::getUuid()const
{
return uuid_;
}
void DescribeCheckWarningsRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setCoreParameter("Uuid", uuid);
}

View File

@@ -0,0 +1,98 @@
/*
* 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/aegis/model/DescribeCheckWarningsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeCheckWarningsResult::DescribeCheckWarningsResult() :
ServiceResult()
{}
DescribeCheckWarningsResult::DescribeCheckWarningsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCheckWarningsResult::~DescribeCheckWarningsResult()
{}
void DescribeCheckWarningsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCheckWarnings = value["CheckWarnings"]["CheckWarning"];
for (auto value : allCheckWarnings)
{
CheckWarning checkWarningsObject;
if(!value["Uuid"].isNull())
checkWarningsObject.uuid = value["Uuid"].asString();
if(!value["CheckId"].isNull())
checkWarningsObject.checkId = std::stol(value["CheckId"].asString());
if(!value["CheckWarningId"].isNull())
checkWarningsObject.checkWarningId = std::stol(value["CheckWarningId"].asString());
if(!value["Level"].isNull())
checkWarningsObject.level = value["Level"].asString();
if(!value["Item"].isNull())
checkWarningsObject.item = value["Item"].asString();
if(!value["Type"].isNull())
checkWarningsObject.type = value["Type"].asString();
if(!value["Status"].isNull())
checkWarningsObject.status = std::stoi(value["Status"].asString());
checkWarnings_.push_back(checkWarningsObject);
}
if(!value["Count"].isNull())
count_ = std::stoi(value["Count"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
}
int DescribeCheckWarningsResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeCheckWarningsResult::CheckWarning> DescribeCheckWarningsResult::getCheckWarnings()const
{
return checkWarnings_;
}
int DescribeCheckWarningsResult::getPageSize()const
{
return pageSize_;
}
int DescribeCheckWarningsResult::getCurrentPage()const
{
return currentPage_;
}
int DescribeCheckWarningsResult::getCount()const
{
return count_;
}

View 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/aegis/model/DescribeConcernNecessityRequest.h>
using AlibabaCloud::Aegis::Model::DescribeConcernNecessityRequest;
DescribeConcernNecessityRequest::DescribeConcernNecessityRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeConcernNecessity")
{}
DescribeConcernNecessityRequest::~DescribeConcernNecessityRequest()
{}
std::string DescribeConcernNecessityRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeConcernNecessityRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeConcernNecessityRequest::getLang()const
{
return lang_;
}
void DescribeConcernNecessityRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,53 @@
/*
* 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/aegis/model/DescribeConcernNecessityResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeConcernNecessityResult::DescribeConcernNecessityResult() :
ServiceResult()
{}
DescribeConcernNecessityResult::DescribeConcernNecessityResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeConcernNecessityResult::~DescribeConcernNecessityResult()
{}
void DescribeConcernNecessityResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allConcernNecessity = value["ConcernNecessity"]["Necessity"];
for (const auto &item : allConcernNecessity)
concernNecessity_.push_back(item.asString());
}
std::vector<std::string> DescribeConcernNecessityResult::getConcernNecessity()const
{
return concernNecessity_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/aegis/model/DescribeDataSourceRequest.h>
using AlibabaCloud::Aegis::Model::DescribeDataSourceRequest;
DescribeDataSourceRequest::DescribeDataSourceRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeDataSource")
{}
DescribeDataSourceRequest::~DescribeDataSourceRequest()
{}
std::string DescribeDataSourceRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDataSourceRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeDataSourceRequest::getDescription()const
{
return description_;
}
void DescribeDataSourceRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
long DescribeDataSourceRequest::getId()const
{
return id_;
}
void DescribeDataSourceRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
std::string DescribeDataSourceRequest::getLang()const
{
return lang_;
}
void DescribeDataSourceRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribeDataSourceRequest::getGroupName()const
{
return groupName_;
}
void DescribeDataSourceRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}

View File

@@ -0,0 +1,100 @@
/*
* 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/aegis/model/DescribeDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeDataSourceResult::DescribeDataSourceResult() :
ServiceResult()
{}
DescribeDataSourceResult::DescribeDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDataSourceResult::~DescribeDataSourceResult()
{}
void DescribeDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMetaDatas = value["MetaDatas"]["Data"];
for (auto value : allMetaDatas)
{
Data metaDatasObject;
if(!value["DataSourceId"].isNull())
metaDatasObject.dataSourceId = std::stoi(value["DataSourceId"].asString());
if(!value["DateSourceName"].isNull())
metaDatasObject.dateSourceName = value["DateSourceName"].asString();
if(!value["Description"].isNull())
metaDatasObject.description = value["Description"].asString();
auto allMetaDataFields = value["MetaDataFields"]["MetaDataField"];
for (auto value : allMetaDataFields)
{
Data::MetaDataField metaDataFieldsObject;
if(!value["FiledName"].isNull())
metaDataFieldsObject.filedName = value["FiledName"].asString();
if(!value["Filed"].isNull())
metaDataFieldsObject.filed = value["Filed"].asString();
if(!value["ValueType"].isNull())
metaDataFieldsObject.valueType = value["ValueType"].asString();
if(!value["Sample"].isNull())
metaDataFieldsObject.sample = value["Sample"].asString();
auto allOperatorList = value["OperatorList"]["Operator"];
for (auto value : allOperatorList)
{
Data::MetaDataField::_Operator operatorListObject;
if(!value["Name"].isNull())
operatorListObject.name = value["Name"].asString();
if(!value["Description"].isNull())
operatorListObject.description = value["Description"].asString();
metaDataFieldsObject.operatorList.push_back(operatorListObject);
}
metaDatasObject.metaDataFields.push_back(metaDataFieldsObject);
}
metaDatas_.push_back(metaDatasObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Count"].isNull())
count_ = std::stoi(value["Count"].asString());
}
std::vector<DescribeDataSourceResult::Data> DescribeDataSourceResult::getMetaDatas()const
{
return metaDatas_;
}
int DescribeDataSourceResult::getCount()const
{
return count_;
}
bool DescribeDataSourceResult::getSuccess()const
{
return success_;
}

View 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/aegis/model/DescribeDefenceThreadRequest.h>
using AlibabaCloud::Aegis::Model::DescribeDefenceThreadRequest;
DescribeDefenceThreadRequest::DescribeDefenceThreadRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeDefenceThread")
{}
DescribeDefenceThreadRequest::~DescribeDefenceThreadRequest()
{}
std::string DescribeDefenceThreadRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDefenceThreadRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeDefenceThreadRequest::getLang()const
{
return lang_;
}
void DescribeDefenceThreadRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

Some files were not shown because too many files have changed in this diff Show More