JARVIS SDK Auto Released By Alibaba Cloud,Version:1.13.0

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2018-05-28 13:43:12 +08:00
parent 6d41511442
commit 383f1e0cd3
67 changed files with 5393 additions and 2 deletions

593
jarvis/src/JarvisClient.cc Normal file
View File

@@ -0,0 +1,593 @@
/*
* 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/jarvis/JarvisClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
namespace
{
const std::string SERVICE_NAME = "jarvis";
}
JarvisClient::JarvisClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
JarvisClient::JarvisClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
JarvisClient::JarvisClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
JarvisClient::~JarvisClient()
{}
JarvisClient::DeleteUidWhiteListGroupOutcome JarvisClient::deleteUidWhiteListGroup(const DeleteUidWhiteListGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteUidWhiteListGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteUidWhiteListGroupOutcome(DeleteUidWhiteListGroupResult(outcome.result()));
else
return DeleteUidWhiteListGroupOutcome(outcome.error());
}
void JarvisClient::deleteUidWhiteListGroupAsync(const DeleteUidWhiteListGroupRequest& request, const DeleteUidWhiteListGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteUidWhiteListGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::DeleteUidWhiteListGroupOutcomeCallable JarvisClient::deleteUidWhiteListGroupCallable(const DeleteUidWhiteListGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteUidWhiteListGroupOutcome()>>(
[this, request]()
{
return this->deleteUidWhiteListGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::CreateCpmcPunishFeedBackOutcome JarvisClient::createCpmcPunishFeedBack(const CreateCpmcPunishFeedBackRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateCpmcPunishFeedBackOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateCpmcPunishFeedBackOutcome(CreateCpmcPunishFeedBackResult(outcome.result()));
else
return CreateCpmcPunishFeedBackOutcome(outcome.error());
}
void JarvisClient::createCpmcPunishFeedBackAsync(const CreateCpmcPunishFeedBackRequest& request, const CreateCpmcPunishFeedBackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createCpmcPunishFeedBack(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::CreateCpmcPunishFeedBackOutcomeCallable JarvisClient::createCpmcPunishFeedBackCallable(const CreateCpmcPunishFeedBackRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateCpmcPunishFeedBackOutcome()>>(
[this, request]()
{
return this->createCpmcPunishFeedBack(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::CreateAccessWhiteListGroupOutcome JarvisClient::createAccessWhiteListGroup(const CreateAccessWhiteListGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateAccessWhiteListGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateAccessWhiteListGroupOutcome(CreateAccessWhiteListGroupResult(outcome.result()));
else
return CreateAccessWhiteListGroupOutcome(outcome.error());
}
void JarvisClient::createAccessWhiteListGroupAsync(const CreateAccessWhiteListGroupRequest& request, const CreateAccessWhiteListGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createAccessWhiteListGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::CreateAccessWhiteListGroupOutcomeCallable JarvisClient::createAccessWhiteListGroupCallable(const CreateAccessWhiteListGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateAccessWhiteListGroupOutcome()>>(
[this, request]()
{
return this->createAccessWhiteListGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::DescribeAccessWhitelistEcsListOutcome JarvisClient::describeAccessWhitelistEcsList(const DescribeAccessWhitelistEcsListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeAccessWhitelistEcsListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeAccessWhitelistEcsListOutcome(DescribeAccessWhitelistEcsListResult(outcome.result()));
else
return DescribeAccessWhitelistEcsListOutcome(outcome.error());
}
void JarvisClient::describeAccessWhitelistEcsListAsync(const DescribeAccessWhitelistEcsListRequest& request, const DescribeAccessWhitelistEcsListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeAccessWhitelistEcsList(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::DescribeAccessWhitelistEcsListOutcomeCallable JarvisClient::describeAccessWhitelistEcsListCallable(const DescribeAccessWhitelistEcsListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeAccessWhitelistEcsListOutcome()>>(
[this, request]()
{
return this->describeAccessWhitelistEcsList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::DescribeResetRecordListOutcome JarvisClient::describeResetRecordList(const DescribeResetRecordListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeResetRecordListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeResetRecordListOutcome(DescribeResetRecordListResult(outcome.result()));
else
return DescribeResetRecordListOutcome(outcome.error());
}
void JarvisClient::describeResetRecordListAsync(const DescribeResetRecordListRequest& request, const DescribeResetRecordListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeResetRecordList(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::DescribeResetRecordListOutcomeCallable JarvisClient::describeResetRecordListCallable(const DescribeResetRecordListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeResetRecordListOutcome()>>(
[this, request]()
{
return this->describeResetRecordList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::ModifyUidWhiteListAutoShareOutcome JarvisClient::modifyUidWhiteListAutoShare(const ModifyUidWhiteListAutoShareRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyUidWhiteListAutoShareOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyUidWhiteListAutoShareOutcome(ModifyUidWhiteListAutoShareResult(outcome.result()));
else
return ModifyUidWhiteListAutoShareOutcome(outcome.error());
}
void JarvisClient::modifyUidWhiteListAutoShareAsync(const ModifyUidWhiteListAutoShareRequest& request, const ModifyUidWhiteListAutoShareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyUidWhiteListAutoShare(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::ModifyUidWhiteListAutoShareOutcomeCallable JarvisClient::modifyUidWhiteListAutoShareCallable(const ModifyUidWhiteListAutoShareRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyUidWhiteListAutoShareOutcome()>>(
[this, request]()
{
return this->modifyUidWhiteListAutoShare(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::ModifyAccessWhiteListAutoShareOutcome JarvisClient::modifyAccessWhiteListAutoShare(const ModifyAccessWhiteListAutoShareRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyAccessWhiteListAutoShareOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyAccessWhiteListAutoShareOutcome(ModifyAccessWhiteListAutoShareResult(outcome.result()));
else
return ModifyAccessWhiteListAutoShareOutcome(outcome.error());
}
void JarvisClient::modifyAccessWhiteListAutoShareAsync(const ModifyAccessWhiteListAutoShareRequest& request, const ModifyAccessWhiteListAutoShareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyAccessWhiteListAutoShare(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::ModifyAccessWhiteListAutoShareOutcomeCallable JarvisClient::modifyAccessWhiteListAutoShareCallable(const ModifyAccessWhiteListAutoShareRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyAccessWhiteListAutoShareOutcome()>>(
[this, request]()
{
return this->modifyAccessWhiteListAutoShare(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::CreateUidWhiteListGroupOutcome JarvisClient::createUidWhiteListGroup(const CreateUidWhiteListGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateUidWhiteListGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateUidWhiteListGroupOutcome(CreateUidWhiteListGroupResult(outcome.result()));
else
return CreateUidWhiteListGroupOutcome(outcome.error());
}
void JarvisClient::createUidWhiteListGroupAsync(const CreateUidWhiteListGroupRequest& request, const CreateUidWhiteListGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createUidWhiteListGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::CreateUidWhiteListGroupOutcomeCallable JarvisClient::createUidWhiteListGroupCallable(const CreateUidWhiteListGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateUidWhiteListGroupOutcome()>>(
[this, request]()
{
return this->createUidWhiteListGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::DescribeCpmcPunishListOutcome JarvisClient::describeCpmcPunishList(const DescribeCpmcPunishListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeCpmcPunishListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeCpmcPunishListOutcome(DescribeCpmcPunishListResult(outcome.result()));
else
return DescribeCpmcPunishListOutcome(outcome.error());
}
void JarvisClient::describeCpmcPunishListAsync(const DescribeCpmcPunishListRequest& request, const DescribeCpmcPunishListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeCpmcPunishList(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::DescribeCpmcPunishListOutcomeCallable JarvisClient::describeCpmcPunishListCallable(const DescribeCpmcPunishListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeCpmcPunishListOutcome()>>(
[this, request]()
{
return this->describeCpmcPunishList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::DescribeUidGcLevelOutcome JarvisClient::describeUidGcLevel(const DescribeUidGcLevelRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeUidGcLevelOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeUidGcLevelOutcome(DescribeUidGcLevelResult(outcome.result()));
else
return DescribeUidGcLevelOutcome(outcome.error());
}
void JarvisClient::describeUidGcLevelAsync(const DescribeUidGcLevelRequest& request, const DescribeUidGcLevelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeUidGcLevel(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::DescribeUidGcLevelOutcomeCallable JarvisClient::describeUidGcLevelCallable(const DescribeUidGcLevelRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeUidGcLevelOutcome()>>(
[this, request]()
{
return this->describeUidGcLevel(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::DeleteAccessWhiteListGroupOutcome JarvisClient::deleteAccessWhiteListGroup(const DeleteAccessWhiteListGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteAccessWhiteListGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteAccessWhiteListGroupOutcome(DeleteAccessWhiteListGroupResult(outcome.result()));
else
return DeleteAccessWhiteListGroupOutcome(outcome.error());
}
void JarvisClient::deleteAccessWhiteListGroupAsync(const DeleteAccessWhiteListGroupRequest& request, const DeleteAccessWhiteListGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteAccessWhiteListGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::DeleteAccessWhiteListGroupOutcomeCallable JarvisClient::deleteAccessWhiteListGroupCallable(const DeleteAccessWhiteListGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteAccessWhiteListGroupOutcome()>>(
[this, request]()
{
return this->deleteAccessWhiteListGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::DescribeAccessWhiteListGroupOutcome JarvisClient::describeAccessWhiteListGroup(const DescribeAccessWhiteListGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeAccessWhiteListGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeAccessWhiteListGroupOutcome(DescribeAccessWhiteListGroupResult(outcome.result()));
else
return DescribeAccessWhiteListGroupOutcome(outcome.error());
}
void JarvisClient::describeAccessWhiteListGroupAsync(const DescribeAccessWhiteListGroupRequest& request, const DescribeAccessWhiteListGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeAccessWhiteListGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::DescribeAccessWhiteListGroupOutcomeCallable JarvisClient::describeAccessWhiteListGroupCallable(const DescribeAccessWhiteListGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeAccessWhiteListGroupOutcome()>>(
[this, request]()
{
return this->describeAccessWhiteListGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::DescribeResetRecordQueryCountOutcome JarvisClient::describeResetRecordQueryCount(const DescribeResetRecordQueryCountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeResetRecordQueryCountOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeResetRecordQueryCountOutcome(DescribeResetRecordQueryCountResult(outcome.result()));
else
return DescribeResetRecordQueryCountOutcome(outcome.error());
}
void JarvisClient::describeResetRecordQueryCountAsync(const DescribeResetRecordQueryCountRequest& request, const DescribeResetRecordQueryCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeResetRecordQueryCount(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::DescribeResetRecordQueryCountOutcomeCallable JarvisClient::describeResetRecordQueryCountCallable(const DescribeResetRecordQueryCountRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeResetRecordQueryCountOutcome()>>(
[this, request]()
{
return this->describeResetRecordQueryCount(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::DescribeUidWhiteListGroupOutcome JarvisClient::describeUidWhiteListGroup(const DescribeUidWhiteListGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeUidWhiteListGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeUidWhiteListGroupOutcome(DescribeUidWhiteListGroupResult(outcome.result()));
else
return DescribeUidWhiteListGroupOutcome(outcome.error());
}
void JarvisClient::describeUidWhiteListGroupAsync(const DescribeUidWhiteListGroupRequest& request, const DescribeUidWhiteListGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeUidWhiteListGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::DescribeUidWhiteListGroupOutcomeCallable JarvisClient::describeUidWhiteListGroupCallable(const DescribeUidWhiteListGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeUidWhiteListGroupOutcome()>>(
[this, request]()
{
return this->describeUidWhiteListGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
JarvisClient::DescribeRiskTrendOutcome JarvisClient::describeRiskTrend(const DescribeRiskTrendRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeRiskTrendOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeRiskTrendOutcome(DescribeRiskTrendResult(outcome.result()));
else
return DescribeRiskTrendOutcome(outcome.error());
}
void JarvisClient::describeRiskTrendAsync(const DescribeRiskTrendRequest& request, const DescribeRiskTrendAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeRiskTrend(request), context);
};
asyncExecute(new Runnable(fn));
}
JarvisClient::DescribeRiskTrendOutcomeCallable JarvisClient::describeRiskTrendCallable(const DescribeRiskTrendRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeRiskTrendOutcome()>>(
[this, request]()
{
return this->describeRiskTrend(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,148 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/CreateAccessWhiteListGroupRequest.h>
using AlibabaCloud::Jarvis::Model::CreateAccessWhiteListGroupRequest;
CreateAccessWhiteListGroupRequest::CreateAccessWhiteListGroupRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "CreateAccessWhiteListGroup")
{}
CreateAccessWhiteListGroupRequest::~CreateAccessWhiteListGroupRequest()
{}
std::string CreateAccessWhiteListGroupRequest::getNote()const
{
return note_;
}
void CreateAccessWhiteListGroupRequest::setNote(const std::string& note)
{
note_ = note;
setParameter("Note", note);
}
long CreateAccessWhiteListGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateAccessWhiteListGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateAccessWhiteListGroupRequest::getSrcIP()const
{
return srcIP_;
}
void CreateAccessWhiteListGroupRequest::setSrcIP(const std::string& srcIP)
{
srcIP_ = srcIP;
setParameter("SrcIP", srcIP);
}
std::string CreateAccessWhiteListGroupRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateAccessWhiteListGroupRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int CreateAccessWhiteListGroupRequest::getDstPort()const
{
return dstPort_;
}
void CreateAccessWhiteListGroupRequest::setDstPort(int dstPort)
{
dstPort_ = dstPort;
setParameter("DstPort", std::to_string(dstPort));
}
std::string CreateAccessWhiteListGroupRequest::getInstanceIdList()const
{
return instanceIdList_;
}
void CreateAccessWhiteListGroupRequest::setInstanceIdList(const std::string& instanceIdList)
{
instanceIdList_ = instanceIdList;
setParameter("InstanceIdList", instanceIdList);
}
int CreateAccessWhiteListGroupRequest::getLiveTime()const
{
return liveTime_;
}
void CreateAccessWhiteListGroupRequest::setLiveTime(int liveTime)
{
liveTime_ = liveTime;
setParameter("LiveTime", std::to_string(liveTime));
}
std::string CreateAccessWhiteListGroupRequest::getProductName()const
{
return productName_;
}
void CreateAccessWhiteListGroupRequest::setProductName(const std::string& productName)
{
productName_ = productName;
setParameter("ProductName", productName);
}
int CreateAccessWhiteListGroupRequest::getWhiteListType()const
{
return whiteListType_;
}
void CreateAccessWhiteListGroupRequest::setWhiteListType(int whiteListType)
{
whiteListType_ = whiteListType;
setParameter("WhiteListType", std::to_string(whiteListType));
}
std::string CreateAccessWhiteListGroupRequest::getLang()const
{
return lang_;
}
void CreateAccessWhiteListGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string CreateAccessWhiteListGroupRequest::getSourceCode()const
{
return sourceCode_;
}
void CreateAccessWhiteListGroupRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

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/jarvis/model/CreateAccessWhiteListGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
CreateAccessWhiteListGroupResult::CreateAccessWhiteListGroupResult() :
ServiceResult()
{}
CreateAccessWhiteListGroupResult::CreateAccessWhiteListGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAccessWhiteListGroupResult::~CreateAccessWhiteListGroupResult()
{}
void CreateAccessWhiteListGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
}
std::string CreateAccessWhiteListGroupResult::getModule()const
{
return module_;
}

View File

@@ -0,0 +1,148 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/CreateCpmcPunishFeedBackRequest.h>
using AlibabaCloud::Jarvis::Model::CreateCpmcPunishFeedBackRequest;
CreateCpmcPunishFeedBackRequest::CreateCpmcPunishFeedBackRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "CreateCpmcPunishFeedBack")
{}
CreateCpmcPunishFeedBackRequest::~CreateCpmcPunishFeedBackRequest()
{}
int CreateCpmcPunishFeedBackRequest::getFeedBack()const
{
return feedBack_;
}
void CreateCpmcPunishFeedBackRequest::setFeedBack(int feedBack)
{
feedBack_ = feedBack;
setParameter("FeedBack", std::to_string(feedBack));
}
std::string CreateCpmcPunishFeedBackRequest::getSrcIP()const
{
return srcIP_;
}
void CreateCpmcPunishFeedBackRequest::setSrcIP(const std::string& srcIP)
{
srcIP_ = srcIP;
setParameter("SrcIP", srcIP);
}
std::string CreateCpmcPunishFeedBackRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateCpmcPunishFeedBackRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int CreateCpmcPunishFeedBackRequest::getDstPort()const
{
return dstPort_;
}
void CreateCpmcPunishFeedBackRequest::setDstPort(int dstPort)
{
dstPort_ = dstPort;
setParameter("DstPort", std::to_string(dstPort));
}
std::string CreateCpmcPunishFeedBackRequest::getProtocolName()const
{
return protocolName_;
}
void CreateCpmcPunishFeedBackRequest::setProtocolName(const std::string& protocolName)
{
protocolName_ = protocolName;
setParameter("ProtocolName", protocolName);
}
int CreateCpmcPunishFeedBackRequest::getSrcPort()const
{
return srcPort_;
}
void CreateCpmcPunishFeedBackRequest::setSrcPort(int srcPort)
{
srcPort_ = srcPort;
setParameter("SrcPort", std::to_string(srcPort));
}
std::string CreateCpmcPunishFeedBackRequest::getPunishType()const
{
return punishType_;
}
void CreateCpmcPunishFeedBackRequest::setPunishType(const std::string& punishType)
{
punishType_ = punishType;
setParameter("PunishType", punishType);
}
std::string CreateCpmcPunishFeedBackRequest::getGmtCreate()const
{
return gmtCreate_;
}
void CreateCpmcPunishFeedBackRequest::setGmtCreate(const std::string& gmtCreate)
{
gmtCreate_ = gmtCreate;
setParameter("GmtCreate", gmtCreate);
}
std::string CreateCpmcPunishFeedBackRequest::getDstIP()const
{
return dstIP_;
}
void CreateCpmcPunishFeedBackRequest::setDstIP(const std::string& dstIP)
{
dstIP_ = dstIP;
setParameter("DstIP", dstIP);
}
std::string CreateCpmcPunishFeedBackRequest::getLang()const
{
return lang_;
}
void CreateCpmcPunishFeedBackRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string CreateCpmcPunishFeedBackRequest::getSourceCode()const
{
return sourceCode_;
}
void CreateCpmcPunishFeedBackRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

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/jarvis/model/CreateCpmcPunishFeedBackResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
CreateCpmcPunishFeedBackResult::CreateCpmcPunishFeedBackResult() :
ServiceResult()
{}
CreateCpmcPunishFeedBackResult::CreateCpmcPunishFeedBackResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateCpmcPunishFeedBackResult::~CreateCpmcPunishFeedBackResult()
{}
void CreateCpmcPunishFeedBackResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
}
std::string CreateCpmcPunishFeedBackResult::getModule()const
{
return module_;
}

View File

@@ -0,0 +1,148 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/CreateUidWhiteListGroupRequest.h>
using AlibabaCloud::Jarvis::Model::CreateUidWhiteListGroupRequest;
CreateUidWhiteListGroupRequest::CreateUidWhiteListGroupRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "CreateUidWhiteListGroup")
{}
CreateUidWhiteListGroupRequest::~CreateUidWhiteListGroupRequest()
{}
std::string CreateUidWhiteListGroupRequest::getNote()const
{
return note_;
}
void CreateUidWhiteListGroupRequest::setNote(const std::string& note)
{
note_ = note;
setParameter("Note", note);
}
long CreateUidWhiteListGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateUidWhiteListGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateUidWhiteListGroupRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateUidWhiteListGroupRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int CreateUidWhiteListGroupRequest::getDstPort()const
{
return dstPort_;
}
void CreateUidWhiteListGroupRequest::setDstPort(int dstPort)
{
dstPort_ = dstPort;
setParameter("DstPort", std::to_string(dstPort));
}
std::string CreateUidWhiteListGroupRequest::getInstanceIdList()const
{
return instanceIdList_;
}
void CreateUidWhiteListGroupRequest::setInstanceIdList(const std::string& instanceIdList)
{
instanceIdList_ = instanceIdList;
setParameter("InstanceIdList", instanceIdList);
}
int CreateUidWhiteListGroupRequest::getLiveTime()const
{
return liveTime_;
}
void CreateUidWhiteListGroupRequest::setLiveTime(int liveTime)
{
liveTime_ = liveTime;
setParameter("LiveTime", std::to_string(liveTime));
}
std::string CreateUidWhiteListGroupRequest::getProductName()const
{
return productName_;
}
void CreateUidWhiteListGroupRequest::setProductName(const std::string& productName)
{
productName_ = productName;
setParameter("ProductName", productName);
}
int CreateUidWhiteListGroupRequest::getWhiteListType()const
{
return whiteListType_;
}
void CreateUidWhiteListGroupRequest::setWhiteListType(int whiteListType)
{
whiteListType_ = whiteListType;
setParameter("WhiteListType", std::to_string(whiteListType));
}
std::string CreateUidWhiteListGroupRequest::getLang()const
{
return lang_;
}
void CreateUidWhiteListGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string CreateUidWhiteListGroupRequest::getSrcUid()const
{
return srcUid_;
}
void CreateUidWhiteListGroupRequest::setSrcUid(const std::string& srcUid)
{
srcUid_ = srcUid;
setParameter("SrcUid", srcUid);
}
std::string CreateUidWhiteListGroupRequest::getSourceCode()const
{
return sourceCode_;
}
void CreateUidWhiteListGroupRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

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/jarvis/model/CreateUidWhiteListGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
CreateUidWhiteListGroupResult::CreateUidWhiteListGroupResult() :
ServiceResult()
{}
CreateUidWhiteListGroupResult::CreateUidWhiteListGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateUidWhiteListGroupResult::~CreateUidWhiteListGroupResult()
{}
void CreateUidWhiteListGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
}
std::string CreateUidWhiteListGroupResult::getModule()const
{
return module_;
}

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/jarvis/model/DeleteAccessWhiteListGroupRequest.h>
using AlibabaCloud::Jarvis::Model::DeleteAccessWhiteListGroupRequest;
DeleteAccessWhiteListGroupRequest::DeleteAccessWhiteListGroupRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "DeleteAccessWhiteListGroup")
{}
DeleteAccessWhiteListGroupRequest::~DeleteAccessWhiteListGroupRequest()
{}
std::string DeleteAccessWhiteListGroupRequest::getGroupIdList()const
{
return groupIdList_;
}
void DeleteAccessWhiteListGroupRequest::setGroupIdList(const std::string& groupIdList)
{
groupIdList_ = groupIdList;
setParameter("GroupIdList", groupIdList);
}
std::string DeleteAccessWhiteListGroupRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteAccessWhiteListGroupRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteAccessWhiteListGroupRequest::getLang()const
{
return lang_;
}
void DeleteAccessWhiteListGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DeleteAccessWhiteListGroupRequest::getSourceCode()const
{
return sourceCode_;
}
void DeleteAccessWhiteListGroupRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

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/jarvis/model/DeleteAccessWhiteListGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
DeleteAccessWhiteListGroupResult::DeleteAccessWhiteListGroupResult() :
ServiceResult()
{}
DeleteAccessWhiteListGroupResult::DeleteAccessWhiteListGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAccessWhiteListGroupResult::~DeleteAccessWhiteListGroupResult()
{}
void DeleteAccessWhiteListGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
}
std::string DeleteAccessWhiteListGroupResult::getModule()const
{
return module_;
}

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/jarvis/model/DeleteUidWhiteListGroupRequest.h>
using AlibabaCloud::Jarvis::Model::DeleteUidWhiteListGroupRequest;
DeleteUidWhiteListGroupRequest::DeleteUidWhiteListGroupRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "DeleteUidWhiteListGroup")
{}
DeleteUidWhiteListGroupRequest::~DeleteUidWhiteListGroupRequest()
{}
std::string DeleteUidWhiteListGroupRequest::getGroupIdList()const
{
return groupIdList_;
}
void DeleteUidWhiteListGroupRequest::setGroupIdList(const std::string& groupIdList)
{
groupIdList_ = groupIdList;
setParameter("GroupIdList", groupIdList);
}
std::string DeleteUidWhiteListGroupRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteUidWhiteListGroupRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteUidWhiteListGroupRequest::getLang()const
{
return lang_;
}
void DeleteUidWhiteListGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DeleteUidWhiteListGroupRequest::getSourceCode()const
{
return sourceCode_;
}
void DeleteUidWhiteListGroupRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

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/jarvis/model/DeleteUidWhiteListGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
DeleteUidWhiteListGroupResult::DeleteUidWhiteListGroupResult() :
ServiceResult()
{}
DeleteUidWhiteListGroupResult::DeleteUidWhiteListGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteUidWhiteListGroupResult::~DeleteUidWhiteListGroupResult()
{}
void DeleteUidWhiteListGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
}
std::string DeleteUidWhiteListGroupResult::getModule()const
{
return module_;
}

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/jarvis/model/DescribeAccessWhiteListGroupRequest.h>
using AlibabaCloud::Jarvis::Model::DescribeAccessWhiteListGroupRequest;
DescribeAccessWhiteListGroupRequest::DescribeAccessWhiteListGroupRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "DescribeAccessWhiteListGroup")
{}
DescribeAccessWhiteListGroupRequest::~DescribeAccessWhiteListGroupRequest()
{}
std::string DescribeAccessWhiteListGroupRequest::getSrcIP()const
{
return srcIP_;
}
void DescribeAccessWhiteListGroupRequest::setSrcIP(const std::string& srcIP)
{
srcIP_ = srcIP;
setParameter("SrcIP", srcIP);
}
std::string DescribeAccessWhiteListGroupRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAccessWhiteListGroupRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeAccessWhiteListGroupRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAccessWhiteListGroupRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int DescribeAccessWhiteListGroupRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAccessWhiteListGroupRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
int DescribeAccessWhiteListGroupRequest::getWhiteListType()const
{
return whiteListType_;
}
void DescribeAccessWhiteListGroupRequest::setWhiteListType(int whiteListType)
{
whiteListType_ = whiteListType;
setParameter("WhiteListType", std::to_string(whiteListType));
}
std::string DescribeAccessWhiteListGroupRequest::getDstIP()const
{
return dstIP_;
}
void DescribeAccessWhiteListGroupRequest::setDstIP(const std::string& dstIP)
{
dstIP_ = dstIP;
setParameter("DstIP", dstIP);
}
std::string DescribeAccessWhiteListGroupRequest::getLang()const
{
return lang_;
}
void DescribeAccessWhiteListGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeAccessWhiteListGroupRequest::getStatus()const
{
return status_;
}
void DescribeAccessWhiteListGroupRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}
std::string DescribeAccessWhiteListGroupRequest::getSourceCode()const
{
return sourceCode_;
}
void DescribeAccessWhiteListGroupRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

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/jarvis/model/DescribeAccessWhiteListGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
DescribeAccessWhiteListGroupResult::DescribeAccessWhiteListGroupResult() :
ServiceResult()
{}
DescribeAccessWhiteListGroupResult::DescribeAccessWhiteListGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAccessWhiteListGroupResult::~DescribeAccessWhiteListGroupResult()
{}
void DescribeAccessWhiteListGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataList = value["DataList"]["Data"];
for (auto value : allDataList)
{
Data dataListObject;
if(!value["Status"].isNull())
dataListObject.status = value["Status"].asString();
if(!value["GmtCreate"].isNull())
dataListObject.gmtCreate = value["GmtCreate"].asString();
if(!value["GmtRealExpire"].isNull())
dataListObject.gmtRealExpire = value["GmtRealExpire"].asString();
if(!value["SrcIP"].isNull())
dataListObject.srcIP = value["SrcIP"].asString();
if(!value["AutoConfig"].isNull())
dataListObject.autoConfig = std::stoi(value["AutoConfig"].asString());
if(!value["GroupId"].isNull())
dataListObject.groupId = std::stoi(value["GroupId"].asString());
auto allItems = value["Items"]["Item"];
for (auto value : allItems)
{
Data::Item itemsObject;
if(!value["IP"].isNull())
itemsObject.iP = value["IP"].asString();
if(!value["RegionId"].isNull())
itemsObject.regionId = value["RegionId"].asString();
dataListObject.items.push_back(itemsObject);
}
dataList_.push_back(dataListObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["total"].isNull())
pageInfo_.total = std::stoi(pageInfoNode["total"].asString());
if(!pageInfoNode["pageSize"].isNull())
pageInfo_.pageSize = std::stoi(pageInfoNode["pageSize"].asString());
if(!pageInfoNode["currentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["currentPage"].asString());
if(!value["module"].isNull())
module_ = value["module"].asString();
}
std::vector<DescribeAccessWhiteListGroupResult::Data> DescribeAccessWhiteListGroupResult::getDataList()const
{
return dataList_;
}
DescribeAccessWhiteListGroupResult::PageInfo DescribeAccessWhiteListGroupResult::getPageInfo()const
{
return pageInfo_;
}
std::string DescribeAccessWhiteListGroupResult::getModule()const
{
return module_;
}

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/jarvis/model/DescribeAccessWhitelistEcsListRequest.h>
using AlibabaCloud::Jarvis::Model::DescribeAccessWhitelistEcsListRequest;
DescribeAccessWhitelistEcsListRequest::DescribeAccessWhitelistEcsListRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "DescribeAccessWhitelistEcsList")
{}
DescribeAccessWhitelistEcsListRequest::~DescribeAccessWhitelistEcsListRequest()
{}
std::string DescribeAccessWhitelistEcsListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAccessWhitelistEcsListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeAccessWhitelistEcsListRequest::getLang()const
{
return lang_;
}
void DescribeAccessWhitelistEcsListRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeAccessWhitelistEcsListRequest::getSourceCode()const
{
return sourceCode_;
}
void DescribeAccessWhitelistEcsListRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

View File

@@ -0,0 +1,76 @@
/*
* 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/jarvis/model/DescribeAccessWhitelistEcsListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
DescribeAccessWhitelistEcsListResult::DescribeAccessWhitelistEcsListResult() :
ServiceResult()
{}
DescribeAccessWhitelistEcsListResult::DescribeAccessWhitelistEcsListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAccessWhitelistEcsListResult::~DescribeAccessWhitelistEcsListResult()
{}
void DescribeAccessWhitelistEcsListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEcsList = value["EcsList"]["Ecs"];
for (auto value : allEcsList)
{
Ecs ecsListObject;
if(!value["InstanceName"].isNull())
ecsListObject.instanceName = value["InstanceName"].asString();
if(!value["InstanceId"].isNull())
ecsListObject.instanceId = value["InstanceId"].asString();
if(!value["IP"].isNull())
ecsListObject.iP = value["IP"].asString();
ecsList_.push_back(ecsListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["module"].isNull())
module_ = value["module"].asString();
}
int DescribeAccessWhitelistEcsListResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeAccessWhitelistEcsListResult::Ecs> DescribeAccessWhitelistEcsListResult::getEcsList()const
{
return ecsList_;
}
std::string DescribeAccessWhitelistEcsListResult::getModule()const
{
return module_;
}

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/jarvis/model/DescribeCpmcPunishListRequest.h>
using AlibabaCloud::Jarvis::Model::DescribeCpmcPunishListRequest;
DescribeCpmcPunishListRequest::DescribeCpmcPunishListRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "DescribeCpmcPunishList")
{}
DescribeCpmcPunishListRequest::~DescribeCpmcPunishListRequest()
{}
std::string DescribeCpmcPunishListRequest::getSrcIP()const
{
return srcIP_;
}
void DescribeCpmcPunishListRequest::setSrcIP(const std::string& srcIP)
{
srcIP_ = srcIP;
setParameter("SrcIP", srcIP);
}
std::string DescribeCpmcPunishListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCpmcPunishListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeCpmcPunishListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeCpmcPunishListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int DescribeCpmcPunishListRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeCpmcPunishListRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeCpmcPunishListRequest::getPunishStatus()const
{
return punishStatus_;
}
void DescribeCpmcPunishListRequest::setPunishStatus(const std::string& punishStatus)
{
punishStatus_ = punishStatus;
setParameter("PunishStatus", punishStatus);
}
std::string DescribeCpmcPunishListRequest::getLang()const
{
return lang_;
}
void DescribeCpmcPunishListRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeCpmcPunishListRequest::getSourceCode()const
{
return sourceCode_;
}
void DescribeCpmcPunishListRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

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/jarvis/model/DescribeCpmcPunishListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
DescribeCpmcPunishListResult::DescribeCpmcPunishListResult() :
ServiceResult()
{}
DescribeCpmcPunishListResult::DescribeCpmcPunishListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCpmcPunishListResult::~DescribeCpmcPunishListResult()
{}
void DescribeCpmcPunishListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataList = value["DataList"]["Data"];
for (auto value : allDataList)
{
Data dataListObject;
if(!value["GmtCreate"].isNull())
dataListObject.gmtCreate = value["GmtCreate"].asString();
if(!value["SrcPort"].isNull())
dataListObject.srcPort = std::stoi(value["SrcPort"].asString());
if(!value["FeedBack"].isNull())
dataListObject.feedBack = std::stoi(value["FeedBack"].asString());
if(!value["GmtExpire"].isNull())
dataListObject.gmtExpire = value["GmtExpire"].asString();
if(!value["PunishType"].isNull())
dataListObject.punishType = value["PunishType"].asString();
if(!value["DstIP"].isNull())
dataListObject.dstIP = value["DstIP"].asString();
if(!value["PunishResult"].isNull())
dataListObject.punishResult = value["PunishResult"].asString();
if(!value["RegionId"].isNull())
dataListObject.regionId = value["RegionId"].asString();
if(!value["DstPort"].isNull())
dataListObject.dstPort = std::stoi(value["DstPort"].asString());
if(!value["Protocol"].isNull())
dataListObject.protocol = value["Protocol"].asString();
if(!value["SrcIP"].isNull())
dataListObject.srcIP = value["SrcIP"].asString();
if(!value["Reason"].isNull())
dataListObject.reason = value["Reason"].asString();
dataList_.push_back(dataListObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["total"].isNull())
pageInfo_.total = std::stoi(pageInfoNode["total"].asString());
if(!pageInfoNode["pageSize"].isNull())
pageInfo_.pageSize = std::stoi(pageInfoNode["pageSize"].asString());
if(!pageInfoNode["currentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["currentPage"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
}
std::vector<DescribeCpmcPunishListResult::Data> DescribeCpmcPunishListResult::getDataList()const
{
return dataList_;
}
DescribeCpmcPunishListResult::PageInfo DescribeCpmcPunishListResult::getPageInfo()const
{
return pageInfo_;
}
std::string DescribeCpmcPunishListResult::getModule()const
{
return module_;
}

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/jarvis/model/DescribeResetRecordListRequest.h>
using AlibabaCloud::Jarvis::Model::DescribeResetRecordListRequest;
DescribeResetRecordListRequest::DescribeResetRecordListRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "DescribeResetRecordList")
{}
DescribeResetRecordListRequest::~DescribeResetRecordListRequest()
{}
std::string DescribeResetRecordListRequest::getSrcIP()const
{
return srcIP_;
}
void DescribeResetRecordListRequest::setSrcIP(const std::string& srcIP)
{
srcIP_ = srcIP;
setParameter("SrcIP", srcIP);
}
std::string DescribeResetRecordListRequest::getPeriod()const
{
return period_;
}
void DescribeResetRecordListRequest::setPeriod(const std::string& period)
{
period_ = period;
setParameter("Period", period);
}
std::string DescribeResetRecordListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeResetRecordListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeResetRecordListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeResetRecordListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int DescribeResetRecordListRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeResetRecordListRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeResetRecordListRequest::getDstIP()const
{
return dstIP_;
}
void DescribeResetRecordListRequest::setDstIP(const std::string& dstIP)
{
dstIP_ = dstIP;
setParameter("DstIP", dstIP);
}
std::string DescribeResetRecordListRequest::getRegion()const
{
return region_;
}
void DescribeResetRecordListRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}
std::string DescribeResetRecordListRequest::getLang()const
{
return lang_;
}
void DescribeResetRecordListRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeResetRecordListRequest::getSourceCode()const
{
return sourceCode_;
}
void DescribeResetRecordListRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

View File

@@ -0,0 +1,87 @@
/*
* 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/jarvis/model/DescribeResetRecordListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
DescribeResetRecordListResult::DescribeResetRecordListResult() :
ServiceResult()
{}
DescribeResetRecordListResult::DescribeResetRecordListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeResetRecordListResult::~DescribeResetRecordListResult()
{}
void DescribeResetRecordListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataList = value["DataList"]["Data"];
for (auto value : allDataList)
{
Data dataListObject;
if(!value["PunishType"].isNull())
dataListObject.punishType = value["PunishType"].asString();
if(!value["DstIP"].isNull())
dataListObject.dstIP = value["DstIP"].asString();
if(!value["PunishResult"].isNull())
dataListObject.punishResult = value["PunishResult"].asString();
if(!value["DstPort"].isNull())
dataListObject.dstPort = std::stoi(value["DstPort"].asString());
if(!value["SrcIP"].isNull())
dataListObject.srcIP = value["SrcIP"].asString();
if(!value["PunishCount"].isNull())
dataListObject.punishCount = std::stoi(value["PunishCount"].asString());
dataList_.push_back(dataListObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["total"].isNull())
pageInfo_.total = std::stoi(pageInfoNode["total"].asString());
if(!pageInfoNode["pageSize"].isNull())
pageInfo_.pageSize = std::stoi(pageInfoNode["pageSize"].asString());
if(!pageInfoNode["currentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["currentPage"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
}
std::vector<DescribeResetRecordListResult::Data> DescribeResetRecordListResult::getDataList()const
{
return dataList_;
}
DescribeResetRecordListResult::PageInfo DescribeResetRecordListResult::getPageInfo()const
{
return pageInfo_;
}
std::string DescribeResetRecordListResult::getModule()const
{
return module_;
}

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/jarvis/model/DescribeResetRecordQueryCountRequest.h>
using AlibabaCloud::Jarvis::Model::DescribeResetRecordQueryCountRequest;
DescribeResetRecordQueryCountRequest::DescribeResetRecordQueryCountRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "DescribeResetRecordQueryCount")
{}
DescribeResetRecordQueryCountRequest::~DescribeResetRecordQueryCountRequest()
{}
std::string DescribeResetRecordQueryCountRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeResetRecordQueryCountRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeResetRecordQueryCountRequest::getLang()const
{
return lang_;
}
void DescribeResetRecordQueryCountRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeResetRecordQueryCountRequest::getSourceCode()const
{
return sourceCode_;
}
void DescribeResetRecordQueryCountRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

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/jarvis/model/DescribeResetRecordQueryCountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
DescribeResetRecordQueryCountResult::DescribeResetRecordQueryCountResult() :
ServiceResult()
{}
DescribeResetRecordQueryCountResult::DescribeResetRecordQueryCountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeResetRecordQueryCountResult::~DescribeResetRecordQueryCountResult()
{}
void DescribeResetRecordQueryCountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["QueryCount"].isNull())
queryCount_ = std::stoi(value["QueryCount"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
}
int DescribeResetRecordQueryCountResult::getTotalCount()const
{
return totalCount_;
}
int DescribeResetRecordQueryCountResult::getQueryCount()const
{
return queryCount_;
}
std::string DescribeResetRecordQueryCountResult::getModule()const
{
return module_;
}

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/jarvis/model/DescribeRiskTrendRequest.h>
using AlibabaCloud::Jarvis::Model::DescribeRiskTrendRequest;
DescribeRiskTrendRequest::DescribeRiskTrendRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "DescribeRiskTrend")
{}
DescribeRiskTrendRequest::~DescribeRiskTrendRequest()
{}
std::string DescribeRiskTrendRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeRiskTrendRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeRiskTrendRequest::getQueryProduct()const
{
return queryProduct_;
}
void DescribeRiskTrendRequest::setQueryProduct(const std::string& queryProduct)
{
queryProduct_ = queryProduct;
setParameter("QueryProduct", queryProduct);
}
std::string DescribeRiskTrendRequest::getLang()const
{
return lang_;
}
void DescribeRiskTrendRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeRiskTrendRequest::getPeroid()const
{
return peroid_;
}
void DescribeRiskTrendRequest::setPeroid(const std::string& peroid)
{
peroid_ = peroid;
setParameter("Peroid", peroid);
}
std::string DescribeRiskTrendRequest::getSourceCode()const
{
return sourceCode_;
}
void DescribeRiskTrendRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}
std::string DescribeRiskTrendRequest::getQueryRegionId()const
{
return queryRegionId_;
}
void DescribeRiskTrendRequest::setQueryRegionId(const std::string& queryRegionId)
{
queryRegionId_ = queryRegionId;
setParameter("QueryRegionId", queryRegionId);
}

View File

@@ -0,0 +1,76 @@
/*
* 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/jarvis/model/DescribeRiskTrendResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
DescribeRiskTrendResult::DescribeRiskTrendResult() :
ServiceResult()
{}
DescribeRiskTrendResult::DescribeRiskTrendResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRiskTrendResult::~DescribeRiskTrendResult()
{}
void DescribeRiskTrendResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataList = value["DataList"]["DataItem"];
for (auto value : allDataList)
{
DataItem dataListObject;
if(!value["UpdateTime"].isNull())
dataListObject.updateTime = value["UpdateTime"].asString();
if(!value["NewRiskCount"].isNull())
dataListObject.newRiskCount = std::stoi(value["NewRiskCount"].asString());
if(!value["TotalRiskCount"].isNull())
dataListObject.totalRiskCount = std::stoi(value["TotalRiskCount"].asString());
dataList_.push_back(dataListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = value["TotalCount"].asString();
if(!value["Module"].isNull())
module_ = value["Module"].asString();
}
std::vector<DescribeRiskTrendResult::DataItem> DescribeRiskTrendResult::getDataList()const
{
return dataList_;
}
std::string DescribeRiskTrendResult::getTotalCount()const
{
return totalCount_;
}
std::string DescribeRiskTrendResult::getModule()const
{
return module_;
}

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/jarvis/model/DescribeUidGcLevelRequest.h>
using AlibabaCloud::Jarvis::Model::DescribeUidGcLevelRequest;
DescribeUidGcLevelRequest::DescribeUidGcLevelRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "DescribeUidGcLevel")
{}
DescribeUidGcLevelRequest::~DescribeUidGcLevelRequest()
{}
std::string DescribeUidGcLevelRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeUidGcLevelRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeUidGcLevelRequest::getLang()const
{
return lang_;
}
void DescribeUidGcLevelRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeUidGcLevelRequest::getSourceCode()const
{
return sourceCode_;
}
void DescribeUidGcLevelRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DescribeUidGcLevelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
DescribeUidGcLevelResult::DescribeUidGcLevelResult() :
ServiceResult()
{}
DescribeUidGcLevelResult::DescribeUidGcLevelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUidGcLevelResult::~DescribeUidGcLevelResult()
{}
void DescribeUidGcLevelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
if(!value["Gclevel"].isNull())
gclevel_ = value["Gclevel"].asString();
}
std::string DescribeUidGcLevelResult::getGclevel()const
{
return gclevel_;
}
std::string DescribeUidGcLevelResult::getModule()const
{
return module_;
}

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/jarvis/model/DescribeUidWhiteListGroupRequest.h>
using AlibabaCloud::Jarvis::Model::DescribeUidWhiteListGroupRequest;
DescribeUidWhiteListGroupRequest::DescribeUidWhiteListGroupRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "DescribeUidWhiteListGroup")
{}
DescribeUidWhiteListGroupRequest::~DescribeUidWhiteListGroupRequest()
{}
std::string DescribeUidWhiteListGroupRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeUidWhiteListGroupRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeUidWhiteListGroupRequest::getPageSize()const
{
return pageSize_;
}
void DescribeUidWhiteListGroupRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int DescribeUidWhiteListGroupRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeUidWhiteListGroupRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
int DescribeUidWhiteListGroupRequest::getWhiteListType()const
{
return whiteListType_;
}
void DescribeUidWhiteListGroupRequest::setWhiteListType(int whiteListType)
{
whiteListType_ = whiteListType;
setParameter("WhiteListType", std::to_string(whiteListType));
}
std::string DescribeUidWhiteListGroupRequest::getDstIP()const
{
return dstIP_;
}
void DescribeUidWhiteListGroupRequest::setDstIP(const std::string& dstIP)
{
dstIP_ = dstIP;
setParameter("DstIP", dstIP);
}
std::string DescribeUidWhiteListGroupRequest::getLang()const
{
return lang_;
}
void DescribeUidWhiteListGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeUidWhiteListGroupRequest::getSrcUid()const
{
return srcUid_;
}
void DescribeUidWhiteListGroupRequest::setSrcUid(const std::string& srcUid)
{
srcUid_ = srcUid;
setParameter("SrcUid", srcUid);
}
std::string DescribeUidWhiteListGroupRequest::getStatus()const
{
return status_;
}
void DescribeUidWhiteListGroupRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}
std::string DescribeUidWhiteListGroupRequest::getSourceCode()const
{
return sourceCode_;
}
void DescribeUidWhiteListGroupRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

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/jarvis/model/DescribeUidWhiteListGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
DescribeUidWhiteListGroupResult::DescribeUidWhiteListGroupResult() :
ServiceResult()
{}
DescribeUidWhiteListGroupResult::DescribeUidWhiteListGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUidWhiteListGroupResult::~DescribeUidWhiteListGroupResult()
{}
void DescribeUidWhiteListGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataList = value["DataList"]["Data"];
for (auto value : allDataList)
{
Data dataListObject;
if(!value["Status"].isNull())
dataListObject.status = value["Status"].asString();
if(!value["GmtCreate"].isNull())
dataListObject.gmtCreate = value["GmtCreate"].asString();
if(!value["GmtRealExpire"].isNull())
dataListObject.gmtRealExpire = value["GmtRealExpire"].asString();
if(!value["SrcUid"].isNull())
dataListObject.srcUid = value["SrcUid"].asString();
if(!value["AutoConfig"].isNull())
dataListObject.autoConfig = std::stoi(value["AutoConfig"].asString());
if(!value["GroupId"].isNull())
dataListObject.groupId = std::stoi(value["GroupId"].asString());
auto allItems = value["Items"]["Item"];
for (auto value : allItems)
{
Data::Item itemsObject;
if(!value["IP"].isNull())
itemsObject.iP = value["IP"].asString();
if(!value["RegionId"].isNull())
itemsObject.regionId = value["RegionId"].asString();
dataListObject.items.push_back(itemsObject);
}
dataList_.push_back(dataListObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["total"].isNull())
pageInfo_.total = std::stoi(pageInfoNode["total"].asString());
if(!pageInfoNode["pageSize"].isNull())
pageInfo_.pageSize = std::stoi(pageInfoNode["pageSize"].asString());
if(!pageInfoNode["currentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["currentPage"].asString());
auto allProductList = value["ProductList"]["ProductList"];
for (const auto &item : allProductList)
productList_.push_back(item.asString());
if(!value["module"].isNull())
module_ = value["module"].asString();
}
std::vector<std::string> DescribeUidWhiteListGroupResult::getProductList()const
{
return productList_;
}
std::vector<DescribeUidWhiteListGroupResult::Data> DescribeUidWhiteListGroupResult::getDataList()const
{
return dataList_;
}
DescribeUidWhiteListGroupResult::PageInfo DescribeUidWhiteListGroupResult::getPageInfo()const
{
return pageInfo_;
}
std::string DescribeUidWhiteListGroupResult::getModule()const
{
return module_;
}

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/jarvis/model/ModifyAccessWhiteListAutoShareRequest.h>
using AlibabaCloud::Jarvis::Model::ModifyAccessWhiteListAutoShareRequest;
ModifyAccessWhiteListAutoShareRequest::ModifyAccessWhiteListAutoShareRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "ModifyAccessWhiteListAutoShare")
{}
ModifyAccessWhiteListAutoShareRequest::~ModifyAccessWhiteListAutoShareRequest()
{}
std::string ModifyAccessWhiteListAutoShareRequest::getSrcIP()const
{
return srcIP_;
}
void ModifyAccessWhiteListAutoShareRequest::setSrcIP(const std::string& srcIP)
{
srcIP_ = srcIP;
setParameter("SrcIP", srcIP);
}
std::string ModifyAccessWhiteListAutoShareRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyAccessWhiteListAutoShareRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int ModifyAccessWhiteListAutoShareRequest::getAutoConfig()const
{
return autoConfig_;
}
void ModifyAccessWhiteListAutoShareRequest::setAutoConfig(int autoConfig)
{
autoConfig_ = autoConfig;
setParameter("AutoConfig", std::to_string(autoConfig));
}
std::string ModifyAccessWhiteListAutoShareRequest::getProductName()const
{
return productName_;
}
void ModifyAccessWhiteListAutoShareRequest::setProductName(const std::string& productName)
{
productName_ = productName;
setParameter("ProductName", productName);
}
int ModifyAccessWhiteListAutoShareRequest::getWhiteListType()const
{
return whiteListType_;
}
void ModifyAccessWhiteListAutoShareRequest::setWhiteListType(int whiteListType)
{
whiteListType_ = whiteListType;
setParameter("WhiteListType", std::to_string(whiteListType));
}
std::string ModifyAccessWhiteListAutoShareRequest::getLang()const
{
return lang_;
}
void ModifyAccessWhiteListAutoShareRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string ModifyAccessWhiteListAutoShareRequest::getSourceCode()const
{
return sourceCode_;
}
void ModifyAccessWhiteListAutoShareRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

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/jarvis/model/ModifyAccessWhiteListAutoShareResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
ModifyAccessWhiteListAutoShareResult::ModifyAccessWhiteListAutoShareResult() :
ServiceResult()
{}
ModifyAccessWhiteListAutoShareResult::ModifyAccessWhiteListAutoShareResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyAccessWhiteListAutoShareResult::~ModifyAccessWhiteListAutoShareResult()
{}
void ModifyAccessWhiteListAutoShareResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
}
std::string ModifyAccessWhiteListAutoShareResult::getModule()const
{
return module_;
}

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/jarvis/model/ModifyUidWhiteListAutoShareRequest.h>
using AlibabaCloud::Jarvis::Model::ModifyUidWhiteListAutoShareRequest;
ModifyUidWhiteListAutoShareRequest::ModifyUidWhiteListAutoShareRequest() :
RpcServiceRequest("jarvis", "2018-02-06", "ModifyUidWhiteListAutoShare")
{}
ModifyUidWhiteListAutoShareRequest::~ModifyUidWhiteListAutoShareRequest()
{}
std::string ModifyUidWhiteListAutoShareRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyUidWhiteListAutoShareRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int ModifyUidWhiteListAutoShareRequest::getAutoConfig()const
{
return autoConfig_;
}
void ModifyUidWhiteListAutoShareRequest::setAutoConfig(int autoConfig)
{
autoConfig_ = autoConfig;
setParameter("AutoConfig", std::to_string(autoConfig));
}
std::string ModifyUidWhiteListAutoShareRequest::getProductName()const
{
return productName_;
}
void ModifyUidWhiteListAutoShareRequest::setProductName(const std::string& productName)
{
productName_ = productName;
setParameter("ProductName", productName);
}
int ModifyUidWhiteListAutoShareRequest::getWhiteListType()const
{
return whiteListType_;
}
void ModifyUidWhiteListAutoShareRequest::setWhiteListType(int whiteListType)
{
whiteListType_ = whiteListType;
setParameter("WhiteListType", std::to_string(whiteListType));
}
std::string ModifyUidWhiteListAutoShareRequest::getLang()const
{
return lang_;
}
void ModifyUidWhiteListAutoShareRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string ModifyUidWhiteListAutoShareRequest::getSrcUid()const
{
return srcUid_;
}
void ModifyUidWhiteListAutoShareRequest::setSrcUid(const std::string& srcUid)
{
srcUid_ = srcUid;
setParameter("SrcUid", srcUid);
}
std::string ModifyUidWhiteListAutoShareRequest::getSourceCode()const
{
return sourceCode_;
}
void ModifyUidWhiteListAutoShareRequest::setSourceCode(const std::string& sourceCode)
{
sourceCode_ = sourceCode;
setParameter("SourceCode", sourceCode);
}

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/jarvis/model/ModifyUidWhiteListAutoShareResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Jarvis;
using namespace AlibabaCloud::Jarvis::Model;
ModifyUidWhiteListAutoShareResult::ModifyUidWhiteListAutoShareResult() :
ServiceResult()
{}
ModifyUidWhiteListAutoShareResult::ModifyUidWhiteListAutoShareResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyUidWhiteListAutoShareResult::~ModifyUidWhiteListAutoShareResult()
{}
void ModifyUidWhiteListAutoShareResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
}
std::string ModifyUidWhiteListAutoShareResult::getModule()const
{
return module_;
}