diff --git a/CHANGELOG b/CHANGELOG index b47344cc5..a7c016335 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-03-15 Version: 1.34.33 +1, Update Dependency + 2019-03-15 Version: 1.34.32 1, Update Dependency diff --git a/CMakeLists.txt b/CMakeLists.txt index 0db2dc7d1..91896d110 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,4 +101,5 @@ add_subdirectory(gpdb) add_subdirectory(sas-api) add_subdirectory(cr) add_subdirectory(finmall) -add_subdirectory(openanalytics) \ No newline at end of file +add_subdirectory(openanalytics) +add_subdirectory(snsuapi) \ No newline at end of file diff --git a/VERSION b/VERSION index d29e27853..a1adcb58b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.34.32 \ No newline at end of file +1.34.33 \ No newline at end of file diff --git a/snsuapi/CMakeLists.txt b/snsuapi/CMakeLists.txt new file mode 100644 index 000000000..3da4c1374 --- /dev/null +++ b/snsuapi/CMakeLists.txt @@ -0,0 +1,114 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(snsuapi_public_header + include/alibabacloud/snsuapi/SnsuapiClient.h + 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/BandOfferOrderRequest.h + include/alibabacloud/snsuapi/model/BandOfferOrderResult.h + include/alibabacloud/snsuapi/model/MobileStopSpeedUpRequest.h + include/alibabacloud/snsuapi/model/MobileStopSpeedUpResult.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 ) + +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/BandOfferOrderRequest.cc + src/model/BandOfferOrderResult.cc + src/model/MobileStopSpeedUpRequest.cc + src/model/MobileStopSpeedUpResult.cc + src/model/BandPrecheckRequest.cc + src/model/BandPrecheckResult.cc + src/model/BandStartSpeedUpRequest.cc + src/model/BandStartSpeedUpResult.cc ) + +add_library(snsuapi ${LIB_TYPE} + ${snsuapi_public_header} + ${snsuapi_public_header_model} + ${snsuapi_src}) + +set_target_properties(snsuapi + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}snsuapi + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(snsuapi + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_SNSUAPI_LIBRARY) +endif() + +target_include_directories(snsuapi + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(snsuapi + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(snsuapi + jsoncpp) + target_include_directories(snsuapi + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(snsuapi + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(snsuapi + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(snsuapi + PRIVATE /usr/include/jsoncpp) + target_link_libraries(snsuapi + jsoncpp) +endif() + +install(FILES ${snsuapi_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/snsuapi) +install(FILES ${snsuapi_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/snsuapi/model) +install(TARGETS snsuapi + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/SnsuapiClient.h b/snsuapi/include/alibabacloud/snsuapi/SnsuapiClient.h new file mode 100644 index 000000000..7726d3e49 --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/SnsuapiClient.h @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_SNSUAPICLIENT_H_ +#define ALIBABACLOUD_SNSUAPI_SNSUAPICLIENT_H_ + +#include +#include +#include +#include +#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/BandOfferOrderRequest.h" +#include "model/BandOfferOrderResult.h" +#include "model/MobileStopSpeedUpRequest.h" +#include "model/MobileStopSpeedUpResult.h" +#include "model/BandPrecheckRequest.h" +#include "model/BandPrecheckResult.h" +#include "model/BandStartSpeedUpRequest.h" +#include "model/BandStartSpeedUpResult.h" + + +namespace AlibabaCloud +{ + namespace Snsuapi + { + class ALIBABACLOUD_SNSUAPI_EXPORT SnsuapiClient : public RpcServiceClient + { + public: + typedef Outcome MobileStartSpeedUpOutcome; + typedef std::future MobileStartSpeedUpOutcomeCallable; + typedef std::function&)> MobileStartSpeedUpAsyncHandler; + typedef Outcome BandStopSpeedUpOutcome; + typedef std::future BandStopSpeedUpOutcomeCallable; + typedef std::function&)> BandStopSpeedUpAsyncHandler; + typedef Outcome BandStatusQueryOutcome; + typedef std::future BandStatusQueryOutcomeCallable; + typedef std::function&)> BandStatusQueryAsyncHandler; + typedef Outcome MobileStatusQueryOutcome; + typedef std::future MobileStatusQueryOutcomeCallable; + typedef std::function&)> MobileStatusQueryAsyncHandler; + typedef Outcome BandOfferOrderOutcome; + typedef std::future BandOfferOrderOutcomeCallable; + typedef std::function&)> BandOfferOrderAsyncHandler; + typedef Outcome MobileStopSpeedUpOutcome; + typedef std::future MobileStopSpeedUpOutcomeCallable; + typedef std::function&)> MobileStopSpeedUpAsyncHandler; + typedef Outcome BandPrecheckOutcome; + typedef std::future BandPrecheckOutcomeCallable; + typedef std::function&)> BandPrecheckAsyncHandler; + typedef Outcome BandStartSpeedUpOutcome; + typedef std::future BandStartSpeedUpOutcomeCallable; + typedef std::function&)> BandStartSpeedUpAsyncHandler; + + SnsuapiClient(const Credentials &credentials, const ClientConfiguration &configuration); + SnsuapiClient(const std::shared_ptr &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& 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& 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& 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& context = nullptr) const; + MobileStatusQueryOutcomeCallable mobileStatusQueryCallable(const Model::MobileStatusQueryRequest& request) const; + BandOfferOrderOutcome bandOfferOrder(const Model::BandOfferOrderRequest &request)const; + void bandOfferOrderAsync(const Model::BandOfferOrderRequest& request, const BandOfferOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BandOfferOrderOutcomeCallable bandOfferOrderCallable(const Model::BandOfferOrderRequest& request) const; + MobileStopSpeedUpOutcome mobileStopSpeedUp(const Model::MobileStopSpeedUpRequest &request)const; + void mobileStopSpeedUpAsync(const Model::MobileStopSpeedUpRequest& request, const MobileStopSpeedUpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MobileStopSpeedUpOutcomeCallable mobileStopSpeedUpCallable(const Model::MobileStopSpeedUpRequest& request) const; + BandPrecheckOutcome bandPrecheck(const Model::BandPrecheckRequest &request)const; + void bandPrecheckAsync(const Model::BandPrecheckRequest& request, const BandPrecheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BandPrecheckOutcomeCallable bandPrecheckCallable(const Model::BandPrecheckRequest& request) const; + BandStartSpeedUpOutcome bandStartSpeedUp(const Model::BandStartSpeedUpRequest &request)const; + void bandStartSpeedUpAsync(const Model::BandStartSpeedUpRequest& request, const BandStartSpeedUpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BandStartSpeedUpOutcomeCallable bandStartSpeedUpCallable(const Model::BandStartSpeedUpRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_SNSUAPI_SNSUAPICLIENT_H_ diff --git a/snsuapi/include/alibabacloud/snsuapi/SnsuapiExport.h b/snsuapi/include/alibabacloud/snsuapi/SnsuapiExport.h new file mode 100644 index 000000000..417595253 --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/SnsuapiExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_SNSUAPIEXPORT_H_ +#define ALIBABACLOUD_SNSUAPI_SNSUAPIEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_SNSUAPI_LIBRARY) +# define ALIBABACLOUD_SNSUAPI_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_SNSUAPI_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_SNSUAPI_EXPORT +#endif + +#endif // !ALIBABACLOUD_SNSUAPI_SNSUAPIEXPORT_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/BandOfferOrderRequest.h b/snsuapi/include/alibabacloud/snsuapi/model/BandOfferOrderRequest.h new file mode 100644 index 000000000..55c871614 --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/BandOfferOrderRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_BANDOFFERORDERREQUEST_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_BANDOFFERORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT BandOfferOrderRequest : public RpcServiceRequest + { + + public: + BandOfferOrderRequest(); + ~BandOfferOrderRequest(); + + long getResourceOwnerId()const; + 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); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string bandId_; + std::string offerId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_BANDOFFERORDERREQUEST_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/BandOfferOrderResult.h b/snsuapi/include/alibabacloud/snsuapi/model/BandOfferOrderResult.h new file mode 100644 index 000000000..28f21908a --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/BandOfferOrderResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_BANDOFFERORDERRESULT_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_BANDOFFERORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT BandOfferOrderResult : public ServiceResult + { + public: + struct ResultModule + { + long lxOrderId; + }; + + + BandOfferOrderResult(); + explicit BandOfferOrderResult(const std::string &payload); + ~BandOfferOrderResult(); + ResultModule getResultModule()const; + std::string getResultMessage()const; + std::string getResultCode()const; + + protected: + void parse(const std::string &payload); + private: + ResultModule resultModule_; + std::string resultMessage_; + std::string resultCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_BANDOFFERORDERRESULT_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/BandPrecheckRequest.h b/snsuapi/include/alibabacloud/snsuapi/model/BandPrecheckRequest.h new file mode 100644 index 000000000..868a7d225 --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/BandPrecheckRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_BANDPRECHECKREQUEST_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_BANDPRECHECKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT BandPrecheckRequest : public RpcServiceRequest + { + + public: + BandPrecheckRequest(); + ~BandPrecheckRequest(); + + std::string getIpAddress()const; + 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 getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string ipAddress_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + int port_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_BANDPRECHECKREQUEST_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/BandPrecheckResult.h b/snsuapi/include/alibabacloud/snsuapi/model/BandPrecheckResult.h new file mode 100644 index 000000000..648879373 --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/BandPrecheckResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_BANDPRECHECKRESULT_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_BANDPRECHECKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT BandPrecheckResult : public ServiceResult + { + public: + struct ResultModule + { + struct BandOfferListItem + { + long offerId; + int bandwidth; + long duration; + std::string direction; + }; + std::vector bandOfferList; + long bandId; + int downloadBandwidth; + int uploadBandwidth; + }; + + + BandPrecheckResult(); + explicit BandPrecheckResult(const std::string &payload); + ~BandPrecheckResult(); + ResultModule getResultModule()const; + std::string getResultMessage()const; + std::string getResultCode()const; + + protected: + void parse(const std::string &payload); + private: + ResultModule resultModule_; + std::string resultMessage_; + std::string resultCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_BANDPRECHECKRESULT_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/BandStartSpeedUpRequest.h b/snsuapi/include/alibabacloud/snsuapi/model/BandStartSpeedUpRequest.h new file mode 100644 index 000000000..d029a76fa --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/BandStartSpeedUpRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_BANDSTARTSPEEDUPREQUEST_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_BANDSTARTSPEEDUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT BandStartSpeedUpRequest : public RpcServiceRequest + { + + public: + BandStartSpeedUpRequest(); + ~BandStartSpeedUpRequest(); + + std::string getIpAddress()const; + 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); + std::string getDirection()const; + void setDirection(const std::string& direction); + + private: + std::string ipAddress_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + int port_; + long bandId_; + long ownerId_; + long targetBandwidth_; + std::string bandScene_; + std::string accessKeyId_; + std::string direction_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_BANDSTARTSPEEDUPREQUEST_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/BandStartSpeedUpResult.h b/snsuapi/include/alibabacloud/snsuapi/model/BandStartSpeedUpResult.h new file mode 100644 index 000000000..72e8ba890 --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/BandStartSpeedUpResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_BANDSTARTSPEEDUPRESULT_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_BANDSTARTSPEEDUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT BandStartSpeedUpResult : public ServiceResult + { + public: + + + BandStartSpeedUpResult(); + explicit BandStartSpeedUpResult(const std::string &payload); + ~BandStartSpeedUpResult(); + bool getResultModule()const; + std::string getResultMessage()const; + std::string getResultCode()const; + + protected: + void parse(const std::string &payload); + private: + bool resultModule_; + std::string resultMessage_; + std::string resultCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_BANDSTARTSPEEDUPRESULT_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/BandStatusQueryRequest.h b/snsuapi/include/alibabacloud/snsuapi/model/BandStatusQueryRequest.h new file mode 100644 index 000000000..78d77d09c --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/BandStatusQueryRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_BANDSTATUSQUERYREQUEST_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_BANDSTATUSQUERYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT BandStatusQueryRequest : public RpcServiceRequest + { + + public: + BandStatusQueryRequest(); + ~BandStatusQueryRequest(); + + long getResourceOwnerId()const; + 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); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long bandId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_BANDSTATUSQUERYREQUEST_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/BandStatusQueryResult.h b/snsuapi/include/alibabacloud/snsuapi/model/BandStatusQueryResult.h new file mode 100644 index 000000000..dbe1a859c --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/BandStatusQueryResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_BANDSTATUSQUERYRESULT_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_BANDSTATUSQUERYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT BandStatusQueryResult : public ServiceResult + { + public: + struct ResultModule + { + int uploadTarget; + int downloadTarget; + }; + + + BandStatusQueryResult(); + explicit BandStatusQueryResult(const std::string &payload); + ~BandStatusQueryResult(); + ResultModule getResultModule()const; + std::string getResultMessage()const; + std::string getResultCode()const; + + protected: + void parse(const std::string &payload); + private: + ResultModule resultModule_; + std::string resultMessage_; + std::string resultCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_BANDSTATUSQUERYRESULT_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/BandStopSpeedUpRequest.h b/snsuapi/include/alibabacloud/snsuapi/model/BandStopSpeedUpRequest.h new file mode 100644 index 000000000..66c981526 --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/BandStopSpeedUpRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_BANDSTOPSPEEDUPREQUEST_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_BANDSTOPSPEEDUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT BandStopSpeedUpRequest : public RpcServiceRequest + { + + public: + BandStopSpeedUpRequest(); + ~BandStopSpeedUpRequest(); + + std::string getIpAddress()const; + 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); + std::string getDirection()const; + void setDirection(const std::string& direction); + + private: + std::string ipAddress_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + int port_; + long bandId_; + long ownerId_; + std::string accessKeyId_; + std::string direction_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_BANDSTOPSPEEDUPREQUEST_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/BandStopSpeedUpResult.h b/snsuapi/include/alibabacloud/snsuapi/model/BandStopSpeedUpResult.h new file mode 100644 index 000000000..9466a17e0 --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/BandStopSpeedUpResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_BANDSTOPSPEEDUPRESULT_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_BANDSTOPSPEEDUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT BandStopSpeedUpResult : public ServiceResult + { + public: + + + BandStopSpeedUpResult(); + explicit BandStopSpeedUpResult(const std::string &payload); + ~BandStopSpeedUpResult(); + bool getResultModule()const; + std::string getResultMessage()const; + std::string getResultCode()const; + + protected: + void parse(const std::string &payload); + private: + bool resultModule_; + std::string resultMessage_; + std::string resultCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_BANDSTOPSPEEDUPRESULT_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/MobileStartSpeedUpRequest.h b/snsuapi/include/alibabacloud/snsuapi/model/MobileStartSpeedUpRequest.h new file mode 100644 index 000000000..f4e483c4c --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/MobileStartSpeedUpRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTARTSPEEDUPREQUEST_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTARTSPEEDUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT MobileStartSpeedUpRequest : public RpcServiceRequest + { + + public: + MobileStartSpeedUpRequest(); + ~MobileStartSpeedUpRequest(); + + std::string getDuration()const; + void setDuration(const std::string& duration); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + 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); + + private: + std::string duration_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ip_; + std::string destinationIpAddress_; + std::string publicIp_; + std::string publicPort_; + long ownerId_; + std::string accessKeyId_; + std::string token_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTARTSPEEDUPREQUEST_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/MobileStartSpeedUpResult.h b/snsuapi/include/alibabacloud/snsuapi/model/MobileStartSpeedUpResult.h new file mode 100644 index 000000000..94383b26d --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/MobileStartSpeedUpResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTARTSPEEDUPRESULT_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTARTSPEEDUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT MobileStartSpeedUpResult : public ServiceResult + { + public: + + + MobileStartSpeedUpResult(); + explicit MobileStartSpeedUpResult(const std::string &payload); + ~MobileStartSpeedUpResult(); + std::string getResultModule()const; + std::string getResultMessage()const; + std::string getResultCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string resultModule_; + std::string resultMessage_; + std::string resultCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTARTSPEEDUPRESULT_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/MobileStatusQueryRequest.h b/snsuapi/include/alibabacloud/snsuapi/model/MobileStatusQueryRequest.h new file mode 100644 index 000000000..2cea4d5db --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/MobileStatusQueryRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTATUSQUERYREQUEST_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTATUSQUERYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT MobileStatusQueryRequest : public RpcServiceRequest + { + + public: + MobileStatusQueryRequest(); + ~MobileStatusQueryRequest(); + + long getResourceOwnerId()const; + 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); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string correlationId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTATUSQUERYREQUEST_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/MobileStatusQueryResult.h b/snsuapi/include/alibabacloud/snsuapi/model/MobileStatusQueryResult.h new file mode 100644 index 000000000..646442005 --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/MobileStatusQueryResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTATUSQUERYRESULT_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTATUSQUERYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT MobileStatusQueryResult : public ServiceResult + { + public: + + + MobileStatusQueryResult(); + explicit MobileStatusQueryResult(const std::string &payload); + ~MobileStatusQueryResult(); + bool getResultModule()const; + std::string getResultMessage()const; + std::string getResultCode()const; + + protected: + void parse(const std::string &payload); + private: + bool resultModule_; + std::string resultMessage_; + std::string resultCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTATUSQUERYRESULT_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/MobileStopSpeedUpRequest.h b/snsuapi/include/alibabacloud/snsuapi/model/MobileStopSpeedUpRequest.h new file mode 100644 index 000000000..2ae07a2b8 --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/MobileStopSpeedUpRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTOPSPEEDUPREQUEST_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTOPSPEEDUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT MobileStopSpeedUpRequest : public RpcServiceRequest + { + + public: + MobileStopSpeedUpRequest(); + ~MobileStopSpeedUpRequest(); + + long getResourceOwnerId()const; + 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); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string correlationId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTOPSPEEDUPREQUEST_H_ \ No newline at end of file diff --git a/snsuapi/include/alibabacloud/snsuapi/model/MobileStopSpeedUpResult.h b/snsuapi/include/alibabacloud/snsuapi/model/MobileStopSpeedUpResult.h new file mode 100644 index 000000000..ddcc38925 --- /dev/null +++ b/snsuapi/include/alibabacloud/snsuapi/model/MobileStopSpeedUpResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTOPSPEEDUPRESULT_H_ +#define ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTOPSPEEDUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Snsuapi + { + namespace Model + { + class ALIBABACLOUD_SNSUAPI_EXPORT MobileStopSpeedUpResult : public ServiceResult + { + public: + + + MobileStopSpeedUpResult(); + explicit MobileStopSpeedUpResult(const std::string &payload); + ~MobileStopSpeedUpResult(); + bool getResultModule()const; + std::string getResultMessage()const; + std::string getResultCode()const; + + protected: + void parse(const std::string &payload); + private: + bool resultModule_; + std::string resultMessage_; + std::string resultCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SNSUAPI_MODEL_MOBILESTOPSPEEDUPRESULT_H_ \ No newline at end of file diff --git a/snsuapi/src/SnsuapiClient.cc b/snsuapi/src/SnsuapiClient.cc new file mode 100644 index 000000000..27bac0ced --- /dev/null +++ b/snsuapi/src/SnsuapiClient.cc @@ -0,0 +1,341 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Snsuapi; +using namespace AlibabaCloud::Snsuapi::Model; + +namespace +{ + const std::string SERVICE_NAME = "Snsuapi"; +} + +SnsuapiClient::SnsuapiClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "snsuapi"); +} + +SnsuapiClient::SnsuapiClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "snsuapi"); +} + +SnsuapiClient::SnsuapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "snsuapi"); +} + +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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [this, request]() + { + return this->mobileStatusQuery(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SnsuapiClient::BandOfferOrderOutcome SnsuapiClient::bandOfferOrder(const BandOfferOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BandOfferOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BandOfferOrderOutcome(BandOfferOrderResult(outcome.result())); + else + return BandOfferOrderOutcome(outcome.error()); +} + +void SnsuapiClient::bandOfferOrderAsync(const BandOfferOrderRequest& request, const BandOfferOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bandOfferOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SnsuapiClient::BandOfferOrderOutcomeCallable SnsuapiClient::bandOfferOrderCallable(const BandOfferOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bandOfferOrder(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& 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>( + [this, request]() + { + return this->mobileStopSpeedUp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SnsuapiClient::BandPrecheckOutcome SnsuapiClient::bandPrecheck(const BandPrecheckRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BandPrecheckOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BandPrecheckOutcome(BandPrecheckResult(outcome.result())); + else + return BandPrecheckOutcome(outcome.error()); +} + +void SnsuapiClient::bandPrecheckAsync(const BandPrecheckRequest& request, const BandPrecheckAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bandPrecheck(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SnsuapiClient::BandPrecheckOutcomeCallable SnsuapiClient::bandPrecheckCallable(const BandPrecheckRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bandPrecheck(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SnsuapiClient::BandStartSpeedUpOutcome SnsuapiClient::bandStartSpeedUp(const BandStartSpeedUpRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BandStartSpeedUpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BandStartSpeedUpOutcome(BandStartSpeedUpResult(outcome.result())); + else + return BandStartSpeedUpOutcome(outcome.error()); +} + +void SnsuapiClient::bandStartSpeedUpAsync(const BandStartSpeedUpRequest& request, const BandStartSpeedUpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bandStartSpeedUp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SnsuapiClient::BandStartSpeedUpOutcomeCallable SnsuapiClient::bandStartSpeedUpCallable(const BandStartSpeedUpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bandStartSpeedUp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/snsuapi/src/model/BandOfferOrderRequest.cc b/snsuapi/src/model/BandOfferOrderRequest.cc new file mode 100644 index 000000000..ad8b8b489 --- /dev/null +++ b/snsuapi/src/model/BandOfferOrderRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Snsuapi::Model::BandOfferOrderRequest; + +BandOfferOrderRequest::BandOfferOrderRequest() : + RpcServiceRequest("snsuapi", "2018-07-09", "BandOfferOrder") +{} + +BandOfferOrderRequest::~BandOfferOrderRequest() +{} + +long BandOfferOrderRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BandOfferOrderRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string BandOfferOrderRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BandOfferOrderRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string BandOfferOrderRequest::getBandId()const +{ + return bandId_; +} + +void BandOfferOrderRequest::setBandId(const std::string& bandId) +{ + bandId_ = bandId; + setParameter("BandId", bandId); +} + +std::string BandOfferOrderRequest::getOfferId()const +{ + return offerId_; +} + +void BandOfferOrderRequest::setOfferId(const std::string& offerId) +{ + offerId_ = offerId; + setParameter("OfferId", offerId); +} + +long BandOfferOrderRequest::getOwnerId()const +{ + return ownerId_; +} + +void BandOfferOrderRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string BandOfferOrderRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void BandOfferOrderRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/snsuapi/src/model/BandOfferOrderResult.cc b/snsuapi/src/model/BandOfferOrderResult.cc new file mode 100644 index 000000000..8e4d92021 --- /dev/null +++ b/snsuapi/src/model/BandOfferOrderResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Snsuapi; +using namespace AlibabaCloud::Snsuapi::Model; + +BandOfferOrderResult::BandOfferOrderResult() : + ServiceResult() +{} + +BandOfferOrderResult::BandOfferOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BandOfferOrderResult::~BandOfferOrderResult() +{} + +void BandOfferOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto resultModuleNode = value["ResultModule"]; + if(!resultModuleNode["LxOrderId"].isNull()) + resultModule_.lxOrderId = std::stol(resultModuleNode["LxOrderId"].asString()); + if(!value["ResultCode"].isNull()) + resultCode_ = value["ResultCode"].asString(); + if(!value["ResultMessage"].isNull()) + resultMessage_ = value["ResultMessage"].asString(); + +} + +BandOfferOrderResult::ResultModule BandOfferOrderResult::getResultModule()const +{ + return resultModule_; +} + +std::string BandOfferOrderResult::getResultMessage()const +{ + return resultMessage_; +} + +std::string BandOfferOrderResult::getResultCode()const +{ + return resultCode_; +} + diff --git a/snsuapi/src/model/BandPrecheckRequest.cc b/snsuapi/src/model/BandPrecheckRequest.cc new file mode 100644 index 000000000..c2da1207c --- /dev/null +++ b/snsuapi/src/model/BandPrecheckRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Snsuapi::Model::BandPrecheckRequest; + +BandPrecheckRequest::BandPrecheckRequest() : + RpcServiceRequest("snsuapi", "2018-07-09", "BandPrecheck") +{} + +BandPrecheckRequest::~BandPrecheckRequest() +{} + +std::string BandPrecheckRequest::getIpAddress()const +{ + return ipAddress_; +} + +void BandPrecheckRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long BandPrecheckRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BandPrecheckRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string BandPrecheckRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BandPrecheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int BandPrecheckRequest::getPort()const +{ + return port_; +} + +void BandPrecheckRequest::setPort(int port) +{ + port_ = port; + setParameter("Port", std::to_string(port)); +} + +long BandPrecheckRequest::getOwnerId()const +{ + return ownerId_; +} + +void BandPrecheckRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string BandPrecheckRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void BandPrecheckRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/snsuapi/src/model/BandPrecheckResult.cc b/snsuapi/src/model/BandPrecheckResult.cc new file mode 100644 index 000000000..f21d22daa --- /dev/null +++ b/snsuapi/src/model/BandPrecheckResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Snsuapi; +using namespace AlibabaCloud::Snsuapi::Model; + +BandPrecheckResult::BandPrecheckResult() : + ServiceResult() +{} + +BandPrecheckResult::BandPrecheckResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BandPrecheckResult::~BandPrecheckResult() +{} + +void BandPrecheckResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto resultModuleNode = value["ResultModule"]; + if(!resultModuleNode["BandId"].isNull()) + resultModule_.bandId = std::stol(resultModuleNode["BandId"].asString()); + if(!resultModuleNode["UploadBandwidth"].isNull()) + resultModule_.uploadBandwidth = std::stoi(resultModuleNode["UploadBandwidth"].asString()); + if(!resultModuleNode["DownloadBandwidth"].isNull()) + resultModule_.downloadBandwidth = std::stoi(resultModuleNode["DownloadBandwidth"].asString()); + auto allBandOfferList = value["BandOfferList"]["BandOfferListItem"]; + for (auto value : allBandOfferList) + { + ResultModule::BandOfferListItem bandOfferListItemObject; + if(!value["OfferId"].isNull()) + bandOfferListItemObject.offerId = std::stol(value["OfferId"].asString()); + if(!value["Bandwidth"].isNull()) + bandOfferListItemObject.bandwidth = std::stoi(value["Bandwidth"].asString()); + if(!value["Duration"].isNull()) + bandOfferListItemObject.duration = std::stol(value["Duration"].asString()); + if(!value["Direction"].isNull()) + bandOfferListItemObject.direction = value["Direction"].asString(); + resultModule_.bandOfferList.push_back(bandOfferListItemObject); + } + if(!value["ResultCode"].isNull()) + resultCode_ = value["ResultCode"].asString(); + if(!value["ResultMessage"].isNull()) + resultMessage_ = value["ResultMessage"].asString(); + +} + +BandPrecheckResult::ResultModule BandPrecheckResult::getResultModule()const +{ + return resultModule_; +} + +std::string BandPrecheckResult::getResultMessage()const +{ + return resultMessage_; +} + +std::string BandPrecheckResult::getResultCode()const +{ + return resultCode_; +} + diff --git a/snsuapi/src/model/BandStartSpeedUpRequest.cc b/snsuapi/src/model/BandStartSpeedUpRequest.cc new file mode 100644 index 000000000..ba273833a --- /dev/null +++ b/snsuapi/src/model/BandStartSpeedUpRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Snsuapi::Model::BandStartSpeedUpRequest; + +BandStartSpeedUpRequest::BandStartSpeedUpRequest() : + RpcServiceRequest("snsuapi", "2018-07-09", "BandStartSpeedUp") +{} + +BandStartSpeedUpRequest::~BandStartSpeedUpRequest() +{} + +std::string BandStartSpeedUpRequest::getIpAddress()const +{ + return ipAddress_; +} + +void BandStartSpeedUpRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long BandStartSpeedUpRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BandStartSpeedUpRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string BandStartSpeedUpRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BandStartSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int BandStartSpeedUpRequest::getPort()const +{ + return port_; +} + +void BandStartSpeedUpRequest::setPort(int port) +{ + port_ = port; + setParameter("Port", std::to_string(port)); +} + +long BandStartSpeedUpRequest::getBandId()const +{ + return bandId_; +} + +void BandStartSpeedUpRequest::setBandId(long bandId) +{ + bandId_ = bandId; + setParameter("BandId", std::to_string(bandId)); +} + +long BandStartSpeedUpRequest::getOwnerId()const +{ + return ownerId_; +} + +void BandStartSpeedUpRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +long BandStartSpeedUpRequest::getTargetBandwidth()const +{ + return targetBandwidth_; +} + +void BandStartSpeedUpRequest::setTargetBandwidth(long targetBandwidth) +{ + targetBandwidth_ = targetBandwidth; + setParameter("TargetBandwidth", std::to_string(targetBandwidth)); +} + +std::string BandStartSpeedUpRequest::getBandScene()const +{ + return bandScene_; +} + +void BandStartSpeedUpRequest::setBandScene(const std::string& bandScene) +{ + bandScene_ = bandScene; + setParameter("BandScene", bandScene); +} + +std::string BandStartSpeedUpRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void BandStartSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string BandStartSpeedUpRequest::getDirection()const +{ + return direction_; +} + +void BandStartSpeedUpRequest::setDirection(const std::string& direction) +{ + direction_ = direction; + setParameter("Direction", direction); +} + diff --git a/snsuapi/src/model/BandStartSpeedUpResult.cc b/snsuapi/src/model/BandStartSpeedUpResult.cc new file mode 100644 index 000000000..e1d8b0ff5 --- /dev/null +++ b/snsuapi/src/model/BandStartSpeedUpResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Snsuapi; +using namespace AlibabaCloud::Snsuapi::Model; + +BandStartSpeedUpResult::BandStartSpeedUpResult() : + ServiceResult() +{} + +BandStartSpeedUpResult::BandStartSpeedUpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BandStartSpeedUpResult::~BandStartSpeedUpResult() +{} + +void BandStartSpeedUpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ResultCode"].isNull()) + resultCode_ = value["ResultCode"].asString(); + if(!value["ResultMessage"].isNull()) + resultMessage_ = value["ResultMessage"].asString(); + if(!value["ResultModule"].isNull()) + resultModule_ = value["ResultModule"].asString() == "true"; + +} + +bool BandStartSpeedUpResult::getResultModule()const +{ + return resultModule_; +} + +std::string BandStartSpeedUpResult::getResultMessage()const +{ + return resultMessage_; +} + +std::string BandStartSpeedUpResult::getResultCode()const +{ + return resultCode_; +} + diff --git a/snsuapi/src/model/BandStatusQueryRequest.cc b/snsuapi/src/model/BandStatusQueryRequest.cc new file mode 100644 index 000000000..f0103c97b --- /dev/null +++ b/snsuapi/src/model/BandStatusQueryRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Snsuapi::Model::BandStatusQueryRequest; + +BandStatusQueryRequest::BandStatusQueryRequest() : + RpcServiceRequest("snsuapi", "2018-07-09", "BandStatusQuery") +{} + +BandStatusQueryRequest::~BandStatusQueryRequest() +{} + +long BandStatusQueryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BandStatusQueryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string BandStatusQueryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BandStatusQueryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long BandStatusQueryRequest::getBandId()const +{ + return bandId_; +} + +void BandStatusQueryRequest::setBandId(long bandId) +{ + bandId_ = bandId; + setParameter("BandId", std::to_string(bandId)); +} + +long BandStatusQueryRequest::getOwnerId()const +{ + return ownerId_; +} + +void BandStatusQueryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string BandStatusQueryRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void BandStatusQueryRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/snsuapi/src/model/BandStatusQueryResult.cc b/snsuapi/src/model/BandStatusQueryResult.cc new file mode 100644 index 000000000..603678bc1 --- /dev/null +++ b/snsuapi/src/model/BandStatusQueryResult.cc @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Snsuapi; +using namespace AlibabaCloud::Snsuapi::Model; + +BandStatusQueryResult::BandStatusQueryResult() : + ServiceResult() +{} + +BandStatusQueryResult::BandStatusQueryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BandStatusQueryResult::~BandStatusQueryResult() +{} + +void BandStatusQueryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto resultModuleNode = value["ResultModule"]; + if(!resultModuleNode["DownloadTarget"].isNull()) + resultModule_.downloadTarget = std::stoi(resultModuleNode["DownloadTarget"].asString()); + if(!resultModuleNode["UploadTarget"].isNull()) + resultModule_.uploadTarget = std::stoi(resultModuleNode["UploadTarget"].asString()); + if(!value["ResultCode"].isNull()) + resultCode_ = value["ResultCode"].asString(); + if(!value["ResultMessage"].isNull()) + resultMessage_ = value["ResultMessage"].asString(); + +} + +BandStatusQueryResult::ResultModule BandStatusQueryResult::getResultModule()const +{ + return resultModule_; +} + +std::string BandStatusQueryResult::getResultMessage()const +{ + return resultMessage_; +} + +std::string BandStatusQueryResult::getResultCode()const +{ + return resultCode_; +} + diff --git a/snsuapi/src/model/BandStopSpeedUpRequest.cc b/snsuapi/src/model/BandStopSpeedUpRequest.cc new file mode 100644 index 000000000..9aa7e5410 --- /dev/null +++ b/snsuapi/src/model/BandStopSpeedUpRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Snsuapi::Model::BandStopSpeedUpRequest; + +BandStopSpeedUpRequest::BandStopSpeedUpRequest() : + RpcServiceRequest("snsuapi", "2018-07-09", "BandStopSpeedUp") +{} + +BandStopSpeedUpRequest::~BandStopSpeedUpRequest() +{} + +std::string BandStopSpeedUpRequest::getIpAddress()const +{ + return ipAddress_; +} + +void BandStopSpeedUpRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long BandStopSpeedUpRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BandStopSpeedUpRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string BandStopSpeedUpRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BandStopSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int BandStopSpeedUpRequest::getPort()const +{ + return port_; +} + +void BandStopSpeedUpRequest::setPort(int port) +{ + port_ = port; + setParameter("Port", std::to_string(port)); +} + +long BandStopSpeedUpRequest::getBandId()const +{ + return bandId_; +} + +void BandStopSpeedUpRequest::setBandId(long bandId) +{ + bandId_ = bandId; + setParameter("BandId", std::to_string(bandId)); +} + +long BandStopSpeedUpRequest::getOwnerId()const +{ + return ownerId_; +} + +void BandStopSpeedUpRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string BandStopSpeedUpRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void BandStopSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string BandStopSpeedUpRequest::getDirection()const +{ + return direction_; +} + +void BandStopSpeedUpRequest::setDirection(const std::string& direction) +{ + direction_ = direction; + setParameter("Direction", direction); +} + diff --git a/snsuapi/src/model/BandStopSpeedUpResult.cc b/snsuapi/src/model/BandStopSpeedUpResult.cc new file mode 100644 index 000000000..b0d0cfc03 --- /dev/null +++ b/snsuapi/src/model/BandStopSpeedUpResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Snsuapi; +using namespace AlibabaCloud::Snsuapi::Model; + +BandStopSpeedUpResult::BandStopSpeedUpResult() : + ServiceResult() +{} + +BandStopSpeedUpResult::BandStopSpeedUpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BandStopSpeedUpResult::~BandStopSpeedUpResult() +{} + +void BandStopSpeedUpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ResultCode"].isNull()) + resultCode_ = value["ResultCode"].asString(); + if(!value["ResultMessage"].isNull()) + resultMessage_ = value["ResultMessage"].asString(); + if(!value["ResultModule"].isNull()) + resultModule_ = value["ResultModule"].asString() == "true"; + +} + +bool BandStopSpeedUpResult::getResultModule()const +{ + return resultModule_; +} + +std::string BandStopSpeedUpResult::getResultMessage()const +{ + return resultMessage_; +} + +std::string BandStopSpeedUpResult::getResultCode()const +{ + return resultCode_; +} + diff --git a/snsuapi/src/model/MobileStartSpeedUpRequest.cc b/snsuapi/src/model/MobileStartSpeedUpRequest.cc new file mode 100644 index 000000000..105624ab7 --- /dev/null +++ b/snsuapi/src/model/MobileStartSpeedUpRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Snsuapi::Model::MobileStartSpeedUpRequest; + +MobileStartSpeedUpRequest::MobileStartSpeedUpRequest() : + RpcServiceRequest("snsuapi", "2018-07-09", "MobileStartSpeedUp") +{} + +MobileStartSpeedUpRequest::~MobileStartSpeedUpRequest() +{} + +std::string MobileStartSpeedUpRequest::getDuration()const +{ + return duration_; +} + +void MobileStartSpeedUpRequest::setDuration(const std::string& duration) +{ + duration_ = duration; + setParameter("Duration", duration); +} + +long MobileStartSpeedUpRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void MobileStartSpeedUpRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string MobileStartSpeedUpRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void MobileStartSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string MobileStartSpeedUpRequest::getIp()const +{ + return ip_; +} + +void MobileStartSpeedUpRequest::setIp(const std::string& ip) +{ + ip_ = ip; + setParameter("Ip", ip); +} + +std::string MobileStartSpeedUpRequest::getDestinationIpAddress()const +{ + return destinationIpAddress_; +} + +void MobileStartSpeedUpRequest::setDestinationIpAddress(const std::string& destinationIpAddress) +{ + destinationIpAddress_ = destinationIpAddress; + setParameter("DestinationIpAddress", destinationIpAddress); +} + +std::string MobileStartSpeedUpRequest::getPublicIp()const +{ + return publicIp_; +} + +void MobileStartSpeedUpRequest::setPublicIp(const std::string& publicIp) +{ + publicIp_ = publicIp; + setParameter("PublicIp", publicIp); +} + +std::string MobileStartSpeedUpRequest::getPublicPort()const +{ + return publicPort_; +} + +void MobileStartSpeedUpRequest::setPublicPort(const std::string& publicPort) +{ + publicPort_ = publicPort; + setParameter("PublicPort", publicPort); +} + +long MobileStartSpeedUpRequest::getOwnerId()const +{ + return ownerId_; +} + +void MobileStartSpeedUpRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string MobileStartSpeedUpRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void MobileStartSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string MobileStartSpeedUpRequest::getToken()const +{ + return token_; +} + +void MobileStartSpeedUpRequest::setToken(const std::string& token) +{ + token_ = token; + setParameter("Token", token); +} + diff --git a/snsuapi/src/model/MobileStartSpeedUpResult.cc b/snsuapi/src/model/MobileStartSpeedUpResult.cc new file mode 100644 index 000000000..196415a53 --- /dev/null +++ b/snsuapi/src/model/MobileStartSpeedUpResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Snsuapi; +using namespace AlibabaCloud::Snsuapi::Model; + +MobileStartSpeedUpResult::MobileStartSpeedUpResult() : + ServiceResult() +{} + +MobileStartSpeedUpResult::MobileStartSpeedUpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MobileStartSpeedUpResult::~MobileStartSpeedUpResult() +{} + +void MobileStartSpeedUpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ResultCode"].isNull()) + resultCode_ = value["ResultCode"].asString(); + if(!value["ResultMessage"].isNull()) + resultMessage_ = value["ResultMessage"].asString(); + if(!value["ResultModule"].isNull()) + resultModule_ = value["ResultModule"].asString(); + +} + +std::string MobileStartSpeedUpResult::getResultModule()const +{ + return resultModule_; +} + +std::string MobileStartSpeedUpResult::getResultMessage()const +{ + return resultMessage_; +} + +std::string MobileStartSpeedUpResult::getResultCode()const +{ + return resultCode_; +} + diff --git a/snsuapi/src/model/MobileStatusQueryRequest.cc b/snsuapi/src/model/MobileStatusQueryRequest.cc new file mode 100644 index 000000000..5f2c385c7 --- /dev/null +++ b/snsuapi/src/model/MobileStatusQueryRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Snsuapi::Model::MobileStatusQueryRequest; + +MobileStatusQueryRequest::MobileStatusQueryRequest() : + RpcServiceRequest("snsuapi", "2018-07-09", "MobileStatusQuery") +{} + +MobileStatusQueryRequest::~MobileStatusQueryRequest() +{} + +long MobileStatusQueryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void MobileStatusQueryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string MobileStatusQueryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void MobileStatusQueryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string MobileStatusQueryRequest::getCorrelationId()const +{ + return correlationId_; +} + +void MobileStatusQueryRequest::setCorrelationId(const std::string& correlationId) +{ + correlationId_ = correlationId; + setParameter("CorrelationId", correlationId); +} + +long MobileStatusQueryRequest::getOwnerId()const +{ + return ownerId_; +} + +void MobileStatusQueryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string MobileStatusQueryRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void MobileStatusQueryRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/snsuapi/src/model/MobileStatusQueryResult.cc b/snsuapi/src/model/MobileStatusQueryResult.cc new file mode 100644 index 000000000..39b0c20eb --- /dev/null +++ b/snsuapi/src/model/MobileStatusQueryResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Snsuapi; +using namespace AlibabaCloud::Snsuapi::Model; + +MobileStatusQueryResult::MobileStatusQueryResult() : + ServiceResult() +{} + +MobileStatusQueryResult::MobileStatusQueryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MobileStatusQueryResult::~MobileStatusQueryResult() +{} + +void MobileStatusQueryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ResultCode"].isNull()) + resultCode_ = value["ResultCode"].asString(); + if(!value["ResultMessage"].isNull()) + resultMessage_ = value["ResultMessage"].asString(); + if(!value["ResultModule"].isNull()) + resultModule_ = value["ResultModule"].asString() == "true"; + +} + +bool MobileStatusQueryResult::getResultModule()const +{ + return resultModule_; +} + +std::string MobileStatusQueryResult::getResultMessage()const +{ + return resultMessage_; +} + +std::string MobileStatusQueryResult::getResultCode()const +{ + return resultCode_; +} + diff --git a/snsuapi/src/model/MobileStopSpeedUpRequest.cc b/snsuapi/src/model/MobileStopSpeedUpRequest.cc new file mode 100644 index 000000000..83083d59f --- /dev/null +++ b/snsuapi/src/model/MobileStopSpeedUpRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Snsuapi::Model::MobileStopSpeedUpRequest; + +MobileStopSpeedUpRequest::MobileStopSpeedUpRequest() : + RpcServiceRequest("snsuapi", "2018-07-09", "MobileStopSpeedUp") +{} + +MobileStopSpeedUpRequest::~MobileStopSpeedUpRequest() +{} + +long MobileStopSpeedUpRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void MobileStopSpeedUpRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string MobileStopSpeedUpRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void MobileStopSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string MobileStopSpeedUpRequest::getCorrelationId()const +{ + return correlationId_; +} + +void MobileStopSpeedUpRequest::setCorrelationId(const std::string& correlationId) +{ + correlationId_ = correlationId; + setParameter("CorrelationId", correlationId); +} + +long MobileStopSpeedUpRequest::getOwnerId()const +{ + return ownerId_; +} + +void MobileStopSpeedUpRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string MobileStopSpeedUpRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void MobileStopSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/snsuapi/src/model/MobileStopSpeedUpResult.cc b/snsuapi/src/model/MobileStopSpeedUpResult.cc new file mode 100644 index 000000000..b940f7ee7 --- /dev/null +++ b/snsuapi/src/model/MobileStopSpeedUpResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Snsuapi; +using namespace AlibabaCloud::Snsuapi::Model; + +MobileStopSpeedUpResult::MobileStopSpeedUpResult() : + ServiceResult() +{} + +MobileStopSpeedUpResult::MobileStopSpeedUpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MobileStopSpeedUpResult::~MobileStopSpeedUpResult() +{} + +void MobileStopSpeedUpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ResultCode"].isNull()) + resultCode_ = value["ResultCode"].asString(); + if(!value["ResultMessage"].isNull()) + resultMessage_ = value["ResultMessage"].asString(); + if(!value["ResultModule"].isNull()) + resultModule_ = value["ResultModule"].asString() == "true"; + +} + +bool MobileStopSpeedUpResult::getResultModule()const +{ + return resultModule_; +} + +std::string MobileStopSpeedUpResult::getResultMessage()const +{ + return resultMessage_; +} + +std::string MobileStopSpeedUpResult::getResultCode()const +{ + return resultCode_; +} +