Generate SDK by new Generator

This commit is contained in:
wb-hx510875
2019-09-18 11:18:56 +08:00
parent be86048a76
commit f3eaf1d292
9054 changed files with 325898 additions and 381375 deletions

View File

@@ -47,28 +47,6 @@ void BandOfferOrderRequest::setResourceOwnerAccount(const std::string& resourceO
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string BandOfferOrderRequest::getBandId()const
{
return bandId_;
}
void BandOfferOrderRequest::setBandId(const std::string& bandId)
{
bandId_ = bandId;
setCoreParameter("BandId", bandId);
}
std::string BandOfferOrderRequest::getOfferId()const
{
return offerId_;
}
void BandOfferOrderRequest::setOfferId(const std::string& offerId)
{
offerId_ = offerId;
setCoreParameter("OfferId", offerId);
}
long BandOfferOrderRequest::getOwnerId()const
{
return ownerId_;
@@ -91,3 +69,25 @@ void BandOfferOrderRequest::setAccessKeyId(const std::string& accessKeyId)
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string BandOfferOrderRequest::getBandId()const
{
return bandId_;
}
void BandOfferOrderRequest::setBandId(const std::string& bandId)
{
bandId_ = bandId;
setCoreParameter("BandId", bandId);
}
std::string BandOfferOrderRequest::getOfferId()const
{
return offerId_;
}
void BandOfferOrderRequest::setOfferId(const std::string& offerId)
{
offerId_ = offerId;
setCoreParameter("OfferId", offerId);
}

View File

@@ -35,13 +35,9 @@ BandOfferOrderResult::~BandOfferOrderResult()
void BandOfferOrderResult::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 resultModuleNode = value["ResultModule"];
if(!resultModuleNode["LxOrderId"].isNull())

View File

@@ -58,17 +58,6 @@ void BandPrecheckRequest::setResourceOwnerAccount(const std::string& resourceOwn
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
int BandPrecheckRequest::getPort()const
{
return port_;
}
void BandPrecheckRequest::setPort(int port)
{
port_ = port;
setCoreParameter("Port", std::to_string(port));
}
long BandPrecheckRequest::getOwnerId()const
{
return ownerId_;
@@ -91,3 +80,14 @@ void BandPrecheckRequest::setAccessKeyId(const std::string& accessKeyId)
setCoreParameter("AccessKeyId", accessKeyId);
}
int BandPrecheckRequest::getPort()const
{
return port_;
}
void BandPrecheckRequest::setPort(int port)
{
port_ = port;
setCoreParameter("Port", std::to_string(port));
}

View File

@@ -35,13 +35,9 @@ BandPrecheckResult::~BandPrecheckResult()
void BandPrecheckResult::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 resultModuleNode = value["ResultModule"];
if(!resultModuleNode["BandId"].isNull())

View File

@@ -47,26 +47,15 @@ void BandStartSpeedUpRequest::setResourceOwnerId(long resourceOwnerId)
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string BandStartSpeedUpRequest::getResourceOwnerAccount()const
std::string BandStartSpeedUpRequest::getAccessKeyId()const
{
return resourceOwnerAccount_;
return accessKeyId_;
}
void BandStartSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
void BandStartSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
int BandStartSpeedUpRequest::getPort()const
{
return port_;
}
void BandStartSpeedUpRequest::setPort(int port)
{
port_ = port;
setCoreParameter("Port", std::to_string(port));
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
long BandStartSpeedUpRequest::getBandId()const
@@ -80,17 +69,6 @@ void BandStartSpeedUpRequest::setBandId(long bandId)
setCoreParameter("BandId", std::to_string(bandId));
}
long BandStartSpeedUpRequest::getOwnerId()const
{
return ownerId_;
}
void BandStartSpeedUpRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
long BandStartSpeedUpRequest::getTargetBandwidth()const
{
return targetBandwidth_;
@@ -102,28 +80,6 @@ void BandStartSpeedUpRequest::setTargetBandwidth(long targetBandwidth)
setCoreParameter("TargetBandwidth", std::to_string(targetBandwidth));
}
std::string BandStartSpeedUpRequest::getBandScene()const
{
return bandScene_;
}
void BandStartSpeedUpRequest::setBandScene(const std::string& bandScene)
{
bandScene_ = bandScene;
setCoreParameter("BandScene", bandScene);
}
std::string BandStartSpeedUpRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BandStartSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string BandStartSpeedUpRequest::getDirection()const
{
return direction_;
@@ -135,3 +91,47 @@ void BandStartSpeedUpRequest::setDirection(const std::string& direction)
setCoreParameter("Direction", direction);
}
std::string BandStartSpeedUpRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BandStartSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long BandStartSpeedUpRequest::getOwnerId()const
{
return ownerId_;
}
void BandStartSpeedUpRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string BandStartSpeedUpRequest::getBandScene()const
{
return bandScene_;
}
void BandStartSpeedUpRequest::setBandScene(const std::string& bandScene)
{
bandScene_ = bandScene;
setCoreParameter("BandScene", bandScene);
}
int BandStartSpeedUpRequest::getPort()const
{
return port_;
}
void BandStartSpeedUpRequest::setPort(int port)
{
port_ = port;
setCoreParameter("Port", std::to_string(port));
}

View File

@@ -35,13 +35,9 @@ BandStartSpeedUpResult::~BandStartSpeedUpResult()
void BandStartSpeedUpResult::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["ResultCode"].isNull())
resultCode_ = value["ResultCode"].asString();

View File

@@ -47,17 +47,6 @@ void BandStatusQueryRequest::setResourceOwnerAccount(const std::string& resource
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long BandStatusQueryRequest::getBandId()const
{
return bandId_;
}
void BandStatusQueryRequest::setBandId(long bandId)
{
bandId_ = bandId;
setCoreParameter("BandId", std::to_string(bandId));
}
long BandStatusQueryRequest::getOwnerId()const
{
return ownerId_;
@@ -80,3 +69,14 @@ void BandStatusQueryRequest::setAccessKeyId(const std::string& accessKeyId)
setCoreParameter("AccessKeyId", accessKeyId);
}
long BandStatusQueryRequest::getBandId()const
{
return bandId_;
}
void BandStatusQueryRequest::setBandId(long bandId)
{
bandId_ = bandId;
setCoreParameter("BandId", std::to_string(bandId));
}

View File

@@ -35,13 +35,9 @@ BandStatusQueryResult::~BandStatusQueryResult()
void BandStatusQueryResult::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 resultModuleNode = value["ResultModule"];
if(!resultModuleNode["DownloadTarget"].isNull())

View File

@@ -47,26 +47,15 @@ void BandStopSpeedUpRequest::setResourceOwnerId(long resourceOwnerId)
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string BandStopSpeedUpRequest::getResourceOwnerAccount()const
std::string BandStopSpeedUpRequest::getAccessKeyId()const
{
return resourceOwnerAccount_;
return accessKeyId_;
}
void BandStopSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
void BandStopSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
int BandStopSpeedUpRequest::getPort()const
{
return port_;
}
void BandStopSpeedUpRequest::setPort(int port)
{
port_ = port;
setCoreParameter("Port", std::to_string(port));
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
long BandStopSpeedUpRequest::getBandId()const
@@ -80,28 +69,6 @@ void BandStopSpeedUpRequest::setBandId(long bandId)
setCoreParameter("BandId", std::to_string(bandId));
}
long BandStopSpeedUpRequest::getOwnerId()const
{
return ownerId_;
}
void BandStopSpeedUpRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string BandStopSpeedUpRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BandStopSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string BandStopSpeedUpRequest::getDirection()const
{
return direction_;
@@ -113,3 +80,36 @@ void BandStopSpeedUpRequest::setDirection(const std::string& direction)
setCoreParameter("Direction", direction);
}
std::string BandStopSpeedUpRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BandStopSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long BandStopSpeedUpRequest::getOwnerId()const
{
return ownerId_;
}
void BandStopSpeedUpRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
int BandStopSpeedUpRequest::getPort()const
{
return port_;
}
void BandStopSpeedUpRequest::setPort(int port)
{
port_ = port;
setCoreParameter("Port", std::to_string(port));
}

View File

@@ -35,13 +35,9 @@ BandStopSpeedUpResult::~BandStopSpeedUpResult()
void BandStopSpeedUpResult::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["ResultCode"].isNull())
resultCode_ = value["ResultCode"].asString();

View File

@@ -25,17 +25,6 @@ MobileStartSpeedUpRequest::MobileStartSpeedUpRequest() :
MobileStartSpeedUpRequest::~MobileStartSpeedUpRequest()
{}
std::string MobileStartSpeedUpRequest::getDuration()const
{
return duration_;
}
void MobileStartSpeedUpRequest::setDuration(const std::string& duration)
{
duration_ = duration;
setCoreParameter("Duration", duration);
}
long MobileStartSpeedUpRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -47,6 +36,39 @@ void MobileStartSpeedUpRequest::setResourceOwnerId(long resourceOwnerId)
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string MobileStartSpeedUpRequest::getPublicIp()const
{
return publicIp_;
}
void MobileStartSpeedUpRequest::setPublicIp(const std::string& publicIp)
{
publicIp_ = publicIp;
setCoreParameter("PublicIp", publicIp);
}
std::string MobileStartSpeedUpRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void MobileStartSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string MobileStartSpeedUpRequest::getDuration()const
{
return duration_;
}
void MobileStartSpeedUpRequest::setDuration(const std::string& duration)
{
duration_ = duration;
setCoreParameter("Duration", duration);
}
std::string MobileStartSpeedUpRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
@@ -80,28 +102,6 @@ void MobileStartSpeedUpRequest::setDestinationIpAddress(const std::string& desti
setCoreParameter("DestinationIpAddress", destinationIpAddress);
}
std::string MobileStartSpeedUpRequest::getPublicIp()const
{
return publicIp_;
}
void MobileStartSpeedUpRequest::setPublicIp(const std::string& publicIp)
{
publicIp_ = publicIp;
setCoreParameter("PublicIp", publicIp);
}
std::string MobileStartSpeedUpRequest::getPublicPort()const
{
return publicPort_;
}
void MobileStartSpeedUpRequest::setPublicPort(const std::string& publicPort)
{
publicPort_ = publicPort;
setCoreParameter("PublicPort", publicPort);
}
long MobileStartSpeedUpRequest::getOwnerId()const
{
return ownerId_;
@@ -113,17 +113,6 @@ void MobileStartSpeedUpRequest::setOwnerId(long ownerId)
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string MobileStartSpeedUpRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void MobileStartSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string MobileStartSpeedUpRequest::getToken()const
{
return token_;
@@ -135,3 +124,14 @@ void MobileStartSpeedUpRequest::setToken(const std::string& token)
setCoreParameter("Token", token);
}
std::string MobileStartSpeedUpRequest::getPublicPort()const
{
return publicPort_;
}
void MobileStartSpeedUpRequest::setPublicPort(const std::string& publicPort)
{
publicPort_ = publicPort;
setCoreParameter("PublicPort", publicPort);
}

View File

@@ -35,13 +35,9 @@ MobileStartSpeedUpResult::~MobileStartSpeedUpResult()
void MobileStartSpeedUpResult::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["ResultCode"].isNull())
resultCode_ = value["ResultCode"].asString();

View File

@@ -47,17 +47,6 @@ void MobileStatusQueryRequest::setResourceOwnerAccount(const std::string& resour
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string MobileStatusQueryRequest::getCorrelationId()const
{
return correlationId_;
}
void MobileStatusQueryRequest::setCorrelationId(const std::string& correlationId)
{
correlationId_ = correlationId;
setCoreParameter("CorrelationId", correlationId);
}
long MobileStatusQueryRequest::getOwnerId()const
{
return ownerId_;
@@ -80,3 +69,14 @@ void MobileStatusQueryRequest::setAccessKeyId(const std::string& accessKeyId)
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string MobileStatusQueryRequest::getCorrelationId()const
{
return correlationId_;
}
void MobileStatusQueryRequest::setCorrelationId(const std::string& correlationId)
{
correlationId_ = correlationId;
setCoreParameter("CorrelationId", correlationId);
}

View File

@@ -35,13 +35,9 @@ MobileStatusQueryResult::~MobileStatusQueryResult()
void MobileStatusQueryResult::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["ResultCode"].isNull())
resultCode_ = value["ResultCode"].asString();

View File

@@ -47,17 +47,6 @@ void MobileStopSpeedUpRequest::setResourceOwnerAccount(const std::string& resour
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string MobileStopSpeedUpRequest::getCorrelationId()const
{
return correlationId_;
}
void MobileStopSpeedUpRequest::setCorrelationId(const std::string& correlationId)
{
correlationId_ = correlationId;
setCoreParameter("CorrelationId", correlationId);
}
long MobileStopSpeedUpRequest::getOwnerId()const
{
return ownerId_;
@@ -80,3 +69,14 @@ void MobileStopSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId)
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string MobileStopSpeedUpRequest::getCorrelationId()const
{
return correlationId_;
}
void MobileStopSpeedUpRequest::setCorrelationId(const std::string& correlationId)
{
correlationId_ = correlationId;
setCoreParameter("CorrelationId", correlationId);
}

View File

@@ -35,13 +35,9 @@ MobileStopSpeedUpResult::~MobileStopSpeedUpResult()
void MobileStopSpeedUpResult::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["ResultCode"].isNull())
resultCode_ = value["ResultCode"].asString();