SNSUAPI SDK Auto Released By shenshi,Version:1.34.33
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
114
snsuapi/CMakeLists.txt
Normal file
114
snsuapi/CMakeLists.txt
Normal file
@@ -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}
|
||||
)
|
||||
110
snsuapi/include/alibabacloud/snsuapi/SnsuapiClient.h
Normal file
110
snsuapi/include/alibabacloud/snsuapi/SnsuapiClient.h
Normal file
@@ -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 <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "SnsuapiExport.h"
|
||||
#include "model/MobileStartSpeedUpRequest.h"
|
||||
#include "model/MobileStartSpeedUpResult.h"
|
||||
#include "model/BandStopSpeedUpRequest.h"
|
||||
#include "model/BandStopSpeedUpResult.h"
|
||||
#include "model/BandStatusQueryRequest.h"
|
||||
#include "model/BandStatusQueryResult.h"
|
||||
#include "model/MobileStatusQueryRequest.h"
|
||||
#include "model/MobileStatusQueryResult.h"
|
||||
#include "model/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<Error, Model::MobileStartSpeedUpResult> MobileStartSpeedUpOutcome;
|
||||
typedef std::future<MobileStartSpeedUpOutcome> MobileStartSpeedUpOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::MobileStartSpeedUpRequest&, const MobileStartSpeedUpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MobileStartSpeedUpAsyncHandler;
|
||||
typedef Outcome<Error, Model::BandStopSpeedUpResult> BandStopSpeedUpOutcome;
|
||||
typedef std::future<BandStopSpeedUpOutcome> BandStopSpeedUpOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::BandStopSpeedUpRequest&, const BandStopSpeedUpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BandStopSpeedUpAsyncHandler;
|
||||
typedef Outcome<Error, Model::BandStatusQueryResult> BandStatusQueryOutcome;
|
||||
typedef std::future<BandStatusQueryOutcome> BandStatusQueryOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::BandStatusQueryRequest&, const BandStatusQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BandStatusQueryAsyncHandler;
|
||||
typedef Outcome<Error, Model::MobileStatusQueryResult> MobileStatusQueryOutcome;
|
||||
typedef std::future<MobileStatusQueryOutcome> MobileStatusQueryOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::MobileStatusQueryRequest&, const MobileStatusQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MobileStatusQueryAsyncHandler;
|
||||
typedef Outcome<Error, Model::BandOfferOrderResult> BandOfferOrderOutcome;
|
||||
typedef std::future<BandOfferOrderOutcome> BandOfferOrderOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::BandOfferOrderRequest&, const BandOfferOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BandOfferOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::MobileStopSpeedUpResult> MobileStopSpeedUpOutcome;
|
||||
typedef std::future<MobileStopSpeedUpOutcome> MobileStopSpeedUpOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::MobileStopSpeedUpRequest&, const MobileStopSpeedUpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MobileStopSpeedUpAsyncHandler;
|
||||
typedef Outcome<Error, Model::BandPrecheckResult> BandPrecheckOutcome;
|
||||
typedef std::future<BandPrecheckOutcome> BandPrecheckOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::BandPrecheckRequest&, const BandPrecheckOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BandPrecheckAsyncHandler;
|
||||
typedef Outcome<Error, Model::BandStartSpeedUpResult> BandStartSpeedUpOutcome;
|
||||
typedef std::future<BandStartSpeedUpOutcome> BandStartSpeedUpOutcomeCallable;
|
||||
typedef std::function<void(const SnsuapiClient*, const Model::BandStartSpeedUpRequest&, const BandStartSpeedUpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BandStartSpeedUpAsyncHandler;
|
||||
|
||||
SnsuapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
SnsuapiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
SnsuapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~SnsuapiClient();
|
||||
MobileStartSpeedUpOutcome mobileStartSpeedUp(const Model::MobileStartSpeedUpRequest &request)const;
|
||||
void mobileStartSpeedUpAsync(const Model::MobileStartSpeedUpRequest& request, const MobileStartSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MobileStartSpeedUpOutcomeCallable mobileStartSpeedUpCallable(const Model::MobileStartSpeedUpRequest& request) const;
|
||||
BandStopSpeedUpOutcome bandStopSpeedUp(const Model::BandStopSpeedUpRequest &request)const;
|
||||
void bandStopSpeedUpAsync(const Model::BandStopSpeedUpRequest& request, const BandStopSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BandStopSpeedUpOutcomeCallable bandStopSpeedUpCallable(const Model::BandStopSpeedUpRequest& request) const;
|
||||
BandStatusQueryOutcome bandStatusQuery(const Model::BandStatusQueryRequest &request)const;
|
||||
void bandStatusQueryAsync(const Model::BandStatusQueryRequest& request, const BandStatusQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BandStatusQueryOutcomeCallable bandStatusQueryCallable(const Model::BandStatusQueryRequest& request) const;
|
||||
MobileStatusQueryOutcome mobileStatusQuery(const Model::MobileStatusQueryRequest &request)const;
|
||||
void mobileStatusQueryAsync(const Model::MobileStatusQueryRequest& request, const MobileStatusQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MobileStatusQueryOutcomeCallable mobileStatusQueryCallable(const Model::MobileStatusQueryRequest& request) const;
|
||||
BandOfferOrderOutcome bandOfferOrder(const Model::BandOfferOrderRequest &request)const;
|
||||
void bandOfferOrderAsync(const Model::BandOfferOrderRequest& request, const BandOfferOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BandOfferOrderOutcomeCallable bandOfferOrderCallable(const Model::BandOfferOrderRequest& request) const;
|
||||
MobileStopSpeedUpOutcome mobileStopSpeedUp(const Model::MobileStopSpeedUpRequest &request)const;
|
||||
void mobileStopSpeedUpAsync(const Model::MobileStopSpeedUpRequest& request, const MobileStopSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MobileStopSpeedUpOutcomeCallable mobileStopSpeedUpCallable(const Model::MobileStopSpeedUpRequest& request) const;
|
||||
BandPrecheckOutcome bandPrecheck(const Model::BandPrecheckRequest &request)const;
|
||||
void bandPrecheckAsync(const Model::BandPrecheckRequest& request, const BandPrecheckAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
|
||||
BandStartSpeedUpOutcomeCallable bandStartSpeedUpCallable(const Model::BandStartSpeedUpRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_SNSUAPI_SNSUAPICLIENT_H_
|
||||
32
snsuapi/include/alibabacloud/snsuapi/SnsuapiExport.h
Normal file
32
snsuapi/include/alibabacloud/snsuapi/SnsuapiExport.h
Normal file
@@ -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 <alibabacloud/core/Global.h>
|
||||
|
||||
#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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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<BandOfferListItem> 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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/snsuapi/SnsuapiExport.h>
|
||||
|
||||
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_
|
||||
341
snsuapi/src/SnsuapiClient.cc
Normal file
341
snsuapi/src/SnsuapiClient.cc
Normal file
@@ -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 <alibabacloud/snsuapi/SnsuapiClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
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<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "snsuapi");
|
||||
}
|
||||
|
||||
SnsuapiClient::SnsuapiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(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<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(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<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, mobileStartSpeedUp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStartSpeedUpOutcomeCallable SnsuapiClient::mobileStartSpeedUpCallable(const MobileStartSpeedUpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MobileStartSpeedUpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->mobileStartSpeedUp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::BandStopSpeedUpOutcome SnsuapiClient::bandStopSpeedUp(const BandStopSpeedUpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BandStopSpeedUpOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BandStopSpeedUpOutcome(BandStopSpeedUpResult(outcome.result()));
|
||||
else
|
||||
return BandStopSpeedUpOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SnsuapiClient::bandStopSpeedUpAsync(const BandStopSpeedUpRequest& request, const BandStopSpeedUpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bandStopSpeedUp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::BandStopSpeedUpOutcomeCallable SnsuapiClient::bandStopSpeedUpCallable(const BandStopSpeedUpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BandStopSpeedUpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bandStopSpeedUp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::BandStatusQueryOutcome SnsuapiClient::bandStatusQuery(const BandStatusQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BandStatusQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BandStatusQueryOutcome(BandStatusQueryResult(outcome.result()));
|
||||
else
|
||||
return BandStatusQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SnsuapiClient::bandStatusQueryAsync(const BandStatusQueryRequest& request, const BandStatusQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bandStatusQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::BandStatusQueryOutcomeCallable SnsuapiClient::bandStatusQueryCallable(const BandStatusQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BandStatusQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bandStatusQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStatusQueryOutcome SnsuapiClient::mobileStatusQuery(const MobileStatusQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MobileStatusQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MobileStatusQueryOutcome(MobileStatusQueryResult(outcome.result()));
|
||||
else
|
||||
return MobileStatusQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SnsuapiClient::mobileStatusQueryAsync(const MobileStatusQueryRequest& request, const MobileStatusQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, mobileStatusQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStatusQueryOutcomeCallable SnsuapiClient::mobileStatusQueryCallable(const MobileStatusQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MobileStatusQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->mobileStatusQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::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<const AsyncCallerContext>& 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<std::packaged_task<BandOfferOrderOutcome()>>(
|
||||
[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<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, mobileStopSpeedUp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SnsuapiClient::MobileStopSpeedUpOutcomeCallable SnsuapiClient::mobileStopSpeedUpCallable(const MobileStopSpeedUpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MobileStopSpeedUpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->mobileStopSpeedUp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SnsuapiClient::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<const AsyncCallerContext>& 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<std::packaged_task<BandPrecheckOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<BandStartSpeedUpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bandStartSpeedUp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
93
snsuapi/src/model/BandOfferOrderRequest.cc
Normal file
93
snsuapi/src/model/BandOfferOrderRequest.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/BandOfferOrderRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
67
snsuapi/src/model/BandOfferOrderResult.cc
Normal file
67
snsuapi/src/model/BandOfferOrderResult.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/BandOfferOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
93
snsuapi/src/model/BandPrecheckRequest.cc
Normal file
93
snsuapi/src/model/BandPrecheckRequest.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/BandPrecheckRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
85
snsuapi/src/model/BandPrecheckResult.cc
Normal file
85
snsuapi/src/model/BandPrecheckResult.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/BandPrecheckResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
137
snsuapi/src/model/BandStartSpeedUpRequest.cc
Normal file
137
snsuapi/src/model/BandStartSpeedUpRequest.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/BandStartSpeedUpRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
66
snsuapi/src/model/BandStartSpeedUpResult.cc
Normal file
66
snsuapi/src/model/BandStartSpeedUpResult.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/BandStartSpeedUpResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
82
snsuapi/src/model/BandStatusQueryRequest.cc
Normal file
82
snsuapi/src/model/BandStatusQueryRequest.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/BandStatusQueryRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
69
snsuapi/src/model/BandStatusQueryResult.cc
Normal file
69
snsuapi/src/model/BandStatusQueryResult.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/BandStatusQueryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
115
snsuapi/src/model/BandStopSpeedUpRequest.cc
Normal file
115
snsuapi/src/model/BandStopSpeedUpRequest.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/BandStopSpeedUpRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
66
snsuapi/src/model/BandStopSpeedUpResult.cc
Normal file
66
snsuapi/src/model/BandStopSpeedUpResult.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/BandStopSpeedUpResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
137
snsuapi/src/model/MobileStartSpeedUpRequest.cc
Normal file
137
snsuapi/src/model/MobileStartSpeedUpRequest.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/MobileStartSpeedUpRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
66
snsuapi/src/model/MobileStartSpeedUpResult.cc
Normal file
66
snsuapi/src/model/MobileStartSpeedUpResult.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/MobileStartSpeedUpResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
82
snsuapi/src/model/MobileStatusQueryRequest.cc
Normal file
82
snsuapi/src/model/MobileStatusQueryRequest.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/MobileStatusQueryRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
66
snsuapi/src/model/MobileStatusQueryResult.cc
Normal file
66
snsuapi/src/model/MobileStatusQueryResult.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/MobileStatusQueryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
82
snsuapi/src/model/MobileStopSpeedUpRequest.cc
Normal file
82
snsuapi/src/model/MobileStopSpeedUpRequest.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/MobileStopSpeedUpRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
66
snsuapi/src/model/MobileStopSpeedUpResult.cc
Normal file
66
snsuapi/src/model/MobileStopSpeedUpResult.cc
Normal file
@@ -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 <alibabacloud/snsuapi/model/MobileStopSpeedUpResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user