Generate SDK by new Generator
This commit is contained in:
@@ -21,41 +21,41 @@ set(snsuapi_public_header
|
||||
include/alibabacloud/snsuapi/SnsuapiExport.h )
|
||||
|
||||
set(snsuapi_public_header_model
|
||||
include/alibabacloud/snsuapi/model/MobileStartSpeedUpRequest.h
|
||||
include/alibabacloud/snsuapi/model/MobileStartSpeedUpResult.h
|
||||
include/alibabacloud/snsuapi/model/BandStopSpeedUpRequest.h
|
||||
include/alibabacloud/snsuapi/model/BandStopSpeedUpResult.h
|
||||
include/alibabacloud/snsuapi/model/BandStatusQueryRequest.h
|
||||
include/alibabacloud/snsuapi/model/BandStatusQueryResult.h
|
||||
include/alibabacloud/snsuapi/model/MobileStatusQueryRequest.h
|
||||
include/alibabacloud/snsuapi/model/MobileStatusQueryResult.h
|
||||
include/alibabacloud/snsuapi/model/MobileStopSpeedUpRequest.h
|
||||
include/alibabacloud/snsuapi/model/MobileStopSpeedUpResult.h
|
||||
include/alibabacloud/snsuapi/model/BandOfferOrderRequest.h
|
||||
include/alibabacloud/snsuapi/model/BandOfferOrderResult.h
|
||||
include/alibabacloud/snsuapi/model/BandPrecheckRequest.h
|
||||
include/alibabacloud/snsuapi/model/BandPrecheckResult.h
|
||||
include/alibabacloud/snsuapi/model/BandStartSpeedUpRequest.h
|
||||
include/alibabacloud/snsuapi/model/BandStartSpeedUpResult.h )
|
||||
include/alibabacloud/snsuapi/model/BandStartSpeedUpResult.h
|
||||
include/alibabacloud/snsuapi/model/BandStatusQueryRequest.h
|
||||
include/alibabacloud/snsuapi/model/BandStatusQueryResult.h
|
||||
include/alibabacloud/snsuapi/model/BandStopSpeedUpRequest.h
|
||||
include/alibabacloud/snsuapi/model/BandStopSpeedUpResult.h
|
||||
include/alibabacloud/snsuapi/model/MobileStartSpeedUpRequest.h
|
||||
include/alibabacloud/snsuapi/model/MobileStartSpeedUpResult.h
|
||||
include/alibabacloud/snsuapi/model/MobileStatusQueryRequest.h
|
||||
include/alibabacloud/snsuapi/model/MobileStatusQueryResult.h
|
||||
include/alibabacloud/snsuapi/model/MobileStopSpeedUpRequest.h
|
||||
include/alibabacloud/snsuapi/model/MobileStopSpeedUpResult.h )
|
||||
|
||||
set(snsuapi_src
|
||||
src/SnsuapiClient.cc
|
||||
src/model/MobileStartSpeedUpRequest.cc
|
||||
src/model/MobileStartSpeedUpResult.cc
|
||||
src/model/BandStopSpeedUpRequest.cc
|
||||
src/model/BandStopSpeedUpResult.cc
|
||||
src/model/BandStatusQueryRequest.cc
|
||||
src/model/BandStatusQueryResult.cc
|
||||
src/model/MobileStatusQueryRequest.cc
|
||||
src/model/MobileStatusQueryResult.cc
|
||||
src/model/MobileStopSpeedUpRequest.cc
|
||||
src/model/MobileStopSpeedUpResult.cc
|
||||
src/model/BandOfferOrderRequest.cc
|
||||
src/model/BandOfferOrderResult.cc
|
||||
src/model/BandPrecheckRequest.cc
|
||||
src/model/BandPrecheckResult.cc
|
||||
src/model/BandStartSpeedUpRequest.cc
|
||||
src/model/BandStartSpeedUpResult.cc )
|
||||
src/model/BandStartSpeedUpResult.cc
|
||||
src/model/BandStatusQueryRequest.cc
|
||||
src/model/BandStatusQueryResult.cc
|
||||
src/model/BandStopSpeedUpRequest.cc
|
||||
src/model/BandStopSpeedUpResult.cc
|
||||
src/model/MobileStartSpeedUpRequest.cc
|
||||
src/model/MobileStartSpeedUpResult.cc
|
||||
src/model/MobileStatusQueryRequest.cc
|
||||
src/model/MobileStatusQueryResult.cc
|
||||
src/model/MobileStopSpeedUpRequest.cc
|
||||
src/model/MobileStopSpeedUpResult.cc )
|
||||
|
||||
add_library(snsuapi ${LIB_TYPE}
|
||||
${snsuapi_public_header}
|
||||
|
||||
@@ -22,22 +22,22 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "SnsuapiExport.h"
|
||||
#include "model/MobileStartSpeedUpRequest.h"
|
||||
#include "model/MobileStartSpeedUpResult.h"
|
||||
#include "model/BandStopSpeedUpRequest.h"
|
||||
#include "model/BandStopSpeedUpResult.h"
|
||||
#include "model/BandStatusQueryRequest.h"
|
||||
#include "model/BandStatusQueryResult.h"
|
||||
#include "model/MobileStatusQueryRequest.h"
|
||||
#include "model/MobileStatusQueryResult.h"
|
||||
#include "model/MobileStopSpeedUpRequest.h"
|
||||
#include "model/MobileStopSpeedUpResult.h"
|
||||
#include "model/BandOfferOrderRequest.h"
|
||||
#include "model/BandOfferOrderResult.h"
|
||||
#include "model/BandPrecheckRequest.h"
|
||||
#include "model/BandPrecheckResult.h"
|
||||
#include "model/BandStartSpeedUpRequest.h"
|
||||
#include "model/BandStartSpeedUpResult.h"
|
||||
#include "model/BandStatusQueryRequest.h"
|
||||
#include "model/BandStatusQueryResult.h"
|
||||
#include "model/BandStopSpeedUpRequest.h"
|
||||
#include "model/BandStopSpeedUpResult.h"
|
||||
#include "model/MobileStartSpeedUpRequest.h"
|
||||
#include "model/MobileStartSpeedUpResult.h"
|
||||
#include "model/MobileStatusQueryRequest.h"
|
||||
#include "model/MobileStatusQueryResult.h"
|
||||
#include "model/MobileStopSpeedUpRequest.h"
|
||||
#include "model/MobileStopSpeedUpResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -47,21 +47,6 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_SNSUAPI_EXPORT SnsuapiClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::MobileStartSpeedUpResult> MobileStartSpeedUpOutcome;
|
||||
typedef std::future<MobileStartSpeedUpOutcome> MobileStartSpeedUpOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::MobileStartSpeedUpRequest&, const MobileStartSpeedUpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MobileStartSpeedUpAsyncHandler;
|
||||
typedef Outcome<Error, Model::BandStopSpeedUpResult> BandStopSpeedUpOutcome;
|
||||
typedef std::future<BandStopSpeedUpOutcome> BandStopSpeedUpOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::BandStopSpeedUpRequest&, const BandStopSpeedUpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BandStopSpeedUpAsyncHandler;
|
||||
typedef Outcome<Error, Model::BandStatusQueryResult> BandStatusQueryOutcome;
|
||||
typedef std::future<BandStatusQueryOutcome> BandStatusQueryOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::BandStatusQueryRequest&, const BandStatusQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BandStatusQueryAsyncHandler;
|
||||
typedef Outcome<Error, Model::MobileStatusQueryResult> MobileStatusQueryOutcome;
|
||||
typedef std::future<MobileStatusQueryOutcome> MobileStatusQueryOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::MobileStatusQueryRequest&, const MobileStatusQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MobileStatusQueryAsyncHandler;
|
||||
typedef Outcome<Error, Model::MobileStopSpeedUpResult> MobileStopSpeedUpOutcome;
|
||||
typedef std::future<MobileStopSpeedUpOutcome> MobileStopSpeedUpOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::MobileStopSpeedUpRequest&, const MobileStopSpeedUpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MobileStopSpeedUpAsyncHandler;
|
||||
typedef Outcome<Error, Model::BandOfferOrderResult> BandOfferOrderOutcome;
|
||||
typedef std::future<BandOfferOrderOutcome> BandOfferOrderOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::BandOfferOrderRequest&, const BandOfferOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BandOfferOrderAsyncHandler;
|
||||
@@ -71,26 +56,26 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::BandStartSpeedUpResult> BandStartSpeedUpOutcome;
|
||||
typedef std::future<BandStartSpeedUpOutcome> BandStartSpeedUpOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::BandStartSpeedUpRequest&, const BandStartSpeedUpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BandStartSpeedUpAsyncHandler;
|
||||
typedef Outcome<Error, Model::BandStatusQueryResult> BandStatusQueryOutcome;
|
||||
typedef std::future<BandStatusQueryOutcome> BandStatusQueryOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::BandStatusQueryRequest&, const BandStatusQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BandStatusQueryAsyncHandler;
|
||||
typedef Outcome<Error, Model::BandStopSpeedUpResult> BandStopSpeedUpOutcome;
|
||||
typedef std::future<BandStopSpeedUpOutcome> BandStopSpeedUpOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::BandStopSpeedUpRequest&, const BandStopSpeedUpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BandStopSpeedUpAsyncHandler;
|
||||
typedef Outcome<Error, Model::MobileStartSpeedUpResult> MobileStartSpeedUpOutcome;
|
||||
typedef std::future<MobileStartSpeedUpOutcome> MobileStartSpeedUpOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::MobileStartSpeedUpRequest&, const MobileStartSpeedUpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MobileStartSpeedUpAsyncHandler;
|
||||
typedef Outcome<Error, Model::MobileStatusQueryResult> MobileStatusQueryOutcome;
|
||||
typedef std::future<MobileStatusQueryOutcome> MobileStatusQueryOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::MobileStatusQueryRequest&, const MobileStatusQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MobileStatusQueryAsyncHandler;
|
||||
typedef Outcome<Error, Model::MobileStopSpeedUpResult> MobileStopSpeedUpOutcome;
|
||||
typedef std::future<MobileStopSpeedUpOutcome> MobileStopSpeedUpOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::MobileStopSpeedUpRequest&, const MobileStopSpeedUpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MobileStopSpeedUpAsyncHandler;
|
||||
|
||||
SnsuapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
SnsuapiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
SnsuapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~SnsuapiClient();
|
||||
MobileStartSpeedUpOutcome mobileStartSpeedUp(const Model::MobileStartSpeedUpRequest &request)const;
|
||||
void mobileStartSpeedUpAsync(const Model::MobileStartSpeedUpRequest& request, const MobileStartSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MobileStartSpeedUpOutcomeCallable mobileStartSpeedUpCallable(const Model::MobileStartSpeedUpRequest& request) const;
|
||||
BandStopSpeedUpOutcome bandStopSpeedUp(const Model::BandStopSpeedUpRequest &request)const;
|
||||
void bandStopSpeedUpAsync(const Model::BandStopSpeedUpRequest& request, const BandStopSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BandStopSpeedUpOutcomeCallable bandStopSpeedUpCallable(const Model::BandStopSpeedUpRequest& request) const;
|
||||
BandStatusQueryOutcome bandStatusQuery(const Model::BandStatusQueryRequest &request)const;
|
||||
void bandStatusQueryAsync(const Model::BandStatusQueryRequest& request, const BandStatusQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BandStatusQueryOutcomeCallable bandStatusQueryCallable(const Model::BandStatusQueryRequest& request) const;
|
||||
MobileStatusQueryOutcome mobileStatusQuery(const Model::MobileStatusQueryRequest &request)const;
|
||||
void mobileStatusQueryAsync(const Model::MobileStatusQueryRequest& request, const MobileStatusQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MobileStatusQueryOutcomeCallable mobileStatusQueryCallable(const Model::MobileStatusQueryRequest& request) const;
|
||||
MobileStopSpeedUpOutcome mobileStopSpeedUp(const Model::MobileStopSpeedUpRequest &request)const;
|
||||
void mobileStopSpeedUpAsync(const Model::MobileStopSpeedUpRequest& request, const MobileStopSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MobileStopSpeedUpOutcomeCallable mobileStopSpeedUpCallable(const Model::MobileStopSpeedUpRequest& request) const;
|
||||
BandOfferOrderOutcome bandOfferOrder(const Model::BandOfferOrderRequest &request)const;
|
||||
void bandOfferOrderAsync(const Model::BandOfferOrderRequest& request, const BandOfferOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BandOfferOrderOutcomeCallable bandOfferOrderCallable(const Model::BandOfferOrderRequest& request) const;
|
||||
@@ -100,6 +85,21 @@ namespace AlibabaCloud
|
||||
BandStartSpeedUpOutcome bandStartSpeedUp(const Model::BandStartSpeedUpRequest &request)const;
|
||||
void bandStartSpeedUpAsync(const Model::BandStartSpeedUpRequest& request, const BandStartSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BandStartSpeedUpOutcomeCallable bandStartSpeedUpCallable(const Model::BandStartSpeedUpRequest& request) const;
|
||||
BandStatusQueryOutcome bandStatusQuery(const Model::BandStatusQueryRequest &request)const;
|
||||
void bandStatusQueryAsync(const Model::BandStatusQueryRequest& request, const BandStatusQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BandStatusQueryOutcomeCallable bandStatusQueryCallable(const Model::BandStatusQueryRequest& request) const;
|
||||
BandStopSpeedUpOutcome bandStopSpeedUp(const Model::BandStopSpeedUpRequest &request)const;
|
||||
void bandStopSpeedUpAsync(const Model::BandStopSpeedUpRequest& request, const BandStopSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BandStopSpeedUpOutcomeCallable bandStopSpeedUpCallable(const Model::BandStopSpeedUpRequest& request) const;
|
||||
MobileStartSpeedUpOutcome mobileStartSpeedUp(const Model::MobileStartSpeedUpRequest &request)const;
|
||||
void mobileStartSpeedUpAsync(const Model::MobileStartSpeedUpRequest& request, const MobileStartSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MobileStartSpeedUpOutcomeCallable mobileStartSpeedUpCallable(const Model::MobileStartSpeedUpRequest& request) const;
|
||||
MobileStatusQueryOutcome mobileStatusQuery(const Model::MobileStatusQueryRequest &request)const;
|
||||
void mobileStatusQueryAsync(const Model::MobileStatusQueryRequest& request, const MobileStatusQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MobileStatusQueryOutcomeCallable mobileStatusQueryCallable(const Model::MobileStatusQueryRequest& request) const;
|
||||
MobileStopSpeedUpOutcome mobileStopSpeedUp(const Model::MobileStopSpeedUpRequest &request)const;
|
||||
void mobileStopSpeedUpAsync(const Model::MobileStopSpeedUpRequest& request, const MobileStopSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MobileStopSpeedUpOutcomeCallable mobileStopSpeedUpCallable(const Model::MobileStopSpeedUpRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -39,22 +39,22 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getBandId()const;
|
||||
void setBandId(const std::string& bandId);
|
||||
std::string getOfferId()const;
|
||||
void setOfferId(const std::string& offerId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getBandId()const;
|
||||
void setBandId(const std::string& bandId);
|
||||
std::string getOfferId()const;
|
||||
void setOfferId(const std::string& offerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string bandId_;
|
||||
std::string offerId_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string bandId_;
|
||||
std::string offerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -41,20 +41,20 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
int getPort()const;
|
||||
void setPort(int port);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
int getPort()const;
|
||||
void setPort(int port);
|
||||
|
||||
private:
|
||||
std::string ipAddress_;
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
int port_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
int port_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,34 +39,34 @@ namespace AlibabaCloud
|
||||
void setIpAddress(const std::string& ipAddress);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
int getPort()const;
|
||||
void setPort(int port);
|
||||
long getBandId()const;
|
||||
void setBandId(long bandId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
long getTargetBandwidth()const;
|
||||
void setTargetBandwidth(long targetBandwidth);
|
||||
std::string getBandScene()const;
|
||||
void setBandScene(const std::string& bandScene);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
long getBandId()const;
|
||||
void setBandId(long bandId);
|
||||
long getTargetBandwidth()const;
|
||||
void setTargetBandwidth(long targetBandwidth);
|
||||
std::string getDirection()const;
|
||||
void setDirection(const std::string& direction);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getBandScene()const;
|
||||
void setBandScene(const std::string& bandScene);
|
||||
int getPort()const;
|
||||
void setPort(int port);
|
||||
|
||||
private:
|
||||
std::string ipAddress_;
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
int port_;
|
||||
long bandId_;
|
||||
long ownerId_;
|
||||
long targetBandwidth_;
|
||||
std::string bandScene_;
|
||||
std::string accessKeyId_;
|
||||
long bandId_;
|
||||
long targetBandwidth_;
|
||||
std::string direction_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string bandScene_;
|
||||
int port_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,19 +39,19 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getBandId()const;
|
||||
void setBandId(long bandId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
long getBandId()const;
|
||||
void setBandId(long bandId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long bandId_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
long bandId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,28 +39,28 @@ namespace AlibabaCloud
|
||||
void setIpAddress(const std::string& ipAddress);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
int getPort()const;
|
||||
void setPort(int port);
|
||||
long getBandId()const;
|
||||
void setBandId(long bandId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
long getBandId()const;
|
||||
void setBandId(long bandId);
|
||||
std::string getDirection()const;
|
||||
void setDirection(const std::string& direction);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
int getPort()const;
|
||||
void setPort(int port);
|
||||
|
||||
private:
|
||||
std::string ipAddress_;
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
int port_;
|
||||
long bandId_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
long bandId_;
|
||||
std::string direction_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
int port_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,38 +35,38 @@ namespace AlibabaCloud
|
||||
MobileStartSpeedUpRequest();
|
||||
~MobileStartSpeedUpRequest();
|
||||
|
||||
std::string getDuration()const;
|
||||
void setDuration(const std::string& duration);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getPublicIp()const;
|
||||
void setPublicIp(const std::string& publicIp);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getDuration()const;
|
||||
void setDuration(const std::string& duration);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getDestinationIpAddress()const;
|
||||
void setDestinationIpAddress(const std::string& destinationIpAddress);
|
||||
std::string getPublicIp()const;
|
||||
void setPublicIp(const std::string& publicIp);
|
||||
std::string getPublicPort()const;
|
||||
void setPublicPort(const std::string& publicPort);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getToken()const;
|
||||
void setToken(const std::string& token);
|
||||
std::string getPublicPort()const;
|
||||
void setPublicPort(const std::string& publicPort);
|
||||
|
||||
private:
|
||||
std::string duration_;
|
||||
long resourceOwnerId_;
|
||||
std::string publicIp_;
|
||||
std::string accessKeyId_;
|
||||
std::string duration_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ip_;
|
||||
std::string destinationIpAddress_;
|
||||
std::string publicIp_;
|
||||
std::string publicPort_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string token_;
|
||||
std::string publicPort_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,19 +39,19 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getCorrelationId()const;
|
||||
void setCorrelationId(const std::string& correlationId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getCorrelationId()const;
|
||||
void setCorrelationId(const std::string& correlationId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string correlationId_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string correlationId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,19 +39,19 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getCorrelationId()const;
|
||||
void setCorrelationId(const std::string& correlationId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getCorrelationId()const;
|
||||
void setCorrelationId(const std::string& correlationId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string correlationId_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string correlationId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -51,186 +51,6 @@ SnsuapiClient::SnsuapiClient(const std::string & accessKeyId, const std::string
|
||||
SnsuapiClient::~SnsuapiClient()
|
||||
{}
|
||||
|
||||
SnsuapiClient::MobileStartSpeedUpOutcome SnsuapiClient::mobileStartSpeedUp(const MobileStartSpeedUpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MobileStartSpeedUpOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MobileStartSpeedUpOutcome(MobileStartSpeedUpResult(outcome.result()));
|
||||
else
|
||||
return MobileStartSpeedUpOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SnsuapiClient::mobileStartSpeedUpAsync(const MobileStartSpeedUpRequest& request, const MobileStartSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, mobileStartSpeedUp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStartSpeedUpOutcomeCallable SnsuapiClient::mobileStartSpeedUpCallable(const MobileStartSpeedUpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MobileStartSpeedUpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->mobileStartSpeedUp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::BandStopSpeedUpOutcome SnsuapiClient::bandStopSpeedUp(const BandStopSpeedUpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BandStopSpeedUpOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BandStopSpeedUpOutcome(BandStopSpeedUpResult(outcome.result()));
|
||||
else
|
||||
return BandStopSpeedUpOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SnsuapiClient::bandStopSpeedUpAsync(const BandStopSpeedUpRequest& request, const BandStopSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bandStopSpeedUp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::BandStopSpeedUpOutcomeCallable SnsuapiClient::bandStopSpeedUpCallable(const BandStopSpeedUpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BandStopSpeedUpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bandStopSpeedUp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::BandStatusQueryOutcome SnsuapiClient::bandStatusQuery(const BandStatusQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BandStatusQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BandStatusQueryOutcome(BandStatusQueryResult(outcome.result()));
|
||||
else
|
||||
return BandStatusQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SnsuapiClient::bandStatusQueryAsync(const BandStatusQueryRequest& request, const BandStatusQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bandStatusQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::BandStatusQueryOutcomeCallable SnsuapiClient::bandStatusQueryCallable(const BandStatusQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BandStatusQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bandStatusQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStatusQueryOutcome SnsuapiClient::mobileStatusQuery(const MobileStatusQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MobileStatusQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MobileStatusQueryOutcome(MobileStatusQueryResult(outcome.result()));
|
||||
else
|
||||
return MobileStatusQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SnsuapiClient::mobileStatusQueryAsync(const MobileStatusQueryRequest& request, const MobileStatusQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, mobileStatusQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStatusQueryOutcomeCallable SnsuapiClient::mobileStatusQueryCallable(const MobileStatusQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MobileStatusQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->mobileStatusQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStopSpeedUpOutcome SnsuapiClient::mobileStopSpeedUp(const MobileStopSpeedUpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MobileStopSpeedUpOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MobileStopSpeedUpOutcome(MobileStopSpeedUpResult(outcome.result()));
|
||||
else
|
||||
return MobileStopSpeedUpOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SnsuapiClient::mobileStopSpeedUpAsync(const MobileStopSpeedUpRequest& request, const MobileStopSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, mobileStopSpeedUp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStopSpeedUpOutcomeCallable SnsuapiClient::mobileStopSpeedUpCallable(const MobileStopSpeedUpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MobileStopSpeedUpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->mobileStopSpeedUp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::BandOfferOrderOutcome SnsuapiClient::bandOfferOrder(const BandOfferOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,3 +159,183 @@ SnsuapiClient::BandStartSpeedUpOutcomeCallable SnsuapiClient::bandStartSpeedUpCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::BandStatusQueryOutcome SnsuapiClient::bandStatusQuery(const BandStatusQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BandStatusQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BandStatusQueryOutcome(BandStatusQueryResult(outcome.result()));
|
||||
else
|
||||
return BandStatusQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SnsuapiClient::bandStatusQueryAsync(const BandStatusQueryRequest& request, const BandStatusQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bandStatusQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::BandStatusQueryOutcomeCallable SnsuapiClient::bandStatusQueryCallable(const BandStatusQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BandStatusQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bandStatusQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::BandStopSpeedUpOutcome SnsuapiClient::bandStopSpeedUp(const BandStopSpeedUpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BandStopSpeedUpOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BandStopSpeedUpOutcome(BandStopSpeedUpResult(outcome.result()));
|
||||
else
|
||||
return BandStopSpeedUpOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SnsuapiClient::bandStopSpeedUpAsync(const BandStopSpeedUpRequest& request, const BandStopSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bandStopSpeedUp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::BandStopSpeedUpOutcomeCallable SnsuapiClient::bandStopSpeedUpCallable(const BandStopSpeedUpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BandStopSpeedUpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bandStopSpeedUp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStartSpeedUpOutcome SnsuapiClient::mobileStartSpeedUp(const MobileStartSpeedUpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MobileStartSpeedUpOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MobileStartSpeedUpOutcome(MobileStartSpeedUpResult(outcome.result()));
|
||||
else
|
||||
return MobileStartSpeedUpOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SnsuapiClient::mobileStartSpeedUpAsync(const MobileStartSpeedUpRequest& request, const MobileStartSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, mobileStartSpeedUp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStartSpeedUpOutcomeCallable SnsuapiClient::mobileStartSpeedUpCallable(const MobileStartSpeedUpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MobileStartSpeedUpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->mobileStartSpeedUp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStatusQueryOutcome SnsuapiClient::mobileStatusQuery(const MobileStatusQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MobileStatusQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MobileStatusQueryOutcome(MobileStatusQueryResult(outcome.result()));
|
||||
else
|
||||
return MobileStatusQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SnsuapiClient::mobileStatusQueryAsync(const MobileStatusQueryRequest& request, const MobileStatusQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, mobileStatusQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStatusQueryOutcomeCallable SnsuapiClient::mobileStatusQueryCallable(const MobileStatusQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MobileStatusQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->mobileStatusQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStopSpeedUpOutcome SnsuapiClient::mobileStopSpeedUp(const MobileStopSpeedUpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MobileStopSpeedUpOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MobileStopSpeedUpOutcome(MobileStopSpeedUpResult(outcome.result()));
|
||||
else
|
||||
return MobileStopSpeedUpOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SnsuapiClient::mobileStopSpeedUpAsync(const MobileStopSpeedUpRequest& request, const MobileStopSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, mobileStopSpeedUp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStopSpeedUpOutcomeCallable SnsuapiClient::mobileStopSpeedUpCallable(const MobileStopSpeedUpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MobileStopSpeedUpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->mobileStopSpeedUp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user