SDDP SDK Auto Released By zuochao,Version:1.36.33

Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
This commit is contained in:
sdk-team
2019-05-27 14:55:29 +08:00
parent de0a72b9c7
commit b149df91f7
163 changed files with 14191 additions and 2 deletions

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/sddp/model/CreateConfigRequest.h>
using AlibabaCloud::Sddp::Model::CreateConfigRequest;
CreateConfigRequest::CreateConfigRequest() :
RpcServiceRequest("sddp", "2019-01-03", "CreateConfig")
{}
CreateConfigRequest::~CreateConfigRequest()
{}
std::string CreateConfigRequest::getCode()const
{
return code_;
}
void CreateConfigRequest::setCode(const std::string& code)
{
code_ = code;
setCoreParameter("Code", code);
}
std::string CreateConfigRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateConfigRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int CreateConfigRequest::getFeatureType()const
{
return featureType_;
}
void CreateConfigRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
std::string CreateConfigRequest::getDescription()const
{
return description_;
}
void CreateConfigRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string CreateConfigRequest::getConfigList()const
{
return configList_;
}
void CreateConfigRequest::setConfigList(const std::string& configList)
{
configList_ = configList;
setCoreParameter("ConfigList", configList);
}
std::string CreateConfigRequest::getLang()const
{
return lang_;
}
void CreateConfigRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string CreateConfigRequest::getValue()const
{
return value_;
}
void CreateConfigRequest::setValue(const std::string& value)
{
value_ = value;
setCoreParameter("Value", value);
}

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/sddp/model/CreateConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
CreateConfigResult::CreateConfigResult() :
ServiceResult()
{}
CreateConfigResult::CreateConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateConfigResult::~CreateConfigResult()
{}
void CreateConfigResult::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/sddp/model/CreateDataLimitRequest.h>
using AlibabaCloud::Sddp::Model::CreateDataLimitRequest;
CreateDataLimitRequest::CreateDataLimitRequest() :
RpcServiceRequest("sddp", "2019-01-03", "CreateDataLimit")
{}
CreateDataLimitRequest::~CreateDataLimitRequest()
{}
std::string CreateDataLimitRequest::getPassword()const
{
return password_;
}
void CreateDataLimitRequest::setPassword(const std::string& password)
{
password_ = password;
setCoreParameter("Password", password);
}
std::string CreateDataLimitRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateDataLimitRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string CreateDataLimitRequest::getConnector()const
{
return connector_;
}
void CreateDataLimitRequest::setConnector(const std::string& connector)
{
connector_ = connector;
setCoreParameter("Connector", connector);
}
std::string CreateDataLimitRequest::getDataLimitList()const
{
return dataLimitList_;
}
void CreateDataLimitRequest::setDataLimitList(const std::string& dataLimitList)
{
dataLimitList_ = dataLimitList;
setCoreParameter("DataLimitList", dataLimitList);
}
std::string CreateDataLimitRequest::getLang()const
{
return lang_;
}
void CreateDataLimitRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
int CreateDataLimitRequest::getResourceType()const
{
return resourceType_;
}
void CreateDataLimitRequest::setResourceType(int resourceType)
{
resourceType_ = resourceType;
setCoreParameter("ResourceType", std::to_string(resourceType));
}
std::string CreateDataLimitRequest::getServiceRegionId()const
{
return serviceRegionId_;
}
void CreateDataLimitRequest::setServiceRegionId(const std::string& serviceRegionId)
{
serviceRegionId_ = serviceRegionId;
setCoreParameter("ServiceRegionId", serviceRegionId);
}
std::string CreateDataLimitRequest::getParentId()const
{
return parentId_;
}
void CreateDataLimitRequest::setParentId(const std::string& parentId)
{
parentId_ = parentId;
setCoreParameter("ParentId", parentId);
}
std::string CreateDataLimitRequest::getUserName()const
{
return userName_;
}
void CreateDataLimitRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setCoreParameter("UserName", userName);
}

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/sddp/model/CreateDataLimitResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
CreateDataLimitResult::CreateDataLimitResult() :
ServiceResult()
{}
CreateDataLimitResult::CreateDataLimitResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDataLimitResult::~CreateDataLimitResult()
{}
void CreateDataLimitResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,115 @@
/*
* 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/sddp/model/CreateRuleRequest.h>
using AlibabaCloud::Sddp::Model::CreateRuleRequest;
CreateRuleRequest::CreateRuleRequest() :
RpcServiceRequest("sddp", "2019-01-03", "CreateRule")
{}
CreateRuleRequest::~CreateRuleRequest()
{}
std::string CreateRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int CreateRuleRequest::getFeatureType()const
{
return featureType_;
}
void CreateRuleRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
std::string CreateRuleRequest::getName()const
{
return name_;
}
void CreateRuleRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
long CreateRuleRequest::getRiskLevelId()const
{
return riskLevelId_;
}
void CreateRuleRequest::setRiskLevelId(long riskLevelId)
{
riskLevelId_ = riskLevelId;
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
}
std::string CreateRuleRequest::getLang()const
{
return lang_;
}
void CreateRuleRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long CreateRuleRequest::getCustomType()const
{
return customType_;
}
void CreateRuleRequest::setCustomType(long customType)
{
customType_ = customType;
setCoreParameter("CustomType", std::to_string(customType));
}
int CreateRuleRequest::getCategory()const
{
return category_;
}
void CreateRuleRequest::setCategory(int category)
{
category_ = category;
setCoreParameter("Category", std::to_string(category));
}
std::string CreateRuleRequest::getContent()const
{
return content_;
}
void CreateRuleRequest::setContent(const std::string& content)
{
content_ = content;
setCoreParameter("Content", content);
}

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/sddp/model/CreateRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
CreateRuleResult::CreateRuleResult() :
ServiceResult()
{}
CreateRuleResult::CreateRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRuleResult::~CreateRuleResult()
{}
void CreateRuleResult::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/sddp/model/CreateUserAuthRequest.h>
using AlibabaCloud::Sddp::Model::CreateUserAuthRequest;
CreateUserAuthRequest::CreateUserAuthRequest() :
RpcServiceRequest("sddp", "2019-01-03", "CreateUserAuth")
{}
CreateUserAuthRequest::~CreateUserAuthRequest()
{}
long CreateUserAuthRequest::getAccountId()const
{
return accountId_;
}
void CreateUserAuthRequest::setAccountId(long accountId)
{
accountId_ = accountId;
setCoreParameter("AccountId", std::to_string(accountId));
}
std::string CreateUserAuthRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateUserAuthRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string CreateUserAuthRequest::getAccessKey()const
{
return accessKey_;
}
void CreateUserAuthRequest::setAccessKey(const std::string& accessKey)
{
accessKey_ = accessKey;
setCoreParameter("AccessKey", accessKey);
}
std::string CreateUserAuthRequest::getAccessKeySecret()const
{
return accessKeySecret_;
}
void CreateUserAuthRequest::setAccessKeySecret(const std::string& accessKeySecret)
{
accessKeySecret_ = accessKeySecret;
setCoreParameter("AccessKeySecret", accessKeySecret);
}
std::string CreateUserAuthRequest::getLang()const
{
return lang_;
}
void CreateUserAuthRequest::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/sddp/model/CreateUserAuthResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
CreateUserAuthResult::CreateUserAuthResult() :
ServiceResult()
{}
CreateUserAuthResult::CreateUserAuthResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateUserAuthResult::~CreateUserAuthResult()
{}
void CreateUserAuthResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/sddp/model/DeleteDataLimitRequest.h>
using AlibabaCloud::Sddp::Model::DeleteDataLimitRequest;
DeleteDataLimitRequest::DeleteDataLimitRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DeleteDataLimit")
{}
DeleteDataLimitRequest::~DeleteDataLimitRequest()
{}
std::string DeleteDataLimitRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteDataLimitRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DeleteDataLimitRequest::getFeatureType()const
{
return featureType_;
}
void DeleteDataLimitRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
long DeleteDataLimitRequest::getId()const
{
return id_;
}
void DeleteDataLimitRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
std::string DeleteDataLimitRequest::getLang()const
{
return lang_;
}
void DeleteDataLimitRequest::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/sddp/model/DeleteDataLimitResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DeleteDataLimitResult::DeleteDataLimitResult() :
ServiceResult()
{}
DeleteDataLimitResult::DeleteDataLimitResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDataLimitResult::~DeleteDataLimitResult()
{}
void DeleteDataLimitResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/sddp/model/DeleteRuleRequest.h>
using AlibabaCloud::Sddp::Model::DeleteRuleRequest;
DeleteRuleRequest::DeleteRuleRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DeleteRule")
{}
DeleteRuleRequest::~DeleteRuleRequest()
{}
std::string DeleteRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DeleteRuleRequest::getFeatureType()const
{
return featureType_;
}
void DeleteRuleRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
long DeleteRuleRequest::getId()const
{
return id_;
}
void DeleteRuleRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(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/sddp/model/DeleteRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::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,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/sddp/model/DescribeAccountDetailRequest.h>
using AlibabaCloud::Sddp::Model::DescribeAccountDetailRequest;
DescribeAccountDetailRequest::DescribeAccountDetailRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeAccountDetail")
{}
DescribeAccountDetailRequest::~DescribeAccountDetailRequest()
{}
std::string DescribeAccountDetailRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAccountDetailRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeAccountDetailRequest::getLang()const
{
return lang_;
}
void DescribeAccountDetailRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeAccountDetailRequest::getUserId()const
{
return userId_;
}
void DescribeAccountDetailRequest::setUserId(long userId)
{
userId_ = userId;
setCoreParameter("UserId", std::to_string(userId));
}
long DescribeAccountDetailRequest::getAccountTypeId()const
{
return accountTypeId_;
}
void DescribeAccountDetailRequest::setAccountTypeId(long accountTypeId)
{
accountTypeId_ = accountTypeId;
setCoreParameter("AccountTypeId", std::to_string(accountTypeId));
}

View File

@@ -0,0 +1,113 @@
/*
* 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/sddp/model/DescribeAccountDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeAccountDetailResult::DescribeAccountDetailResult() :
ServiceResult()
{}
DescribeAccountDetailResult::DescribeAccountDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAccountDetailResult::~DescribeAccountDetailResult()
{}
void DescribeAccountDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto accountNode = value["Account"];
if(!accountNode["Id"].isNull())
account_.id = std::stol(accountNode["Id"].asString());
if(!accountNode["UserId"].isNull())
account_.userId = std::stol(accountNode["UserId"].asString());
if(!accountNode["FirstLevelDepartId"].isNull())
account_.firstLevelDepartId = std::stol(accountNode["FirstLevelDepartId"].asString());
if(!accountNode["LoginName"].isNull())
account_.loginName = accountNode["LoginName"].asString();
if(!accountNode["FullName"].isNull())
account_.fullName = accountNode["FullName"].asString();
if(!accountNode["CellphoneNum"].isNull())
account_.cellphoneNum = accountNode["CellphoneNum"].asString();
if(!accountNode["TelephoneNum"].isNull())
account_.telephoneNum = accountNode["TelephoneNum"].asString();
if(!accountNode["Email"].isNull())
account_.email = accountNode["Email"].asString();
if(!accountNode["ActiveStatus"].isNull())
account_.activeStatus = accountNode["ActiveStatus"].asString();
if(!accountNode["DeleteStatus"].isNull())
account_.deleteStatus = accountNode["DeleteStatus"].asString();
if(!accountNode["DataInstance"].isNull())
account_.dataInstance = accountNode["DataInstance"].asString();
if(!accountNode["CreateTime"].isNull())
account_.createTime = std::stol(accountNode["CreateTime"].asString());
if(!accountNode["LoginDataTime"].isNull())
account_.loginDataTime = std::stol(accountNode["LoginDataTime"].asString());
if(!accountNode["LoginPolicyName"].isNull())
account_.loginPolicyName = accountNode["LoginPolicyName"].asString();
if(!accountNode["FirstLevelDepartName"].isNull())
account_.firstLevelDepartName = accountNode["FirstLevelDepartName"].asString();
if(!accountNode["RoleNames"].isNull())
account_.roleNames = accountNode["RoleNames"].asString();
if(!accountNode["AliUid"].isNull())
account_.aliUid = std::stol(accountNode["AliUid"].asString());
auto allPrivilegeList = value["PrivilegeList"]["Privilege"];
for (auto value : allPrivilegeList)
{
Account::Privilege privilegeObject;
if(!value["ProductName"].isNull())
privilegeObject.productName = value["ProductName"].asString();
if(!value["UseAccountId"].isNull())
privilegeObject.useAccountId = value["UseAccountId"].asString();
if(!value["UseAccountType"].isNull())
privilegeObject.useAccountType = std::stoi(value["UseAccountType"].asString());
if(!value["UseAccountTypeName"].isNull())
privilegeObject.useAccountTypeName = value["UseAccountTypeName"].asString();
if(!value["UseAccountCreateTime"].isNull())
privilegeObject.useAccountCreateTime = std::stol(value["UseAccountCreateTime"].asString());
if(!value["UseAccountName"].isNull())
privilegeObject.useAccountName = value["UseAccountName"].asString();
account_.privilegeList.push_back(privilegeObject);
}
auto eventCountNode = accountNode["EventCount"];
auto totalNode = eventCountNode["Total"];
if(!totalNode["TotalCount"].isNull())
account_.eventCount.total.totalCount = std::stol(totalNode["TotalCount"].asString());
if(!totalNode["UndealCount"].isNull())
account_.eventCount.total.undealCount = std::stol(totalNode["UndealCount"].asString());
if(!totalNode["ConfirmCount"].isNull())
account_.eventCount.total.confirmCount = std::stol(totalNode["ConfirmCount"].asString());
if(!totalNode["ExcludeCount"].isNull())
account_.eventCount.total.excludeCount = std::stol(totalNode["ExcludeCount"].asString());
}
DescribeAccountDetailResult::Account DescribeAccountDetailResult::getAccount()const
{
return account_;
}

View File

@@ -0,0 +1,192 @@
/*
* 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/sddp/model/DescribeAccountsRequest.h>
using AlibabaCloud::Sddp::Model::DescribeAccountsRequest;
DescribeAccountsRequest::DescribeAccountsRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeAccounts")
{}
DescribeAccountsRequest::~DescribeAccountsRequest()
{}
std::string DescribeAccountsRequest::getProductCode()const
{
return productCode_;
}
void DescribeAccountsRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setCoreParameter("ProductCode", productCode);
}
std::string DescribeAccountsRequest::getLoginName()const
{
return loginName_;
}
void DescribeAccountsRequest::setLoginName(const std::string& loginName)
{
loginName_ = loginName;
setCoreParameter("LoginName", loginName);
}
int DescribeAccountsRequest::getFeatureType()const
{
return featureType_;
}
void DescribeAccountsRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
std::string DescribeAccountsRequest::getColumnId()const
{
return columnId_;
}
void DescribeAccountsRequest::setColumnId(const std::string& columnId)
{
columnId_ = columnId;
setCoreParameter("ColumnId", columnId);
}
std::string DescribeAccountsRequest::getPackageId()const
{
return packageId_;
}
void DescribeAccountsRequest::setPackageId(const std::string& packageId)
{
packageId_ = packageId;
setCoreParameter("PackageId", packageId);
}
int DescribeAccountsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAccountsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeAccountsRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeAccountsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string DescribeAccountsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAccountsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeAccountsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAccountsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
long DescribeAccountsRequest::getDepartId()const
{
return departId_;
}
void DescribeAccountsRequest::setDepartId(long departId)
{
departId_ = departId;
setCoreParameter("DepartId", std::to_string(departId));
}
int DescribeAccountsRequest::getOperationId()const
{
return operationId_;
}
void DescribeAccountsRequest::setOperationId(int operationId)
{
operationId_ = operationId;
setCoreParameter("OperationId", std::to_string(operationId));
}
std::string DescribeAccountsRequest::getTableId()const
{
return tableId_;
}
void DescribeAccountsRequest::setTableId(const std::string& tableId)
{
tableId_ = tableId;
setCoreParameter("TableId", tableId);
}
std::string DescribeAccountsRequest::getLang()const
{
return lang_;
}
void DescribeAccountsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribeAccountsRequest::getKey()const
{
return key_;
}
void DescribeAccountsRequest::setKey(const std::string& key)
{
key_ = key;
setCoreParameter("Key", key);
}
int DescribeAccountsRequest::getQueryType()const
{
return queryType_;
}
void DescribeAccountsRequest::setQueryType(int queryType)
{
queryType_ = queryType;
setCoreParameter("QueryType", std::to_string(queryType));
}

View File

@@ -0,0 +1,125 @@
/*
* 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/sddp/model/DescribeAccountsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeAccountsResult::DescribeAccountsResult() :
ServiceResult()
{}
DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAccountsResult::~DescribeAccountsResult()
{}
void DescribeAccountsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Account"];
for (auto value : allItems)
{
Account itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["UserId"].isNull())
itemsObject.userId = std::stol(value["UserId"].asString());
if(!value["FirstLevelDepartId"].isNull())
itemsObject.firstLevelDepartId = std::stol(value["FirstLevelDepartId"].asString());
if(!value["LoginName"].isNull())
itemsObject.loginName = value["LoginName"].asString();
if(!value["FullName"].isNull())
itemsObject.fullName = value["FullName"].asString();
if(!value["CellphoneNum"].isNull())
itemsObject.cellphoneNum = value["CellphoneNum"].asString();
if(!value["TelephoneNum"].isNull())
itemsObject.telephoneNum = value["TelephoneNum"].asString();
if(!value["Email"].isNull())
itemsObject.email = value["Email"].asString();
if(!value["ActiveStatus"].isNull())
itemsObject.activeStatus = value["ActiveStatus"].asString();
if(!value["DeleteStatus"].isNull())
itemsObject.deleteStatus = value["DeleteStatus"].asString();
if(!value["DataInstance"].isNull())
itemsObject.dataInstance = value["DataInstance"].asString();
if(!value["CreateTime"].isNull())
itemsObject.createTime = std::stol(value["CreateTime"].asString());
if(!value["LoginDataTime"].isNull())
itemsObject.loginDataTime = std::stol(value["LoginDataTime"].asString());
if(!value["LoginPolicyName"].isNull())
itemsObject.loginPolicyName = value["LoginPolicyName"].asString();
if(!value["FirstLevelDepartName"].isNull())
itemsObject.firstLevelDepartName = value["FirstLevelDepartName"].asString();
if(!value["RoleNames"].isNull())
itemsObject.roleNames = value["RoleNames"].asString();
if(!value["InstanceName"].isNull())
itemsObject.instanceName = value["InstanceName"].asString();
if(!value["AliUid"].isNull())
itemsObject.aliUid = std::stol(value["AliUid"].asString());
if(!value["AccountTypeId"].isNull())
itemsObject.accountTypeId = std::stol(value["AccountTypeId"].asString());
auto eventCountNode = value["EventCount"];
auto totalNode = eventCountNode["Total"];
if(!totalNode["TotalCount"].isNull())
itemsObject.eventCount.total.totalCount = std::stol(totalNode["TotalCount"].asString());
if(!totalNode["UndealCount"].isNull())
itemsObject.eventCount.total.undealCount = std::stol(totalNode["UndealCount"].asString());
if(!totalNode["ConfirmCount"].isNull())
itemsObject.eventCount.total.confirmCount = std::stol(totalNode["ConfirmCount"].asString());
if(!totalNode["ExcludeCount"].isNull())
itemsObject.eventCount.total.excludeCount = std::stol(totalNode["ExcludeCount"].asString());
items_.push_back(itemsObject);
}
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 DescribeAccountsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeAccountsResult::getPageSize()const
{
return pageSize_;
}
int DescribeAccountsResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeAccountsResult::Account> DescribeAccountsResult::getItems()const
{
return items_;
}

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/sddp/model/DescribeAuthAccountsRequest.h>
using AlibabaCloud::Sddp::Model::DescribeAuthAccountsRequest;
DescribeAuthAccountsRequest::DescribeAuthAccountsRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeAuthAccounts")
{}
DescribeAuthAccountsRequest::~DescribeAuthAccountsRequest()
{}
std::string DescribeAuthAccountsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAuthAccountsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeAuthAccountsRequest::getFeatureType()const
{
return featureType_;
}
void DescribeAuthAccountsRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
int DescribeAuthAccountsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAuthAccountsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeAuthAccountsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAuthAccountsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeAuthAccountsRequest::getLang()const
{
return lang_;
}
void DescribeAuthAccountsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,89 @@
/*
* 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/sddp/model/DescribeAuthAccountsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeAuthAccountsResult::DescribeAuthAccountsResult() :
ServiceResult()
{}
DescribeAuthAccountsResult::DescribeAuthAccountsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAuthAccountsResult::~DescribeAuthAccountsResult()
{}
void DescribeAuthAccountsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Account"];
for (auto value : allItems)
{
Account itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["LoginName"].isNull())
itemsObject.loginName = value["LoginName"].asString();
if(!value["FullName"].isNull())
itemsObject.fullName = value["FullName"].asString();
if(!value["AuthLoginName"].isNull())
itemsObject.authLoginName = value["AuthLoginName"].asString();
if(!value["AuthFullName"].isNull())
itemsObject.authFullName = value["AuthFullName"].asString();
if(!value["AuthTime"].isNull())
itemsObject.authTime = std::stol(value["AuthTime"].asString());
items_.push_back(itemsObject);
}
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 DescribeAuthAccountsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeAuthAccountsResult::getPageSize()const
{
return pageSize_;
}
int DescribeAuthAccountsResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeAuthAccountsResult::Account> DescribeAuthAccountsResult::getItems()const
{
return items_;
}

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/sddp/model/DescribeCloudDatabasesRequest.h>
using AlibabaCloud::Sddp::Model::DescribeCloudDatabasesRequest;
DescribeCloudDatabasesRequest::DescribeCloudDatabasesRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeCloudDatabases")
{}
DescribeCloudDatabasesRequest::~DescribeCloudDatabasesRequest()
{}
std::string DescribeCloudDatabasesRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeCloudDatabasesRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string DescribeCloudDatabasesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCloudDatabasesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeCloudDatabasesRequest::getLang()const
{
return lang_;
}
void DescribeCloudDatabasesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeCloudDatabasesRequest::getResourceType()const
{
return resourceType_;
}
void DescribeCloudDatabasesRequest::setResourceType(long resourceType)
{
resourceType_ = resourceType;
setCoreParameter("ResourceType", std::to_string(resourceType));
}
std::string DescribeCloudDatabasesRequest::getServiceRegionId()const
{
return serviceRegionId_;
}
void DescribeCloudDatabasesRequest::setServiceRegionId(const std::string& serviceRegionId)
{
serviceRegionId_ = serviceRegionId;
setCoreParameter("ServiceRegionId", serviceRegionId);
}

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/sddp/model/DescribeCloudDatabasesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeCloudDatabasesResult::DescribeCloudDatabasesResult() :
ServiceResult()
{}
DescribeCloudDatabasesResult::DescribeCloudDatabasesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCloudDatabasesResult::~DescribeCloudDatabasesResult()
{}
void DescribeCloudDatabasesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCloudDatabaseList = value["CloudDatabaseList"]["CloudDatabase"];
for (auto value : allCloudDatabaseList)
{
CloudDatabase cloudDatabaseListObject;
if(!value["Engine"].isNull())
cloudDatabaseListObject.engine = value["Engine"].asString();
if(!value["Name"].isNull())
cloudDatabaseListObject.name = value["Name"].asString();
if(!value["InstanceId"].isNull())
cloudDatabaseListObject.instanceId = value["InstanceId"].asString();
cloudDatabaseList_.push_back(cloudDatabaseListObject);
}
}
std::vector<DescribeCloudDatabasesResult::CloudDatabase> DescribeCloudDatabasesResult::getCloudDatabaseList()const
{
return cloudDatabaseList_;
}

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/sddp/model/DescribeCloudInstancesRequest.h>
using AlibabaCloud::Sddp::Model::DescribeCloudInstancesRequest;
DescribeCloudInstancesRequest::DescribeCloudInstancesRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeCloudInstances")
{}
DescribeCloudInstancesRequest::~DescribeCloudInstancesRequest()
{}
std::string DescribeCloudInstancesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCloudInstancesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeCloudInstancesRequest::getLang()const
{
return lang_;
}
void DescribeCloudInstancesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeCloudInstancesRequest::getResourceType()const
{
return resourceType_;
}
void DescribeCloudInstancesRequest::setResourceType(long resourceType)
{
resourceType_ = resourceType;
setCoreParameter("ResourceType", std::to_string(resourceType));
}
std::string DescribeCloudInstancesRequest::getServiceRegionId()const
{
return serviceRegionId_;
}
void DescribeCloudInstancesRequest::setServiceRegionId(const std::string& serviceRegionId)
{
serviceRegionId_ = serviceRegionId;
setCoreParameter("ServiceRegionId", serviceRegionId);
}

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/sddp/model/DescribeCloudInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeCloudInstancesResult::DescribeCloudInstancesResult() :
ServiceResult()
{}
DescribeCloudInstancesResult::DescribeCloudInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCloudInstancesResult::~DescribeCloudInstancesResult()
{}
void DescribeCloudInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCloudInstanceList = value["CloudInstanceList"]["CloudInstance"];
for (auto value : allCloudInstanceList)
{
CloudInstance cloudInstanceListObject;
if(!value["Engine"].isNull())
cloudInstanceListObject.engine = value["Engine"].asString();
if(!value["Name"].isNull())
cloudInstanceListObject.name = value["Name"].asString();
if(!value["InstanceId"].isNull())
cloudInstanceListObject.instanceId = value["InstanceId"].asString();
cloudInstanceList_.push_back(cloudInstanceListObject);
}
}
std::vector<DescribeCloudInstancesResult::CloudInstance> DescribeCloudInstancesResult::getCloudInstanceList()const
{
return cloudInstanceList_;
}

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/sddp/model/DescribeColumnsRequest.h>
using AlibabaCloud::Sddp::Model::DescribeColumnsRequest;
DescribeColumnsRequest::DescribeColumnsRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeColumns")
{}
DescribeColumnsRequest::~DescribeColumnsRequest()
{}
std::string DescribeColumnsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeColumnsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeColumnsRequest::getFeatureType()const
{
return featureType_;
}
void DescribeColumnsRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
std::string DescribeColumnsRequest::getRiskLevels()const
{
return riskLevels_;
}
void DescribeColumnsRequest::setRiskLevels(const std::string& riskLevels)
{
riskLevels_ = riskLevels;
setCoreParameter("RiskLevels", riskLevels);
}
std::string DescribeColumnsRequest::getName()const
{
return name_;
}
void DescribeColumnsRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
int DescribeColumnsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeColumnsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
long DescribeColumnsRequest::getTableId()const
{
return tableId_;
}
void DescribeColumnsRequest::setTableId(long tableId)
{
tableId_ = tableId;
setCoreParameter("TableId", std::to_string(tableId));
}
int DescribeColumnsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeColumnsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeColumnsRequest::getQueryName()const
{
return queryName_;
}
void DescribeColumnsRequest::setQueryName(const std::string& queryName)
{
queryName_ = queryName;
setCoreParameter("QueryName", queryName);
}
std::string DescribeColumnsRequest::getLang()const
{
return lang_;
}
void DescribeColumnsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeColumnsRequest::getRuleId()const
{
return ruleId_;
}
void DescribeColumnsRequest::setRuleId(long ruleId)
{
ruleId_ = ruleId;
setCoreParameter("RuleId", std::to_string(ruleId));
}

View File

@@ -0,0 +1,107 @@
/*
* 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/sddp/model/DescribeColumnsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeColumnsResult::DescribeColumnsResult() :
ServiceResult()
{}
DescribeColumnsResult::DescribeColumnsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeColumnsResult::~DescribeColumnsResult()
{}
void DescribeColumnsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Column"];
for (auto value : allItems)
{
Column itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
itemsObject.name = value["Name"].asString();
if(!value["InstanceId"].isNull())
itemsObject.instanceId = std::stol(value["InstanceId"].asString());
if(!value["TableId"].isNull())
itemsObject.tableId = std::stol(value["TableId"].asString());
if(!value["CreationTime"].isNull())
itemsObject.creationTime = std::stol(value["CreationTime"].asString());
if(!value["Sensitive"].isNull())
itemsObject.sensitive = value["Sensitive"].asString() == "true";
if(!value["ProductCode"].isNull())
itemsObject.productCode = value["ProductCode"].asString();
if(!value["DataType"].isNull())
itemsObject.dataType = value["DataType"].asString();
if(!value["OdpsRiskLevelValue"].isNull())
itemsObject.odpsRiskLevelValue = std::stoi(value["OdpsRiskLevelValue"].asString());
if(!value["OdpsRiskLevelName"].isNull())
itemsObject.odpsRiskLevelName = value["OdpsRiskLevelName"].asString();
if(!value["RiskLevelId"].isNull())
itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString());
if(!value["RiskLevelName"].isNull())
itemsObject.riskLevelName = value["RiskLevelName"].asString();
if(!value["RuleId"].isNull())
itemsObject.ruleId = std::stol(value["RuleId"].asString());
if(!value["RuleName"].isNull())
itemsObject.ruleName = value["RuleName"].asString();
if(!value["DepartName"].isNull())
itemsObject.departName = value["DepartName"].asString();
items_.push_back(itemsObject);
}
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 DescribeColumnsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeColumnsResult::getPageSize()const
{
return pageSize_;
}
int DescribeColumnsResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeColumnsResult::Column> DescribeColumnsResult::getItems()const
{
return items_;
}

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/sddp/model/DescribeConfigsRequest.h>
using AlibabaCloud::Sddp::Model::DescribeConfigsRequest;
DescribeConfigsRequest::DescribeConfigsRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeConfigs")
{}
DescribeConfigsRequest::~DescribeConfigsRequest()
{}
std::string DescribeConfigsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeConfigsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeConfigsRequest::getFeatureType()const
{
return featureType_;
}
void DescribeConfigsRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
std::string DescribeConfigsRequest::getLang()const
{
return lang_;
}
void DescribeConfigsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,66 @@
/*
* 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/sddp/model/DescribeConfigsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeConfigsResult::DescribeConfigsResult() :
ServiceResult()
{}
DescribeConfigsResult::DescribeConfigsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeConfigsResult::~DescribeConfigsResult()
{}
void DescribeConfigsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allConfigList = value["ConfigList"]["Config"];
for (auto value : allConfigList)
{
Config configListObject;
if(!value["Id"].isNull())
configListObject.id = std::stol(value["Id"].asString());
if(!value["Code"].isNull())
configListObject.code = std::stoi(value["Code"].asString());
if(!value["Description"].isNull())
configListObject.description = value["Description"].asString();
if(!value["Value"].isNull())
configListObject.value = std::stol(value["Value"].asString());
if(!value["DefaultValue"].isNull())
configListObject.defaultValue = value["DefaultValue"].asString();
configList_.push_back(configListObject);
}
}
std::vector<DescribeConfigsResult::Config> DescribeConfigsResult::getConfigList()const
{
return configList_;
}

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/sddp/model/DescribeDataAssetsRequest.h>
using AlibabaCloud::Sddp::Model::DescribeDataAssetsRequest;
DescribeDataAssetsRequest::DescribeDataAssetsRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataAssets")
{}
DescribeDataAssetsRequest::~DescribeDataAssetsRequest()
{}
int DescribeDataAssetsRequest::getRangeId()const
{
return rangeId_;
}
void DescribeDataAssetsRequest::setRangeId(int rangeId)
{
rangeId_ = rangeId;
setCoreParameter("RangeId", std::to_string(rangeId));
}
std::string DescribeDataAssetsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDataAssetsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeDataAssetsRequest::getFeatureType()const
{
return featureType_;
}
void DescribeDataAssetsRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
std::string DescribeDataAssetsRequest::getRiskLevels()const
{
return riskLevels_;
}
void DescribeDataAssetsRequest::setRiskLevels(const std::string& riskLevels)
{
riskLevels_ = riskLevels;
setCoreParameter("RiskLevels", riskLevels);
}
std::string DescribeDataAssetsRequest::getName()const
{
return name_;
}
void DescribeDataAssetsRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
int DescribeDataAssetsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDataAssetsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeDataAssetsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeDataAssetsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeDataAssetsRequest::getLang()const
{
return lang_;
}
void DescribeDataAssetsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeDataAssetsRequest::getRuleId()const
{
return ruleId_;
}
void DescribeDataAssetsRequest::setRuleId(long ruleId)
{
ruleId_ = ruleId;
setCoreParameter("RuleId", std::to_string(ruleId));
}

View File

@@ -0,0 +1,117 @@
/*
* 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/sddp/model/DescribeDataAssetsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeDataAssetsResult::DescribeDataAssetsResult() :
ServiceResult()
{}
DescribeDataAssetsResult::DescribeDataAssetsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDataAssetsResult::~DescribeDataAssetsResult()
{}
void DescribeDataAssetsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Asset"];
for (auto value : allItems)
{
Asset itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
itemsObject.name = value["Name"].asString();
if(!value["Owner"].isNull())
itemsObject.owner = value["Owner"].asString();
if(!value["CreationTime"].isNull())
itemsObject.creationTime = std::stol(value["CreationTime"].asString());
if(!value["ProductId"].isNull())
itemsObject.productId = value["ProductId"].asString();
if(!value["ProductCode"].isNull())
itemsObject.productCode = value["ProductCode"].asString();
if(!value["Protection"].isNull())
itemsObject.protection = value["Protection"].asString() == "true";
if(!value["Labelsec"].isNull())
itemsObject.labelsec = std::stoi(value["Labelsec"].asString());
if(!value["OdpsRiskLevelName"].isNull())
itemsObject.odpsRiskLevelName = value["OdpsRiskLevelName"].asString();
if(!value["Sensitive"].isNull())
itemsObject.sensitive = value["Sensitive"].asString() == "true";
if(!value["RiskLevelId"].isNull())
itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString());
if(!value["RiskLevelName"].isNull())
itemsObject.riskLevelName = value["RiskLevelName"].asString();
if(!value["RuleName"].isNull())
itemsObject.ruleName = value["RuleName"].asString();
if(!value["DepartName"].isNull())
itemsObject.departName = value["DepartName"].asString();
if(!value["TotalCount"].isNull())
itemsObject.totalCount = std::stoi(value["TotalCount"].asString());
if(!value["SensitiveCount"].isNull())
itemsObject.sensitiveCount = std::stoi(value["SensitiveCount"].asString());
if(!value["Acl"].isNull())
itemsObject.acl = value["Acl"].asString();
if(!value["SensitiveRatio"].isNull())
itemsObject.sensitiveRatio = value["SensitiveRatio"].asString();
if(!value["DataType"].isNull())
itemsObject.dataType = value["DataType"].asString();
if(!value["ObjectKey"].isNull())
itemsObject.objectKey = value["ObjectKey"].asString();
items_.push_back(itemsObject);
}
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 DescribeDataAssetsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeDataAssetsResult::getPageSize()const
{
return pageSize_;
}
int DescribeDataAssetsResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeDataAssetsResult::Asset> DescribeDataAssetsResult::getItems()const
{
return items_;
}

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/sddp/model/DescribeDataHubConnectorsRequest.h>
using AlibabaCloud::Sddp::Model::DescribeDataHubConnectorsRequest;
DescribeDataHubConnectorsRequest::DescribeDataHubConnectorsRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubConnectors")
{}
DescribeDataHubConnectorsRequest::~DescribeDataHubConnectorsRequest()
{}
long DescribeDataHubConnectorsRequest::getTopicId()const
{
return topicId_;
}
void DescribeDataHubConnectorsRequest::setTopicId(long topicId)
{
topicId_ = topicId;
setCoreParameter("TopicId", std::to_string(topicId));
}
std::string DescribeDataHubConnectorsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDataHubConnectorsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeDataHubConnectorsRequest::getFeatureType()const
{
return featureType_;
}
void DescribeDataHubConnectorsRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
int DescribeDataHubConnectorsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDataHubConnectorsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
long DescribeDataHubConnectorsRequest::getDepartId()const
{
return departId_;
}
void DescribeDataHubConnectorsRequest::setDepartId(long departId)
{
departId_ = departId;
setCoreParameter("DepartId", std::to_string(departId));
}
int DescribeDataHubConnectorsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeDataHubConnectorsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeDataHubConnectorsRequest::getLang()const
{
return lang_;
}
void DescribeDataHubConnectorsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeDataHubConnectorsRequest::getProjectId()const
{
return projectId_;
}
void DescribeDataHubConnectorsRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setCoreParameter("ProjectId", std::to_string(projectId));
}
std::string DescribeDataHubConnectorsRequest::getKey()const
{
return key_;
}
void DescribeDataHubConnectorsRequest::setKey(const std::string& key)
{
key_ = key;
setCoreParameter("Key", key);
}

View File

@@ -0,0 +1,99 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sddp/model/DescribeDataHubConnectorsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeDataHubConnectorsResult::DescribeDataHubConnectorsResult() :
ServiceResult()
{}
DescribeDataHubConnectorsResult::DescribeDataHubConnectorsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDataHubConnectorsResult::~DescribeDataHubConnectorsResult()
{}
void DescribeDataHubConnectorsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Connector"];
for (auto value : allItems)
{
Connector itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
itemsObject.name = value["Name"].asString();
if(!value["Description"].isNull())
itemsObject.description = value["Description"].asString();
if(!value["CreationTime"].isNull())
itemsObject.creationTime = std::stol(value["CreationTime"].asString());
if(!value["ConnectorProduct"].isNull())
itemsObject.connectorProduct = value["ConnectorProduct"].asString();
if(!value["ConnectorPath"].isNull())
itemsObject.connectorPath = value["ConnectorPath"].asString();
if(!value["RiskLevelId"].isNull())
itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString());
if(!value["RiskLevelName"].isNull())
itemsObject.riskLevelName = value["RiskLevelName"].asString();
if(!value["UserId"].isNull())
itemsObject.userId = std::stol(value["UserId"].asString());
if(!value["LoginName"].isNull())
itemsObject.loginName = value["LoginName"].asString();
if(!value["DisplayName"].isNull())
itemsObject.displayName = value["DisplayName"].asString();
items_.push_back(itemsObject);
}
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 DescribeDataHubConnectorsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeDataHubConnectorsResult::getPageSize()const
{
return pageSize_;
}
int DescribeDataHubConnectorsResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeDataHubConnectorsResult::Connector> DescribeDataHubConnectorsResult::getItems()const
{
return items_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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/sddp/model/DescribeDataHubProjectsRequest.h>
using AlibabaCloud::Sddp::Model::DescribeDataHubProjectsRequest;
DescribeDataHubProjectsRequest::DescribeDataHubProjectsRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubProjects")
{}
DescribeDataHubProjectsRequest::~DescribeDataHubProjectsRequest()
{}
std::string DescribeDataHubProjectsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDataHubProjectsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeDataHubProjectsRequest::getFeatureType()const
{
return featureType_;
}
void DescribeDataHubProjectsRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
int DescribeDataHubProjectsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDataHubProjectsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
long DescribeDataHubProjectsRequest::getDepartId()const
{
return departId_;
}
void DescribeDataHubProjectsRequest::setDepartId(long departId)
{
departId_ = departId;
setCoreParameter("DepartId", std::to_string(departId));
}
int DescribeDataHubProjectsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeDataHubProjectsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeDataHubProjectsRequest::getLang()const
{
return lang_;
}
void DescribeDataHubProjectsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribeDataHubProjectsRequest::getKey()const
{
return key_;
}
void DescribeDataHubProjectsRequest::setKey(const std::string& key)
{
key_ = key;
setCoreParameter("Key", key);
}
int DescribeDataHubProjectsRequest::getQueryType()const
{
return queryType_;
}
void DescribeDataHubProjectsRequest::setQueryType(int queryType)
{
queryType_ = queryType;
setCoreParameter("QueryType", std::to_string(queryType));
}

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/sddp/model/DescribeDataHubProjectsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeDataHubProjectsResult::DescribeDataHubProjectsResult() :
ServiceResult()
{}
DescribeDataHubProjectsResult::DescribeDataHubProjectsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDataHubProjectsResult::~DescribeDataHubProjectsResult()
{}
void DescribeDataHubProjectsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Project"];
for (auto value : allItems)
{
Project itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
itemsObject.name = value["Name"].asString();
if(!value["Description"].isNull())
itemsObject.description = value["Description"].asString();
if(!value["CreationTime"].isNull())
itemsObject.creationTime = std::stol(value["CreationTime"].asString());
if(!value["TopicCount"].isNull())
itemsObject.topicCount = value["TopicCount"].asString();
if(!value["TopicTupleCount"].isNull())
itemsObject.topicTupleCount = value["TopicTupleCount"].asString();
if(!value["TopicBlobCount"].isNull())
itemsObject.topicBlobCount = std::stol(value["TopicBlobCount"].asString());
if(!value["UserId"].isNull())
itemsObject.userId = std::stol(value["UserId"].asString());
if(!value["LoginName"].isNull())
itemsObject.loginName = value["LoginName"].asString();
if(!value["DisplayName"].isNull())
itemsObject.displayName = value["DisplayName"].asString();
items_.push_back(itemsObject);
}
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 DescribeDataHubProjectsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeDataHubProjectsResult::getPageSize()const
{
return pageSize_;
}
int DescribeDataHubProjectsResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeDataHubProjectsResult::Project> DescribeDataHubProjectsResult::getItems()const
{
return items_;
}

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/sddp/model/DescribeDataHubSubscriptionsRequest.h>
using AlibabaCloud::Sddp::Model::DescribeDataHubSubscriptionsRequest;
DescribeDataHubSubscriptionsRequest::DescribeDataHubSubscriptionsRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubSubscriptions")
{}
DescribeDataHubSubscriptionsRequest::~DescribeDataHubSubscriptionsRequest()
{}
long DescribeDataHubSubscriptionsRequest::getTopicId()const
{
return topicId_;
}
void DescribeDataHubSubscriptionsRequest::setTopicId(long topicId)
{
topicId_ = topicId;
setCoreParameter("TopicId", std::to_string(topicId));
}
std::string DescribeDataHubSubscriptionsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDataHubSubscriptionsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeDataHubSubscriptionsRequest::getFeatureType()const
{
return featureType_;
}
void DescribeDataHubSubscriptionsRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
int DescribeDataHubSubscriptionsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDataHubSubscriptionsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
long DescribeDataHubSubscriptionsRequest::getDepartId()const
{
return departId_;
}
void DescribeDataHubSubscriptionsRequest::setDepartId(long departId)
{
departId_ = departId;
setCoreParameter("DepartId", std::to_string(departId));
}
int DescribeDataHubSubscriptionsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeDataHubSubscriptionsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeDataHubSubscriptionsRequest::getLang()const
{
return lang_;
}
void DescribeDataHubSubscriptionsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeDataHubSubscriptionsRequest::getProjectId()const
{
return projectId_;
}
void DescribeDataHubSubscriptionsRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setCoreParameter("ProjectId", std::to_string(projectId));
}
std::string DescribeDataHubSubscriptionsRequest::getKey()const
{
return key_;
}
void DescribeDataHubSubscriptionsRequest::setKey(const std::string& key)
{
key_ = key;
setCoreParameter("Key", key);
}

View File

@@ -0,0 +1,101 @@
/*
* 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/sddp/model/DescribeDataHubSubscriptionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeDataHubSubscriptionsResult::DescribeDataHubSubscriptionsResult() :
ServiceResult()
{}
DescribeDataHubSubscriptionsResult::DescribeDataHubSubscriptionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDataHubSubscriptionsResult::~DescribeDataHubSubscriptionsResult()
{}
void DescribeDataHubSubscriptionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Subscription"];
for (auto value : allItems)
{
Subscription itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
itemsObject.name = value["Name"].asString();
if(!value["Description"].isNull())
itemsObject.description = value["Description"].asString();
if(!value["CreationTime"].isNull())
itemsObject.creationTime = std::stol(value["CreationTime"].asString());
if(!value["State"].isNull())
itemsObject.state = value["State"].asString();
if(!value["ApplicationName"].isNull())
itemsObject.applicationName = value["ApplicationName"].asString();
if(!value["UserId"].isNull())
itemsObject.userId = std::stol(value["UserId"].asString());
if(!value["LoginName"].isNull())
itemsObject.loginName = value["LoginName"].asString();
if(!value["DisplayName"].isNull())
itemsObject.displayName = value["DisplayName"].asString();
if(!value["SubscriptionUserId"].isNull())
itemsObject.subscriptionUserId = std::stol(value["SubscriptionUserId"].asString());
if(!value["SubscriptionUserName"].isNull())
itemsObject.subscriptionUserName = value["SubscriptionUserName"].asString();
if(!value["SubscriptionDisplayName"].isNull())
itemsObject.subscriptionDisplayName = value["SubscriptionDisplayName"].asString();
items_.push_back(itemsObject);
}
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 DescribeDataHubSubscriptionsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeDataHubSubscriptionsResult::getPageSize()const
{
return pageSize_;
}
int DescribeDataHubSubscriptionsResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeDataHubSubscriptionsResult::Subscription> DescribeDataHubSubscriptionsResult::getItems()const
{
return items_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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/sddp/model/DescribeDataHubTopicsRequest.h>
using AlibabaCloud::Sddp::Model::DescribeDataHubTopicsRequest;
DescribeDataHubTopicsRequest::DescribeDataHubTopicsRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubTopics")
{}
DescribeDataHubTopicsRequest::~DescribeDataHubTopicsRequest()
{}
std::string DescribeDataHubTopicsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDataHubTopicsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeDataHubTopicsRequest::getFeatureType()const
{
return featureType_;
}
void DescribeDataHubTopicsRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
int DescribeDataHubTopicsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDataHubTopicsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
long DescribeDataHubTopicsRequest::getDepartId()const
{
return departId_;
}
void DescribeDataHubTopicsRequest::setDepartId(long departId)
{
departId_ = departId;
setCoreParameter("DepartId", std::to_string(departId));
}
int DescribeDataHubTopicsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeDataHubTopicsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeDataHubTopicsRequest::getLang()const
{
return lang_;
}
void DescribeDataHubTopicsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeDataHubTopicsRequest::getProjectId()const
{
return projectId_;
}
void DescribeDataHubTopicsRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setCoreParameter("ProjectId", std::to_string(projectId));
}
std::string DescribeDataHubTopicsRequest::getKey()const
{
return key_;
}
void DescribeDataHubTopicsRequest::setKey(const std::string& key)
{
key_ = key;
setCoreParameter("Key", key);
}

View File

@@ -0,0 +1,95 @@
/*
* 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/sddp/model/DescribeDataHubTopicsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeDataHubTopicsResult::DescribeDataHubTopicsResult() :
ServiceResult()
{}
DescribeDataHubTopicsResult::DescribeDataHubTopicsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDataHubTopicsResult::~DescribeDataHubTopicsResult()
{}
void DescribeDataHubTopicsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Topic"];
for (auto value : allItems)
{
Topic itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
itemsObject.name = value["Name"].asString();
if(!value["Description"].isNull())
itemsObject.description = value["Description"].asString();
if(!value["CreationTime"].isNull())
itemsObject.creationTime = std::stol(value["CreationTime"].asString());
if(!value["RecordType"].isNull())
itemsObject.recordType = value["RecordType"].asString();
if(!value["LifeCycle"].isNull())
itemsObject.lifeCycle = std::stoi(value["LifeCycle"].asString());
if(!value["UserId"].isNull())
itemsObject.userId = std::stol(value["UserId"].asString());
if(!value["LoginName"].isNull())
itemsObject.loginName = value["LoginName"].asString();
if(!value["DisplayName"].isNull())
itemsObject.displayName = value["DisplayName"].asString();
items_.push_back(itemsObject);
}
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 DescribeDataHubTopicsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeDataHubTopicsResult::getPageSize()const
{
return pageSize_;
}
int DescribeDataHubTopicsResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeDataHubTopicsResult::Topic> DescribeDataHubTopicsResult::getItems()const
{
return items_;
}

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/sddp/model/DescribeDataLimitDetailRequest.h>
using AlibabaCloud::Sddp::Model::DescribeDataLimitDetailRequest;
DescribeDataLimitDetailRequest::DescribeDataLimitDetailRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimitDetail")
{}
DescribeDataLimitDetailRequest::~DescribeDataLimitDetailRequest()
{}
std::string DescribeDataLimitDetailRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDataLimitDetailRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
long DescribeDataLimitDetailRequest::getId()const
{
return id_;
}
void DescribeDataLimitDetailRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
int DescribeDataLimitDetailRequest::getNetworkType()const
{
return networkType_;
}
void DescribeDataLimitDetailRequest::setNetworkType(int networkType)
{
networkType_ = networkType;
setCoreParameter("NetworkType", std::to_string(networkType));
}
std::string DescribeDataLimitDetailRequest::getLang()const
{
return lang_;
}
void DescribeDataLimitDetailRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/sddp/model/DescribeDataLimitDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeDataLimitDetailResult::DescribeDataLimitDetailResult() :
ServiceResult()
{}
DescribeDataLimitDetailResult::DescribeDataLimitDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDataLimitDetailResult::~DescribeDataLimitDetailResult()
{}
void DescribeDataLimitDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataLimitNode = value["DataLimit"];
if(!dataLimitNode["RegionId"].isNull())
dataLimit_.regionId = dataLimitNode["RegionId"].asString();
if(!dataLimitNode["LocalName"].isNull())
dataLimit_.localName = dataLimitNode["LocalName"].asString();
if(!dataLimitNode["ParentId"].isNull())
dataLimit_.parentId = dataLimitNode["ParentId"].asString();
if(!dataLimitNode["Id"].isNull())
dataLimit_.id = std::stol(dataLimitNode["Id"].asString());
if(!dataLimitNode["UserName"].isNull())
dataLimit_.userName = dataLimitNode["UserName"].asString();
if(!dataLimitNode["GmtCreate"].isNull())
dataLimit_.gmtCreate = std::stol(dataLimitNode["GmtCreate"].asString());
if(!dataLimitNode["Connector"].isNull())
dataLimit_.connector = dataLimitNode["Connector"].asString();
if(!dataLimitNode["CheckStatus"].isNull())
dataLimit_.checkStatus = std::stoi(dataLimitNode["CheckStatus"].asString());
if(!dataLimitNode["CheckStatusName"].isNull())
dataLimit_.checkStatusName = dataLimitNode["CheckStatusName"].asString();
}
DescribeDataLimitDetailResult::DataLimit DescribeDataLimitDetailResult::getDataLimit()const
{
return dataLimit_;
}

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/sddp/model/DescribeDataLimitsRequest.h>
using AlibabaCloud::Sddp::Model::DescribeDataLimitsRequest;
DescribeDataLimitsRequest::DescribeDataLimitsRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimits")
{}
DescribeDataLimitsRequest::~DescribeDataLimitsRequest()
{}
std::string DescribeDataLimitsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDataLimitsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeDataLimitsRequest::getLang()const
{
return lang_;
}
void DescribeDataLimitsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
int DescribeDataLimitsRequest::getResourceType()const
{
return resourceType_;
}
void DescribeDataLimitsRequest::setResourceType(int resourceType)
{
resourceType_ = resourceType;
setCoreParameter("ResourceType", std::to_string(resourceType));
}
std::string DescribeDataLimitsRequest::getParentId()const
{
return parentId_;
}
void DescribeDataLimitsRequest::setParentId(const std::string& parentId)
{
parentId_ = parentId;
setCoreParameter("ParentId", parentId);
}

View File

@@ -0,0 +1,74 @@
/*
* 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/sddp/model/DescribeDataLimitsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeDataLimitsResult::DescribeDataLimitsResult() :
ServiceResult()
{}
DescribeDataLimitsResult::DescribeDataLimitsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDataLimitsResult::~DescribeDataLimitsResult()
{}
void DescribeDataLimitsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataLimitList = value["DataLimitList"]["DataLimit"];
for (auto value : allDataLimitList)
{
DataLimit dataLimitListObject;
if(!value["RegionId"].isNull())
dataLimitListObject.regionId = value["RegionId"].asString();
if(!value["LocalName"].isNull())
dataLimitListObject.localName = value["LocalName"].asString();
if(!value["ParentId"].isNull())
dataLimitListObject.parentId = value["ParentId"].asString();
if(!value["Id"].isNull())
dataLimitListObject.id = std::stol(value["Id"].asString());
if(!value["UserName"].isNull())
dataLimitListObject.userName = value["UserName"].asString();
if(!value["GmtCreate"].isNull())
dataLimitListObject.gmtCreate = std::stol(value["GmtCreate"].asString());
if(!value["Connector"].isNull())
dataLimitListObject.connector = value["Connector"].asString();
if(!value["CheckStatus"].isNull())
dataLimitListObject.checkStatus = std::stoi(value["CheckStatus"].asString());
if(!value["CheckStatusName"].isNull())
dataLimitListObject.checkStatusName = value["CheckStatusName"].asString();
dataLimitList_.push_back(dataLimitListObject);
}
}
std::vector<DescribeDataLimitsResult::DataLimit> DescribeDataLimitsResult::getDataLimitList()const
{
return dataLimitList_;
}

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/sddp/model/DescribeDepartsRequest.h>
using AlibabaCloud::Sddp::Model::DescribeDepartsRequest;
DescribeDepartsRequest::DescribeDepartsRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeDeparts")
{}
DescribeDepartsRequest::~DescribeDepartsRequest()
{}
std::string DescribeDepartsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDepartsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeDepartsRequest::getFeatureType()const
{
return featureType_;
}
void DescribeDepartsRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
int DescribeDepartsRequest::getAccountType()const
{
return accountType_;
}
void DescribeDepartsRequest::setAccountType(int accountType)
{
accountType_ = accountType;
setCoreParameter("AccountType", std::to_string(accountType));
}
int DescribeDepartsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDepartsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeDepartsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeDepartsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeDepartsRequest::getLang()const
{
return lang_;
}
void DescribeDepartsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribeDepartsRequest::getKey()const
{
return key_;
}
void DescribeDepartsRequest::setKey(const std::string& key)
{
key_ = key;
setCoreParameter("Key", key);
}

View File

@@ -0,0 +1,91 @@
/*
* 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/sddp/model/DescribeDepartsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeDepartsResult::DescribeDepartsResult() :
ServiceResult()
{}
DescribeDepartsResult::DescribeDepartsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDepartsResult::~DescribeDepartsResult()
{}
void DescribeDepartsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Depart"];
for (auto value : allItems)
{
Depart itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["DepartId"].isNull())
itemsObject.departId = std::stol(value["DepartId"].asString());
if(!value["DepartName"].isNull())
itemsObject.departName = value["DepartName"].asString();
if(!value["Comment"].isNull())
itemsObject.comment = value["Comment"].asString();
if(!value["ParentDepartId"].isNull())
itemsObject.parentDepartId = std::stol(value["ParentDepartId"].asString());
if(!value["ParentDepartName"].isNull())
itemsObject.parentDepartName = value["ParentDepartName"].asString();
if(!value["Level"].isNull())
itemsObject.level = std::stoi(value["Level"].asString());
items_.push_back(itemsObject);
}
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 DescribeDepartsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeDepartsResult::getPageSize()const
{
return pageSize_;
}
int DescribeDepartsResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeDepartsResult::Depart> DescribeDepartsResult::getItems()const
{
return items_;
}

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/sddp/model/DescribeEventDetailRequest.h>
using AlibabaCloud::Sddp::Model::DescribeEventDetailRequest;
DescribeEventDetailRequest::DescribeEventDetailRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeEventDetail")
{}
DescribeEventDetailRequest::~DescribeEventDetailRequest()
{}
std::string DescribeEventDetailRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeEventDetailRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
long DescribeEventDetailRequest::getFeatureType()const
{
return featureType_;
}
void DescribeEventDetailRequest::setFeatureType(long featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
long DescribeEventDetailRequest::getId()const
{
return id_;
}
void DescribeEventDetailRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
std::string DescribeEventDetailRequest::getLang()const
{
return lang_;
}
void DescribeEventDetailRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,123 @@
/*
* 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/sddp/model/DescribeEventDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeEventDetailResult::DescribeEventDetailResult() :
ServiceResult()
{}
DescribeEventDetailResult::DescribeEventDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeEventDetailResult::~DescribeEventDetailResult()
{}
void DescribeEventDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto eventNode = value["Event"];
if(!eventNode["Id"].isNull())
event_.id = std::stol(eventNode["Id"].asString());
if(!eventNode["UserId"].isNull())
event_.userId = std::stol(eventNode["UserId"].asString());
if(!eventNode["LoginName"].isNull())
event_.loginName = eventNode["LoginName"].asString();
if(!eventNode["DisplayName"].isNull())
event_.displayName = eventNode["DisplayName"].asString();
if(!eventNode["ProductCode"].isNull())
event_.productCode = eventNode["ProductCode"].asString();
if(!eventNode["TypeCode"].isNull())
event_.typeCode = eventNode["TypeCode"].asString();
if(!eventNode["TypeName"].isNull())
event_.typeName = eventNode["TypeName"].asString();
if(!eventNode["TelephoneNum"].isNull())
event_.telephoneNum = eventNode["TelephoneNum"].asString();
if(!eventNode["SubTypeCode"].isNull())
event_.subTypeCode = eventNode["SubTypeCode"].asString();
if(!eventNode["SubTypeName"].isNull())
event_.subTypeName = eventNode["SubTypeName"].asString();
if(!eventNode["AlertTime"].isNull())
event_.alertTime = std::stol(eventNode["AlertTime"].asString());
if(!eventNode["DataInstance"].isNull())
event_.dataInstance = eventNode["DataInstance"].asString();
if(!eventNode["EventTime"].isNull())
event_.eventTime = std::stol(eventNode["EventTime"].asString());
if(!eventNode["Status"].isNull())
event_.status = std::stoi(eventNode["Status"].asString());
if(!eventNode["StatusName"].isNull())
event_.statusName = eventNode["StatusName"].asString();
if(!eventNode["DealUserId"].isNull())
event_.dealUserId = std::stol(eventNode["DealUserId"].asString());
if(!eventNode["DealLoginName"].isNull())
event_.dealLoginName = eventNode["DealLoginName"].asString();
if(!eventNode["DealDisplayName"].isNull())
event_.dealDisplayName = eventNode["DealDisplayName"].asString();
if(!eventNode["DealTime"].isNull())
event_.dealTime = std::stol(eventNode["DealTime"].asString());
if(!eventNode["DepartName"].isNull())
event_.departName = eventNode["DepartName"].asString();
if(!eventNode["Backed"].isNull())
event_.backed = eventNode["Backed"].asString() == "true";
if(!eventNode["DealReason"].isNull())
event_.dealReason = eventNode["DealReason"].asString();
auto detailNode = eventNode["Detail"];
auto allContent = value["Content"]["ContentItem"];
for (auto value : allContent)
{
Event::Detail::ContentItem contentItemObject;
if(!value["Label"].isNull())
contentItemObject.label = value["Label"].asString();
if(!value["Value"].isNull())
contentItemObject.value = value["Value"].asString();
event_.detail.content.push_back(contentItemObject);
}
auto allChart = value["Chart"]["ChartItem"];
for (auto value : allChart)
{
Event::Detail::ChartItem chartItemObject;
if(!value["Label"].isNull())
chartItemObject.label = value["Label"].asString();
if(!value["XLabel"].isNull())
chartItemObject.xLabel = value["XLabel"].asString();
if(!value["YLabel"].isNull())
chartItemObject.yLabel = value["YLabel"].asString();
auto dataNode = value["Data"];
if(!dataNode["X"].isNull())
chartItemObject.data.x = dataNode["X"].asString();
if(!dataNode["Y"].isNull())
chartItemObject.data.y = dataNode["Y"].asString();
event_.detail.chart.push_back(chartItemObject);
}
}
DescribeEventDetailResult::Event DescribeEventDetailResult::getEvent()const
{
return event_;
}

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/sddp/model/DescribeEventTypesRequest.h>
using AlibabaCloud::Sddp::Model::DescribeEventTypesRequest;
DescribeEventTypesRequest::DescribeEventTypesRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeEventTypes")
{}
DescribeEventTypesRequest::~DescribeEventTypesRequest()
{}
std::string DescribeEventTypesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeEventTypesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
long DescribeEventTypesRequest::getParentTypeId()const
{
return parentTypeId_;
}
void DescribeEventTypesRequest::setParentTypeId(long parentTypeId)
{
parentTypeId_ = parentTypeId;
setCoreParameter("ParentTypeId", std::to_string(parentTypeId));
}
std::string DescribeEventTypesRequest::getLang()const
{
return lang_;
}
void DescribeEventTypesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,80 @@
/*
* 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/sddp/model/DescribeEventTypesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeEventTypesResult::DescribeEventTypesResult() :
ServiceResult()
{}
DescribeEventTypesResult::DescribeEventTypesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeEventTypesResult::~DescribeEventTypesResult()
{}
void DescribeEventTypesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEventTypeList = value["EventTypeList"]["EventType"];
for (auto value : allEventTypeList)
{
EventType eventTypeListObject;
if(!value["Id"].isNull())
eventTypeListObject.id = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
eventTypeListObject.name = value["Name"].asString();
if(!value["Code"].isNull())
eventTypeListObject.code = value["Code"].asString();
if(!value["Description"].isNull())
eventTypeListObject.description = value["Description"].asString();
auto allSubTypeList = value["SubTypeList"]["SubType"];
for (auto value : allSubTypeList)
{
EventType::SubType subTypeListObject;
if(!value["Id"].isNull())
subTypeListObject.id = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
subTypeListObject.name = value["Name"].asString();
if(!value["Code"].isNull())
subTypeListObject.code = value["Code"].asString();
if(!value["Description"].isNull())
subTypeListObject.description = value["Description"].asString();
if(!value["Status"].isNull())
subTypeListObject.status = std::stoi(value["Status"].asString());
eventTypeListObject.subTypeList.push_back(subTypeListObject);
}
eventTypeList_.push_back(eventTypeListObject);
}
}
std::vector<DescribeEventTypesResult::EventType> DescribeEventTypesResult::getEventTypeList()const
{
return eventTypeList_;
}

View File

@@ -0,0 +1,192 @@
/*
* 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/sddp/model/DescribeEventsRequest.h>
using AlibabaCloud::Sddp::Model::DescribeEventsRequest;
DescribeEventsRequest::DescribeEventsRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeEvents")
{}
DescribeEventsRequest::~DescribeEventsRequest()
{}
std::string DescribeEventsRequest::getProductCode()const
{
return productCode_;
}
void DescribeEventsRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setCoreParameter("ProductCode", productCode);
}
int DescribeEventsRequest::getFeatureType()const
{
return featureType_;
}
void DescribeEventsRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
std::string DescribeEventsRequest::getEndTime()const
{
return endTime_;
}
void DescribeEventsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
int DescribeEventsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeEventsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeEventsRequest::getStartTime()const
{
return startTime_;
}
void DescribeEventsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
long DescribeEventsRequest::getUserId()const
{
return userId_;
}
void DescribeEventsRequest::setUserId(long userId)
{
userId_ = userId;
setCoreParameter("UserId", std::to_string(userId));
}
std::string DescribeEventsRequest::getTypeCode()const
{
return typeCode_;
}
void DescribeEventsRequest::setTypeCode(const std::string& typeCode)
{
typeCode_ = typeCode;
setCoreParameter("TypeCode", typeCode);
}
std::string DescribeEventsRequest::getSubTypeCode()const
{
return subTypeCode_;
}
void DescribeEventsRequest::setSubTypeCode(const std::string& subTypeCode)
{
subTypeCode_ = subTypeCode;
setCoreParameter("SubTypeCode", subTypeCode);
}
std::string DescribeEventsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeEventsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeEventsRequest::getTargetProductCode()const
{
return targetProductCode_;
}
void DescribeEventsRequest::setTargetProductCode(const std::string& targetProductCode)
{
targetProductCode_ = targetProductCode;
setCoreParameter("TargetProductCode", targetProductCode);
}
int DescribeEventsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeEventsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
long DescribeEventsRequest::getDepartId()const
{
return departId_;
}
void DescribeEventsRequest::setDepartId(long departId)
{
departId_ = departId;
setCoreParameter("DepartId", std::to_string(departId));
}
std::string DescribeEventsRequest::getLang()const
{
return lang_;
}
void DescribeEventsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribeEventsRequest::getDealUserId()const
{
return dealUserId_;
}
void DescribeEventsRequest::setDealUserId(const std::string& dealUserId)
{
dealUserId_ = dealUserId;
setCoreParameter("DealUserId", dealUserId);
}
std::string DescribeEventsRequest::getStatus()const
{
return status_;
}
void DescribeEventsRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
}

View File

@@ -0,0 +1,119 @@
/*
* 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/sddp/model/DescribeEventsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeEventsResult::DescribeEventsResult() :
ServiceResult()
{}
DescribeEventsResult::DescribeEventsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeEventsResult::~DescribeEventsResult()
{}
void DescribeEventsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Event"];
for (auto value : allItems)
{
Event itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["UserId"].isNull())
itemsObject.userId = std::stol(value["UserId"].asString());
if(!value["LoginName"].isNull())
itemsObject.loginName = value["LoginName"].asString();
if(!value["DisplayName"].isNull())
itemsObject.displayName = value["DisplayName"].asString();
if(!value["ProductCode"].isNull())
itemsObject.productCode = value["ProductCode"].asString();
if(!value["TargetProductCode"].isNull())
itemsObject.targetProductCode = value["TargetProductCode"].asString();
if(!value["TypeCode"].isNull())
itemsObject.typeCode = value["TypeCode"].asString();
if(!value["TypeName"].isNull())
itemsObject.typeName = value["TypeName"].asString();
if(!value["TelephoneNum"].isNull())
itemsObject.telephoneNum = value["TelephoneNum"].asString();
if(!value["SubTypeCode"].isNull())
itemsObject.subTypeCode = value["SubTypeCode"].asString();
if(!value["SubTypeName"].isNull())
itemsObject.subTypeName = value["SubTypeName"].asString();
if(!value["AlertTime"].isNull())
itemsObject.alertTime = std::stol(value["AlertTime"].asString());
if(!value["EventTime"].isNull())
itemsObject.eventTime = std::stol(value["EventTime"].asString());
if(!value["Status"].isNull())
itemsObject.status = std::stoi(value["Status"].asString());
if(!value["StatusName"].isNull())
itemsObject.statusName = value["StatusName"].asString();
if(!value["DealUserId"].isNull())
itemsObject.dealUserId = std::stol(value["DealUserId"].asString());
if(!value["DealLoginName"].isNull())
itemsObject.dealLoginName = value["DealLoginName"].asString();
if(!value["DealDisplayName"].isNull())
itemsObject.dealDisplayName = value["DealDisplayName"].asString();
if(!value["DealTime"].isNull())
itemsObject.dealTime = std::stol(value["DealTime"].asString());
if(!value["DepartName"].isNull())
itemsObject.departName = value["DepartName"].asString();
if(!value["Backed"].isNull())
itemsObject.backed = value["Backed"].asString() == "true";
items_.push_back(itemsObject);
}
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 DescribeEventsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeEventsResult::getPageSize()const
{
return pageSize_;
}
int DescribeEventsResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeEventsResult::Event> DescribeEventsResult::getItems()const
{
return items_;
}

View File

@@ -0,0 +1,159 @@
/*
* 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/sddp/model/DescribeInstancesRequest.h>
using AlibabaCloud::Sddp::Model::DescribeInstancesRequest;
DescribeInstancesRequest::DescribeInstancesRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeInstances")
{}
DescribeInstancesRequest::~DescribeInstancesRequest()
{}
std::string DescribeInstancesRequest::getProductCode()const
{
return productCode_;
}
void DescribeInstancesRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setCoreParameter("ProductCode", productCode);
}
std::string DescribeInstancesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeInstancesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
long DescribeInstancesRequest::getProductId()const
{
return productId_;
}
void DescribeInstancesRequest::setProductId(long productId)
{
productId_ = productId;
setCoreParameter("ProductId", std::to_string(productId));
}
int DescribeInstancesRequest::getFeatureType()const
{
return featureType_;
}
void DescribeInstancesRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
std::string DescribeInstancesRequest::getName()const
{
return name_;
}
void DescribeInstancesRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
int DescribeInstancesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeInstancesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeInstancesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeInstancesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeInstancesRequest::getQueryName()const
{
return queryName_;
}
void DescribeInstancesRequest::setQueryName(const std::string& queryName)
{
queryName_ = queryName;
setCoreParameter("QueryName", queryName);
}
long DescribeInstancesRequest::getRiskLevelId()const
{
return riskLevelId_;
}
void DescribeInstancesRequest::setRiskLevelId(long riskLevelId)
{
riskLevelId_ = riskLevelId;
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
}
std::string DescribeInstancesRequest::getLang()const
{
return lang_;
}
void DescribeInstancesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeInstancesRequest::getRuleId()const
{
return ruleId_;
}
void DescribeInstancesRequest::setRuleId(long ruleId)
{
ruleId_ = ruleId;
setCoreParameter("RuleId", std::to_string(ruleId));
}
int DescribeInstancesRequest::getQueryType()const
{
return queryType_;
}
void DescribeInstancesRequest::setQueryType(int queryType)
{
queryType_ = queryType;
setCoreParameter("QueryType", std::to_string(queryType));
}

View File

@@ -0,0 +1,111 @@
/*
* 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/sddp/model/DescribeInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeInstancesResult::DescribeInstancesResult() :
ServiceResult()
{}
DescribeInstancesResult::DescribeInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInstancesResult::~DescribeInstancesResult()
{}
void DescribeInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Instance"];
for (auto value : allItems)
{
Instance itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
itemsObject.name = value["Name"].asString();
if(!value["Owner"].isNull())
itemsObject.owner = value["Owner"].asString();
if(!value["CreationTime"].isNull())
itemsObject.creationTime = std::stol(value["CreationTime"].asString());
if(!value["ProductId"].isNull())
itemsObject.productId = value["ProductId"].asString();
if(!value["ProductCode"].isNull())
itemsObject.productCode = value["ProductCode"].asString();
if(!value["Protection"].isNull())
itemsObject.protection = value["Protection"].asString() == "true";
if(!value["Labelsec"].isNull())
itemsObject.labelsec = std::stoi(value["Labelsec"].asString());
if(!value["OdpsRiskLevelName"].isNull())
itemsObject.odpsRiskLevelName = value["OdpsRiskLevelName"].asString();
if(!value["Sensitive"].isNull())
itemsObject.sensitive = value["Sensitive"].asString() == "true";
if(!value["RiskLevelId"].isNull())
itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString());
if(!value["RiskLevelName"].isNull())
itemsObject.riskLevelName = value["RiskLevelName"].asString();
if(!value["RuleName"].isNull())
itemsObject.ruleName = value["RuleName"].asString();
if(!value["DepartName"].isNull())
itemsObject.departName = value["DepartName"].asString();
if(!value["TotalCount"].isNull())
itemsObject.totalCount = std::stoi(value["TotalCount"].asString());
if(!value["SensitiveCount"].isNull())
itemsObject.sensitiveCount = std::stoi(value["SensitiveCount"].asString());
if(!value["Acl"].isNull())
itemsObject.acl = value["Acl"].asString();
items_.push_back(itemsObject);
}
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 DescribeInstancesResult::getTotalCount()const
{
return totalCount_;
}
int DescribeInstancesResult::getPageSize()const
{
return pageSize_;
}
int DescribeInstancesResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeInstancesResult::Instance> DescribeInstancesResult::getItems()const
{
return items_;
}

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/sddp/model/DescribeOssObjectDetailRequest.h>
using AlibabaCloud::Sddp::Model::DescribeOssObjectDetailRequest;
DescribeOssObjectDetailRequest::DescribeOssObjectDetailRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjectDetail")
{}
DescribeOssObjectDetailRequest::~DescribeOssObjectDetailRequest()
{}
std::string DescribeOssObjectDetailRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeOssObjectDetailRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeOssObjectDetailRequest::getFeatureType()const
{
return featureType_;
}
void DescribeOssObjectDetailRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
long DescribeOssObjectDetailRequest::getId()const
{
return id_;
}
void DescribeOssObjectDetailRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
std::string DescribeOssObjectDetailRequest::getLang()const
{
return lang_;
}
void DescribeOssObjectDetailRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

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/sddp/model/DescribeOssObjectDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeOssObjectDetailResult::DescribeOssObjectDetailResult() :
ServiceResult()
{}
DescribeOssObjectDetailResult::DescribeOssObjectDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeOssObjectDetailResult::~DescribeOssObjectDetailResult()
{}
void DescribeOssObjectDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto ossObjectDetailNode = value["OssObjectDetail"];
if(!ossObjectDetailNode["Name"].isNull())
ossObjectDetail_.name = ossObjectDetailNode["Name"].asString();
if(!ossObjectDetailNode["RegionId"].isNull())
ossObjectDetail_.regionId = ossObjectDetailNode["RegionId"].asString();
if(!ossObjectDetailNode["RiskLevelName"].isNull())
ossObjectDetail_.riskLevelName = ossObjectDetailNode["RiskLevelName"].asString();
if(!ossObjectDetailNode["BucketName"].isNull())
ossObjectDetail_.bucketName = ossObjectDetailNode["BucketName"].asString();
if(!ossObjectDetailNode["CategoryName"].isNull())
ossObjectDetail_.categoryName = ossObjectDetailNode["CategoryName"].asString();
auto allRuleList = value["RuleList"]["Rule"];
for (auto value : allRuleList)
{
OssObjectDetail::Rule ruleObject;
if(!value["RuleName"].isNull())
ruleObject.ruleName = value["RuleName"].asString();
if(!value["Count"].isNull())
ruleObject.count = std::stol(value["Count"].asString());
ossObjectDetail_.ruleList.push_back(ruleObject);
}
}
DescribeOssObjectDetailResult::OssObjectDetail DescribeOssObjectDetailResult::getOssObjectDetail()const
{
return ossObjectDetail_;
}

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/sddp/model/DescribeOssObjectsRequest.h>
using AlibabaCloud::Sddp::Model::DescribeOssObjectsRequest;
DescribeOssObjectsRequest::DescribeOssObjectsRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjects")
{}
DescribeOssObjectsRequest::~DescribeOssObjectsRequest()
{}
std::string DescribeOssObjectsRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeOssObjectsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string DescribeOssObjectsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeOssObjectsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeOssObjectsRequest::getFeatureType()const
{
return featureType_;
}
void DescribeOssObjectsRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
std::string DescribeOssObjectsRequest::getName()const
{
return name_;
}
void DescribeOssObjectsRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
int DescribeOssObjectsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeOssObjectsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeOssObjectsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeOssObjectsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeOssObjectsRequest::getQueryName()const
{
return queryName_;
}
void DescribeOssObjectsRequest::setQueryName(const std::string& queryName)
{
queryName_ = queryName;
setCoreParameter("QueryName", queryName);
}
int DescribeOssObjectsRequest::getRiskLevelId()const
{
return riskLevelId_;
}
void DescribeOssObjectsRequest::setRiskLevelId(int riskLevelId)
{
riskLevelId_ = riskLevelId;
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
}
std::string DescribeOssObjectsRequest::getLang()const
{
return lang_;
}
void DescribeOssObjectsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeOssObjectsRequest::getRuleId()const
{
return ruleId_;
}
void DescribeOssObjectsRequest::setRuleId(long ruleId)
{
ruleId_ = ruleId;
setCoreParameter("RuleId", std::to_string(ruleId));
}

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/sddp/model/DescribeOssObjectsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeOssObjectsResult::DescribeOssObjectsResult() :
ServiceResult()
{}
DescribeOssObjectsResult::DescribeOssObjectsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeOssObjectsResult::~DescribeOssObjectsResult()
{}
void DescribeOssObjectsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Column"];
for (auto value : allItems)
{
Column itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
itemsObject.name = value["Name"].asString();
if(!value["RegionId"].isNull())
itemsObject.regionId = value["RegionId"].asString();
if(!value["RiskLevelId"].isNull())
itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString());
if(!value["Category"].isNull())
itemsObject.category = std::stol(value["Category"].asString());
if(!value["InstanceId"].isNull())
itemsObject.instanceId = std::stol(value["InstanceId"].asString());
if(!value["FileId"].isNull())
itemsObject.fileId = value["FileId"].asString();
if(!value["RiskLevelName"].isNull())
itemsObject.riskLevelName = std::stol(value["RiskLevelName"].asString());
items_.push_back(itemsObject);
}
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 DescribeOssObjectsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeOssObjectsResult::getPageSize()const
{
return pageSize_;
}
int DescribeOssObjectsResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeOssObjectsResult::Column> DescribeOssObjectsResult::getItems()const
{
return items_;
}

View File

@@ -0,0 +1,159 @@
/*
* 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/sddp/model/DescribePackagesRequest.h>
using AlibabaCloud::Sddp::Model::DescribePackagesRequest;
DescribePackagesRequest::DescribePackagesRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribePackages")
{}
DescribePackagesRequest::~DescribePackagesRequest()
{}
long DescribePackagesRequest::getInstanceId()const
{
return instanceId_;
}
void DescribePackagesRequest::setInstanceId(long instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", std::to_string(instanceId));
}
std::string DescribePackagesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribePackagesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
long DescribePackagesRequest::getProductId()const
{
return productId_;
}
void DescribePackagesRequest::setProductId(long productId)
{
productId_ = productId;
setCoreParameter("ProductId", std::to_string(productId));
}
int DescribePackagesRequest::getFeatureType()const
{
return featureType_;
}
void DescribePackagesRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
std::string DescribePackagesRequest::getName()const
{
return name_;
}
void DescribePackagesRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
int DescribePackagesRequest::getPageSize()const
{
return pageSize_;
}
void DescribePackagesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribePackagesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribePackagesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribePackagesRequest::getQueryName()const
{
return queryName_;
}
void DescribePackagesRequest::setQueryName(const std::string& queryName)
{
queryName_ = queryName;
setCoreParameter("QueryName", queryName);
}
long DescribePackagesRequest::getRiskLevelId()const
{
return riskLevelId_;
}
void DescribePackagesRequest::setRiskLevelId(long riskLevelId)
{
riskLevelId_ = riskLevelId;
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
}
std::string DescribePackagesRequest::getLang()const
{
return lang_;
}
void DescribePackagesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribePackagesRequest::getRuleId()const
{
return ruleId_;
}
void DescribePackagesRequest::setRuleId(long ruleId)
{
ruleId_ = ruleId;
setCoreParameter("RuleId", std::to_string(ruleId));
}
int DescribePackagesRequest::getQueryType()const
{
return queryType_;
}
void DescribePackagesRequest::setQueryType(int queryType)
{
queryType_ = queryType;
setCoreParameter("QueryType", std::to_string(queryType));
}

View File

@@ -0,0 +1,99 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sddp/model/DescribePackagesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribePackagesResult::DescribePackagesResult() :
ServiceResult()
{}
DescribePackagesResult::DescribePackagesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePackagesResult::~DescribePackagesResult()
{}
void DescribePackagesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Package"];
for (auto value : allItems)
{
Package itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
itemsObject.name = value["Name"].asString();
if(!value["Owner"].isNull())
itemsObject.owner = value["Owner"].asString();
if(!value["CreationTime"].isNull())
itemsObject.creationTime = std::stol(value["CreationTime"].asString());
if(!value["Sensitive"].isNull())
itemsObject.sensitive = value["Sensitive"].asString() == "true";
if(!value["RiskLevelId"].isNull())
itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString());
if(!value["RiskLevelName"].isNull())
itemsObject.riskLevelName = value["RiskLevelName"].asString();
if(!value["DepartName"].isNull())
itemsObject.departName = value["DepartName"].asString();
if(!value["TotalCount"].isNull())
itemsObject.totalCount = std::stoi(value["TotalCount"].asString());
if(!value["SensitiveCount"].isNull())
itemsObject.sensitiveCount = std::stoi(value["SensitiveCount"].asString());
if(!value["InstanceId"].isNull())
itemsObject.instanceId = std::stol(value["InstanceId"].asString());
items_.push_back(itemsObject);
}
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 DescribePackagesResult::getTotalCount()const
{
return totalCount_;
}
int DescribePackagesResult::getPageSize()const
{
return pageSize_;
}
int DescribePackagesResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribePackagesResult::Package> DescribePackagesResult::getItems()const
{
return items_;
}

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/sddp/model/DescribePrivilegesRequest.h>
using AlibabaCloud::Sddp::Model::DescribePrivilegesRequest;
DescribePrivilegesRequest::DescribePrivilegesRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribePrivileges")
{}
DescribePrivilegesRequest::~DescribePrivilegesRequest()
{}
long DescribePrivilegesRequest::getAccountId()const
{
return accountId_;
}
void DescribePrivilegesRequest::setAccountId(long accountId)
{
accountId_ = accountId;
setCoreParameter("AccountId", std::to_string(accountId));
}
long DescribePrivilegesRequest::getUseAccountId()const
{
return useAccountId_;
}
void DescribePrivilegesRequest::setUseAccountId(long useAccountId)
{
useAccountId_ = useAccountId;
setCoreParameter("UseAccountId", std::to_string(useAccountId));
}
std::string DescribePrivilegesRequest::getDataTypeIds()const
{
return dataTypeIds_;
}
void DescribePrivilegesRequest::setDataTypeIds(const std::string& dataTypeIds)
{
dataTypeIds_ = dataTypeIds;
setCoreParameter("DataTypeIds", dataTypeIds);
}
std::string DescribePrivilegesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribePrivilegesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribePrivilegesRequest::getFeatureType()const
{
return featureType_;
}
void DescribePrivilegesRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
int DescribePrivilegesRequest::getPageSize()const
{
return pageSize_;
}
void DescribePrivilegesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribePrivilegesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribePrivilegesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribePrivilegesRequest::getLang()const
{
return lang_;
}
void DescribePrivilegesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string DescribePrivilegesRequest::getKey()const
{
return key_;
}
void DescribePrivilegesRequest::setKey(const std::string& key)
{
key_ = key;
setCoreParameter("Key", key);
}

View File

@@ -0,0 +1,115 @@
/*
* 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/sddp/model/DescribePrivilegesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribePrivilegesResult::DescribePrivilegesResult() :
ServiceResult()
{}
DescribePrivilegesResult::DescribePrivilegesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePrivilegesResult::~DescribePrivilegesResult()
{}
void DescribePrivilegesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Privilege"];
for (auto value : allItems)
{
Privilege itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["AccountId"].isNull())
itemsObject.accountId = std::stol(value["AccountId"].asString());
if(!value["AccountType"].isNull())
itemsObject.accountType = std::stoi(value["AccountType"].asString());
if(!value["UseAccountId"].isNull())
itemsObject.useAccountId = std::stol(value["UseAccountId"].asString());
if(!value["UseAccountType"].isNull())
itemsObject.useAccountType = std::stoi(value["UseAccountType"].asString());
if(!value["ProductName"].isNull())
itemsObject.productName = value["ProductName"].asString();
if(!value["productCode"].isNull())
itemsObject.productCode = value["productCode"].asString();
if(!value["DataType"].isNull())
itemsObject.dataType = value["DataType"].asString();
if(!value["DataTypeId"].isNull())
itemsObject.dataTypeId = value["DataTypeId"].asString();
if(!value["DataTypeName"].isNull())
itemsObject.dataTypeName = value["DataTypeName"].asString();
if(!value["DataInstance"].isNull())
itemsObject.dataInstance = value["DataInstance"].asString();
if(!value["DataTable"].isNull())
itemsObject.dataTable = value["DataTable"].asString();
if(!value["DataColumn"].isNull())
itemsObject.dataColumn = value["DataColumn"].asString();
if(!value["DataPackage"].isNull())
itemsObject.dataPackage = value["DataPackage"].asString();
if(!value["ResourceName"].isNull())
itemsObject.resourceName = value["ResourceName"].asString();
if(!value["ResourcePath"].isNull())
itemsObject.resourcePath = value["ResourcePath"].asString();
if(!value["Operation"].isNull())
itemsObject.operation = value["Operation"].asString();
if(!value["PolicyCondition"].isNull())
itemsObject.policyCondition = value["PolicyCondition"].asString();
if(!value["Sensitive"].isNull())
itemsObject.sensitive = value["Sensitive"].asString();
items_.push_back(itemsObject);
}
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 DescribePrivilegesResult::getTotalCount()const
{
return totalCount_;
}
int DescribePrivilegesResult::getPageSize()const
{
return pageSize_;
}
int DescribePrivilegesResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribePrivilegesResult::Privilege> DescribePrivilegesResult::getItems()const
{
return items_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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/sddp/model/DescribeRulesRequest.h>
using AlibabaCloud::Sddp::Model::DescribeRulesRequest;
DescribeRulesRequest::DescribeRulesRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeRules")
{}
DescribeRulesRequest::~DescribeRulesRequest()
{}
std::string DescribeRulesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeRulesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeRulesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeRulesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeRulesRequest::getName()const
{
return name_;
}
void DescribeRulesRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
int DescribeRulesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeRulesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
long DescribeRulesRequest::getRiskLevelId()const
{
return riskLevelId_;
}
void DescribeRulesRequest::setRiskLevelId(long riskLevelId)
{
riskLevelId_ = riskLevelId;
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
}
std::string DescribeRulesRequest::getLang()const
{
return lang_;
}
void DescribeRulesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
int DescribeRulesRequest::getCustomType()const
{
return customType_;
}
void DescribeRulesRequest::setCustomType(int customType)
{
customType_ = customType;
setCoreParameter("CustomType", std::to_string(customType));
}
int DescribeRulesRequest::getCategory()const
{
return category_;
}
void DescribeRulesRequest::setCategory(int category)
{
category_ = category;
setCoreParameter("Category", std::to_string(category));
}

View File

@@ -0,0 +1,109 @@
/*
* 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/sddp/model/DescribeRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeRulesResult::DescribeRulesResult() :
ServiceResult()
{}
DescribeRulesResult::DescribeRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRulesResult::~DescribeRulesResult()
{}
void DescribeRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Rule"];
for (auto value : allItems)
{
Rule itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["GmtCreate"].isNull())
itemsObject.gmtCreate = std::stol(value["GmtCreate"].asString());
if(!value["GmtModified"].isNull())
itemsObject.gmtModified = std::stol(value["GmtModified"].asString());
if(!value["CustomType"].isNull())
itemsObject.customType = std::stoi(value["CustomType"].asString());
if(!value["Name"].isNull())
itemsObject.name = value["Name"].asString();
if(!value["Description"].isNull())
itemsObject.description = value["Description"].asString();
if(!value["UserId"].isNull())
itemsObject.userId = std::stol(value["UserId"].asString());
if(!value["LoginName"].isNull())
itemsObject.loginName = value["LoginName"].asString();
if(!value["DisplayName"].isNull())
itemsObject.displayName = value["DisplayName"].asString();
if(!value["Category"].isNull())
itemsObject.category = std::stoi(value["Category"].asString());
if(!value["CategoryName"].isNull())
itemsObject.categoryName = value["CategoryName"].asString();
if(!value["Status"].isNull())
itemsObject.status = std::stoi(value["Status"].asString());
if(!value["RiskLevelName"].isNull())
itemsObject.riskLevelName = value["RiskLevelName"].asString();
if(!value["RiskLevelId"].isNull())
itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString());
if(!value["Content"].isNull())
itemsObject.content = value["Content"].asString();
if(!value["DepartName"].isNull())
itemsObject.departName = value["DepartName"].asString();
items_.push_back(itemsObject);
}
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 DescribeRulesResult::getTotalCount()const
{
return totalCount_;
}
int DescribeRulesResult::getPageSize()const
{
return pageSize_;
}
int DescribeRulesResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeRulesResult::Rule> DescribeRulesResult::getItems()const
{
return items_;
}

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/sddp/model/DescribeTablesRequest.h>
using AlibabaCloud::Sddp::Model::DescribeTablesRequest;
DescribeTablesRequest::DescribeTablesRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeTables")
{}
DescribeTablesRequest::~DescribeTablesRequest()
{}
long DescribeTablesRequest::getProductId()const
{
return productId_;
}
void DescribeTablesRequest::setProductId(long productId)
{
productId_ = productId;
setCoreParameter("ProductId", std::to_string(productId));
}
int DescribeTablesRequest::getFeatureType()const
{
return featureType_;
}
void DescribeTablesRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
long DescribeTablesRequest::getPackageId()const
{
return packageId_;
}
void DescribeTablesRequest::setPackageId(long packageId)
{
packageId_ = packageId;
setCoreParameter("PackageId", std::to_string(packageId));
}
int DescribeTablesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeTablesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeTablesRequest::getQueryName()const
{
return queryName_;
}
void DescribeTablesRequest::setQueryName(const std::string& queryName)
{
queryName_ = queryName;
setCoreParameter("QueryName", queryName);
}
long DescribeTablesRequest::getRiskLevelId()const
{
return riskLevelId_;
}
void DescribeTablesRequest::setRiskLevelId(long riskLevelId)
{
riskLevelId_ = riskLevelId;
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
}
long DescribeTablesRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeTablesRequest::setInstanceId(long instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", std::to_string(instanceId));
}
std::string DescribeTablesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeTablesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeTablesRequest::getName()const
{
return name_;
}
void DescribeTablesRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
int DescribeTablesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeTablesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeTablesRequest::getLang()const
{
return lang_;
}
void DescribeTablesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeTablesRequest::getRuleId()const
{
return ruleId_;
}
void DescribeTablesRequest::setRuleId(long ruleId)
{
ruleId_ = ruleId;
setCoreParameter("RuleId", std::to_string(ruleId));
}
int DescribeTablesRequest::getQueryType()const
{
return queryType_;
}
void DescribeTablesRequest::setQueryType(int queryType)
{
queryType_ = queryType;
setCoreParameter("QueryType", std::to_string(queryType));
}

View File

@@ -0,0 +1,105 @@
/*
* 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/sddp/model/DescribeTablesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeTablesResult::DescribeTablesResult() :
ServiceResult()
{}
DescribeTablesResult::DescribeTablesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeTablesResult::~DescribeTablesResult()
{}
void DescribeTablesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["Table"];
for (auto value : allItems)
{
Table itemsObject;
if(!value["Id"].isNull())
itemsObject.id = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
itemsObject.name = value["Name"].asString();
if(!value["Owner"].isNull())
itemsObject.owner = value["Owner"].asString();
if(!value["CreationTime"].isNull())
itemsObject.creationTime = std::stol(value["CreationTime"].asString());
if(!value["ProductId"].isNull())
itemsObject.productId = value["ProductId"].asString();
if(!value["ProductCode"].isNull())
itemsObject.productCode = value["ProductCode"].asString();
if(!value["Sensitive"].isNull())
itemsObject.sensitive = value["Sensitive"].asString() == "true";
if(!value["RiskLevelId"].isNull())
itemsObject.riskLevelId = std::stol(value["RiskLevelId"].asString());
if(!value["RiskLevelName"].isNull())
itemsObject.riskLevelName = value["RiskLevelName"].asString();
if(!value["DepartName"].isNull())
itemsObject.departName = value["DepartName"].asString();
if(!value["TotalCount"].isNull())
itemsObject.totalCount = std::stoi(value["TotalCount"].asString());
if(!value["SensitiveCount"].isNull())
itemsObject.sensitiveCount = std::stoi(value["SensitiveCount"].asString());
if(!value["SensitiveRatio"].isNull())
itemsObject.sensitiveRatio = value["SensitiveRatio"].asString();
if(!value["InstanceId"].isNull())
itemsObject.instanceId = std::stol(value["InstanceId"].asString());
items_.push_back(itemsObject);
}
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 DescribeTablesResult::getTotalCount()const
{
return totalCount_;
}
int DescribeTablesResult::getPageSize()const
{
return pageSize_;
}
int DescribeTablesResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeTablesResult::Table> DescribeTablesResult::getItems()const
{
return items_;
}

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/sddp/model/DescribeUserStatusRequest.h>
using AlibabaCloud::Sddp::Model::DescribeUserStatusRequest;
DescribeUserStatusRequest::DescribeUserStatusRequest() :
RpcServiceRequest("sddp", "2019-01-03", "DescribeUserStatus")
{}
DescribeUserStatusRequest::~DescribeUserStatusRequest()
{}
std::string DescribeUserStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeUserStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeUserStatusRequest::getLang()const
{
return lang_;
}
void DescribeUserStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,63 @@
/*
* 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/sddp/model/DescribeUserStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeUserStatusResult::DescribeUserStatusResult() :
ServiceResult()
{}
DescribeUserStatusResult::DescribeUserStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUserStatusResult::~DescribeUserStatusResult()
{}
void DescribeUserStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto userStatusNode = value["UserStatus"];
if(!userStatusNode["Authed"].isNull())
userStatus_.authed = userStatusNode["Authed"].asString() == "true";
if(!userStatusNode["Buyed"].isNull())
userStatus_.buyed = userStatusNode["Buyed"].asString() == "true";
if(!userStatusNode["OssBucketSet"].isNull())
userStatus_.ossBucketSet = userStatusNode["OssBucketSet"].asString() == "true";
if(!userStatusNode["OdpsSet"].isNull())
userStatus_.odpsSet = userStatusNode["OdpsSet"].asString() == "true";
if(!userStatusNode["RdsSet"].isNull())
userStatus_.rdsSet = userStatusNode["RdsSet"].asString() == "true";
if(!userStatusNode["AccessKeyId"].isNull())
userStatus_.accessKeyId = userStatusNode["AccessKeyId"].asString();
}
DescribeUserStatusResult::UserStatus DescribeUserStatusResult::getUserStatus()const
{
return userStatus_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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/sddp/model/ModifyDataLimitRequest.h>
using AlibabaCloud::Sddp::Model::ModifyDataLimitRequest;
ModifyDataLimitRequest::ModifyDataLimitRequest() :
RpcServiceRequest("sddp", "2019-01-03", "ModifyDataLimit")
{}
ModifyDataLimitRequest::~ModifyDataLimitRequest()
{}
std::string ModifyDataLimitRequest::getPassword()const
{
return password_;
}
void ModifyDataLimitRequest::setPassword(const std::string& password)
{
password_ = password;
setCoreParameter("Password", password);
}
std::string ModifyDataLimitRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyDataLimitRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string ModifyDataLimitRequest::getConnector()const
{
return connector_;
}
void ModifyDataLimitRequest::setConnector(const std::string& connector)
{
connector_ = connector;
setCoreParameter("Connector", connector);
}
long ModifyDataLimitRequest::getId()const
{
return id_;
}
void ModifyDataLimitRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
std::string ModifyDataLimitRequest::getLang()const
{
return lang_;
}
void ModifyDataLimitRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
int ModifyDataLimitRequest::getResourceType()const
{
return resourceType_;
}
void ModifyDataLimitRequest::setResourceType(int resourceType)
{
resourceType_ = resourceType;
setCoreParameter("ResourceType", std::to_string(resourceType));
}
std::string ModifyDataLimitRequest::getServiceRegionId()const
{
return serviceRegionId_;
}
void ModifyDataLimitRequest::setServiceRegionId(const std::string& serviceRegionId)
{
serviceRegionId_ = serviceRegionId;
setCoreParameter("ServiceRegionId", serviceRegionId);
}
std::string ModifyDataLimitRequest::getUserName()const
{
return userName_;
}
void ModifyDataLimitRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setCoreParameter("UserName", userName);
}

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/sddp/model/ModifyDataLimitResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
ModifyDataLimitResult::ModifyDataLimitResult() :
ServiceResult()
{}
ModifyDataLimitResult::ModifyDataLimitResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDataLimitResult::~ModifyDataLimitResult()
{}
void ModifyDataLimitResult::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/sddp/model/ModifyDefaultLevelRequest.h>
using AlibabaCloud::Sddp::Model::ModifyDefaultLevelRequest;
ModifyDefaultLevelRequest::ModifyDefaultLevelRequest() :
RpcServiceRequest("sddp", "2019-01-03", "ModifyDefaultLevel")
{}
ModifyDefaultLevelRequest::~ModifyDefaultLevelRequest()
{}
std::string ModifyDefaultLevelRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyDefaultLevelRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int ModifyDefaultLevelRequest::getFeatureType()const
{
return featureType_;
}
void ModifyDefaultLevelRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
long ModifyDefaultLevelRequest::getDefaultId()const
{
return defaultId_;
}
void ModifyDefaultLevelRequest::setDefaultId(long defaultId)
{
defaultId_ = defaultId;
setCoreParameter("DefaultId", std::to_string(defaultId));
}
std::string ModifyDefaultLevelRequest::getLang()const
{
return lang_;
}
void ModifyDefaultLevelRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
std::string ModifyDefaultLevelRequest::getSensitiveIds()const
{
return sensitiveIds_;
}
void ModifyDefaultLevelRequest::setSensitiveIds(const std::string& sensitiveIds)
{
sensitiveIds_ = sensitiveIds;
setCoreParameter("SensitiveIds", sensitiveIds);
}

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/sddp/model/ModifyDefaultLevelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
ModifyDefaultLevelResult::ModifyDefaultLevelResult() :
ServiceResult()
{}
ModifyDefaultLevelResult::ModifyDefaultLevelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDefaultLevelResult::~ModifyDefaultLevelResult()
{}
void ModifyDefaultLevelResult::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/sddp/model/ModifyEventStatusRequest.h>
using AlibabaCloud::Sddp::Model::ModifyEventStatusRequest;
ModifyEventStatusRequest::ModifyEventStatusRequest() :
RpcServiceRequest("sddp", "2019-01-03", "ModifyEventStatus")
{}
ModifyEventStatusRequest::~ModifyEventStatusRequest()
{}
std::string ModifyEventStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyEventStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
bool ModifyEventStatusRequest::getBacked()const
{
return backed_;
}
void ModifyEventStatusRequest::setBacked(bool backed)
{
backed_ = backed;
setCoreParameter("Backed", backed ? "true" : "false");
}
int ModifyEventStatusRequest::getFeatureType()const
{
return featureType_;
}
void ModifyEventStatusRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
std::string ModifyEventStatusRequest::getDealReason()const
{
return dealReason_;
}
void ModifyEventStatusRequest::setDealReason(const std::string& dealReason)
{
dealReason_ = dealReason;
setCoreParameter("DealReason", dealReason);
}
long ModifyEventStatusRequest::getId()const
{
return id_;
}
void ModifyEventStatusRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
std::string ModifyEventStatusRequest::getLang()const
{
return lang_;
}
void ModifyEventStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
int ModifyEventStatusRequest::getStatus()const
{
return status_;
}
void ModifyEventStatusRequest::setStatus(int status)
{
status_ = status;
setCoreParameter("Status", std::to_string(status));
}

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/sddp/model/ModifyEventStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
ModifyEventStatusResult::ModifyEventStatusResult() :
ServiceResult()
{}
ModifyEventStatusResult::ModifyEventStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyEventStatusResult::~ModifyEventStatusResult()
{}
void ModifyEventStatusResult::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/sddp/model/ModifyEventTypeStatusRequest.h>
using AlibabaCloud::Sddp::Model::ModifyEventTypeStatusRequest;
ModifyEventTypeStatusRequest::ModifyEventTypeStatusRequest() :
RpcServiceRequest("sddp", "2019-01-03", "ModifyEventTypeStatus")
{}
ModifyEventTypeStatusRequest::~ModifyEventTypeStatusRequest()
{}
std::string ModifyEventTypeStatusRequest::getSubTypeIds()const
{
return subTypeIds_;
}
void ModifyEventTypeStatusRequest::setSubTypeIds(const std::string& subTypeIds)
{
subTypeIds_ = subTypeIds;
setCoreParameter("SubTypeIds", subTypeIds);
}
std::string ModifyEventTypeStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyEventTypeStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string ModifyEventTypeStatusRequest::getLang()const
{
return lang_;
}
void ModifyEventTypeStatusRequest::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/sddp/model/ModifyEventTypeStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
ModifyEventTypeStatusResult::ModifyEventTypeStatusResult() :
ServiceResult()
{}
ModifyEventTypeStatusResult::ModifyEventTypeStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyEventTypeStatusResult::~ModifyEventTypeStatusResult()
{}
void ModifyEventTypeStatusResult::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/sddp/model/ModifyRuleRequest.h>
using AlibabaCloud::Sddp::Model::ModifyRuleRequest;
ModifyRuleRequest::ModifyRuleRequest() :
RpcServiceRequest("sddp", "2019-01-03", "ModifyRule")
{}
ModifyRuleRequest::~ModifyRuleRequest()
{}
std::string ModifyRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int ModifyRuleRequest::getFeatureType()const
{
return featureType_;
}
void ModifyRuleRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
std::string ModifyRuleRequest::getName()const
{
return name_;
}
void ModifyRuleRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
long ModifyRuleRequest::getId()const
{
return id_;
}
void ModifyRuleRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
long ModifyRuleRequest::getRiskLevelId()const
{
return riskLevelId_;
}
void ModifyRuleRequest::setRiskLevelId(long riskLevelId)
{
riskLevelId_ = riskLevelId;
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
}
std::string ModifyRuleRequest::getLang()const
{
return lang_;
}
void ModifyRuleRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
int ModifyRuleRequest::getCustomType()const
{
return customType_;
}
void ModifyRuleRequest::setCustomType(int customType)
{
customType_ = customType;
setCoreParameter("CustomType", std::to_string(customType));
}
int ModifyRuleRequest::getCategory()const
{
return category_;
}
void ModifyRuleRequest::setCategory(int category)
{
category_ = category;
setCoreParameter("Category", std::to_string(category));
}
std::string ModifyRuleRequest::getContent()const
{
return content_;
}
void ModifyRuleRequest::setContent(const std::string& content)
{
content_ = content;
setCoreParameter("Content", content);
}

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/sddp/model/ModifyRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
ModifyRuleResult::ModifyRuleResult() :
ServiceResult()
{}
ModifyRuleResult::ModifyRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyRuleResult::~ModifyRuleResult()
{}
void ModifyRuleResult::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/sddp/model/ModifyRuleStatusRequest.h>
using AlibabaCloud::Sddp::Model::ModifyRuleStatusRequest;
ModifyRuleStatusRequest::ModifyRuleStatusRequest() :
RpcServiceRequest("sddp", "2019-01-03", "ModifyRuleStatus")
{}
ModifyRuleStatusRequest::~ModifyRuleStatusRequest()
{}
std::string ModifyRuleStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyRuleStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int ModifyRuleStatusRequest::getFeatureType()const
{
return featureType_;
}
void ModifyRuleStatusRequest::setFeatureType(int featureType)
{
featureType_ = featureType;
setCoreParameter("FeatureType", std::to_string(featureType));
}
long ModifyRuleStatusRequest::getId()const
{
return id_;
}
void ModifyRuleStatusRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
std::string ModifyRuleStatusRequest::getLang()const
{
return lang_;
}
void ModifyRuleStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
int ModifyRuleStatusRequest::getStatus()const
{
return status_;
}
void ModifyRuleStatusRequest::setStatus(int status)
{
status_ = status;
setCoreParameter("Status", std::to_string(status));
}

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/sddp/model/ModifyRuleStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
ModifyRuleStatusResult::ModifyRuleStatusResult() :
ServiceResult()
{}
ModifyRuleStatusResult::ModifyRuleStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyRuleStatusResult::~ModifyRuleStatusResult()
{}
void ModifyRuleStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,115 @@
/*
* 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/sddp/model/ValidateConnectorRequest.h>
using AlibabaCloud::Sddp::Model::ValidateConnectorRequest;
ValidateConnectorRequest::ValidateConnectorRequest() :
RpcServiceRequest("sddp", "2019-01-03", "ValidateConnector")
{}
ValidateConnectorRequest::~ValidateConnectorRequest()
{}
std::string ValidateConnectorRequest::getPassword()const
{
return password_;
}
void ValidateConnectorRequest::setPassword(const std::string& password)
{
password_ = password;
setCoreParameter("Password", password);
}
std::string ValidateConnectorRequest::getSourceIp()const
{
return sourceIp_;
}
void ValidateConnectorRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string ValidateConnectorRequest::getConnector()const
{
return connector_;
}
void ValidateConnectorRequest::setConnector(const std::string& connector)
{
connector_ = connector;
setCoreParameter("Connector", connector);
}
std::string ValidateConnectorRequest::getLang()const
{
return lang_;
}
void ValidateConnectorRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
int ValidateConnectorRequest::getResourceType()const
{
return resourceType_;
}
void ValidateConnectorRequest::setResourceType(int resourceType)
{
resourceType_ = resourceType;
setCoreParameter("ResourceType", std::to_string(resourceType));
}
std::string ValidateConnectorRequest::getServiceRegionId()const
{
return serviceRegionId_;
}
void ValidateConnectorRequest::setServiceRegionId(const std::string& serviceRegionId)
{
serviceRegionId_ = serviceRegionId;
setCoreParameter("ServiceRegionId", serviceRegionId);
}
std::string ValidateConnectorRequest::getParentId()const
{
return parentId_;
}
void ValidateConnectorRequest::setParentId(const std::string& parentId)
{
parentId_ = parentId;
setCoreParameter("ParentId", parentId);
}
std::string ValidateConnectorRequest::getUserName()const
{
return userName_;
}
void ValidateConnectorRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setCoreParameter("UserName", userName);
}

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/sddp/model/ValidateConnectorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
ValidateConnectorResult::ValidateConnectorResult() :
ServiceResult()
{}
ValidateConnectorResult::ValidateConnectorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ValidateConnectorResult::~ValidateConnectorResult()
{}
void ValidateConnectorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Connected"].isNull())
connected_ = value["Connected"].asString() == "true";
}
bool ValidateConnectorResult::getConnected()const
{
return connected_;
}