Generate SDK by new Generator
This commit is contained in:
@@ -51,72 +51,36 @@ OpenanalyticsClient::OpenanalyticsClient(const std::string & accessKeyId, const
|
||||
OpenanalyticsClient::~OpenanalyticsClient()
|
||||
{}
|
||||
|
||||
OpenanalyticsClient::SetAllowIPOutcome OpenanalyticsClient::setAllowIP(const SetAllowIPRequest &request) const
|
||||
OpenanalyticsClient::CloseProductAccountOutcome OpenanalyticsClient::closeProductAccount(const CloseProductAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetAllowIPOutcome(endpointOutcome.error());
|
||||
return CloseProductAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetAllowIPOutcome(SetAllowIPResult(outcome.result()));
|
||||
return CloseProductAccountOutcome(CloseProductAccountResult(outcome.result()));
|
||||
else
|
||||
return SetAllowIPOutcome(outcome.error());
|
||||
return CloseProductAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::setAllowIPAsync(const SetAllowIPRequest& request, const SetAllowIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void OpenanalyticsClient::closeProductAccountAsync(const CloseProductAccountRequest& request, const CloseProductAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setAllowIP(request), context);
|
||||
handler(this, request, closeProductAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::SetAllowIPOutcomeCallable OpenanalyticsClient::setAllowIPCallable(const SetAllowIPRequest &request) const
|
||||
OpenanalyticsClient::CloseProductAccountOutcomeCallable OpenanalyticsClient::closeProductAccountCallable(const CloseProductAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetAllowIPOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<CloseProductAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setAllowIP(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetRegionStatusOutcome OpenanalyticsClient::getRegionStatus(const GetRegionStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetRegionStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetRegionStatusOutcome(GetRegionStatusResult(outcome.result()));
|
||||
else
|
||||
return GetRegionStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::getRegionStatusAsync(const GetRegionStatusRequest& request, const GetRegionStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getRegionStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetRegionStatusOutcomeCallable OpenanalyticsClient::getRegionStatusCallable(const GetRegionStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetRegionStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getRegionStatus(request);
|
||||
return this->closeProductAccount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -159,36 +123,36 @@ OpenanalyticsClient::DescribeRegionListOutcomeCallable OpenanalyticsClient::desc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::OpenProductAccountOutcome OpenanalyticsClient::openProductAccount(const OpenProductAccountRequest &request) const
|
||||
OpenanalyticsClient::GetAllowIPOutcome OpenanalyticsClient::getAllowIP(const GetAllowIPRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OpenProductAccountOutcome(endpointOutcome.error());
|
||||
return GetAllowIPOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OpenProductAccountOutcome(OpenProductAccountResult(outcome.result()));
|
||||
return GetAllowIPOutcome(GetAllowIPResult(outcome.result()));
|
||||
else
|
||||
return OpenProductAccountOutcome(outcome.error());
|
||||
return GetAllowIPOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::openProductAccountAsync(const OpenProductAccountRequest& request, const OpenProductAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void OpenanalyticsClient::getAllowIPAsync(const GetAllowIPRequest& request, const GetAllowIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, openProductAccount(request), context);
|
||||
handler(this, request, getAllowIP(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::OpenProductAccountOutcomeCallable OpenanalyticsClient::openProductAccountCallable(const OpenProductAccountRequest &request) const
|
||||
OpenanalyticsClient::GetAllowIPOutcomeCallable OpenanalyticsClient::getAllowIPCallable(const GetAllowIPRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OpenProductAccountOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<GetAllowIPOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->openProductAccount(request);
|
||||
return this->getAllowIP(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -231,78 +195,6 @@ OpenanalyticsClient::GetEndPointByDomainOutcomeCallable OpenanalyticsClient::get
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::CloseProductAccountOutcome OpenanalyticsClient::closeProductAccount(const CloseProductAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CloseProductAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CloseProductAccountOutcome(CloseProductAccountResult(outcome.result()));
|
||||
else
|
||||
return CloseProductAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::closeProductAccountAsync(const CloseProductAccountRequest& request, const CloseProductAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, closeProductAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::CloseProductAccountOutcomeCallable OpenanalyticsClient::closeProductAccountCallable(const CloseProductAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CloseProductAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->closeProductAccount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetAllowIPOutcome OpenanalyticsClient::getAllowIP(const GetAllowIPRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAllowIPOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAllowIPOutcome(GetAllowIPResult(outcome.result()));
|
||||
else
|
||||
return GetAllowIPOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::getAllowIPAsync(const GetAllowIPRequest& request, const GetAllowIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAllowIP(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetAllowIPOutcomeCallable OpenanalyticsClient::getAllowIPCallable(const GetAllowIPRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAllowIPOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAllowIP(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetProductStatusOutcome OpenanalyticsClient::getProductStatus(const GetProductStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +231,78 @@ OpenanalyticsClient::GetProductStatusOutcomeCallable OpenanalyticsClient::getPro
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetRegionStatusOutcome OpenanalyticsClient::getRegionStatus(const GetRegionStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetRegionStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetRegionStatusOutcome(GetRegionStatusResult(outcome.result()));
|
||||
else
|
||||
return GetRegionStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::getRegionStatusAsync(const GetRegionStatusRequest& request, const GetRegionStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getRegionStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetRegionStatusOutcomeCallable OpenanalyticsClient::getRegionStatusCallable(const GetRegionStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetRegionStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getRegionStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::OpenProductAccountOutcome OpenanalyticsClient::openProductAccount(const OpenProductAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OpenProductAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OpenProductAccountOutcome(OpenProductAccountResult(outcome.result()));
|
||||
else
|
||||
return OpenProductAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::openProductAccountAsync(const OpenProductAccountRequest& request, const OpenProductAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, openProductAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::OpenProductAccountOutcomeCallable OpenanalyticsClient::openProductAccountCallable(const OpenProductAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OpenProductAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->openProductAccount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::QueryEndPointListOutcome OpenanalyticsClient::queryEndPointList(const QueryEndPointListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,3 +339,39 @@ OpenanalyticsClient::QueryEndPointListOutcomeCallable OpenanalyticsClient::query
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::SetAllowIPOutcome OpenanalyticsClient::setAllowIP(const SetAllowIPRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetAllowIPOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetAllowIPOutcome(SetAllowIPResult(outcome.result()));
|
||||
else
|
||||
return SetAllowIPOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::setAllowIPAsync(const SetAllowIPRequest& request, const SetAllowIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setAllowIP(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::SetAllowIPOutcomeCallable OpenanalyticsClient::setAllowIPCallable(const SetAllowIPRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetAllowIPOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setAllowIP(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -25,72 +25,6 @@ CloseProductAccountRequest::CloseProductAccountRequest() :
|
||||
CloseProductAccountRequest::~CloseProductAccountRequest()
|
||||
{}
|
||||
|
||||
long CloseProductAccountRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long CloseProductAccountRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool CloseProductAccountRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool CloseProductAccountRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -102,28 +36,6 @@ void CloseProductAccountRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long CloseProductAccountRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
|
||||
@@ -35,13 +35,9 @@ CloseProductAccountResult::~CloseProductAccountResult()
|
||||
|
||||
void CloseProductAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -25,91 +25,3 @@ DescribeRegionListRequest::DescribeRegionListRequest() :
|
||||
DescribeRegionListRequest::~DescribeRegionListRequest()
|
||||
{}
|
||||
|
||||
bool DescribeRegionListRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRegionListRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long DescribeRegionListRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long DescribeRegionListRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string DescribeRegionListRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DescribeRegionListRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long DescribeRegionListRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRegionListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeRegionListResult::~DescribeRegionListResult()
|
||||
|
||||
void DescribeRegionListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionList = value["RegionList"]["RegionListItem"];
|
||||
for (auto value : allRegionList)
|
||||
|
||||
@@ -25,17 +25,6 @@ GetAllowIPRequest::GetAllowIPRequest() :
|
||||
GetAllowIPRequest::~GetAllowIPRequest()
|
||||
{}
|
||||
|
||||
bool GetAllowIPRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -47,83 +36,6 @@ void GetAllowIPRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetAllowIPRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getUserID()const
|
||||
{
|
||||
return userID_;
|
||||
|
||||
@@ -35,13 +35,9 @@ GetAllowIPResult::~GetAllowIPResult()
|
||||
|
||||
void GetAllowIPResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ GetEndPointByDomainRequest::GetEndPointByDomainRequest() :
|
||||
GetEndPointByDomainRequest::~GetEndPointByDomainRequest()
|
||||
{}
|
||||
|
||||
bool GetEndPointByDomainRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -47,83 +36,6 @@ void GetEndPointByDomainRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetEndPointByDomainRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getUserID()const
|
||||
{
|
||||
return userID_;
|
||||
|
||||
@@ -35,13 +35,9 @@ GetEndPointByDomainResult::~GetEndPointByDomainResult()
|
||||
|
||||
void GetEndPointByDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto endPointInfoNode = value["EndPointInfo"];
|
||||
if(!endPointInfoNode["endPointID"].isNull())
|
||||
|
||||
@@ -25,72 +25,6 @@ GetProductStatusRequest::GetProductStatusRequest() :
|
||||
GetProductStatusRequest::~GetProductStatusRequest()
|
||||
{}
|
||||
|
||||
long GetProductStatusRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetProductStatusRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetProductStatusRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool GetProductStatusRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -102,28 +36,6 @@ void GetProductStatusRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetProductStatusRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
|
||||
@@ -35,13 +35,9 @@ GetProductStatusResult::~GetProductStatusResult()
|
||||
|
||||
void GetProductStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ GetRegionStatusRequest::GetRegionStatusRequest() :
|
||||
GetRegionStatusRequest::~GetRegionStatusRequest()
|
||||
{}
|
||||
|
||||
bool GetRegionStatusRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -47,83 +36,6 @@ void GetRegionStatusRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetRegionStatusRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getTargetUid()const
|
||||
{
|
||||
return targetUid_;
|
||||
|
||||
@@ -35,13 +35,9 @@ GetRegionStatusResult::~GetRegionStatusResult()
|
||||
|
||||
void GetRegionStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -25,72 +25,6 @@ OpenProductAccountRequest::OpenProductAccountRequest() :
|
||||
OpenProductAccountRequest::~OpenProductAccountRequest()
|
||||
{}
|
||||
|
||||
long OpenProductAccountRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long OpenProductAccountRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool OpenProductAccountRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool OpenProductAccountRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -102,28 +36,6 @@ void OpenProductAccountRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long OpenProductAccountRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
|
||||
@@ -35,13 +35,9 @@ OpenProductAccountResult::~OpenProductAccountResult()
|
||||
|
||||
void OpenProductAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ QueryEndPointListRequest::QueryEndPointListRequest() :
|
||||
QueryEndPointListRequest::~QueryEndPointListRequest()
|
||||
{}
|
||||
|
||||
bool QueryEndPointListRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -47,83 +36,6 @@ void QueryEndPointListRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool QueryEndPointListRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getUserID()const
|
||||
{
|
||||
return userID_;
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryEndPointListResult::~QueryEndPointListResult()
|
||||
|
||||
void QueryEndPointListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEndPointList = value["EndPointList"]["EndPointListItem"];
|
||||
for (auto value : allEndPointList)
|
||||
|
||||
@@ -25,72 +25,6 @@ SetAllowIPRequest::SetAllowIPRequest() :
|
||||
SetAllowIPRequest::~SetAllowIPRequest()
|
||||
{}
|
||||
|
||||
long SetAllowIPRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long SetAllowIPRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool SetAllowIPRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool SetAllowIPRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -102,28 +36,6 @@ void SetAllowIPRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long SetAllowIPRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
long SetAllowIPRequest::getUserID()const
|
||||
{
|
||||
return userID_;
|
||||
|
||||
@@ -35,13 +35,9 @@ SetAllowIPResult::~SetAllowIPResult()
|
||||
|
||||
void SetAllowIPResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
Reference in New Issue
Block a user