ECS SDK Auto Released By wenle.bwl,Version:1.23.0

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
yixiong.jxy
2018-08-22 13:08:24 +08:00
parent 94a811bc97
commit aa84ad7f2e
13 changed files with 1173 additions and 1 deletions

View File

@@ -1671,6 +1671,42 @@ EcsClient::GetInstanceConsoleOutputOutcomeCallable EcsClient::getInstanceConsole
return task->get_future();
}
EcsClient::CreateSimulatedSystemEventsOutcome EcsClient::createSimulatedSystemEvents(const CreateSimulatedSystemEventsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateSimulatedSystemEventsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateSimulatedSystemEventsOutcome(CreateSimulatedSystemEventsResult(outcome.result()));
else
return CreateSimulatedSystemEventsOutcome(outcome.error());
}
void EcsClient::createSimulatedSystemEventsAsync(const CreateSimulatedSystemEventsRequest& request, const CreateSimulatedSystemEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createSimulatedSystemEvents(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::CreateSimulatedSystemEventsOutcomeCallable EcsClient::createSimulatedSystemEventsCallable(const CreateSimulatedSystemEventsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateSimulatedSystemEventsOutcome()>>(
[this, request]()
{
return this->createSimulatedSystemEvents(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::CancelTaskOutcome EcsClient::cancelTask(const CancelTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2535,6 +2571,42 @@ EcsClient::ModifySecurityGroupAttributeOutcomeCallable EcsClient::modifySecurity
return task->get_future();
}
EcsClient::CancelSimulatedSystemEventsOutcome EcsClient::cancelSimulatedSystemEvents(const CancelSimulatedSystemEventsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CancelSimulatedSystemEventsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CancelSimulatedSystemEventsOutcome(CancelSimulatedSystemEventsResult(outcome.result()));
else
return CancelSimulatedSystemEventsOutcome(outcome.error());
}
void EcsClient::cancelSimulatedSystemEventsAsync(const CancelSimulatedSystemEventsRequest& request, const CancelSimulatedSystemEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, cancelSimulatedSystemEvents(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::CancelSimulatedSystemEventsOutcomeCallable EcsClient::cancelSimulatedSystemEventsCallable(const CancelSimulatedSystemEventsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CancelSimulatedSystemEventsOutcome()>>(
[this, request]()
{
return this->cancelSimulatedSystemEvents(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::ModifyInstanceAutoReleaseTimeOutcome EcsClient::modifyInstanceAutoReleaseTime(const ModifyInstanceAutoReleaseTimeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,303 @@
/*
* 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/ecs/model/CancelSimulatedSystemEventsRequest.h>
using AlibabaCloud::Ecs::Model::CancelSimulatedSystemEventsRequest;
CancelSimulatedSystemEventsRequest::CancelSimulatedSystemEventsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelSimulatedSystemEvents")
{}
CancelSimulatedSystemEventsRequest::~CancelSimulatedSystemEventsRequest()
{}
std::vector<std::string> CancelSimulatedSystemEventsRequest::getEventId()const
{
return eventId_;
}
void CancelSimulatedSystemEventsRequest::setEventId(const std::vector<std::string>& eventId)
{
eventId_ = eventId;
for(int i = 0; i!= eventId.size(); i++)
setParameter("EventId."+ std::to_string(i), eventId.at(i));
}
long CancelSimulatedSystemEventsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CancelSimulatedSystemEventsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long CancelSimulatedSystemEventsRequest::getCallerParentId()const
{
return callerParentId_;
}
void CancelSimulatedSystemEventsRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool CancelSimulatedSystemEventsRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void CancelSimulatedSystemEventsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string CancelSimulatedSystemEventsRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void CancelSimulatedSystemEventsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string CancelSimulatedSystemEventsRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void CancelSimulatedSystemEventsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string CancelSimulatedSystemEventsRequest::getCallerType()const
{
return callerType_;
}
void CancelSimulatedSystemEventsRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string CancelSimulatedSystemEventsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CancelSimulatedSystemEventsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CancelSimulatedSystemEventsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CancelSimulatedSystemEventsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CancelSimulatedSystemEventsRequest::getSecurityToken()const
{
return securityToken_;
}
void CancelSimulatedSystemEventsRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string CancelSimulatedSystemEventsRequest::getRegionId()const
{
return regionId_;
}
void CancelSimulatedSystemEventsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool CancelSimulatedSystemEventsRequest::getEnable()const
{
return enable_;
}
void CancelSimulatedSystemEventsRequest::setEnable(bool enable)
{
enable_ = enable;
setParameter("Enable", std::to_string(enable));
}
std::string CancelSimulatedSystemEventsRequest::getRequestContent()const
{
return requestContent_;
}
void CancelSimulatedSystemEventsRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string CancelSimulatedSystemEventsRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void CancelSimulatedSystemEventsRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string CancelSimulatedSystemEventsRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void CancelSimulatedSystemEventsRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long CancelSimulatedSystemEventsRequest::getCallerUid()const
{
return callerUid_;
}
void CancelSimulatedSystemEventsRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string CancelSimulatedSystemEventsRequest::getApp_ip()const
{
return app_ip_;
}
void CancelSimulatedSystemEventsRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string CancelSimulatedSystemEventsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CancelSimulatedSystemEventsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CancelSimulatedSystemEventsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CancelSimulatedSystemEventsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CancelSimulatedSystemEventsRequest::getCallerBid()const
{
return callerBid_;
}
void CancelSimulatedSystemEventsRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long CancelSimulatedSystemEventsRequest::getOwnerId()const
{
return ownerId_;
}
void CancelSimulatedSystemEventsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
bool CancelSimulatedSystemEventsRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void CancelSimulatedSystemEventsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool CancelSimulatedSystemEventsRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void CancelSimulatedSystemEventsRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool CancelSimulatedSystemEventsRequest::getSecurity_transport()const
{
return security_transport_;
}
void CancelSimulatedSystemEventsRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string CancelSimulatedSystemEventsRequest::getRequestId()const
{
return requestId_;
}
void CancelSimulatedSystemEventsRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}

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

View File

@@ -0,0 +1,325 @@
/*
* 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/ecs/model/CreateSimulatedSystemEventsRequest.h>
using AlibabaCloud::Ecs::Model::CreateSimulatedSystemEventsRequest;
CreateSimulatedSystemEventsRequest::CreateSimulatedSystemEventsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSimulatedSystemEvents")
{}
CreateSimulatedSystemEventsRequest::~CreateSimulatedSystemEventsRequest()
{}
long CreateSimulatedSystemEventsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateSimulatedSystemEventsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateSimulatedSystemEventsRequest::getNotBefore()const
{
return notBefore_;
}
void CreateSimulatedSystemEventsRequest::setNotBefore(const std::string& notBefore)
{
notBefore_ = notBefore;
setParameter("NotBefore", notBefore);
}
long CreateSimulatedSystemEventsRequest::getCallerParentId()const
{
return callerParentId_;
}
void CreateSimulatedSystemEventsRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool CreateSimulatedSystemEventsRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void CreateSimulatedSystemEventsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string CreateSimulatedSystemEventsRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void CreateSimulatedSystemEventsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string CreateSimulatedSystemEventsRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void CreateSimulatedSystemEventsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string CreateSimulatedSystemEventsRequest::getCallerType()const
{
return callerType_;
}
void CreateSimulatedSystemEventsRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string CreateSimulatedSystemEventsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateSimulatedSystemEventsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateSimulatedSystemEventsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateSimulatedSystemEventsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateSimulatedSystemEventsRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateSimulatedSystemEventsRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string CreateSimulatedSystemEventsRequest::getRegionId()const
{
return regionId_;
}
void CreateSimulatedSystemEventsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool CreateSimulatedSystemEventsRequest::getEnable()const
{
return enable_;
}
void CreateSimulatedSystemEventsRequest::setEnable(bool enable)
{
enable_ = enable;
setParameter("Enable", std::to_string(enable));
}
std::string CreateSimulatedSystemEventsRequest::getRequestContent()const
{
return requestContent_;
}
void CreateSimulatedSystemEventsRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string CreateSimulatedSystemEventsRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void CreateSimulatedSystemEventsRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string CreateSimulatedSystemEventsRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void CreateSimulatedSystemEventsRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long CreateSimulatedSystemEventsRequest::getCallerUid()const
{
return callerUid_;
}
void CreateSimulatedSystemEventsRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string CreateSimulatedSystemEventsRequest::getApp_ip()const
{
return app_ip_;
}
void CreateSimulatedSystemEventsRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string CreateSimulatedSystemEventsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateSimulatedSystemEventsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateSimulatedSystemEventsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateSimulatedSystemEventsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateSimulatedSystemEventsRequest::getCallerBid()const
{
return callerBid_;
}
void CreateSimulatedSystemEventsRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long CreateSimulatedSystemEventsRequest::getOwnerId()const
{
return ownerId_;
}
void CreateSimulatedSystemEventsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
bool CreateSimulatedSystemEventsRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void CreateSimulatedSystemEventsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool CreateSimulatedSystemEventsRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void CreateSimulatedSystemEventsRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool CreateSimulatedSystemEventsRequest::getSecurity_transport()const
{
return security_transport_;
}
void CreateSimulatedSystemEventsRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::vector<std::string> CreateSimulatedSystemEventsRequest::getInstanceId()const
{
return instanceId_;
}
void CreateSimulatedSystemEventsRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int i = 0; i!= instanceId.size(); i++)
setParameter("InstanceId."+ std::to_string(i), instanceId.at(i));
}
std::string CreateSimulatedSystemEventsRequest::getRequestId()const
{
return requestId_;
}
void CreateSimulatedSystemEventsRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string CreateSimulatedSystemEventsRequest::getEventType()const
{
return eventType_;
}
void CreateSimulatedSystemEventsRequest::setEventType(const std::string& eventType)
{
eventType_ = eventType;
setParameter("EventType", eventType);
}

View File

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