@@ -195,42 +195,6 @@ OpenanalyticsClient::OpenProductAccountOutcomeCallable OpenanalyticsClient::open
|
||||
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::GetEndPointByDomainOutcome OpenanalyticsClient::getEndPointByDomain(const GetEndPointByDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,6 +231,42 @@ 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();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CloseProductAccountRequest::getCallerParentId()const
|
||||
void CloseProductAccountRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long CloseProductAccountRequest::getCallerBid()const
|
||||
@@ -44,7 +44,7 @@ long CloseProductAccountRequest::getCallerBid()const
|
||||
void CloseProductAccountRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getCallerType()const
|
||||
@@ -55,7 +55,7 @@ std::string CloseProductAccountRequest::getCallerType()const
|
||||
void CloseProductAccountRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool CloseProductAccountRequest::getAk_mfa_present()const
|
||||
@@ -66,7 +66,7 @@ bool CloseProductAccountRequest::getAk_mfa_present()const
|
||||
void CloseProductAccountRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getAccessKeyId()const
|
||||
@@ -77,7 +77,7 @@ std::string CloseProductAccountRequest::getAccessKeyId()const
|
||||
void CloseProductAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool CloseProductAccountRequest::getSecurity_transport()const
|
||||
@@ -88,7 +88,7 @@ bool CloseProductAccountRequest::getSecurity_transport()const
|
||||
void CloseProductAccountRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getRegionID()const
|
||||
@@ -99,7 +99,7 @@ std::string CloseProductAccountRequest::getRegionID()const
|
||||
void CloseProductAccountRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getRequestId()const
|
||||
@@ -110,7 +110,7 @@ std::string CloseProductAccountRequest::getRequestId()const
|
||||
void CloseProductAccountRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long CloseProductAccountRequest::getCallerUid()const
|
||||
@@ -121,7 +121,7 @@ long CloseProductAccountRequest::getCallerUid()const
|
||||
void CloseProductAccountRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getProductCode()const
|
||||
@@ -132,7 +132,7 @@ std::string CloseProductAccountRequest::getProductCode()const
|
||||
void CloseProductAccountRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getProductAccessKey()const
|
||||
@@ -143,7 +143,7 @@ std::string CloseProductAccountRequest::getProductAccessKey()const
|
||||
void CloseProductAccountRequest::setProductAccessKey(const std::string& productAccessKey)
|
||||
{
|
||||
productAccessKey_ = productAccessKey;
|
||||
setParameter("ProductAccessKey", productAccessKey);
|
||||
setCoreParameter("ProductAccessKey", productAccessKey);
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getTargetUid()const
|
||||
@@ -154,7 +154,7 @@ std::string CloseProductAccountRequest::getTargetUid()const
|
||||
void CloseProductAccountRequest::setTargetUid(const std::string& targetUid)
|
||||
{
|
||||
targetUid_ = targetUid;
|
||||
setParameter("TargetUid", targetUid);
|
||||
setCoreParameter("TargetUid", targetUid);
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getTargetArnRole()const
|
||||
@@ -165,6 +165,6 @@ std::string CloseProductAccountRequest::getTargetArnRole()const
|
||||
void CloseProductAccountRequest::setTargetArnRole(const std::string& targetArnRole)
|
||||
{
|
||||
targetArnRole_ = targetArnRole;
|
||||
setParameter("TargetArnRole", targetArnRole);
|
||||
setCoreParameter("TargetArnRole", targetArnRole);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CloseProductAccountResult::~CloseProductAccountResult()
|
||||
|
||||
void CloseProductAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ bool DescribeRegionListRequest::getSecurity_transport()const
|
||||
void DescribeRegionListRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRegionListRequest::getRequestId()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeRegionListRequest::getRequestId()const
|
||||
void DescribeRegionListRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long DescribeRegionListRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long DescribeRegionListRequest::getCallerParentId()const
|
||||
void DescribeRegionListRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long DescribeRegionListRequest::getCallerBid()const
|
||||
@@ -66,7 +66,7 @@ long DescribeRegionListRequest::getCallerBid()const
|
||||
void DescribeRegionListRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string DescribeRegionListRequest::getCallerType()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeRegionListRequest::getCallerType()const
|
||||
void DescribeRegionListRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DescribeRegionListRequest::getAk_mfa_present()const
|
||||
@@ -88,7 +88,7 @@ bool DescribeRegionListRequest::getAk_mfa_present()const
|
||||
void DescribeRegionListRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long DescribeRegionListRequest::getCallerUid()const
|
||||
@@ -99,7 +99,7 @@ long DescribeRegionListRequest::getCallerUid()const
|
||||
void DescribeRegionListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRegionListRequest::getAccessKeyId()const
|
||||
@@ -110,6 +110,6 @@ std::string DescribeRegionListRequest::getAccessKeyId()const
|
||||
void DescribeRegionListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeRegionListResult::~DescribeRegionListResult()
|
||||
|
||||
void DescribeRegionListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionList = value["RegionList"]["RegionListItem"];
|
||||
for (auto value : allRegionList)
|
||||
|
||||
@@ -33,7 +33,7 @@ bool GetAllowIPRequest::getSecurity_transport()const
|
||||
void GetAllowIPRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getRegionID()const
|
||||
@@ -44,7 +44,7 @@ std::string GetAllowIPRequest::getRegionID()const
|
||||
void GetAllowIPRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getRequestId()const
|
||||
@@ -55,7 +55,7 @@ std::string GetAllowIPRequest::getRequestId()const
|
||||
void GetAllowIPRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getCallerParentId()const
|
||||
@@ -66,7 +66,7 @@ long GetAllowIPRequest::getCallerParentId()const
|
||||
void GetAllowIPRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ long GetAllowIPRequest::getCallerBid()const
|
||||
void GetAllowIPRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getCallerType()const
|
||||
@@ -88,7 +88,7 @@ std::string GetAllowIPRequest::getCallerType()const
|
||||
void GetAllowIPRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetAllowIPRequest::getAk_mfa_present()const
|
||||
@@ -99,7 +99,7 @@ bool GetAllowIPRequest::getAk_mfa_present()const
|
||||
void GetAllowIPRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getCallerUid()const
|
||||
@@ -110,7 +110,7 @@ long GetAllowIPRequest::getCallerUid()const
|
||||
void GetAllowIPRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getAccessKeyId()const
|
||||
@@ -121,7 +121,7 @@ std::string GetAllowIPRequest::getAccessKeyId()const
|
||||
void GetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getUserID()const
|
||||
@@ -132,7 +132,7 @@ long GetAllowIPRequest::getUserID()const
|
||||
void GetAllowIPRequest::setUserID(long userID)
|
||||
{
|
||||
userID_ = userID;
|
||||
setParameter("UserID", std::to_string(userID));
|
||||
setCoreParameter("UserID", std::to_string(userID));
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getNetworkType()const
|
||||
@@ -143,6 +143,6 @@ std::string GetAllowIPRequest::getNetworkType()const
|
||||
void GetAllowIPRequest::setNetworkType(const std::string& networkType)
|
||||
{
|
||||
networkType_ = networkType;
|
||||
setParameter("NetworkType", networkType);
|
||||
setCoreParameter("NetworkType", networkType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetAllowIPResult::~GetAllowIPResult()
|
||||
|
||||
void GetAllowIPResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ bool GetEndPointByDomainRequest::getSecurity_transport()const
|
||||
void GetEndPointByDomainRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getRegionID()const
|
||||
@@ -44,7 +44,7 @@ std::string GetEndPointByDomainRequest::getRegionID()const
|
||||
void GetEndPointByDomainRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getRequestId()const
|
||||
@@ -55,7 +55,7 @@ std::string GetEndPointByDomainRequest::getRequestId()const
|
||||
void GetEndPointByDomainRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getCallerParentId()const
|
||||
@@ -66,7 +66,7 @@ long GetEndPointByDomainRequest::getCallerParentId()const
|
||||
void GetEndPointByDomainRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ long GetEndPointByDomainRequest::getCallerBid()const
|
||||
void GetEndPointByDomainRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getCallerType()const
|
||||
@@ -88,7 +88,7 @@ std::string GetEndPointByDomainRequest::getCallerType()const
|
||||
void GetEndPointByDomainRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetEndPointByDomainRequest::getAk_mfa_present()const
|
||||
@@ -99,7 +99,7 @@ bool GetEndPointByDomainRequest::getAk_mfa_present()const
|
||||
void GetEndPointByDomainRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getCallerUid()const
|
||||
@@ -110,7 +110,7 @@ long GetEndPointByDomainRequest::getCallerUid()const
|
||||
void GetEndPointByDomainRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getAccessKeyId()const
|
||||
@@ -121,7 +121,7 @@ std::string GetEndPointByDomainRequest::getAccessKeyId()const
|
||||
void GetEndPointByDomainRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getUserID()const
|
||||
@@ -132,7 +132,7 @@ long GetEndPointByDomainRequest::getUserID()const
|
||||
void GetEndPointByDomainRequest::setUserID(long userID)
|
||||
{
|
||||
userID_ = userID;
|
||||
setParameter("UserID", std::to_string(userID));
|
||||
setCoreParameter("UserID", std::to_string(userID));
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getDomainURL()const
|
||||
@@ -143,6 +143,6 @@ std::string GetEndPointByDomainRequest::getDomainURL()const
|
||||
void GetEndPointByDomainRequest::setDomainURL(const std::string& domainURL)
|
||||
{
|
||||
domainURL_ = domainURL;
|
||||
setParameter("DomainURL", domainURL);
|
||||
setCoreParameter("DomainURL", domainURL);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetEndPointByDomainResult::~GetEndPointByDomainResult()
|
||||
|
||||
void GetEndPointByDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto endPointInfoNode = value["EndPointInfo"];
|
||||
if(!endPointInfoNode["endPointID"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ long GetProductStatusRequest::getCallerParentId()const
|
||||
void GetProductStatusRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetProductStatusRequest::getCallerBid()const
|
||||
@@ -44,7 +44,7 @@ long GetProductStatusRequest::getCallerBid()const
|
||||
void GetProductStatusRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getCallerType()const
|
||||
@@ -55,7 +55,7 @@ std::string GetProductStatusRequest::getCallerType()const
|
||||
void GetProductStatusRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetProductStatusRequest::getAk_mfa_present()const
|
||||
@@ -66,7 +66,7 @@ bool GetProductStatusRequest::getAk_mfa_present()const
|
||||
void GetProductStatusRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getAccessKeyId()const
|
||||
@@ -77,7 +77,7 @@ std::string GetProductStatusRequest::getAccessKeyId()const
|
||||
void GetProductStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool GetProductStatusRequest::getSecurity_transport()const
|
||||
@@ -88,7 +88,7 @@ bool GetProductStatusRequest::getSecurity_transport()const
|
||||
void GetProductStatusRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getRegionID()const
|
||||
@@ -99,7 +99,7 @@ std::string GetProductStatusRequest::getRegionID()const
|
||||
void GetProductStatusRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getRequestId()const
|
||||
@@ -110,7 +110,7 @@ std::string GetProductStatusRequest::getRequestId()const
|
||||
void GetProductStatusRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetProductStatusRequest::getCallerUid()const
|
||||
@@ -121,7 +121,7 @@ long GetProductStatusRequest::getCallerUid()const
|
||||
void GetProductStatusRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getProductCode()const
|
||||
@@ -132,7 +132,7 @@ std::string GetProductStatusRequest::getProductCode()const
|
||||
void GetProductStatusRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getProductAccessKey()const
|
||||
@@ -143,7 +143,7 @@ std::string GetProductStatusRequest::getProductAccessKey()const
|
||||
void GetProductStatusRequest::setProductAccessKey(const std::string& productAccessKey)
|
||||
{
|
||||
productAccessKey_ = productAccessKey;
|
||||
setParameter("ProductAccessKey", productAccessKey);
|
||||
setCoreParameter("ProductAccessKey", productAccessKey);
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getTargetUid()const
|
||||
@@ -154,7 +154,7 @@ std::string GetProductStatusRequest::getTargetUid()const
|
||||
void GetProductStatusRequest::setTargetUid(const std::string& targetUid)
|
||||
{
|
||||
targetUid_ = targetUid;
|
||||
setParameter("TargetUid", targetUid);
|
||||
setCoreParameter("TargetUid", targetUid);
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getTargetArnRole()const
|
||||
@@ -165,6 +165,6 @@ std::string GetProductStatusRequest::getTargetArnRole()const
|
||||
void GetProductStatusRequest::setTargetArnRole(const std::string& targetArnRole)
|
||||
{
|
||||
targetArnRole_ = targetArnRole;
|
||||
setParameter("TargetArnRole", targetArnRole);
|
||||
setCoreParameter("TargetArnRole", targetArnRole);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetProductStatusResult::~GetProductStatusResult()
|
||||
|
||||
void GetProductStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ bool GetRegionStatusRequest::getSecurity_transport()const
|
||||
void GetRegionStatusRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getRegionID()const
|
||||
@@ -44,7 +44,7 @@ std::string GetRegionStatusRequest::getRegionID()const
|
||||
void GetRegionStatusRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getRequestId()const
|
||||
@@ -55,7 +55,7 @@ std::string GetRegionStatusRequest::getRequestId()const
|
||||
void GetRegionStatusRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getCallerParentId()const
|
||||
@@ -66,7 +66,7 @@ long GetRegionStatusRequest::getCallerParentId()const
|
||||
void GetRegionStatusRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ long GetRegionStatusRequest::getCallerBid()const
|
||||
void GetRegionStatusRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getCallerType()const
|
||||
@@ -88,7 +88,7 @@ std::string GetRegionStatusRequest::getCallerType()const
|
||||
void GetRegionStatusRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetRegionStatusRequest::getAk_mfa_present()const
|
||||
@@ -99,7 +99,7 @@ bool GetRegionStatusRequest::getAk_mfa_present()const
|
||||
void GetRegionStatusRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getCallerUid()const
|
||||
@@ -110,7 +110,7 @@ long GetRegionStatusRequest::getCallerUid()const
|
||||
void GetRegionStatusRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getAccessKeyId()const
|
||||
@@ -121,7 +121,7 @@ std::string GetRegionStatusRequest::getAccessKeyId()const
|
||||
void GetRegionStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getTargetUid()const
|
||||
@@ -132,6 +132,6 @@ long GetRegionStatusRequest::getTargetUid()const
|
||||
void GetRegionStatusRequest::setTargetUid(long targetUid)
|
||||
{
|
||||
targetUid_ = targetUid;
|
||||
setParameter("TargetUid", std::to_string(targetUid));
|
||||
setCoreParameter("TargetUid", std::to_string(targetUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetRegionStatusResult::~GetRegionStatusResult()
|
||||
|
||||
void GetRegionStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long OpenProductAccountRequest::getCallerParentId()const
|
||||
void OpenProductAccountRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long OpenProductAccountRequest::getCallerBid()const
|
||||
@@ -44,7 +44,7 @@ long OpenProductAccountRequest::getCallerBid()const
|
||||
void OpenProductAccountRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getCallerType()const
|
||||
@@ -55,7 +55,7 @@ std::string OpenProductAccountRequest::getCallerType()const
|
||||
void OpenProductAccountRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool OpenProductAccountRequest::getAk_mfa_present()const
|
||||
@@ -66,7 +66,7 @@ bool OpenProductAccountRequest::getAk_mfa_present()const
|
||||
void OpenProductAccountRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getAccessKeyId()const
|
||||
@@ -77,7 +77,7 @@ std::string OpenProductAccountRequest::getAccessKeyId()const
|
||||
void OpenProductAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool OpenProductAccountRequest::getSecurity_transport()const
|
||||
@@ -88,7 +88,7 @@ bool OpenProductAccountRequest::getSecurity_transport()const
|
||||
void OpenProductAccountRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getRegionID()const
|
||||
@@ -99,7 +99,7 @@ std::string OpenProductAccountRequest::getRegionID()const
|
||||
void OpenProductAccountRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getRequestId()const
|
||||
@@ -110,7 +110,7 @@ std::string OpenProductAccountRequest::getRequestId()const
|
||||
void OpenProductAccountRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long OpenProductAccountRequest::getCallerUid()const
|
||||
@@ -121,7 +121,7 @@ long OpenProductAccountRequest::getCallerUid()const
|
||||
void OpenProductAccountRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getProductCode()const
|
||||
@@ -132,7 +132,7 @@ std::string OpenProductAccountRequest::getProductCode()const
|
||||
void OpenProductAccountRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getProductAccessKey()const
|
||||
@@ -143,7 +143,7 @@ std::string OpenProductAccountRequest::getProductAccessKey()const
|
||||
void OpenProductAccountRequest::setProductAccessKey(const std::string& productAccessKey)
|
||||
{
|
||||
productAccessKey_ = productAccessKey;
|
||||
setParameter("ProductAccessKey", productAccessKey);
|
||||
setCoreParameter("ProductAccessKey", productAccessKey);
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getTargetUid()const
|
||||
@@ -154,7 +154,7 @@ std::string OpenProductAccountRequest::getTargetUid()const
|
||||
void OpenProductAccountRequest::setTargetUid(const std::string& targetUid)
|
||||
{
|
||||
targetUid_ = targetUid;
|
||||
setParameter("TargetUid", targetUid);
|
||||
setCoreParameter("TargetUid", targetUid);
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getTargetArnRole()const
|
||||
@@ -165,6 +165,6 @@ std::string OpenProductAccountRequest::getTargetArnRole()const
|
||||
void OpenProductAccountRequest::setTargetArnRole(const std::string& targetArnRole)
|
||||
{
|
||||
targetArnRole_ = targetArnRole;
|
||||
setParameter("TargetArnRole", targetArnRole);
|
||||
setCoreParameter("TargetArnRole", targetArnRole);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ OpenProductAccountResult::~OpenProductAccountResult()
|
||||
|
||||
void OpenProductAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ bool QueryEndPointListRequest::getSecurity_transport()const
|
||||
void QueryEndPointListRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getRegionID()const
|
||||
@@ -44,7 +44,7 @@ std::string QueryEndPointListRequest::getRegionID()const
|
||||
void QueryEndPointListRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getRequestId()const
|
||||
@@ -55,7 +55,7 @@ std::string QueryEndPointListRequest::getRequestId()const
|
||||
void QueryEndPointListRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getCallerParentId()const
|
||||
@@ -66,7 +66,7 @@ long QueryEndPointListRequest::getCallerParentId()const
|
||||
void QueryEndPointListRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ long QueryEndPointListRequest::getCallerBid()const
|
||||
void QueryEndPointListRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getCallerType()const
|
||||
@@ -88,7 +88,7 @@ std::string QueryEndPointListRequest::getCallerType()const
|
||||
void QueryEndPointListRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool QueryEndPointListRequest::getAk_mfa_present()const
|
||||
@@ -99,7 +99,7 @@ bool QueryEndPointListRequest::getAk_mfa_present()const
|
||||
void QueryEndPointListRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getCallerUid()const
|
||||
@@ -110,7 +110,7 @@ long QueryEndPointListRequest::getCallerUid()const
|
||||
void QueryEndPointListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getAccessKeyId()const
|
||||
@@ -121,7 +121,7 @@ std::string QueryEndPointListRequest::getAccessKeyId()const
|
||||
void QueryEndPointListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getUserID()const
|
||||
@@ -132,6 +132,6 @@ long QueryEndPointListRequest::getUserID()const
|
||||
void QueryEndPointListRequest::setUserID(long userID)
|
||||
{
|
||||
userID_ = userID;
|
||||
setParameter("UserID", std::to_string(userID));
|
||||
setCoreParameter("UserID", std::to_string(userID));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ QueryEndPointListResult::~QueryEndPointListResult()
|
||||
|
||||
void QueryEndPointListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEndPointList = value["EndPointList"]["EndPointListItem"];
|
||||
for (auto value : allEndPointList)
|
||||
|
||||
@@ -33,7 +33,7 @@ long SetAllowIPRequest::getCallerParentId()const
|
||||
void SetAllowIPRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long SetAllowIPRequest::getCallerBid()const
|
||||
@@ -44,7 +44,7 @@ long SetAllowIPRequest::getCallerBid()const
|
||||
void SetAllowIPRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getCallerType()const
|
||||
@@ -55,7 +55,7 @@ std::string SetAllowIPRequest::getCallerType()const
|
||||
void SetAllowIPRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool SetAllowIPRequest::getAk_mfa_present()const
|
||||
@@ -66,7 +66,7 @@ bool SetAllowIPRequest::getAk_mfa_present()const
|
||||
void SetAllowIPRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getAccessKeyId()const
|
||||
@@ -77,7 +77,7 @@ std::string SetAllowIPRequest::getAccessKeyId()const
|
||||
void SetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool SetAllowIPRequest::getSecurity_transport()const
|
||||
@@ -88,7 +88,7 @@ bool SetAllowIPRequest::getSecurity_transport()const
|
||||
void SetAllowIPRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getRegionID()const
|
||||
@@ -99,7 +99,7 @@ std::string SetAllowIPRequest::getRegionID()const
|
||||
void SetAllowIPRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getRequestId()const
|
||||
@@ -110,7 +110,7 @@ std::string SetAllowIPRequest::getRequestId()const
|
||||
void SetAllowIPRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long SetAllowIPRequest::getCallerUid()const
|
||||
@@ -121,7 +121,7 @@ long SetAllowIPRequest::getCallerUid()const
|
||||
void SetAllowIPRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
long SetAllowIPRequest::getUserID()const
|
||||
@@ -132,7 +132,7 @@ long SetAllowIPRequest::getUserID()const
|
||||
void SetAllowIPRequest::setUserID(long userID)
|
||||
{
|
||||
userID_ = userID;
|
||||
setParameter("UserID", std::to_string(userID));
|
||||
setCoreParameter("UserID", std::to_string(userID));
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getNetworkType()const
|
||||
@@ -143,7 +143,7 @@ std::string SetAllowIPRequest::getNetworkType()const
|
||||
void SetAllowIPRequest::setNetworkType(const std::string& networkType)
|
||||
{
|
||||
networkType_ = networkType;
|
||||
setParameter("NetworkType", networkType);
|
||||
setCoreParameter("NetworkType", networkType);
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getAllowIP()const
|
||||
@@ -154,7 +154,7 @@ std::string SetAllowIPRequest::getAllowIP()const
|
||||
void SetAllowIPRequest::setAllowIP(const std::string& allowIP)
|
||||
{
|
||||
allowIP_ = allowIP;
|
||||
setParameter("AllowIP", allowIP);
|
||||
setCoreParameter("AllowIP", allowIP);
|
||||
}
|
||||
|
||||
bool SetAllowIPRequest::getAppend()const
|
||||
@@ -165,6 +165,6 @@ bool SetAllowIPRequest::getAppend()const
|
||||
void SetAllowIPRequest::setAppend(bool append)
|
||||
{
|
||||
append_ = append;
|
||||
setParameter("Append", std::to_string(append));
|
||||
setCoreParameter("Append", append ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ SetAllowIPResult::~SetAllowIPResult()
|
||||
|
||||
void SetAllowIPResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
Reference in New Issue
Block a user