New Version.
This commit is contained in:
@@ -21,89 +21,33 @@ set(dysmsapi_public_header
|
|||||||
include/alibabacloud/dysmsapi/DysmsapiExport.h )
|
include/alibabacloud/dysmsapi/DysmsapiExport.h )
|
||||||
|
|
||||||
set(dysmsapi_public_header_model
|
set(dysmsapi_public_header_model
|
||||||
include/alibabacloud/dysmsapi/model/AddShortUrlRequest.h
|
include/alibabacloud/dysmsapi/model/BatchSendMessageToGlobeRequest.h
|
||||||
include/alibabacloud/dysmsapi/model/AddShortUrlResult.h
|
include/alibabacloud/dysmsapi/model/BatchSendMessageToGlobeResult.h
|
||||||
include/alibabacloud/dysmsapi/model/AddSmsSignRequest.h
|
include/alibabacloud/dysmsapi/model/ConversionDataRequest.h
|
||||||
include/alibabacloud/dysmsapi/model/AddSmsSignResult.h
|
include/alibabacloud/dysmsapi/model/ConversionDataResult.h
|
||||||
include/alibabacloud/dysmsapi/model/AddSmsTemplateRequest.h
|
include/alibabacloud/dysmsapi/model/QueryMessageRequest.h
|
||||||
include/alibabacloud/dysmsapi/model/AddSmsTemplateResult.h
|
include/alibabacloud/dysmsapi/model/QueryMessageResult.h
|
||||||
include/alibabacloud/dysmsapi/model/DeleteShortUrlRequest.h
|
include/alibabacloud/dysmsapi/model/SendMessageToGlobeRequest.h
|
||||||
include/alibabacloud/dysmsapi/model/DeleteShortUrlResult.h
|
include/alibabacloud/dysmsapi/model/SendMessageToGlobeResult.h
|
||||||
include/alibabacloud/dysmsapi/model/DeleteSmsSignRequest.h
|
include/alibabacloud/dysmsapi/model/SendMessageWithTemplateRequest.h
|
||||||
include/alibabacloud/dysmsapi/model/DeleteSmsSignResult.h
|
include/alibabacloud/dysmsapi/model/SendMessageWithTemplateResult.h
|
||||||
include/alibabacloud/dysmsapi/model/DeleteSmsTemplateRequest.h
|
include/alibabacloud/dysmsapi/model/SmsConversionRequest.h
|
||||||
include/alibabacloud/dysmsapi/model/DeleteSmsTemplateResult.h
|
include/alibabacloud/dysmsapi/model/SmsConversionResult.h )
|
||||||
include/alibabacloud/dysmsapi/model/ListTagResourcesRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/ListTagResourcesResult.h
|
|
||||||
include/alibabacloud/dysmsapi/model/ModifySmsSignRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/ModifySmsSignResult.h
|
|
||||||
include/alibabacloud/dysmsapi/model/ModifySmsTemplateRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/ModifySmsTemplateResult.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QuerySendDetailsRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QuerySendDetailsResult.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QuerySendStatisticsRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QuerySendStatisticsResult.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QueryShortUrlRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QueryShortUrlResult.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QuerySmsSignRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QuerySmsSignResult.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QuerySmsSignListRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QuerySmsSignListResult.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QuerySmsTemplateRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QuerySmsTemplateResult.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QuerySmsTemplateListRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/QuerySmsTemplateListResult.h
|
|
||||||
include/alibabacloud/dysmsapi/model/SendBatchSmsRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/SendBatchSmsResult.h
|
|
||||||
include/alibabacloud/dysmsapi/model/SendSmsRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/SendSmsResult.h
|
|
||||||
include/alibabacloud/dysmsapi/model/TagResourcesRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/TagResourcesResult.h
|
|
||||||
include/alibabacloud/dysmsapi/model/UntagResourcesRequest.h
|
|
||||||
include/alibabacloud/dysmsapi/model/UntagResourcesResult.h )
|
|
||||||
|
|
||||||
set(dysmsapi_src
|
set(dysmsapi_src
|
||||||
src/DysmsapiClient.cc
|
src/DysmsapiClient.cc
|
||||||
src/model/AddShortUrlRequest.cc
|
src/model/BatchSendMessageToGlobeRequest.cc
|
||||||
src/model/AddShortUrlResult.cc
|
src/model/BatchSendMessageToGlobeResult.cc
|
||||||
src/model/AddSmsSignRequest.cc
|
src/model/ConversionDataRequest.cc
|
||||||
src/model/AddSmsSignResult.cc
|
src/model/ConversionDataResult.cc
|
||||||
src/model/AddSmsTemplateRequest.cc
|
src/model/QueryMessageRequest.cc
|
||||||
src/model/AddSmsTemplateResult.cc
|
src/model/QueryMessageResult.cc
|
||||||
src/model/DeleteShortUrlRequest.cc
|
src/model/SendMessageToGlobeRequest.cc
|
||||||
src/model/DeleteShortUrlResult.cc
|
src/model/SendMessageToGlobeResult.cc
|
||||||
src/model/DeleteSmsSignRequest.cc
|
src/model/SendMessageWithTemplateRequest.cc
|
||||||
src/model/DeleteSmsSignResult.cc
|
src/model/SendMessageWithTemplateResult.cc
|
||||||
src/model/DeleteSmsTemplateRequest.cc
|
src/model/SmsConversionRequest.cc
|
||||||
src/model/DeleteSmsTemplateResult.cc
|
src/model/SmsConversionResult.cc )
|
||||||
src/model/ListTagResourcesRequest.cc
|
|
||||||
src/model/ListTagResourcesResult.cc
|
|
||||||
src/model/ModifySmsSignRequest.cc
|
|
||||||
src/model/ModifySmsSignResult.cc
|
|
||||||
src/model/ModifySmsTemplateRequest.cc
|
|
||||||
src/model/ModifySmsTemplateResult.cc
|
|
||||||
src/model/QuerySendDetailsRequest.cc
|
|
||||||
src/model/QuerySendDetailsResult.cc
|
|
||||||
src/model/QuerySendStatisticsRequest.cc
|
|
||||||
src/model/QuerySendStatisticsResult.cc
|
|
||||||
src/model/QueryShortUrlRequest.cc
|
|
||||||
src/model/QueryShortUrlResult.cc
|
|
||||||
src/model/QuerySmsSignRequest.cc
|
|
||||||
src/model/QuerySmsSignResult.cc
|
|
||||||
src/model/QuerySmsSignListRequest.cc
|
|
||||||
src/model/QuerySmsSignListResult.cc
|
|
||||||
src/model/QuerySmsTemplateRequest.cc
|
|
||||||
src/model/QuerySmsTemplateResult.cc
|
|
||||||
src/model/QuerySmsTemplateListRequest.cc
|
|
||||||
src/model/QuerySmsTemplateListResult.cc
|
|
||||||
src/model/SendBatchSmsRequest.cc
|
|
||||||
src/model/SendBatchSmsResult.cc
|
|
||||||
src/model/SendSmsRequest.cc
|
|
||||||
src/model/SendSmsResult.cc
|
|
||||||
src/model/TagResourcesRequest.cc
|
|
||||||
src/model/TagResourcesResult.cc
|
|
||||||
src/model/UntagResourcesRequest.cc
|
|
||||||
src/model/UntagResourcesResult.cc )
|
|
||||||
|
|
||||||
add_library(dysmsapi ${LIB_TYPE}
|
add_library(dysmsapi ${LIB_TYPE}
|
||||||
${dysmsapi_public_header}
|
${dysmsapi_public_header}
|
||||||
|
|||||||
@@ -22,46 +22,18 @@
|
|||||||
#include <alibabacloud/core/EndpointProvider.h>
|
#include <alibabacloud/core/EndpointProvider.h>
|
||||||
#include <alibabacloud/core/RpcServiceClient.h>
|
#include <alibabacloud/core/RpcServiceClient.h>
|
||||||
#include "DysmsapiExport.h"
|
#include "DysmsapiExport.h"
|
||||||
#include "model/AddShortUrlRequest.h"
|
#include "model/BatchSendMessageToGlobeRequest.h"
|
||||||
#include "model/AddShortUrlResult.h"
|
#include "model/BatchSendMessageToGlobeResult.h"
|
||||||
#include "model/AddSmsSignRequest.h"
|
#include "model/ConversionDataRequest.h"
|
||||||
#include "model/AddSmsSignResult.h"
|
#include "model/ConversionDataResult.h"
|
||||||
#include "model/AddSmsTemplateRequest.h"
|
#include "model/QueryMessageRequest.h"
|
||||||
#include "model/AddSmsTemplateResult.h"
|
#include "model/QueryMessageResult.h"
|
||||||
#include "model/DeleteShortUrlRequest.h"
|
#include "model/SendMessageToGlobeRequest.h"
|
||||||
#include "model/DeleteShortUrlResult.h"
|
#include "model/SendMessageToGlobeResult.h"
|
||||||
#include "model/DeleteSmsSignRequest.h"
|
#include "model/SendMessageWithTemplateRequest.h"
|
||||||
#include "model/DeleteSmsSignResult.h"
|
#include "model/SendMessageWithTemplateResult.h"
|
||||||
#include "model/DeleteSmsTemplateRequest.h"
|
#include "model/SmsConversionRequest.h"
|
||||||
#include "model/DeleteSmsTemplateResult.h"
|
#include "model/SmsConversionResult.h"
|
||||||
#include "model/ListTagResourcesRequest.h"
|
|
||||||
#include "model/ListTagResourcesResult.h"
|
|
||||||
#include "model/ModifySmsSignRequest.h"
|
|
||||||
#include "model/ModifySmsSignResult.h"
|
|
||||||
#include "model/ModifySmsTemplateRequest.h"
|
|
||||||
#include "model/ModifySmsTemplateResult.h"
|
|
||||||
#include "model/QuerySendDetailsRequest.h"
|
|
||||||
#include "model/QuerySendDetailsResult.h"
|
|
||||||
#include "model/QuerySendStatisticsRequest.h"
|
|
||||||
#include "model/QuerySendStatisticsResult.h"
|
|
||||||
#include "model/QueryShortUrlRequest.h"
|
|
||||||
#include "model/QueryShortUrlResult.h"
|
|
||||||
#include "model/QuerySmsSignRequest.h"
|
|
||||||
#include "model/QuerySmsSignResult.h"
|
|
||||||
#include "model/QuerySmsSignListRequest.h"
|
|
||||||
#include "model/QuerySmsSignListResult.h"
|
|
||||||
#include "model/QuerySmsTemplateRequest.h"
|
|
||||||
#include "model/QuerySmsTemplateResult.h"
|
|
||||||
#include "model/QuerySmsTemplateListRequest.h"
|
|
||||||
#include "model/QuerySmsTemplateListResult.h"
|
|
||||||
#include "model/SendBatchSmsRequest.h"
|
|
||||||
#include "model/SendBatchSmsResult.h"
|
|
||||||
#include "model/SendSmsRequest.h"
|
|
||||||
#include "model/SendSmsResult.h"
|
|
||||||
#include "model/TagResourcesRequest.h"
|
|
||||||
#include "model/TagResourcesResult.h"
|
|
||||||
#include "model/UntagResourcesRequest.h"
|
|
||||||
#include "model/UntagResourcesResult.h"
|
|
||||||
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
@@ -71,131 +43,47 @@ namespace AlibabaCloud
|
|||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT DysmsapiClient : public RpcServiceClient
|
class ALIBABACLOUD_DYSMSAPI_EXPORT DysmsapiClient : public RpcServiceClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef Outcome<Error, Model::AddShortUrlResult> AddShortUrlOutcome;
|
typedef Outcome<Error, Model::BatchSendMessageToGlobeResult> BatchSendMessageToGlobeOutcome;
|
||||||
typedef std::future<AddShortUrlOutcome> AddShortUrlOutcomeCallable;
|
typedef std::future<BatchSendMessageToGlobeOutcome> BatchSendMessageToGlobeOutcomeCallable;
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::AddShortUrlRequest&, const AddShortUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddShortUrlAsyncHandler;
|
typedef std::function<void(const DysmsapiClient*, const Model::BatchSendMessageToGlobeRequest&, const BatchSendMessageToGlobeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchSendMessageToGlobeAsyncHandler;
|
||||||
typedef Outcome<Error, Model::AddSmsSignResult> AddSmsSignOutcome;
|
typedef Outcome<Error, Model::ConversionDataResult> ConversionDataOutcome;
|
||||||
typedef std::future<AddSmsSignOutcome> AddSmsSignOutcomeCallable;
|
typedef std::future<ConversionDataOutcome> ConversionDataOutcomeCallable;
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::AddSmsSignRequest&, const AddSmsSignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddSmsSignAsyncHandler;
|
typedef std::function<void(const DysmsapiClient*, const Model::ConversionDataRequest&, const ConversionDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConversionDataAsyncHandler;
|
||||||
typedef Outcome<Error, Model::AddSmsTemplateResult> AddSmsTemplateOutcome;
|
typedef Outcome<Error, Model::QueryMessageResult> QueryMessageOutcome;
|
||||||
typedef std::future<AddSmsTemplateOutcome> AddSmsTemplateOutcomeCallable;
|
typedef std::future<QueryMessageOutcome> QueryMessageOutcomeCallable;
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::AddSmsTemplateRequest&, const AddSmsTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddSmsTemplateAsyncHandler;
|
typedef std::function<void(const DysmsapiClient*, const Model::QueryMessageRequest&, const QueryMessageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryMessageAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DeleteShortUrlResult> DeleteShortUrlOutcome;
|
typedef Outcome<Error, Model::SendMessageToGlobeResult> SendMessageToGlobeOutcome;
|
||||||
typedef std::future<DeleteShortUrlOutcome> DeleteShortUrlOutcomeCallable;
|
typedef std::future<SendMessageToGlobeOutcome> SendMessageToGlobeOutcomeCallable;
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::DeleteShortUrlRequest&, const DeleteShortUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteShortUrlAsyncHandler;
|
typedef std::function<void(const DysmsapiClient*, const Model::SendMessageToGlobeRequest&, const SendMessageToGlobeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendMessageToGlobeAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DeleteSmsSignResult> DeleteSmsSignOutcome;
|
typedef Outcome<Error, Model::SendMessageWithTemplateResult> SendMessageWithTemplateOutcome;
|
||||||
typedef std::future<DeleteSmsSignOutcome> DeleteSmsSignOutcomeCallable;
|
typedef std::future<SendMessageWithTemplateOutcome> SendMessageWithTemplateOutcomeCallable;
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::DeleteSmsSignRequest&, const DeleteSmsSignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSmsSignAsyncHandler;
|
typedef std::function<void(const DysmsapiClient*, const Model::SendMessageWithTemplateRequest&, const SendMessageWithTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendMessageWithTemplateAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DeleteSmsTemplateResult> DeleteSmsTemplateOutcome;
|
typedef Outcome<Error, Model::SmsConversionResult> SmsConversionOutcome;
|
||||||
typedef std::future<DeleteSmsTemplateOutcome> DeleteSmsTemplateOutcomeCallable;
|
typedef std::future<SmsConversionOutcome> SmsConversionOutcomeCallable;
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::DeleteSmsTemplateRequest&, const DeleteSmsTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSmsTemplateAsyncHandler;
|
typedef std::function<void(const DysmsapiClient*, const Model::SmsConversionRequest&, const SmsConversionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SmsConversionAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
|
|
||||||
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::ModifySmsSignResult> ModifySmsSignOutcome;
|
|
||||||
typedef std::future<ModifySmsSignOutcome> ModifySmsSignOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::ModifySmsSignRequest&, const ModifySmsSignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySmsSignAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::ModifySmsTemplateResult> ModifySmsTemplateOutcome;
|
|
||||||
typedef std::future<ModifySmsTemplateOutcome> ModifySmsTemplateOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::ModifySmsTemplateRequest&, const ModifySmsTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySmsTemplateAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::QuerySendDetailsResult> QuerySendDetailsOutcome;
|
|
||||||
typedef std::future<QuerySendDetailsOutcome> QuerySendDetailsOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::QuerySendDetailsRequest&, const QuerySendDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySendDetailsAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::QuerySendStatisticsResult> QuerySendStatisticsOutcome;
|
|
||||||
typedef std::future<QuerySendStatisticsOutcome> QuerySendStatisticsOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::QuerySendStatisticsRequest&, const QuerySendStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySendStatisticsAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::QueryShortUrlResult> QueryShortUrlOutcome;
|
|
||||||
typedef std::future<QueryShortUrlOutcome> QueryShortUrlOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::QueryShortUrlRequest&, const QueryShortUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryShortUrlAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::QuerySmsSignResult> QuerySmsSignOutcome;
|
|
||||||
typedef std::future<QuerySmsSignOutcome> QuerySmsSignOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::QuerySmsSignRequest&, const QuerySmsSignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySmsSignAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::QuerySmsSignListResult> QuerySmsSignListOutcome;
|
|
||||||
typedef std::future<QuerySmsSignListOutcome> QuerySmsSignListOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::QuerySmsSignListRequest&, const QuerySmsSignListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySmsSignListAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::QuerySmsTemplateResult> QuerySmsTemplateOutcome;
|
|
||||||
typedef std::future<QuerySmsTemplateOutcome> QuerySmsTemplateOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::QuerySmsTemplateRequest&, const QuerySmsTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySmsTemplateAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::QuerySmsTemplateListResult> QuerySmsTemplateListOutcome;
|
|
||||||
typedef std::future<QuerySmsTemplateListOutcome> QuerySmsTemplateListOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::QuerySmsTemplateListRequest&, const QuerySmsTemplateListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySmsTemplateListAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::SendBatchSmsResult> SendBatchSmsOutcome;
|
|
||||||
typedef std::future<SendBatchSmsOutcome> SendBatchSmsOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::SendBatchSmsRequest&, const SendBatchSmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendBatchSmsAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::SendSmsResult> SendSmsOutcome;
|
|
||||||
typedef std::future<SendSmsOutcome> SendSmsOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::SendSmsRequest&, const SendSmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendSmsAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
|
|
||||||
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
|
|
||||||
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
|
|
||||||
typedef std::function<void(const DysmsapiClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
|
|
||||||
|
|
||||||
DysmsapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
DysmsapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||||
DysmsapiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
DysmsapiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||||
DysmsapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
DysmsapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||||
~DysmsapiClient();
|
~DysmsapiClient();
|
||||||
AddShortUrlOutcome addShortUrl(const Model::AddShortUrlRequest &request)const;
|
BatchSendMessageToGlobeOutcome batchSendMessageToGlobe(const Model::BatchSendMessageToGlobeRequest &request)const;
|
||||||
void addShortUrlAsync(const Model::AddShortUrlRequest& request, const AddShortUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void batchSendMessageToGlobeAsync(const Model::BatchSendMessageToGlobeRequest& request, const BatchSendMessageToGlobeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
AddShortUrlOutcomeCallable addShortUrlCallable(const Model::AddShortUrlRequest& request) const;
|
BatchSendMessageToGlobeOutcomeCallable batchSendMessageToGlobeCallable(const Model::BatchSendMessageToGlobeRequest& request) const;
|
||||||
AddSmsSignOutcome addSmsSign(const Model::AddSmsSignRequest &request)const;
|
ConversionDataOutcome conversionData(const Model::ConversionDataRequest &request)const;
|
||||||
void addSmsSignAsync(const Model::AddSmsSignRequest& request, const AddSmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void conversionDataAsync(const Model::ConversionDataRequest& request, const ConversionDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
AddSmsSignOutcomeCallable addSmsSignCallable(const Model::AddSmsSignRequest& request) const;
|
ConversionDataOutcomeCallable conversionDataCallable(const Model::ConversionDataRequest& request) const;
|
||||||
AddSmsTemplateOutcome addSmsTemplate(const Model::AddSmsTemplateRequest &request)const;
|
QueryMessageOutcome queryMessage(const Model::QueryMessageRequest &request)const;
|
||||||
void addSmsTemplateAsync(const Model::AddSmsTemplateRequest& request, const AddSmsTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void queryMessageAsync(const Model::QueryMessageRequest& request, const QueryMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
AddSmsTemplateOutcomeCallable addSmsTemplateCallable(const Model::AddSmsTemplateRequest& request) const;
|
QueryMessageOutcomeCallable queryMessageCallable(const Model::QueryMessageRequest& request) const;
|
||||||
DeleteShortUrlOutcome deleteShortUrl(const Model::DeleteShortUrlRequest &request)const;
|
SendMessageToGlobeOutcome sendMessageToGlobe(const Model::SendMessageToGlobeRequest &request)const;
|
||||||
void deleteShortUrlAsync(const Model::DeleteShortUrlRequest& request, const DeleteShortUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void sendMessageToGlobeAsync(const Model::SendMessageToGlobeRequest& request, const SendMessageToGlobeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DeleteShortUrlOutcomeCallable deleteShortUrlCallable(const Model::DeleteShortUrlRequest& request) const;
|
SendMessageToGlobeOutcomeCallable sendMessageToGlobeCallable(const Model::SendMessageToGlobeRequest& request) const;
|
||||||
DeleteSmsSignOutcome deleteSmsSign(const Model::DeleteSmsSignRequest &request)const;
|
SendMessageWithTemplateOutcome sendMessageWithTemplate(const Model::SendMessageWithTemplateRequest &request)const;
|
||||||
void deleteSmsSignAsync(const Model::DeleteSmsSignRequest& request, const DeleteSmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void sendMessageWithTemplateAsync(const Model::SendMessageWithTemplateRequest& request, const SendMessageWithTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DeleteSmsSignOutcomeCallable deleteSmsSignCallable(const Model::DeleteSmsSignRequest& request) const;
|
SendMessageWithTemplateOutcomeCallable sendMessageWithTemplateCallable(const Model::SendMessageWithTemplateRequest& request) const;
|
||||||
DeleteSmsTemplateOutcome deleteSmsTemplate(const Model::DeleteSmsTemplateRequest &request)const;
|
SmsConversionOutcome smsConversion(const Model::SmsConversionRequest &request)const;
|
||||||
void deleteSmsTemplateAsync(const Model::DeleteSmsTemplateRequest& request, const DeleteSmsTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void smsConversionAsync(const Model::SmsConversionRequest& request, const SmsConversionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DeleteSmsTemplateOutcomeCallable deleteSmsTemplateCallable(const Model::DeleteSmsTemplateRequest& request) const;
|
SmsConversionOutcomeCallable smsConversionCallable(const Model::SmsConversionRequest& request) const;
|
||||||
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
|
|
||||||
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
|
|
||||||
ModifySmsSignOutcome modifySmsSign(const Model::ModifySmsSignRequest &request)const;
|
|
||||||
void modifySmsSignAsync(const Model::ModifySmsSignRequest& request, const ModifySmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
ModifySmsSignOutcomeCallable modifySmsSignCallable(const Model::ModifySmsSignRequest& request) const;
|
|
||||||
ModifySmsTemplateOutcome modifySmsTemplate(const Model::ModifySmsTemplateRequest &request)const;
|
|
||||||
void modifySmsTemplateAsync(const Model::ModifySmsTemplateRequest& request, const ModifySmsTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
ModifySmsTemplateOutcomeCallable modifySmsTemplateCallable(const Model::ModifySmsTemplateRequest& request) const;
|
|
||||||
QuerySendDetailsOutcome querySendDetails(const Model::QuerySendDetailsRequest &request)const;
|
|
||||||
void querySendDetailsAsync(const Model::QuerySendDetailsRequest& request, const QuerySendDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
QuerySendDetailsOutcomeCallable querySendDetailsCallable(const Model::QuerySendDetailsRequest& request) const;
|
|
||||||
QuerySendStatisticsOutcome querySendStatistics(const Model::QuerySendStatisticsRequest &request)const;
|
|
||||||
void querySendStatisticsAsync(const Model::QuerySendStatisticsRequest& request, const QuerySendStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
QuerySendStatisticsOutcomeCallable querySendStatisticsCallable(const Model::QuerySendStatisticsRequest& request) const;
|
|
||||||
QueryShortUrlOutcome queryShortUrl(const Model::QueryShortUrlRequest &request)const;
|
|
||||||
void queryShortUrlAsync(const Model::QueryShortUrlRequest& request, const QueryShortUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
QueryShortUrlOutcomeCallable queryShortUrlCallable(const Model::QueryShortUrlRequest& request) const;
|
|
||||||
QuerySmsSignOutcome querySmsSign(const Model::QuerySmsSignRequest &request)const;
|
|
||||||
void querySmsSignAsync(const Model::QuerySmsSignRequest& request, const QuerySmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
QuerySmsSignOutcomeCallable querySmsSignCallable(const Model::QuerySmsSignRequest& request) const;
|
|
||||||
QuerySmsSignListOutcome querySmsSignList(const Model::QuerySmsSignListRequest &request)const;
|
|
||||||
void querySmsSignListAsync(const Model::QuerySmsSignListRequest& request, const QuerySmsSignListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
QuerySmsSignListOutcomeCallable querySmsSignListCallable(const Model::QuerySmsSignListRequest& request) const;
|
|
||||||
QuerySmsTemplateOutcome querySmsTemplate(const Model::QuerySmsTemplateRequest &request)const;
|
|
||||||
void querySmsTemplateAsync(const Model::QuerySmsTemplateRequest& request, const QuerySmsTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
QuerySmsTemplateOutcomeCallable querySmsTemplateCallable(const Model::QuerySmsTemplateRequest& request) const;
|
|
||||||
QuerySmsTemplateListOutcome querySmsTemplateList(const Model::QuerySmsTemplateListRequest &request)const;
|
|
||||||
void querySmsTemplateListAsync(const Model::QuerySmsTemplateListRequest& request, const QuerySmsTemplateListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
QuerySmsTemplateListOutcomeCallable querySmsTemplateListCallable(const Model::QuerySmsTemplateListRequest& request) const;
|
|
||||||
SendBatchSmsOutcome sendBatchSms(const Model::SendBatchSmsRequest &request)const;
|
|
||||||
void sendBatchSmsAsync(const Model::SendBatchSmsRequest& request, const SendBatchSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
SendBatchSmsOutcomeCallable sendBatchSmsCallable(const Model::SendBatchSmsRequest& request) const;
|
|
||||||
SendSmsOutcome sendSms(const Model::SendSmsRequest &request)const;
|
|
||||||
void sendSmsAsync(const Model::SendSmsRequest& request, const SendSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
SendSmsOutcomeCallable sendSmsCallable(const Model::SendSmsRequest& request) const;
|
|
||||||
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
|
|
||||||
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
|
|
||||||
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
|
|
||||||
void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||||
|
|||||||
@@ -1,69 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_ADDSHORTURLREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT AddShortUrlRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
AddShortUrlRequest();
|
|
||||||
~AddShortUrlRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getShortUrlName()const;
|
|
||||||
void setShortUrlName(const std::string& shortUrlName);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
std::string getEffectiveDays()const;
|
|
||||||
void setEffectiveDays(const std::string& effectiveDays);
|
|
||||||
std::string getProdCode()const;
|
|
||||||
void setProdCode(const std::string& prodCode);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getSourceUrl()const;
|
|
||||||
void setSourceUrl(const std::string& sourceUrl);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string shortUrlName_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
std::string effectiveDays_;
|
|
||||||
std::string prodCode_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string sourceUrl_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLREQUEST_H_
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_ADDSHORTURLRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT AddShortUrlResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
struct Data
|
|
||||||
{
|
|
||||||
std::string sourceUrl;
|
|
||||||
std::string shortUrl;
|
|
||||||
std::string expireDate;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
AddShortUrlResult();
|
|
||||||
explicit AddShortUrlResult(const std::string &payload);
|
|
||||||
~AddShortUrlResult();
|
|
||||||
std::string getMessage()const;
|
|
||||||
Data getData()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string message_;
|
|
||||||
Data data_;
|
|
||||||
std::string code_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLRESULT_H_
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_ADDSMSSIGNREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_ADDSMSSIGNREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT AddSmsSignRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
struct SignFileList
|
|
||||||
{
|
|
||||||
std::string fileContents;
|
|
||||||
std::string fileSuffix;
|
|
||||||
};
|
|
||||||
|
|
||||||
public:
|
|
||||||
AddSmsSignRequest();
|
|
||||||
~AddSmsSignRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getRemark()const;
|
|
||||||
void setRemark(const std::string& remark);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getSignName()const;
|
|
||||||
void setSignName(const std::string& signName);
|
|
||||||
std::vector<SignFileList> getSignFileList()const;
|
|
||||||
void setSignFileList(const std::vector<SignFileList>& signFileList);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
int getSignSource()const;
|
|
||||||
void setSignSource(int signSource);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string remark_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string signName_;
|
|
||||||
std::vector<SignFileList> signFileList_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
long ownerId_;
|
|
||||||
int signSource_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_ADDSMSSIGNREQUEST_H_
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_ADDSMSSIGNRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_ADDSMSSIGNRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT AddSmsSignResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
AddSmsSignResult();
|
|
||||||
explicit AddSmsSignResult(const std::string &payload);
|
|
||||||
~AddSmsSignResult();
|
|
||||||
std::string getMessage()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
std::string getSignName()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string message_;
|
|
||||||
std::string code_;
|
|
||||||
std::string signName_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_ADDSMSSIGNRESULT_H_
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_ADDSMSTEMPLATEREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_ADDSMSTEMPLATEREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT AddSmsTemplateRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
AddSmsTemplateRequest();
|
|
||||||
~AddSmsTemplateRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getRemark()const;
|
|
||||||
void setRemark(const std::string& remark);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
int getTemplateType()const;
|
|
||||||
void setTemplateType(int templateType);
|
|
||||||
std::string getTemplateName()const;
|
|
||||||
void setTemplateName(const std::string& templateName);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getTemplateContent()const;
|
|
||||||
void setTemplateContent(const std::string& templateContent);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string remark_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
int templateType_;
|
|
||||||
std::string templateName_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string templateContent_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_ADDSMSTEMPLATEREQUEST_H_
|
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* 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_DYSMSAPI_MODEL_BATCHSENDMESSAGETOGLOBEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_DYSMSAPI_MODEL_BATCHSENDMESSAGETOGLOBEREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Dysmsapi {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_DYSMSAPI_EXPORT BatchSendMessageToGlobeRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
BatchSendMessageToGlobeRequest();
|
||||||
|
~BatchSendMessageToGlobeRequest();
|
||||||
|
long getResourceOwnerId() const;
|
||||||
|
void setResourceOwnerId(long resourceOwnerId);
|
||||||
|
std::string getType() const;
|
||||||
|
void setType(const std::string &type);
|
||||||
|
std::string getAccessKeyId() const;
|
||||||
|
void setAccessKeyId(const std::string &accessKeyId);
|
||||||
|
std::string getFrom() const;
|
||||||
|
void setFrom(const std::string &from);
|
||||||
|
std::string getTaskId() const;
|
||||||
|
void setTaskId(const std::string &taskId);
|
||||||
|
std::string getResourceOwnerAccount() const;
|
||||||
|
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||||
|
long getOwnerId() const;
|
||||||
|
void setOwnerId(long ownerId);
|
||||||
|
std::string getMessage() const;
|
||||||
|
void setMessage(const std::string &message);
|
||||||
|
long getValidityPeriod() const;
|
||||||
|
void setValidityPeriod(long validityPeriod);
|
||||||
|
std::string getTo() const;
|
||||||
|
void setTo(const std::string &to);
|
||||||
|
std::string getChannelId() const;
|
||||||
|
void setChannelId(const std::string &channelId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
long resourceOwnerId_;
|
||||||
|
std::string type_;
|
||||||
|
std::string accessKeyId_;
|
||||||
|
std::string from_;
|
||||||
|
std::string taskId_;
|
||||||
|
std::string resourceOwnerAccount_;
|
||||||
|
long ownerId_;
|
||||||
|
std::string message_;
|
||||||
|
long validityPeriod_;
|
||||||
|
std::string to_;
|
||||||
|
std::string channelId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Dysmsapi
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_BATCHSENDMESSAGETOGLOBEREQUEST_H_
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_ADDSMSTEMPLATERESULT_H_
|
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_BATCHSENDMESSAGETOGLOBERESULT_H_
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_ADDSMSTEMPLATERESULT_H_
|
#define ALIBABACLOUD_DYSMSAPI_MODEL_BATCHSENDMESSAGETOGLOBERESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -29,27 +29,33 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT AddSmsTemplateResult : public ServiceResult
|
class ALIBABACLOUD_DYSMSAPI_EXPORT BatchSendMessageToGlobeResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
AddSmsTemplateResult();
|
BatchSendMessageToGlobeResult();
|
||||||
explicit AddSmsTemplateResult(const std::string &payload);
|
explicit BatchSendMessageToGlobeResult(const std::string &payload);
|
||||||
~AddSmsTemplateResult();
|
~BatchSendMessageToGlobeResult();
|
||||||
std::string getTemplateCode()const;
|
std::string getResponseCode()const;
|
||||||
std::string getMessage()const;
|
std::string getFailedList()const;
|
||||||
std::string getCode()const;
|
std::string getResponseDescription()const;
|
||||||
|
std::string getFrom()const;
|
||||||
|
std::string getMessageIdList()const;
|
||||||
|
std::string getSuccessCount()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string templateCode_;
|
std::string responseCode_;
|
||||||
std::string message_;
|
std::string failedList_;
|
||||||
std::string code_;
|
std::string responseDescription_;
|
||||||
|
std::string from_;
|
||||||
|
std::string messageIdList_;
|
||||||
|
std::string successCount_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_ADDSMSTEMPLATERESULT_H_
|
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_BATCHSENDMESSAGETOGLOBERESULT_H_
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* 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_DYSMSAPI_MODEL_CONVERSIONDATAREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_DYSMSAPI_MODEL_CONVERSIONDATAREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Dysmsapi {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_DYSMSAPI_EXPORT ConversionDataRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
ConversionDataRequest();
|
||||||
|
~ConversionDataRequest();
|
||||||
|
long getReportTime() const;
|
||||||
|
void setReportTime(long reportTime);
|
||||||
|
std::string getConversionRate() const;
|
||||||
|
void setConversionRate(const std::string &conversionRate);
|
||||||
|
|
||||||
|
private:
|
||||||
|
long reportTime_;
|
||||||
|
std::string conversionRate_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Dysmsapi
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_CONVERSIONDATAREQUEST_H_
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESRESULT_H_
|
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_CONVERSIONDATARESULT_H_
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESRESULT_H_
|
#define ALIBABACLOUD_DYSMSAPI_MODEL_CONVERSIONDATARESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -29,25 +29,25 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT UntagResourcesResult : public ServiceResult
|
class ALIBABACLOUD_DYSMSAPI_EXPORT ConversionDataResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
UntagResourcesResult();
|
ConversionDataResult();
|
||||||
explicit UntagResourcesResult(const std::string &payload);
|
explicit ConversionDataResult(const std::string &payload);
|
||||||
~UntagResourcesResult();
|
~ConversionDataResult();
|
||||||
std::string getData()const;
|
std::string getResponseCode()const;
|
||||||
std::string getCode()const;
|
std::string getResponseDescription()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string data_;
|
std::string responseCode_;
|
||||||
std::string code_;
|
std::string responseDescription_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESRESULT_H_
|
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_CONVERSIONDATARESULT_H_
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_DELETESHORTURLREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT DeleteShortUrlRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
DeleteShortUrlRequest();
|
|
||||||
~DeleteShortUrlRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
std::string getProdCode()const;
|
|
||||||
void setProdCode(const std::string& prodCode);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getSourceUrl()const;
|
|
||||||
void setSourceUrl(const std::string& sourceUrl);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
std::string prodCode_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string sourceUrl_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLREQUEST_H_
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_DELETESHORTURLRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT DeleteShortUrlResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
DeleteShortUrlResult();
|
|
||||||
explicit DeleteShortUrlResult(const std::string &payload);
|
|
||||||
~DeleteShortUrlResult();
|
|
||||||
std::string getMessage()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string message_;
|
|
||||||
std::string code_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLRESULT_H_
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_DELETESMSSIGNREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_DELETESMSSIGNREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT DeleteSmsSignRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
DeleteSmsSignRequest();
|
|
||||||
~DeleteSmsSignRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getSignName()const;
|
|
||||||
void setSignName(const std::string& signName);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string signName_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_DELETESMSSIGNREQUEST_H_
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_DELETESMSSIGNRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_DELETESMSSIGNRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT DeleteSmsSignResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
DeleteSmsSignResult();
|
|
||||||
explicit DeleteSmsSignResult(const std::string &payload);
|
|
||||||
~DeleteSmsSignResult();
|
|
||||||
std::string getMessage()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
std::string getSignName()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string message_;
|
|
||||||
std::string code_;
|
|
||||||
std::string signName_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_DELETESMSSIGNRESULT_H_
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_DELETESMSTEMPLATEREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_DELETESMSTEMPLATEREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT DeleteSmsTemplateRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
DeleteSmsTemplateRequest();
|
|
||||||
~DeleteSmsTemplateRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getTemplateCode()const;
|
|
||||||
void setTemplateCode(const std::string& templateCode);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string templateCode_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_DELETESMSTEMPLATEREQUEST_H_
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_DELETESMSTEMPLATERESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_DELETESMSTEMPLATERESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT DeleteSmsTemplateResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
DeleteSmsTemplateResult();
|
|
||||||
explicit DeleteSmsTemplateResult(const std::string &payload);
|
|
||||||
~DeleteSmsTemplateResult();
|
|
||||||
std::string getTemplateCode()const;
|
|
||||||
std::string getMessage()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string templateCode_;
|
|
||||||
std::string message_;
|
|
||||||
std::string code_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_DELETESMSTEMPLATERESULT_H_
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_LISTTAGRESOURCESREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT ListTagResourcesRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
struct Tag
|
|
||||||
{
|
|
||||||
std::string value;
|
|
||||||
std::string key;
|
|
||||||
};
|
|
||||||
|
|
||||||
public:
|
|
||||||
ListTagResourcesRequest();
|
|
||||||
~ListTagResourcesRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getRegionId()const;
|
|
||||||
void setRegionId(const std::string& regionId);
|
|
||||||
std::string getNextToken()const;
|
|
||||||
void setNextToken(const std::string& nextToken);
|
|
||||||
int getPageSize()const;
|
|
||||||
void setPageSize(int pageSize);
|
|
||||||
std::vector<Tag> getTag()const;
|
|
||||||
void setTag(const std::vector<Tag>& tag);
|
|
||||||
std::vector<std::string> getResourceId()const;
|
|
||||||
void setResourceId(const std::vector<std::string>& resourceId);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
std::string getProdCode()const;
|
|
||||||
void setProdCode(const std::string& prodCode);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getResourceType()const;
|
|
||||||
void setResourceType(const std::string& resourceType);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string regionId_;
|
|
||||||
std::string nextToken_;
|
|
||||||
int pageSize_;
|
|
||||||
std::vector<Tag> tag_;
|
|
||||||
std::vector<std::string> resourceId_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
std::string prodCode_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string resourceType_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESREQUEST_H_
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_MODIFYSMSSIGNREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_MODIFYSMSSIGNREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT ModifySmsSignRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
struct SignFileList
|
|
||||||
{
|
|
||||||
std::string fileContents;
|
|
||||||
std::string fileSuffix;
|
|
||||||
};
|
|
||||||
|
|
||||||
public:
|
|
||||||
ModifySmsSignRequest();
|
|
||||||
~ModifySmsSignRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getRemark()const;
|
|
||||||
void setRemark(const std::string& remark);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getSignName()const;
|
|
||||||
void setSignName(const std::string& signName);
|
|
||||||
std::vector<SignFileList> getSignFileList()const;
|
|
||||||
void setSignFileList(const std::vector<SignFileList>& signFileList);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
int getSignSource()const;
|
|
||||||
void setSignSource(int signSource);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string remark_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string signName_;
|
|
||||||
std::vector<SignFileList> signFileList_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
long ownerId_;
|
|
||||||
int signSource_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_MODIFYSMSSIGNREQUEST_H_
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_MODIFYSMSTEMPLATEREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_MODIFYSMSTEMPLATEREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT ModifySmsTemplateRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
ModifySmsTemplateRequest();
|
|
||||||
~ModifySmsTemplateRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getRemark()const;
|
|
||||||
void setRemark(const std::string& remark);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
int getTemplateType()const;
|
|
||||||
void setTemplateType(int templateType);
|
|
||||||
std::string getTemplateName()const;
|
|
||||||
void setTemplateName(const std::string& templateName);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getTemplateContent()const;
|
|
||||||
void setTemplateContent(const std::string& templateContent);
|
|
||||||
std::string getTemplateCode()const;
|
|
||||||
void setTemplateCode(const std::string& templateCode);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string remark_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
int templateType_;
|
|
||||||
std::string templateName_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string templateContent_;
|
|
||||||
std::string templateCode_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_MODIFYSMSTEMPLATEREQUEST_H_
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_MODIFYSMSTEMPLATERESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_MODIFYSMSTEMPLATERESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT ModifySmsTemplateResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
ModifySmsTemplateResult();
|
|
||||||
explicit ModifySmsTemplateResult(const std::string &payload);
|
|
||||||
~ModifySmsTemplateResult();
|
|
||||||
std::string getTemplateCode()const;
|
|
||||||
std::string getMessage()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string templateCode_;
|
|
||||||
std::string message_;
|
|
||||||
std::string code_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_MODIFYSMSTEMPLATERESULT_H_
|
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* 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_DYSMSAPI_MODEL_QUERYMESSAGEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYMESSAGEREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Dysmsapi {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_DYSMSAPI_EXPORT QueryMessageRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
QueryMessageRequest();
|
||||||
|
~QueryMessageRequest();
|
||||||
|
long getResourceOwnerId() const;
|
||||||
|
void setResourceOwnerId(long resourceOwnerId);
|
||||||
|
std::string getResourceOwnerAccount() const;
|
||||||
|
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||||
|
std::string getMessageId() const;
|
||||||
|
void setMessageId(const std::string &messageId);
|
||||||
|
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 messageId_;
|
||||||
|
long ownerId_;
|
||||||
|
std::string accessKeyId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Dysmsapi
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYMESSAGEREQUEST_H_
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
/*
|
||||||
|
* 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_DYSMSAPI_MODEL_QUERYMESSAGERESULT_H_
|
||||||
|
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYMESSAGERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Dysmsapi
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_DYSMSAPI_EXPORT QueryMessageResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct NumberDetail
|
||||||
|
{
|
||||||
|
std::string region;
|
||||||
|
std::string country;
|
||||||
|
std::string carrier;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
QueryMessageResult();
|
||||||
|
explicit QueryMessageResult(const std::string &payload);
|
||||||
|
~QueryMessageResult();
|
||||||
|
std::string getStatus()const;
|
||||||
|
std::string getErrorDescription()const;
|
||||||
|
std::string getResponseCode()const;
|
||||||
|
NumberDetail getNumberDetail()const;
|
||||||
|
std::string getReceiveDate()const;
|
||||||
|
std::string getMessage()const;
|
||||||
|
std::string getResponseDescription()const;
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getSendDate()const;
|
||||||
|
std::string getTo()const;
|
||||||
|
std::string getMessageId()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string status_;
|
||||||
|
std::string errorDescription_;
|
||||||
|
std::string responseCode_;
|
||||||
|
NumberDetail numberDetail_;
|
||||||
|
std::string receiveDate_;
|
||||||
|
std::string message_;
|
||||||
|
std::string responseDescription_;
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string sendDate_;
|
||||||
|
std::string to_;
|
||||||
|
std::string messageId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYMESSAGERESULT_H_
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSENDDETAILSREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySendDetailsRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
QuerySendDetailsRequest();
|
|
||||||
~QuerySendDetailsRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getPhoneNumber()const;
|
|
||||||
void setPhoneNumber(const std::string& phoneNumber);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getSendDate()const;
|
|
||||||
void setSendDate(const std::string& sendDate);
|
|
||||||
long getPageSize()const;
|
|
||||||
void setPageSize(long pageSize);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
long getCurrentPage()const;
|
|
||||||
void setCurrentPage(long currentPage);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getBizId()const;
|
|
||||||
void setBizId(const std::string& bizId);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string phoneNumber_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string sendDate_;
|
|
||||||
long pageSize_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
long currentPage_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string bizId_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSREQUEST_H_
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSENDDETAILSRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySendDetailsResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
struct SmsSendDetailDTO
|
|
||||||
{
|
|
||||||
std::string templateCode;
|
|
||||||
std::string receiveDate;
|
|
||||||
std::string phoneNum;
|
|
||||||
std::string content;
|
|
||||||
long sendStatus;
|
|
||||||
std::string outId;
|
|
||||||
std::string sendDate;
|
|
||||||
std::string errCode;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
QuerySendDetailsResult();
|
|
||||||
explicit QuerySendDetailsResult(const std::string &payload);
|
|
||||||
~QuerySendDetailsResult();
|
|
||||||
std::string getTotalCount()const;
|
|
||||||
std::string getMessage()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
std::vector<SmsSendDetailDTO> getSmsSendDetailDTOs()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string totalCount_;
|
|
||||||
std::string message_;
|
|
||||||
std::string code_;
|
|
||||||
std::vector<SmsSendDetailDTO> smsSendDetailDTOs_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSRESULT_H_
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSENDSTATISTICSREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySendStatisticsRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
QuerySendStatisticsRequest();
|
|
||||||
~QuerySendStatisticsRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
int getIsGlobe()const;
|
|
||||||
void setIsGlobe(int isGlobe);
|
|
||||||
std::string getStartDate()const;
|
|
||||||
void setStartDate(const std::string& startDate);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
int getPageSize()const;
|
|
||||||
void setPageSize(int pageSize);
|
|
||||||
int getPageIndex()const;
|
|
||||||
void setPageIndex(int pageIndex);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getEndDate()const;
|
|
||||||
void setEndDate(const std::string& endDate);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
int isGlobe_;
|
|
||||||
std::string startDate_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
int pageSize_;
|
|
||||||
int pageIndex_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string endDate_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSREQUEST_H_
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSENDSTATISTICSRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySendStatisticsResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
struct Data
|
|
||||||
{
|
|
||||||
struct SmsStatisticsDTO
|
|
||||||
{
|
|
||||||
long totalCount;
|
|
||||||
long noRespondedCount;
|
|
||||||
std::string sendDate;
|
|
||||||
long respondedFailCount;
|
|
||||||
long respondedSuccessCount;
|
|
||||||
};
|
|
||||||
std::vector<SmsStatisticsDTO> targetList;
|
|
||||||
long totalSize;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
QuerySendStatisticsResult();
|
|
||||||
explicit QuerySendStatisticsResult(const std::string &payload);
|
|
||||||
~QuerySendStatisticsResult();
|
|
||||||
std::string getMessage()const;
|
|
||||||
Data getData()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string message_;
|
|
||||||
Data data_;
|
|
||||||
std::string code_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSRESULT_H_
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSHORTURLREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QueryShortUrlRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
QueryShortUrlRequest();
|
|
||||||
~QueryShortUrlRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
std::string getShortUrl()const;
|
|
||||||
void setShortUrl(const std::string& shortUrl);
|
|
||||||
std::string getProdCode()const;
|
|
||||||
void setProdCode(const std::string& prodCode);
|
|
||||||
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 shortUrl_;
|
|
||||||
std::string prodCode_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLREQUEST_H_
|
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSHORTURLRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QueryShortUrlResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
struct Data
|
|
||||||
{
|
|
||||||
std::string sourceUrl;
|
|
||||||
std::string shortUrlName;
|
|
||||||
std::string shortUrl;
|
|
||||||
std::string expireDate;
|
|
||||||
std::string pageViewCount;
|
|
||||||
std::string createDate;
|
|
||||||
std::string shortUrlStatus;
|
|
||||||
std::string uniqueVisitorCount;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
QueryShortUrlResult();
|
|
||||||
explicit QueryShortUrlResult(const std::string &payload);
|
|
||||||
~QueryShortUrlResult();
|
|
||||||
std::string getMessage()const;
|
|
||||||
Data getData()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string message_;
|
|
||||||
Data data_;
|
|
||||||
std::string code_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLRESULT_H_
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSMSSIGNLISTREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsSignListRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
QuerySmsSignListRequest();
|
|
||||||
~QuerySmsSignListRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
int getPageSize()const;
|
|
||||||
void setPageSize(int pageSize);
|
|
||||||
int getPageIndex()const;
|
|
||||||
void setPageIndex(int pageIndex);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
int pageSize_;
|
|
||||||
int pageIndex_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
long ownerId_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTREQUEST_H_
|
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSMSSIGNLISTRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsSignListResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
struct QuerySmsSignDTO
|
|
||||||
{
|
|
||||||
struct Reason
|
|
||||||
{
|
|
||||||
std::string rejectInfo;
|
|
||||||
std::string rejectSubInfo;
|
|
||||||
std::string rejectDate;
|
|
||||||
};
|
|
||||||
std::string auditStatus;
|
|
||||||
std::string businessType;
|
|
||||||
std::string orderId;
|
|
||||||
std::string createDate;
|
|
||||||
Reason reason;
|
|
||||||
std::string signName;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
QuerySmsSignListResult();
|
|
||||||
explicit QuerySmsSignListResult(const std::string &payload);
|
|
||||||
~QuerySmsSignListResult();
|
|
||||||
std::string getMessage()const;
|
|
||||||
std::vector<QuerySmsSignDTO> getSmsSignList()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string message_;
|
|
||||||
std::vector<QuerySmsSignDTO> smsSignList_;
|
|
||||||
std::string code_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTRESULT_H_
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSMSSIGNREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsSignRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
QuerySmsSignRequest();
|
|
||||||
~QuerySmsSignRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getSignName()const;
|
|
||||||
void setSignName(const std::string& signName);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string signName_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNREQUEST_H_
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSMSSIGNRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsSignResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
QuerySmsSignResult();
|
|
||||||
explicit QuerySmsSignResult(const std::string &payload);
|
|
||||||
~QuerySmsSignResult();
|
|
||||||
std::string getMessage()const;
|
|
||||||
int getSignStatus()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
std::string getCreateDate()const;
|
|
||||||
std::string getReason()const;
|
|
||||||
std::string getSignName()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string message_;
|
|
||||||
int signStatus_;
|
|
||||||
std::string code_;
|
|
||||||
std::string createDate_;
|
|
||||||
std::string reason_;
|
|
||||||
std::string signName_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNRESULT_H_
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsTemplateListRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
QuerySmsTemplateListRequest();
|
|
||||||
~QuerySmsTemplateListRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
int getPageSize()const;
|
|
||||||
void setPageSize(int pageSize);
|
|
||||||
int getPageIndex()const;
|
|
||||||
void setPageIndex(int pageIndex);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
int pageSize_;
|
|
||||||
int pageIndex_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
long ownerId_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTREQUEST_H_
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsTemplateListResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
struct SmsStatsResultDTO
|
|
||||||
{
|
|
||||||
struct Reason
|
|
||||||
{
|
|
||||||
std::string rejectInfo;
|
|
||||||
std::string rejectSubInfo;
|
|
||||||
std::string rejectDate;
|
|
||||||
};
|
|
||||||
std::string templateCode;
|
|
||||||
std::string auditStatus;
|
|
||||||
std::string templateContent;
|
|
||||||
std::string templateName;
|
|
||||||
int templateType;
|
|
||||||
std::string orderId;
|
|
||||||
std::string createDate;
|
|
||||||
Reason reason;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
QuerySmsTemplateListResult();
|
|
||||||
explicit QuerySmsTemplateListResult(const std::string &payload);
|
|
||||||
~QuerySmsTemplateListResult();
|
|
||||||
std::string getMessage()const;
|
|
||||||
std::vector<SmsStatsResultDTO> getSmsTemplateList()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string message_;
|
|
||||||
std::vector<SmsStatsResultDTO> smsTemplateList_;
|
|
||||||
std::string code_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTRESULT_H_
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSMSTEMPLATEREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATEREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsTemplateRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
QuerySmsTemplateRequest();
|
|
||||||
~QuerySmsTemplateRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getTemplateCode()const;
|
|
||||||
void setTemplateCode(const std::string& templateCode);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string templateCode_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATEREQUEST_H_
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_QUERYSMSTEMPLATERESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATERESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsTemplateResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
QuerySmsTemplateResult();
|
|
||||||
explicit QuerySmsTemplateResult(const std::string &payload);
|
|
||||||
~QuerySmsTemplateResult();
|
|
||||||
std::string getTemplateCode()const;
|
|
||||||
std::string getMessage()const;
|
|
||||||
std::string getTemplateContent()const;
|
|
||||||
std::string getTemplateName()const;
|
|
||||||
int getTemplateType()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
std::string getCreateDate()const;
|
|
||||||
std::string getReason()const;
|
|
||||||
int getTemplateStatus()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string templateCode_;
|
|
||||||
std::string message_;
|
|
||||||
std::string templateContent_;
|
|
||||||
std::string templateName_;
|
|
||||||
int templateType_;
|
|
||||||
std::string code_;
|
|
||||||
std::string createDate_;
|
|
||||||
std::string reason_;
|
|
||||||
int templateStatus_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATERESULT_H_
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_SENDBATCHSMSREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT SendBatchSmsRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
SendBatchSmsRequest();
|
|
||||||
~SendBatchSmsRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getTemplateParamJson()const;
|
|
||||||
void setTemplateParamJson(const std::string& templateParamJson);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getSmsUpExtendCodeJson()const;
|
|
||||||
void setSmsUpExtendCodeJson(const std::string& smsUpExtendCodeJson);
|
|
||||||
std::string getSignNameJson()const;
|
|
||||||
void setSignNameJson(const std::string& signNameJson);
|
|
||||||
std::string getTemplateCode()const;
|
|
||||||
void setTemplateCode(const std::string& templateCode);
|
|
||||||
std::string getPhoneNumberJson()const;
|
|
||||||
void setPhoneNumberJson(const std::string& phoneNumberJson);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string templateParamJson_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string smsUpExtendCodeJson_;
|
|
||||||
std::string signNameJson_;
|
|
||||||
std::string templateCode_;
|
|
||||||
std::string phoneNumberJson_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSREQUEST_H_
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_SENDBATCHSMSRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT SendBatchSmsResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
SendBatchSmsResult();
|
|
||||||
explicit SendBatchSmsResult(const std::string &payload);
|
|
||||||
~SendBatchSmsResult();
|
|
||||||
std::string getMessage()const;
|
|
||||||
std::string getBizId()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string message_;
|
|
||||||
std::string bizId_;
|
|
||||||
std::string code_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSRESULT_H_
|
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* 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_DYSMSAPI_MODEL_SENDMESSAGETOGLOBEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDMESSAGETOGLOBEREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Dysmsapi {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_DYSMSAPI_EXPORT SendMessageToGlobeRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
SendMessageToGlobeRequest();
|
||||||
|
~SendMessageToGlobeRequest();
|
||||||
|
long getResourceOwnerId() const;
|
||||||
|
void setResourceOwnerId(long resourceOwnerId);
|
||||||
|
std::string getType() const;
|
||||||
|
void setType(const std::string &type);
|
||||||
|
std::string getAccessKeyId() const;
|
||||||
|
void setAccessKeyId(const std::string &accessKeyId);
|
||||||
|
std::string getFrom() const;
|
||||||
|
void setFrom(const std::string &from);
|
||||||
|
std::string getTaskId() const;
|
||||||
|
void setTaskId(const std::string &taskId);
|
||||||
|
std::string getResourceOwnerAccount() const;
|
||||||
|
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||||
|
long getOwnerId() const;
|
||||||
|
void setOwnerId(long ownerId);
|
||||||
|
std::string getMessage() const;
|
||||||
|
void setMessage(const std::string &message);
|
||||||
|
long getValidityPeriod() const;
|
||||||
|
void setValidityPeriod(long validityPeriod);
|
||||||
|
std::string getTo() const;
|
||||||
|
void setTo(const std::string &to);
|
||||||
|
std::string getChannelId() const;
|
||||||
|
void setChannelId(const std::string &channelId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
long resourceOwnerId_;
|
||||||
|
std::string type_;
|
||||||
|
std::string accessKeyId_;
|
||||||
|
std::string from_;
|
||||||
|
std::string taskId_;
|
||||||
|
std::string resourceOwnerAccount_;
|
||||||
|
long ownerId_;
|
||||||
|
std::string message_;
|
||||||
|
long validityPeriod_;
|
||||||
|
std::string to_;
|
||||||
|
std::string channelId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Dysmsapi
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDMESSAGETOGLOBEREQUEST_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_DYSMSAPI_MODEL_SENDMESSAGETOGLOBERESULT_H_
|
||||||
|
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDMESSAGETOGLOBERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Dysmsapi
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_DYSMSAPI_EXPORT SendMessageToGlobeResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct NumberDetail
|
||||||
|
{
|
||||||
|
std::string region;
|
||||||
|
std::string country;
|
||||||
|
std::string carrier;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
SendMessageToGlobeResult();
|
||||||
|
explicit SendMessageToGlobeResult(const std::string &payload);
|
||||||
|
~SendMessageToGlobeResult();
|
||||||
|
std::string getResponseCode()const;
|
||||||
|
NumberDetail getNumberDetail()const;
|
||||||
|
std::string getSegments()const;
|
||||||
|
std::string getResponseDescription()const;
|
||||||
|
std::string getFrom()const;
|
||||||
|
std::string getTo()const;
|
||||||
|
std::string getMessageId()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string responseCode_;
|
||||||
|
NumberDetail numberDetail_;
|
||||||
|
std::string segments_;
|
||||||
|
std::string responseDescription_;
|
||||||
|
std::string from_;
|
||||||
|
std::string to_;
|
||||||
|
std::string messageId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDMESSAGETOGLOBERESULT_H_
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* 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_DYSMSAPI_MODEL_SENDMESSAGEWITHTEMPLATEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDMESSAGEWITHTEMPLATEREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Dysmsapi {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_DYSMSAPI_EXPORT SendMessageWithTemplateRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
SendMessageWithTemplateRequest();
|
||||||
|
~SendMessageWithTemplateRequest();
|
||||||
|
long getResourceOwnerId() const;
|
||||||
|
void setResourceOwnerId(long resourceOwnerId);
|
||||||
|
std::string getAccessKeyId() const;
|
||||||
|
void setAccessKeyId(const std::string &accessKeyId);
|
||||||
|
std::string getSmsUpExtendCode() const;
|
||||||
|
void setSmsUpExtendCode(const std::string &smsUpExtendCode);
|
||||||
|
std::string getFrom() const;
|
||||||
|
void setFrom(const std::string &from);
|
||||||
|
std::string getResourceOwnerAccount() const;
|
||||||
|
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||||
|
long getOwnerId() const;
|
||||||
|
void setOwnerId(long ownerId);
|
||||||
|
long getValidityPeriod() const;
|
||||||
|
void setValidityPeriod(long validityPeriod);
|
||||||
|
std::string getTo() const;
|
||||||
|
void setTo(const std::string &to);
|
||||||
|
std::string getTemplateCode() const;
|
||||||
|
void setTemplateCode(const std::string &templateCode);
|
||||||
|
std::string getChannelId() const;
|
||||||
|
void setChannelId(const std::string &channelId);
|
||||||
|
std::string getTemplateParam() const;
|
||||||
|
void setTemplateParam(const std::string &templateParam);
|
||||||
|
|
||||||
|
private:
|
||||||
|
long resourceOwnerId_;
|
||||||
|
std::string accessKeyId_;
|
||||||
|
std::string smsUpExtendCode_;
|
||||||
|
std::string from_;
|
||||||
|
std::string resourceOwnerAccount_;
|
||||||
|
long ownerId_;
|
||||||
|
long validityPeriod_;
|
||||||
|
std::string to_;
|
||||||
|
std::string templateCode_;
|
||||||
|
std::string channelId_;
|
||||||
|
std::string templateParam_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Dysmsapi
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDMESSAGEWITHTEMPLATEREQUEST_H_
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESRESULT_H_
|
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_SENDMESSAGEWITHTEMPLATERESULT_H_
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESRESULT_H_
|
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDMESSAGEWITHTEMPLATERESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -29,34 +29,39 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT ListTagResourcesResult : public ServiceResult
|
class ALIBABACLOUD_DYSMSAPI_EXPORT SendMessageWithTemplateResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
struct TagResource
|
struct NumberDetail
|
||||||
{
|
{
|
||||||
std::string resourceId;
|
std::string region;
|
||||||
std::string tagKey;
|
std::string country;
|
||||||
std::string resourceType;
|
std::string carrier;
|
||||||
std::string tagValue;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
ListTagResourcesResult();
|
SendMessageWithTemplateResult();
|
||||||
explicit ListTagResourcesResult(const std::string &payload);
|
explicit SendMessageWithTemplateResult(const std::string &payload);
|
||||||
~ListTagResourcesResult();
|
~SendMessageWithTemplateResult();
|
||||||
std::string getNextToken()const;
|
std::string getResponseCode()const;
|
||||||
std::vector<TagResource> getTagResources()const;
|
NumberDetail getNumberDetail()const;
|
||||||
std::string getCode()const;
|
std::string getResponseDescription()const;
|
||||||
|
std::string getSegments()const;
|
||||||
|
std::string getTo()const;
|
||||||
|
std::string getMessageId()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string nextToken_;
|
std::string responseCode_;
|
||||||
std::vector<TagResource> tagResources_;
|
NumberDetail numberDetail_;
|
||||||
std::string code_;
|
std::string responseDescription_;
|
||||||
|
std::string segments_;
|
||||||
|
std::string to_;
|
||||||
|
std::string messageId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESRESULT_H_
|
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDMESSAGEWITHTEMPLATERESULT_H_
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_SENDSMSREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT SendSmsRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
SendSmsRequest();
|
|
||||||
~SendSmsRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getSmsUpExtendCode()const;
|
|
||||||
void setSmsUpExtendCode(const std::string& smsUpExtendCode);
|
|
||||||
std::string getSignName()const;
|
|
||||||
void setSignName(const std::string& signName);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
std::string getPhoneNumbers()const;
|
|
||||||
void setPhoneNumbers(const std::string& phoneNumbers);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getOutId()const;
|
|
||||||
void setOutId(const std::string& outId);
|
|
||||||
std::string getTemplateCode()const;
|
|
||||||
void setTemplateCode(const std::string& templateCode);
|
|
||||||
std::string getTemplateParam()const;
|
|
||||||
void setTemplateParam(const std::string& templateParam);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string smsUpExtendCode_;
|
|
||||||
std::string signName_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
std::string phoneNumbers_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string outId_;
|
|
||||||
std::string templateCode_;
|
|
||||||
std::string templateParam_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSREQUEST_H_
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_SENDSMSRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT SendSmsResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
SendSmsResult();
|
|
||||||
explicit SendSmsResult(const std::string &payload);
|
|
||||||
~SendSmsResult();
|
|
||||||
std::string getMessage()const;
|
|
||||||
std::string getBizId()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string message_;
|
|
||||||
std::string bizId_;
|
|
||||||
std::string code_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSRESULT_H_
|
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* 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_DYSMSAPI_MODEL_SMSCONVERSIONREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_DYSMSAPI_MODEL_SMSCONVERSIONREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Dysmsapi {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_DYSMSAPI_EXPORT SmsConversionRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
SmsConversionRequest();
|
||||||
|
~SmsConversionRequest();
|
||||||
|
long getConversionTime() const;
|
||||||
|
void setConversionTime(long conversionTime);
|
||||||
|
std::string getMessageId() const;
|
||||||
|
void setMessageId(const std::string &messageId);
|
||||||
|
bool getDelivered() const;
|
||||||
|
void setDelivered(bool delivered);
|
||||||
|
std::string getTo() const;
|
||||||
|
void setTo(const std::string &to);
|
||||||
|
|
||||||
|
private:
|
||||||
|
long conversionTime_;
|
||||||
|
std::string messageId_;
|
||||||
|
bool delivered_;
|
||||||
|
std::string to_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Dysmsapi
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SMSCONVERSIONREQUEST_H_
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_MODIFYSMSSIGNRESULT_H_
|
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_SMSCONVERSIONRESULT_H_
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_MODIFYSMSSIGNRESULT_H_
|
#define ALIBABACLOUD_DYSMSAPI_MODEL_SMSCONVERSIONRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -29,27 +29,25 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT ModifySmsSignResult : public ServiceResult
|
class ALIBABACLOUD_DYSMSAPI_EXPORT SmsConversionResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
ModifySmsSignResult();
|
SmsConversionResult();
|
||||||
explicit ModifySmsSignResult(const std::string &payload);
|
explicit SmsConversionResult(const std::string &payload);
|
||||||
~ModifySmsSignResult();
|
~SmsConversionResult();
|
||||||
std::string getMessage()const;
|
std::string getResponseCode()const;
|
||||||
std::string getCode()const;
|
std::string getResponseDescription()const;
|
||||||
std::string getSignName()const;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string message_;
|
std::string responseCode_;
|
||||||
std::string code_;
|
std::string responseDescription_;
|
||||||
std::string signName_;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_MODIFYSMSSIGNRESULT_H_
|
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SMSCONVERSIONRESULT_H_
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_TAGRESOURCESREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT TagResourcesRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
struct Tag
|
|
||||||
{
|
|
||||||
std::string value;
|
|
||||||
std::string key;
|
|
||||||
};
|
|
||||||
|
|
||||||
public:
|
|
||||||
TagResourcesRequest();
|
|
||||||
~TagResourcesRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getRegionId()const;
|
|
||||||
void setRegionId(const std::string& regionId);
|
|
||||||
std::vector<Tag> getTag()const;
|
|
||||||
void setTag(const std::vector<Tag>& tag);
|
|
||||||
std::vector<std::string> getResourceId()const;
|
|
||||||
void setResourceId(const std::vector<std::string>& resourceId);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
std::string getProdCode()const;
|
|
||||||
void setProdCode(const std::string& prodCode);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getResourceType()const;
|
|
||||||
void setResourceType(const std::string& resourceType);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string regionId_;
|
|
||||||
std::vector<Tag> tag_;
|
|
||||||
std::vector<std::string> resourceId_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
std::string prodCode_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string resourceType_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESREQUEST_H_
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_TAGRESOURCESRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT TagResourcesResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
TagResourcesResult();
|
|
||||||
explicit TagResourcesResult(const std::string &payload);
|
|
||||||
~TagResourcesResult();
|
|
||||||
std::string getData()const;
|
|
||||||
std::string getCode()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
std::string data_;
|
|
||||||
std::string code_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESRESULT_H_
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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_DYSMSAPI_MODEL_UNTAGRESOURCESREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dysmsapi
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DYSMSAPI_EXPORT UntagResourcesRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
UntagResourcesRequest();
|
|
||||||
~UntagResourcesRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getRegionId()const;
|
|
||||||
void setRegionId(const std::string& regionId);
|
|
||||||
bool getAll()const;
|
|
||||||
void setAll(bool all);
|
|
||||||
std::vector<std::string> getResourceId()const;
|
|
||||||
void setResourceId(const std::vector<std::string>& resourceId);
|
|
||||||
std::string getResourceOwnerAccount()const;
|
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
||||||
std::string getProdCode()const;
|
|
||||||
void setProdCode(const std::string& prodCode);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getResourceType()const;
|
|
||||||
void setResourceType(const std::string& resourceType);
|
|
||||||
std::vector<std::string> getTagKey()const;
|
|
||||||
void setTagKey(const std::vector<std::string>& tagKey);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string regionId_;
|
|
||||||
bool all_;
|
|
||||||
std::vector<std::string> resourceId_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
std::string prodCode_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string resourceType_;
|
|
||||||
std::vector<std::string> tagKey_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESREQUEST_H_
|
|
||||||
@@ -31,740 +31,236 @@ DysmsapiClient::DysmsapiClient(const Credentials &credentials, const ClientConfi
|
|||||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dysms");
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::DysmsapiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
DysmsapiClient::DysmsapiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dysms");
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::DysmsapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
DysmsapiClient::DysmsapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dysms");
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::~DysmsapiClient()
|
DysmsapiClient::~DysmsapiClient()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
DysmsapiClient::AddShortUrlOutcome DysmsapiClient::addShortUrl(const AddShortUrlRequest &request) const
|
DysmsapiClient::BatchSendMessageToGlobeOutcome DysmsapiClient::batchSendMessageToGlobe(const BatchSendMessageToGlobeRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
if (!endpointOutcome.isSuccess())
|
if (!endpointOutcome.isSuccess())
|
||||||
return AddShortUrlOutcome(endpointOutcome.error());
|
return BatchSendMessageToGlobeOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
if (outcome.isSuccess())
|
||||||
return AddShortUrlOutcome(AddShortUrlResult(outcome.result()));
|
return BatchSendMessageToGlobeOutcome(BatchSendMessageToGlobeResult(outcome.result()));
|
||||||
else
|
else
|
||||||
return AddShortUrlOutcome(outcome.error());
|
return BatchSendMessageToGlobeOutcome(outcome.error());
|
||||||
}
|
}
|
||||||
|
|
||||||
void DysmsapiClient::addShortUrlAsync(const AddShortUrlRequest& request, const AddShortUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
void DysmsapiClient::batchSendMessageToGlobeAsync(const BatchSendMessageToGlobeRequest& request, const BatchSendMessageToGlobeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
{
|
{
|
||||||
auto fn = [this, request, handler, context]()
|
auto fn = [this, request, handler, context]()
|
||||||
{
|
{
|
||||||
handler(this, request, addShortUrl(request), context);
|
handler(this, request, batchSendMessageToGlobe(request), context);
|
||||||
};
|
};
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
asyncExecute(new Runnable(fn));
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::AddShortUrlOutcomeCallable DysmsapiClient::addShortUrlCallable(const AddShortUrlRequest &request) const
|
DysmsapiClient::BatchSendMessageToGlobeOutcomeCallable DysmsapiClient::batchSendMessageToGlobeCallable(const BatchSendMessageToGlobeRequest &request) const
|
||||||
{
|
{
|
||||||
auto task = std::make_shared<std::packaged_task<AddShortUrlOutcome()>>(
|
auto task = std::make_shared<std::packaged_task<BatchSendMessageToGlobeOutcome()>>(
|
||||||
[this, request]()
|
[this, request]()
|
||||||
{
|
{
|
||||||
return this->addShortUrl(request);
|
return this->batchSendMessageToGlobe(request);
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::AddSmsSignOutcome DysmsapiClient::addSmsSign(const AddSmsSignRequest &request) const
|
DysmsapiClient::ConversionDataOutcome DysmsapiClient::conversionData(const ConversionDataRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
if (!endpointOutcome.isSuccess())
|
if (!endpointOutcome.isSuccess())
|
||||||
return AddSmsSignOutcome(endpointOutcome.error());
|
return ConversionDataOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
if (outcome.isSuccess())
|
||||||
return AddSmsSignOutcome(AddSmsSignResult(outcome.result()));
|
return ConversionDataOutcome(ConversionDataResult(outcome.result()));
|
||||||
else
|
else
|
||||||
return AddSmsSignOutcome(outcome.error());
|
return ConversionDataOutcome(outcome.error());
|
||||||
}
|
}
|
||||||
|
|
||||||
void DysmsapiClient::addSmsSignAsync(const AddSmsSignRequest& request, const AddSmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
void DysmsapiClient::conversionDataAsync(const ConversionDataRequest& request, const ConversionDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
{
|
{
|
||||||
auto fn = [this, request, handler, context]()
|
auto fn = [this, request, handler, context]()
|
||||||
{
|
{
|
||||||
handler(this, request, addSmsSign(request), context);
|
handler(this, request, conversionData(request), context);
|
||||||
};
|
};
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
asyncExecute(new Runnable(fn));
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::AddSmsSignOutcomeCallable DysmsapiClient::addSmsSignCallable(const AddSmsSignRequest &request) const
|
DysmsapiClient::ConversionDataOutcomeCallable DysmsapiClient::conversionDataCallable(const ConversionDataRequest &request) const
|
||||||
{
|
{
|
||||||
auto task = std::make_shared<std::packaged_task<AddSmsSignOutcome()>>(
|
auto task = std::make_shared<std::packaged_task<ConversionDataOutcome()>>(
|
||||||
[this, request]()
|
[this, request]()
|
||||||
{
|
{
|
||||||
return this->addSmsSign(request);
|
return this->conversionData(request);
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::AddSmsTemplateOutcome DysmsapiClient::addSmsTemplate(const AddSmsTemplateRequest &request) const
|
DysmsapiClient::QueryMessageOutcome DysmsapiClient::queryMessage(const QueryMessageRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
if (!endpointOutcome.isSuccess())
|
if (!endpointOutcome.isSuccess())
|
||||||
return AddSmsTemplateOutcome(endpointOutcome.error());
|
return QueryMessageOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
if (outcome.isSuccess())
|
||||||
return AddSmsTemplateOutcome(AddSmsTemplateResult(outcome.result()));
|
return QueryMessageOutcome(QueryMessageResult(outcome.result()));
|
||||||
else
|
else
|
||||||
return AddSmsTemplateOutcome(outcome.error());
|
return QueryMessageOutcome(outcome.error());
|
||||||
}
|
}
|
||||||
|
|
||||||
void DysmsapiClient::addSmsTemplateAsync(const AddSmsTemplateRequest& request, const AddSmsTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
void DysmsapiClient::queryMessageAsync(const QueryMessageRequest& request, const QueryMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
{
|
{
|
||||||
auto fn = [this, request, handler, context]()
|
auto fn = [this, request, handler, context]()
|
||||||
{
|
{
|
||||||
handler(this, request, addSmsTemplate(request), context);
|
handler(this, request, queryMessage(request), context);
|
||||||
};
|
};
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
asyncExecute(new Runnable(fn));
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::AddSmsTemplateOutcomeCallable DysmsapiClient::addSmsTemplateCallable(const AddSmsTemplateRequest &request) const
|
DysmsapiClient::QueryMessageOutcomeCallable DysmsapiClient::queryMessageCallable(const QueryMessageRequest &request) const
|
||||||
{
|
{
|
||||||
auto task = std::make_shared<std::packaged_task<AddSmsTemplateOutcome()>>(
|
auto task = std::make_shared<std::packaged_task<QueryMessageOutcome()>>(
|
||||||
[this, request]()
|
[this, request]()
|
||||||
{
|
{
|
||||||
return this->addSmsTemplate(request);
|
return this->queryMessage(request);
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::DeleteShortUrlOutcome DysmsapiClient::deleteShortUrl(const DeleteShortUrlRequest &request) const
|
DysmsapiClient::SendMessageToGlobeOutcome DysmsapiClient::sendMessageToGlobe(const SendMessageToGlobeRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
if (!endpointOutcome.isSuccess())
|
if (!endpointOutcome.isSuccess())
|
||||||
return DeleteShortUrlOutcome(endpointOutcome.error());
|
return SendMessageToGlobeOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
if (outcome.isSuccess())
|
||||||
return DeleteShortUrlOutcome(DeleteShortUrlResult(outcome.result()));
|
return SendMessageToGlobeOutcome(SendMessageToGlobeResult(outcome.result()));
|
||||||
else
|
else
|
||||||
return DeleteShortUrlOutcome(outcome.error());
|
return SendMessageToGlobeOutcome(outcome.error());
|
||||||
}
|
}
|
||||||
|
|
||||||
void DysmsapiClient::deleteShortUrlAsync(const DeleteShortUrlRequest& request, const DeleteShortUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
void DysmsapiClient::sendMessageToGlobeAsync(const SendMessageToGlobeRequest& request, const SendMessageToGlobeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
{
|
{
|
||||||
auto fn = [this, request, handler, context]()
|
auto fn = [this, request, handler, context]()
|
||||||
{
|
{
|
||||||
handler(this, request, deleteShortUrl(request), context);
|
handler(this, request, sendMessageToGlobe(request), context);
|
||||||
};
|
};
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
asyncExecute(new Runnable(fn));
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::DeleteShortUrlOutcomeCallable DysmsapiClient::deleteShortUrlCallable(const DeleteShortUrlRequest &request) const
|
DysmsapiClient::SendMessageToGlobeOutcomeCallable DysmsapiClient::sendMessageToGlobeCallable(const SendMessageToGlobeRequest &request) const
|
||||||
{
|
{
|
||||||
auto task = std::make_shared<std::packaged_task<DeleteShortUrlOutcome()>>(
|
auto task = std::make_shared<std::packaged_task<SendMessageToGlobeOutcome()>>(
|
||||||
[this, request]()
|
[this, request]()
|
||||||
{
|
{
|
||||||
return this->deleteShortUrl(request);
|
return this->sendMessageToGlobe(request);
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::DeleteSmsSignOutcome DysmsapiClient::deleteSmsSign(const DeleteSmsSignRequest &request) const
|
DysmsapiClient::SendMessageWithTemplateOutcome DysmsapiClient::sendMessageWithTemplate(const SendMessageWithTemplateRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
if (!endpointOutcome.isSuccess())
|
if (!endpointOutcome.isSuccess())
|
||||||
return DeleteSmsSignOutcome(endpointOutcome.error());
|
return SendMessageWithTemplateOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
if (outcome.isSuccess())
|
||||||
return DeleteSmsSignOutcome(DeleteSmsSignResult(outcome.result()));
|
return SendMessageWithTemplateOutcome(SendMessageWithTemplateResult(outcome.result()));
|
||||||
else
|
else
|
||||||
return DeleteSmsSignOutcome(outcome.error());
|
return SendMessageWithTemplateOutcome(outcome.error());
|
||||||
}
|
}
|
||||||
|
|
||||||
void DysmsapiClient::deleteSmsSignAsync(const DeleteSmsSignRequest& request, const DeleteSmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
void DysmsapiClient::sendMessageWithTemplateAsync(const SendMessageWithTemplateRequest& request, const SendMessageWithTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
{
|
{
|
||||||
auto fn = [this, request, handler, context]()
|
auto fn = [this, request, handler, context]()
|
||||||
{
|
{
|
||||||
handler(this, request, deleteSmsSign(request), context);
|
handler(this, request, sendMessageWithTemplate(request), context);
|
||||||
};
|
};
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
asyncExecute(new Runnable(fn));
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::DeleteSmsSignOutcomeCallable DysmsapiClient::deleteSmsSignCallable(const DeleteSmsSignRequest &request) const
|
DysmsapiClient::SendMessageWithTemplateOutcomeCallable DysmsapiClient::sendMessageWithTemplateCallable(const SendMessageWithTemplateRequest &request) const
|
||||||
{
|
{
|
||||||
auto task = std::make_shared<std::packaged_task<DeleteSmsSignOutcome()>>(
|
auto task = std::make_shared<std::packaged_task<SendMessageWithTemplateOutcome()>>(
|
||||||
[this, request]()
|
[this, request]()
|
||||||
{
|
{
|
||||||
return this->deleteSmsSign(request);
|
return this->sendMessageWithTemplate(request);
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::DeleteSmsTemplateOutcome DysmsapiClient::deleteSmsTemplate(const DeleteSmsTemplateRequest &request) const
|
DysmsapiClient::SmsConversionOutcome DysmsapiClient::smsConversion(const SmsConversionRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
if (!endpointOutcome.isSuccess())
|
if (!endpointOutcome.isSuccess())
|
||||||
return DeleteSmsTemplateOutcome(endpointOutcome.error());
|
return SmsConversionOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
if (outcome.isSuccess())
|
||||||
return DeleteSmsTemplateOutcome(DeleteSmsTemplateResult(outcome.result()));
|
return SmsConversionOutcome(SmsConversionResult(outcome.result()));
|
||||||
else
|
else
|
||||||
return DeleteSmsTemplateOutcome(outcome.error());
|
return SmsConversionOutcome(outcome.error());
|
||||||
}
|
}
|
||||||
|
|
||||||
void DysmsapiClient::deleteSmsTemplateAsync(const DeleteSmsTemplateRequest& request, const DeleteSmsTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
void DysmsapiClient::smsConversionAsync(const SmsConversionRequest& request, const SmsConversionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
{
|
{
|
||||||
auto fn = [this, request, handler, context]()
|
auto fn = [this, request, handler, context]()
|
||||||
{
|
{
|
||||||
handler(this, request, deleteSmsTemplate(request), context);
|
handler(this, request, smsConversion(request), context);
|
||||||
};
|
};
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
asyncExecute(new Runnable(fn));
|
||||||
}
|
}
|
||||||
|
|
||||||
DysmsapiClient::DeleteSmsTemplateOutcomeCallable DysmsapiClient::deleteSmsTemplateCallable(const DeleteSmsTemplateRequest &request) const
|
DysmsapiClient::SmsConversionOutcomeCallable DysmsapiClient::smsConversionCallable(const SmsConversionRequest &request) const
|
||||||
{
|
{
|
||||||
auto task = std::make_shared<std::packaged_task<DeleteSmsTemplateOutcome()>>(
|
auto task = std::make_shared<std::packaged_task<SmsConversionOutcome()>>(
|
||||||
[this, request]()
|
[this, request]()
|
||||||
{
|
{
|
||||||
return this->deleteSmsTemplate(request);
|
return this->smsConversion(request);
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::ListTagResourcesOutcome DysmsapiClient::listTagResources(const ListTagResourcesRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return ListTagResourcesOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return ListTagResourcesOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, listTagResources(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::ListTagResourcesOutcomeCallable DysmsapiClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<ListTagResourcesOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->listTagResources(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::ModifySmsSignOutcome DysmsapiClient::modifySmsSign(const ModifySmsSignRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return ModifySmsSignOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return ModifySmsSignOutcome(ModifySmsSignResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return ModifySmsSignOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::modifySmsSignAsync(const ModifySmsSignRequest& request, const ModifySmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, modifySmsSign(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::ModifySmsSignOutcomeCallable DysmsapiClient::modifySmsSignCallable(const ModifySmsSignRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<ModifySmsSignOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->modifySmsSign(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::ModifySmsTemplateOutcome DysmsapiClient::modifySmsTemplate(const ModifySmsTemplateRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return ModifySmsTemplateOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return ModifySmsTemplateOutcome(ModifySmsTemplateResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return ModifySmsTemplateOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::modifySmsTemplateAsync(const ModifySmsTemplateRequest& request, const ModifySmsTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, modifySmsTemplate(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::ModifySmsTemplateOutcomeCallable DysmsapiClient::modifySmsTemplateCallable(const ModifySmsTemplateRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<ModifySmsTemplateOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->modifySmsTemplate(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QuerySendDetailsOutcome DysmsapiClient::querySendDetails(const QuerySendDetailsRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return QuerySendDetailsOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return QuerySendDetailsOutcome(QuerySendDetailsResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return QuerySendDetailsOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::querySendDetailsAsync(const QuerySendDetailsRequest& request, const QuerySendDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, querySendDetails(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QuerySendDetailsOutcomeCallable DysmsapiClient::querySendDetailsCallable(const QuerySendDetailsRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<QuerySendDetailsOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->querySendDetails(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QuerySendStatisticsOutcome DysmsapiClient::querySendStatistics(const QuerySendStatisticsRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return QuerySendStatisticsOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return QuerySendStatisticsOutcome(QuerySendStatisticsResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return QuerySendStatisticsOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::querySendStatisticsAsync(const QuerySendStatisticsRequest& request, const QuerySendStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, querySendStatistics(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QuerySendStatisticsOutcomeCallable DysmsapiClient::querySendStatisticsCallable(const QuerySendStatisticsRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<QuerySendStatisticsOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->querySendStatistics(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QueryShortUrlOutcome DysmsapiClient::queryShortUrl(const QueryShortUrlRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return QueryShortUrlOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return QueryShortUrlOutcome(QueryShortUrlResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return QueryShortUrlOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::queryShortUrlAsync(const QueryShortUrlRequest& request, const QueryShortUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, queryShortUrl(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QueryShortUrlOutcomeCallable DysmsapiClient::queryShortUrlCallable(const QueryShortUrlRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<QueryShortUrlOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->queryShortUrl(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QuerySmsSignOutcome DysmsapiClient::querySmsSign(const QuerySmsSignRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return QuerySmsSignOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return QuerySmsSignOutcome(QuerySmsSignResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return QuerySmsSignOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::querySmsSignAsync(const QuerySmsSignRequest& request, const QuerySmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, querySmsSign(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QuerySmsSignOutcomeCallable DysmsapiClient::querySmsSignCallable(const QuerySmsSignRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<QuerySmsSignOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->querySmsSign(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QuerySmsSignListOutcome DysmsapiClient::querySmsSignList(const QuerySmsSignListRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return QuerySmsSignListOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return QuerySmsSignListOutcome(QuerySmsSignListResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return QuerySmsSignListOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::querySmsSignListAsync(const QuerySmsSignListRequest& request, const QuerySmsSignListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, querySmsSignList(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QuerySmsSignListOutcomeCallable DysmsapiClient::querySmsSignListCallable(const QuerySmsSignListRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<QuerySmsSignListOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->querySmsSignList(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QuerySmsTemplateOutcome DysmsapiClient::querySmsTemplate(const QuerySmsTemplateRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return QuerySmsTemplateOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return QuerySmsTemplateOutcome(QuerySmsTemplateResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return QuerySmsTemplateOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::querySmsTemplateAsync(const QuerySmsTemplateRequest& request, const QuerySmsTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, querySmsTemplate(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QuerySmsTemplateOutcomeCallable DysmsapiClient::querySmsTemplateCallable(const QuerySmsTemplateRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<QuerySmsTemplateOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->querySmsTemplate(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QuerySmsTemplateListOutcome DysmsapiClient::querySmsTemplateList(const QuerySmsTemplateListRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return QuerySmsTemplateListOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return QuerySmsTemplateListOutcome(QuerySmsTemplateListResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return QuerySmsTemplateListOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::querySmsTemplateListAsync(const QuerySmsTemplateListRequest& request, const QuerySmsTemplateListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, querySmsTemplateList(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::QuerySmsTemplateListOutcomeCallable DysmsapiClient::querySmsTemplateListCallable(const QuerySmsTemplateListRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<QuerySmsTemplateListOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->querySmsTemplateList(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::SendBatchSmsOutcome DysmsapiClient::sendBatchSms(const SendBatchSmsRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return SendBatchSmsOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return SendBatchSmsOutcome(SendBatchSmsResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return SendBatchSmsOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::sendBatchSmsAsync(const SendBatchSmsRequest& request, const SendBatchSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, sendBatchSms(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::SendBatchSmsOutcomeCallable DysmsapiClient::sendBatchSmsCallable(const SendBatchSmsRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<SendBatchSmsOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->sendBatchSms(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::SendSmsOutcome DysmsapiClient::sendSms(const SendSmsRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return SendSmsOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return SendSmsOutcome(SendSmsResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return SendSmsOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::sendSmsAsync(const SendSmsRequest& request, const SendSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, sendSms(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::SendSmsOutcomeCallable DysmsapiClient::sendSmsCallable(const SendSmsRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<SendSmsOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->sendSms(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::TagResourcesOutcome DysmsapiClient::tagResources(const TagResourcesRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return TagResourcesOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return TagResourcesOutcome(TagResourcesResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return TagResourcesOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, tagResources(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::TagResourcesOutcomeCallable DysmsapiClient::tagResourcesCallable(const TagResourcesRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<TagResourcesOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->tagResources(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::UntagResourcesOutcome DysmsapiClient::untagResources(const UntagResourcesRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return UntagResourcesOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return UntagResourcesOutcome(UntagResourcesResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return UntagResourcesOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void DysmsapiClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, untagResources(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
DysmsapiClient::UntagResourcesOutcomeCallable DysmsapiClient::untagResourcesCallable(const UntagResourcesRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<UntagResourcesOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->untagResources(request);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
|||||||
@@ -1,117 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/AddShortUrlRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::AddShortUrlRequest;
|
|
||||||
|
|
||||||
AddShortUrlRequest::AddShortUrlRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "AddShortUrl")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
AddShortUrlRequest::~AddShortUrlRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long AddShortUrlRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddShortUrlRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddShortUrlRequest::getShortUrlName()const
|
|
||||||
{
|
|
||||||
return shortUrlName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddShortUrlRequest::setShortUrlName(const std::string& shortUrlName)
|
|
||||||
{
|
|
||||||
shortUrlName_ = shortUrlName;
|
|
||||||
setBodyParameter("ShortUrlName", shortUrlName);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddShortUrlRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddShortUrlRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddShortUrlRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddShortUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddShortUrlRequest::getEffectiveDays()const
|
|
||||||
{
|
|
||||||
return effectiveDays_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddShortUrlRequest::setEffectiveDays(const std::string& effectiveDays)
|
|
||||||
{
|
|
||||||
effectiveDays_ = effectiveDays;
|
|
||||||
setBodyParameter("EffectiveDays", effectiveDays);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddShortUrlRequest::getProdCode()const
|
|
||||||
{
|
|
||||||
return prodCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddShortUrlRequest::setProdCode(const std::string& prodCode)
|
|
||||||
{
|
|
||||||
prodCode_ = prodCode;
|
|
||||||
setBodyParameter("ProdCode", prodCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
long AddShortUrlRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddShortUrlRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddShortUrlRequest::getSourceUrl()const
|
|
||||||
{
|
|
||||||
return sourceUrl_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddShortUrlRequest::setSourceUrl(const std::string& sourceUrl)
|
|
||||||
{
|
|
||||||
sourceUrl_ = sourceUrl;
|
|
||||||
setBodyParameter("SourceUrl", sourceUrl);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/AddShortUrlResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
AddShortUrlResult::AddShortUrlResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
AddShortUrlResult::AddShortUrlResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
AddShortUrlResult::~AddShortUrlResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void AddShortUrlResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
auto dataNode = value["Data"];
|
|
||||||
if(!dataNode["SourceUrl"].isNull())
|
|
||||||
data_.sourceUrl = dataNode["SourceUrl"].asString();
|
|
||||||
if(!dataNode["ExpireDate"].isNull())
|
|
||||||
data_.expireDate = dataNode["ExpireDate"].asString();
|
|
||||||
if(!dataNode["ShortUrl"].isNull())
|
|
||||||
data_.shortUrl = dataNode["ShortUrl"].asString();
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddShortUrlResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
AddShortUrlResult::Data AddShortUrlResult::getData()const
|
|
||||||
{
|
|
||||||
return data_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddShortUrlResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,122 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/AddSmsSignRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::AddSmsSignRequest;
|
|
||||||
|
|
||||||
AddSmsSignRequest::AddSmsSignRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "AddSmsSign")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
AddSmsSignRequest::~AddSmsSignRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long AddSmsSignRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsSignRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsSignRequest::getRemark()const
|
|
||||||
{
|
|
||||||
return remark_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsSignRequest::setRemark(const std::string& remark)
|
|
||||||
{
|
|
||||||
remark_ = remark;
|
|
||||||
setParameter("Remark", remark);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsSignRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsSignRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsSignRequest::getSignName()const
|
|
||||||
{
|
|
||||||
return signName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsSignRequest::setSignName(const std::string& signName)
|
|
||||||
{
|
|
||||||
signName_ = signName;
|
|
||||||
setParameter("SignName", signName);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<AddSmsSignRequest::SignFileList> AddSmsSignRequest::getSignFileList()const
|
|
||||||
{
|
|
||||||
return signFileList_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsSignRequest::setSignFileList(const std::vector<SignFileList>& signFileList)
|
|
||||||
{
|
|
||||||
signFileList_ = signFileList;
|
|
||||||
for(int dep1 = 0; dep1!= signFileList.size(); dep1++) {
|
|
||||||
auto signFileListObj = signFileList.at(dep1);
|
|
||||||
std::string signFileListObjStr = "SignFileList." + std::to_string(dep1 + 1);
|
|
||||||
setParameter(signFileListObjStr + ".FileContents", signFileListObj.fileContents);
|
|
||||||
setParameter(signFileListObjStr + ".FileSuffix", signFileListObj.fileSuffix);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsSignRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long AddSmsSignRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsSignRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
int AddSmsSignRequest::getSignSource()const
|
|
||||||
{
|
|
||||||
return signSource_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsSignRequest::setSignSource(int signSource)
|
|
||||||
{
|
|
||||||
signSource_ = signSource;
|
|
||||||
setParameter("SignSource", std::to_string(signSource));
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/AddSmsSignResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
AddSmsSignResult::AddSmsSignResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
AddSmsSignResult::AddSmsSignResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
AddSmsSignResult::~AddSmsSignResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void AddSmsSignResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["SignName"].isNull())
|
|
||||||
signName_ = value["SignName"].asString();
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsSignResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsSignResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsSignResult::getSignName()const
|
|
||||||
{
|
|
||||||
return signName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,117 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/AddSmsTemplateRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::AddSmsTemplateRequest;
|
|
||||||
|
|
||||||
AddSmsTemplateRequest::AddSmsTemplateRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "AddSmsTemplate")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
AddSmsTemplateRequest::~AddSmsTemplateRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long AddSmsTemplateRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsTemplateRequest::getRemark()const
|
|
||||||
{
|
|
||||||
return remark_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsTemplateRequest::setRemark(const std::string& remark)
|
|
||||||
{
|
|
||||||
remark_ = remark;
|
|
||||||
setParameter("Remark", remark);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsTemplateRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
int AddSmsTemplateRequest::getTemplateType()const
|
|
||||||
{
|
|
||||||
return templateType_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsTemplateRequest::setTemplateType(int templateType)
|
|
||||||
{
|
|
||||||
templateType_ = templateType;
|
|
||||||
setParameter("TemplateType", std::to_string(templateType));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsTemplateRequest::getTemplateName()const
|
|
||||||
{
|
|
||||||
return templateName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsTemplateRequest::setTemplateName(const std::string& templateName)
|
|
||||||
{
|
|
||||||
templateName_ = templateName;
|
|
||||||
setParameter("TemplateName", templateName);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsTemplateRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long AddSmsTemplateRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsTemplateRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsTemplateRequest::getTemplateContent()const
|
|
||||||
{
|
|
||||||
return templateContent_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddSmsTemplateRequest::setTemplateContent(const std::string& templateContent)
|
|
||||||
{
|
|
||||||
templateContent_ = templateContent;
|
|
||||||
setParameter("TemplateContent", templateContent);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/AddSmsTemplateResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
AddSmsTemplateResult::AddSmsTemplateResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
AddSmsTemplateResult::AddSmsTemplateResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
AddSmsTemplateResult::~AddSmsTemplateResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void AddSmsTemplateResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["TemplateCode"].isNull())
|
|
||||||
templateCode_ = value["TemplateCode"].asString();
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsTemplateResult::getTemplateCode()const
|
|
||||||
{
|
|
||||||
return templateCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsTemplateResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string AddSmsTemplateResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
126
dysmsapi/src/model/BatchSendMessageToGlobeRequest.cc
Normal file
126
dysmsapi/src/model/BatchSendMessageToGlobeRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
/*
|
||||||
|
* 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/dysmsapi/model/BatchSendMessageToGlobeRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Dysmsapi::Model::BatchSendMessageToGlobeRequest;
|
||||||
|
|
||||||
|
BatchSendMessageToGlobeRequest::BatchSendMessageToGlobeRequest()
|
||||||
|
: RpcServiceRequest("dysmsapi", "2018-05-01", "BatchSendMessageToGlobe") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
BatchSendMessageToGlobeRequest::~BatchSendMessageToGlobeRequest() {}
|
||||||
|
|
||||||
|
long BatchSendMessageToGlobeRequest::getResourceOwnerId() const {
|
||||||
|
return resourceOwnerId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchSendMessageToGlobeRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||||
|
resourceOwnerId_ = resourceOwnerId;
|
||||||
|
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeRequest::getType() const {
|
||||||
|
return type_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchSendMessageToGlobeRequest::setType(const std::string &type) {
|
||||||
|
type_ = type;
|
||||||
|
setParameter(std::string("Type"), type);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeRequest::getAccessKeyId() const {
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchSendMessageToGlobeRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeRequest::getFrom() const {
|
||||||
|
return from_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchSendMessageToGlobeRequest::setFrom(const std::string &from) {
|
||||||
|
from_ = from;
|
||||||
|
setParameter(std::string("From"), from);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeRequest::getTaskId() const {
|
||||||
|
return taskId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchSendMessageToGlobeRequest::setTaskId(const std::string &taskId) {
|
||||||
|
taskId_ = taskId;
|
||||||
|
setParameter(std::string("TaskId"), taskId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeRequest::getResourceOwnerAccount() const {
|
||||||
|
return resourceOwnerAccount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchSendMessageToGlobeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||||
|
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||||
|
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||||
|
}
|
||||||
|
|
||||||
|
long BatchSendMessageToGlobeRequest::getOwnerId() const {
|
||||||
|
return ownerId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchSendMessageToGlobeRequest::setOwnerId(long ownerId) {
|
||||||
|
ownerId_ = ownerId;
|
||||||
|
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeRequest::getMessage() const {
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchSendMessageToGlobeRequest::setMessage(const std::string &message) {
|
||||||
|
message_ = message;
|
||||||
|
setParameter(std::string("Message"), message);
|
||||||
|
}
|
||||||
|
|
||||||
|
long BatchSendMessageToGlobeRequest::getValidityPeriod() const {
|
||||||
|
return validityPeriod_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchSendMessageToGlobeRequest::setValidityPeriod(long validityPeriod) {
|
||||||
|
validityPeriod_ = validityPeriod;
|
||||||
|
setParameter(std::string("ValidityPeriod"), std::to_string(validityPeriod));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeRequest::getTo() const {
|
||||||
|
return to_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchSendMessageToGlobeRequest::setTo(const std::string &to) {
|
||||||
|
to_ = to;
|
||||||
|
setParameter(std::string("To"), to);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeRequest::getChannelId() const {
|
||||||
|
return channelId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchSendMessageToGlobeRequest::setChannelId(const std::string &channelId) {
|
||||||
|
channelId_ = channelId;
|
||||||
|
setParameter(std::string("ChannelId"), channelId);
|
||||||
|
}
|
||||||
|
|
||||||
86
dysmsapi/src/model/BatchSendMessageToGlobeResult.cc
Normal file
86
dysmsapi/src/model/BatchSendMessageToGlobeResult.cc
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
/*
|
||||||
|
* 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/dysmsapi/model/BatchSendMessageToGlobeResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Dysmsapi;
|
||||||
|
using namespace AlibabaCloud::Dysmsapi::Model;
|
||||||
|
|
||||||
|
BatchSendMessageToGlobeResult::BatchSendMessageToGlobeResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
BatchSendMessageToGlobeResult::BatchSendMessageToGlobeResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
BatchSendMessageToGlobeResult::~BatchSendMessageToGlobeResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void BatchSendMessageToGlobeResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["ResponseCode"].isNull())
|
||||||
|
responseCode_ = value["ResponseCode"].asString();
|
||||||
|
if(!value["FailedList"].isNull())
|
||||||
|
failedList_ = value["FailedList"].asString();
|
||||||
|
if(!value["ResponseDescription"].isNull())
|
||||||
|
responseDescription_ = value["ResponseDescription"].asString();
|
||||||
|
if(!value["From"].isNull())
|
||||||
|
from_ = value["From"].asString();
|
||||||
|
if(!value["MessageIdList"].isNull())
|
||||||
|
messageIdList_ = value["MessageIdList"].asString();
|
||||||
|
if(!value["SuccessCount"].isNull())
|
||||||
|
successCount_ = value["SuccessCount"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeResult::getResponseCode()const
|
||||||
|
{
|
||||||
|
return responseCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeResult::getFailedList()const
|
||||||
|
{
|
||||||
|
return failedList_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeResult::getResponseDescription()const
|
||||||
|
{
|
||||||
|
return responseDescription_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeResult::getFrom()const
|
||||||
|
{
|
||||||
|
return from_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeResult::getMessageIdList()const
|
||||||
|
{
|
||||||
|
return messageIdList_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchSendMessageToGlobeResult::getSuccessCount()const
|
||||||
|
{
|
||||||
|
return successCount_;
|
||||||
|
}
|
||||||
|
|
||||||
45
dysmsapi/src/model/ConversionDataRequest.cc
Normal file
45
dysmsapi/src/model/ConversionDataRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* 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/dysmsapi/model/ConversionDataRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Dysmsapi::Model::ConversionDataRequest;
|
||||||
|
|
||||||
|
ConversionDataRequest::ConversionDataRequest()
|
||||||
|
: RpcServiceRequest("dysmsapi", "2018-05-01", "ConversionData") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ConversionDataRequest::~ConversionDataRequest() {}
|
||||||
|
|
||||||
|
long ConversionDataRequest::getReportTime() const {
|
||||||
|
return reportTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ConversionDataRequest::setReportTime(long reportTime) {
|
||||||
|
reportTime_ = reportTime;
|
||||||
|
setBodyParameter(std::string("ReportTime"), std::to_string(reportTime));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ConversionDataRequest::getConversionRate() const {
|
||||||
|
return conversionRate_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ConversionDataRequest::setConversionRate(const std::string &conversionRate) {
|
||||||
|
conversionRate_ = conversionRate;
|
||||||
|
setBodyParameter(std::string("ConversionRate"), conversionRate);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,52 +14,45 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/dysmsapi/model/DeleteSmsSignResult.h>
|
#include <alibabacloud/dysmsapi/model/ConversionDataResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
using namespace AlibabaCloud::Dysmsapi;
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
using namespace AlibabaCloud::Dysmsapi::Model;
|
||||||
|
|
||||||
DeleteSmsSignResult::DeleteSmsSignResult() :
|
ConversionDataResult::ConversionDataResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
DeleteSmsSignResult::DeleteSmsSignResult(const std::string &payload) :
|
ConversionDataResult::ConversionDataResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
DeleteSmsSignResult::~DeleteSmsSignResult()
|
ConversionDataResult::~ConversionDataResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void DeleteSmsSignResult::parse(const std::string &payload)
|
void ConversionDataResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["SignName"].isNull())
|
if(!value["ResponseCode"].isNull())
|
||||||
signName_ = value["SignName"].asString();
|
responseCode_ = value["ResponseCode"].asString();
|
||||||
if(!value["Code"].isNull())
|
if(!value["ResponseDescription"].isNull())
|
||||||
code_ = value["Code"].asString();
|
responseDescription_ = value["ResponseDescription"].asString();
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DeleteSmsSignResult::getMessage()const
|
std::string ConversionDataResult::getResponseCode()const
|
||||||
{
|
{
|
||||||
return message_;
|
return responseCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DeleteSmsSignResult::getCode()const
|
std::string ConversionDataResult::getResponseDescription()const
|
||||||
{
|
{
|
||||||
return code_;
|
return responseDescription_;
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteSmsSignResult::getSignName()const
|
|
||||||
{
|
|
||||||
return signName_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/DeleteShortUrlRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::DeleteShortUrlRequest;
|
|
||||||
|
|
||||||
DeleteShortUrlRequest::DeleteShortUrlRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "DeleteShortUrl")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteShortUrlRequest::~DeleteShortUrlRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long DeleteShortUrlRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteShortUrlRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteShortUrlRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteShortUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteShortUrlRequest::getProdCode()const
|
|
||||||
{
|
|
||||||
return prodCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteShortUrlRequest::setProdCode(const std::string& prodCode)
|
|
||||||
{
|
|
||||||
prodCode_ = prodCode;
|
|
||||||
setBodyParameter("ProdCode", prodCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
long DeleteShortUrlRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteShortUrlRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteShortUrlRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteShortUrlRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteShortUrlRequest::getSourceUrl()const
|
|
||||||
{
|
|
||||||
return sourceUrl_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteShortUrlRequest::setSourceUrl(const std::string& sourceUrl)
|
|
||||||
{
|
|
||||||
sourceUrl_ = sourceUrl;
|
|
||||||
setBodyParameter("SourceUrl", sourceUrl);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/DeleteShortUrlResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
DeleteShortUrlResult::DeleteShortUrlResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
DeleteShortUrlResult::DeleteShortUrlResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteShortUrlResult::~DeleteShortUrlResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void DeleteShortUrlResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteShortUrlResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteShortUrlResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/DeleteSmsSignRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::DeleteSmsSignRequest;
|
|
||||||
|
|
||||||
DeleteSmsSignRequest::DeleteSmsSignRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "DeleteSmsSign")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteSmsSignRequest::~DeleteSmsSignRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long DeleteSmsSignRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteSmsSignRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteSmsSignRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteSmsSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long DeleteSmsSignRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteSmsSignRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteSmsSignRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteSmsSignRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteSmsSignRequest::getSignName()const
|
|
||||||
{
|
|
||||||
return signName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteSmsSignRequest::setSignName(const std::string& signName)
|
|
||||||
{
|
|
||||||
signName_ = signName;
|
|
||||||
setParameter("SignName", signName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/DeleteSmsTemplateRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::DeleteSmsTemplateRequest;
|
|
||||||
|
|
||||||
DeleteSmsTemplateRequest::DeleteSmsTemplateRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "DeleteSmsTemplate")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteSmsTemplateRequest::~DeleteSmsTemplateRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long DeleteSmsTemplateRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteSmsTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteSmsTemplateRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteSmsTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long DeleteSmsTemplateRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteSmsTemplateRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteSmsTemplateRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteSmsTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteSmsTemplateRequest::getTemplateCode()const
|
|
||||||
{
|
|
||||||
return templateCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteSmsTemplateRequest::setTemplateCode(const std::string& templateCode)
|
|
||||||
{
|
|
||||||
templateCode_ = templateCode;
|
|
||||||
setParameter("TemplateCode", templateCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/DeleteSmsTemplateResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
DeleteSmsTemplateResult::DeleteSmsTemplateResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
DeleteSmsTemplateResult::DeleteSmsTemplateResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteSmsTemplateResult::~DeleteSmsTemplateResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void DeleteSmsTemplateResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["TemplateCode"].isNull())
|
|
||||||
templateCode_ = value["TemplateCode"].asString();
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteSmsTemplateResult::getTemplateCode()const
|
|
||||||
{
|
|
||||||
return templateCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteSmsTemplateResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteSmsTemplateResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,157 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/ListTagResourcesRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::ListTagResourcesRequest;
|
|
||||||
|
|
||||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "ListTagResources")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long ListTagResourcesRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ListTagResourcesRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListTagResourcesRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ListTagResourcesRequest::getRegionId()const
|
|
||||||
{
|
|
||||||
return regionId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListTagResourcesRequest::setRegionId(const std::string& regionId)
|
|
||||||
{
|
|
||||||
regionId_ = regionId;
|
|
||||||
setParameter("RegionId", regionId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ListTagResourcesRequest::getNextToken()const
|
|
||||||
{
|
|
||||||
return nextToken_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
|
||||||
{
|
|
||||||
nextToken_ = nextToken;
|
|
||||||
setParameter("NextToken", nextToken);
|
|
||||||
}
|
|
||||||
|
|
||||||
int ListTagResourcesRequest::getPageSize()const
|
|
||||||
{
|
|
||||||
return pageSize_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListTagResourcesRequest::setPageSize(int pageSize)
|
|
||||||
{
|
|
||||||
pageSize_ = pageSize;
|
|
||||||
setParameter("PageSize", std::to_string(pageSize));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag()const
|
|
||||||
{
|
|
||||||
return tag_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListTagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
|
||||||
{
|
|
||||||
tag_ = tag;
|
|
||||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
|
||||||
auto tagObj = tag.at(dep1);
|
|
||||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
|
||||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
|
||||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<std::string> ListTagResourcesRequest::getResourceId()const
|
|
||||||
{
|
|
||||||
return resourceId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
|
||||||
{
|
|
||||||
resourceId_ = resourceId;
|
|
||||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
|
||||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ListTagResourcesRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListTagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ListTagResourcesRequest::getProdCode()const
|
|
||||||
{
|
|
||||||
return prodCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListTagResourcesRequest::setProdCode(const std::string& prodCode)
|
|
||||||
{
|
|
||||||
prodCode_ = prodCode;
|
|
||||||
setParameter("ProdCode", prodCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
long ListTagResourcesRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListTagResourcesRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ListTagResourcesRequest::getResourceType()const
|
|
||||||
{
|
|
||||||
return resourceType_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
|
|
||||||
{
|
|
||||||
resourceType_ = resourceType;
|
|
||||||
setParameter("ResourceType", resourceType);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/ListTagResourcesResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
ListTagResourcesResult::ListTagResourcesResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
ListTagResourcesResult::~ListTagResourcesResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void ListTagResourcesResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
auto allTagResourcesNode = value["TagResources"]["TagResource"];
|
|
||||||
for (auto valueTagResourcesTagResource : allTagResourcesNode)
|
|
||||||
{
|
|
||||||
TagResource tagResourcesObject;
|
|
||||||
if(!valueTagResourcesTagResource["ResourceType"].isNull())
|
|
||||||
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
|
|
||||||
if(!valueTagResourcesTagResource["TagValue"].isNull())
|
|
||||||
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
|
|
||||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
|
||||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
|
||||||
if(!valueTagResourcesTagResource["TagKey"].isNull())
|
|
||||||
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
|
|
||||||
tagResources_.push_back(tagResourcesObject);
|
|
||||||
}
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["NextToken"].isNull())
|
|
||||||
nextToken_ = value["NextToken"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ListTagResourcesResult::getNextToken()const
|
|
||||||
{
|
|
||||||
return nextToken_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
|
|
||||||
{
|
|
||||||
return tagResources_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ListTagResourcesResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,122 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/ModifySmsSignRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::ModifySmsSignRequest;
|
|
||||||
|
|
||||||
ModifySmsSignRequest::ModifySmsSignRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "ModifySmsSign")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ModifySmsSignRequest::~ModifySmsSignRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long ModifySmsSignRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsSignRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsSignRequest::getRemark()const
|
|
||||||
{
|
|
||||||
return remark_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsSignRequest::setRemark(const std::string& remark)
|
|
||||||
{
|
|
||||||
remark_ = remark;
|
|
||||||
setParameter("Remark", remark);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsSignRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsSignRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsSignRequest::getSignName()const
|
|
||||||
{
|
|
||||||
return signName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsSignRequest::setSignName(const std::string& signName)
|
|
||||||
{
|
|
||||||
signName_ = signName;
|
|
||||||
setParameter("SignName", signName);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<ModifySmsSignRequest::SignFileList> ModifySmsSignRequest::getSignFileList()const
|
|
||||||
{
|
|
||||||
return signFileList_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsSignRequest::setSignFileList(const std::vector<SignFileList>& signFileList)
|
|
||||||
{
|
|
||||||
signFileList_ = signFileList;
|
|
||||||
for(int dep1 = 0; dep1!= signFileList.size(); dep1++) {
|
|
||||||
auto signFileListObj = signFileList.at(dep1);
|
|
||||||
std::string signFileListObjStr = "SignFileList." + std::to_string(dep1 + 1);
|
|
||||||
setParameter(signFileListObjStr + ".FileContents", signFileListObj.fileContents);
|
|
||||||
setParameter(signFileListObjStr + ".FileSuffix", signFileListObj.fileSuffix);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsSignRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long ModifySmsSignRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsSignRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
int ModifySmsSignRequest::getSignSource()const
|
|
||||||
{
|
|
||||||
return signSource_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsSignRequest::setSignSource(int signSource)
|
|
||||||
{
|
|
||||||
signSource_ = signSource;
|
|
||||||
setParameter("SignSource", std::to_string(signSource));
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/ModifySmsSignResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
ModifySmsSignResult::ModifySmsSignResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
ModifySmsSignResult::ModifySmsSignResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
ModifySmsSignResult::~ModifySmsSignResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void ModifySmsSignResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["SignName"].isNull())
|
|
||||||
signName_ = value["SignName"].asString();
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsSignResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsSignResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsSignResult::getSignName()const
|
|
||||||
{
|
|
||||||
return signName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,128 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/ModifySmsTemplateRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::ModifySmsTemplateRequest;
|
|
||||||
|
|
||||||
ModifySmsTemplateRequest::ModifySmsTemplateRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "ModifySmsTemplate")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ModifySmsTemplateRequest::~ModifySmsTemplateRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long ModifySmsTemplateRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsTemplateRequest::getRemark()const
|
|
||||||
{
|
|
||||||
return remark_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsTemplateRequest::setRemark(const std::string& remark)
|
|
||||||
{
|
|
||||||
remark_ = remark;
|
|
||||||
setParameter("Remark", remark);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsTemplateRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
int ModifySmsTemplateRequest::getTemplateType()const
|
|
||||||
{
|
|
||||||
return templateType_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsTemplateRequest::setTemplateType(int templateType)
|
|
||||||
{
|
|
||||||
templateType_ = templateType;
|
|
||||||
setParameter("TemplateType", std::to_string(templateType));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsTemplateRequest::getTemplateName()const
|
|
||||||
{
|
|
||||||
return templateName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsTemplateRequest::setTemplateName(const std::string& templateName)
|
|
||||||
{
|
|
||||||
templateName_ = templateName;
|
|
||||||
setParameter("TemplateName", templateName);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsTemplateRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long ModifySmsTemplateRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsTemplateRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsTemplateRequest::getTemplateContent()const
|
|
||||||
{
|
|
||||||
return templateContent_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsTemplateRequest::setTemplateContent(const std::string& templateContent)
|
|
||||||
{
|
|
||||||
templateContent_ = templateContent;
|
|
||||||
setParameter("TemplateContent", templateContent);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsTemplateRequest::getTemplateCode()const
|
|
||||||
{
|
|
||||||
return templateCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ModifySmsTemplateRequest::setTemplateCode(const std::string& templateCode)
|
|
||||||
{
|
|
||||||
templateCode_ = templateCode;
|
|
||||||
setParameter("TemplateCode", templateCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/ModifySmsTemplateResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
ModifySmsTemplateResult::ModifySmsTemplateResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
ModifySmsTemplateResult::ModifySmsTemplateResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
ModifySmsTemplateResult::~ModifySmsTemplateResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void ModifySmsTemplateResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["TemplateCode"].isNull())
|
|
||||||
templateCode_ = value["TemplateCode"].asString();
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsTemplateResult::getTemplateCode()const
|
|
||||||
{
|
|
||||||
return templateCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsTemplateResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ModifySmsTemplateResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
72
dysmsapi/src/model/QueryMessageRequest.cc
Normal file
72
dysmsapi/src/model/QueryMessageRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* 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/dysmsapi/model/QueryMessageRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Dysmsapi::Model::QueryMessageRequest;
|
||||||
|
|
||||||
|
QueryMessageRequest::QueryMessageRequest()
|
||||||
|
: RpcServiceRequest("dysmsapi", "2018-05-01", "QueryMessage") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryMessageRequest::~QueryMessageRequest() {}
|
||||||
|
|
||||||
|
long QueryMessageRequest::getResourceOwnerId() const {
|
||||||
|
return resourceOwnerId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QueryMessageRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||||
|
resourceOwnerId_ = resourceOwnerId;
|
||||||
|
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryMessageRequest::getResourceOwnerAccount() const {
|
||||||
|
return resourceOwnerAccount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QueryMessageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||||
|
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||||
|
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryMessageRequest::getMessageId() const {
|
||||||
|
return messageId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QueryMessageRequest::setMessageId(const std::string &messageId) {
|
||||||
|
messageId_ = messageId;
|
||||||
|
setParameter(std::string("MessageId"), messageId);
|
||||||
|
}
|
||||||
|
|
||||||
|
long QueryMessageRequest::getOwnerId() const {
|
||||||
|
return ownerId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QueryMessageRequest::setOwnerId(long ownerId) {
|
||||||
|
ownerId_ = ownerId;
|
||||||
|
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryMessageRequest::getAccessKeyId() const {
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QueryMessageRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
126
dysmsapi/src/model/QueryMessageResult.cc
Normal file
126
dysmsapi/src/model/QueryMessageResult.cc
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
/*
|
||||||
|
* 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/dysmsapi/model/QueryMessageResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Dysmsapi;
|
||||||
|
using namespace AlibabaCloud::Dysmsapi::Model;
|
||||||
|
|
||||||
|
QueryMessageResult::QueryMessageResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
QueryMessageResult::QueryMessageResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryMessageResult::~QueryMessageResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void QueryMessageResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto numberDetailNode = value["NumberDetail"];
|
||||||
|
if(!numberDetailNode["Carrier"].isNull())
|
||||||
|
numberDetail_.carrier = numberDetailNode["Carrier"].asString();
|
||||||
|
if(!numberDetailNode["Region"].isNull())
|
||||||
|
numberDetail_.region = numberDetailNode["Region"].asString();
|
||||||
|
if(!numberDetailNode["Country"].isNull())
|
||||||
|
numberDetail_.country = numberDetailNode["Country"].asString();
|
||||||
|
if(!value["Status"].isNull())
|
||||||
|
status_ = value["Status"].asString();
|
||||||
|
if(!value["ErrorDescription"].isNull())
|
||||||
|
errorDescription_ = value["ErrorDescription"].asString();
|
||||||
|
if(!value["ResponseCode"].isNull())
|
||||||
|
responseCode_ = value["ResponseCode"].asString();
|
||||||
|
if(!value["ReceiveDate"].isNull())
|
||||||
|
receiveDate_ = value["ReceiveDate"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["ResponseDescription"].isNull())
|
||||||
|
responseDescription_ = value["ResponseDescription"].asString();
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["SendDate"].isNull())
|
||||||
|
sendDate_ = value["SendDate"].asString();
|
||||||
|
if(!value["To"].isNull())
|
||||||
|
to_ = value["To"].asString();
|
||||||
|
if(!value["MessageId"].isNull())
|
||||||
|
messageId_ = value["MessageId"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryMessageResult::getStatus()const
|
||||||
|
{
|
||||||
|
return status_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryMessageResult::getErrorDescription()const
|
||||||
|
{
|
||||||
|
return errorDescription_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryMessageResult::getResponseCode()const
|
||||||
|
{
|
||||||
|
return responseCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryMessageResult::NumberDetail QueryMessageResult::getNumberDetail()const
|
||||||
|
{
|
||||||
|
return numberDetail_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryMessageResult::getReceiveDate()const
|
||||||
|
{
|
||||||
|
return receiveDate_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryMessageResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryMessageResult::getResponseDescription()const
|
||||||
|
{
|
||||||
|
return responseDescription_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryMessageResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryMessageResult::getSendDate()const
|
||||||
|
{
|
||||||
|
return sendDate_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryMessageResult::getTo()const
|
||||||
|
{
|
||||||
|
return to_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryMessageResult::getMessageId()const
|
||||||
|
{
|
||||||
|
return messageId_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,128 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QuerySendDetailsRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::QuerySendDetailsRequest;
|
|
||||||
|
|
||||||
QuerySendDetailsRequest::QuerySendDetailsRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySendDetails")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
QuerySendDetailsRequest::~QuerySendDetailsRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long QuerySendDetailsRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendDetailsRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendDetailsRequest::getPhoneNumber()const
|
|
||||||
{
|
|
||||||
return phoneNumber_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendDetailsRequest::setPhoneNumber(const std::string& phoneNumber)
|
|
||||||
{
|
|
||||||
phoneNumber_ = phoneNumber;
|
|
||||||
setParameter("PhoneNumber", phoneNumber);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendDetailsRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendDetailsRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendDetailsRequest::getSendDate()const
|
|
||||||
{
|
|
||||||
return sendDate_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendDetailsRequest::setSendDate(const std::string& sendDate)
|
|
||||||
{
|
|
||||||
sendDate_ = sendDate;
|
|
||||||
setParameter("SendDate", sendDate);
|
|
||||||
}
|
|
||||||
|
|
||||||
long QuerySendDetailsRequest::getPageSize()const
|
|
||||||
{
|
|
||||||
return pageSize_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendDetailsRequest::setPageSize(long pageSize)
|
|
||||||
{
|
|
||||||
pageSize_ = pageSize;
|
|
||||||
setParameter("PageSize", std::to_string(pageSize));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendDetailsRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendDetailsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long QuerySendDetailsRequest::getCurrentPage()const
|
|
||||||
{
|
|
||||||
return currentPage_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendDetailsRequest::setCurrentPage(long currentPage)
|
|
||||||
{
|
|
||||||
currentPage_ = currentPage;
|
|
||||||
setParameter("CurrentPage", std::to_string(currentPage));
|
|
||||||
}
|
|
||||||
|
|
||||||
long QuerySendDetailsRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendDetailsRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendDetailsRequest::getBizId()const
|
|
||||||
{
|
|
||||||
return bizId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendDetailsRequest::setBizId(const std::string& bizId)
|
|
||||||
{
|
|
||||||
bizId_ = bizId;
|
|
||||||
setParameter("BizId", bizId);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,92 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QuerySendDetailsResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
QuerySendDetailsResult::QuerySendDetailsResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
QuerySendDetailsResult::QuerySendDetailsResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
QuerySendDetailsResult::~QuerySendDetailsResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void QuerySendDetailsResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
auto allSmsSendDetailDTOsNode = value["SmsSendDetailDTOs"]["SmsSendDetailDTO"];
|
|
||||||
for (auto valueSmsSendDetailDTOsSmsSendDetailDTO : allSmsSendDetailDTOsNode)
|
|
||||||
{
|
|
||||||
SmsSendDetailDTO smsSendDetailDTOsObject;
|
|
||||||
if(!valueSmsSendDetailDTOsSmsSendDetailDTO["PhoneNum"].isNull())
|
|
||||||
smsSendDetailDTOsObject.phoneNum = valueSmsSendDetailDTOsSmsSendDetailDTO["PhoneNum"].asString();
|
|
||||||
if(!valueSmsSendDetailDTOsSmsSendDetailDTO["SendStatus"].isNull())
|
|
||||||
smsSendDetailDTOsObject.sendStatus = std::stol(valueSmsSendDetailDTOsSmsSendDetailDTO["SendStatus"].asString());
|
|
||||||
if(!valueSmsSendDetailDTOsSmsSendDetailDTO["ErrCode"].isNull())
|
|
||||||
smsSendDetailDTOsObject.errCode = valueSmsSendDetailDTOsSmsSendDetailDTO["ErrCode"].asString();
|
|
||||||
if(!valueSmsSendDetailDTOsSmsSendDetailDTO["TemplateCode"].isNull())
|
|
||||||
smsSendDetailDTOsObject.templateCode = valueSmsSendDetailDTOsSmsSendDetailDTO["TemplateCode"].asString();
|
|
||||||
if(!valueSmsSendDetailDTOsSmsSendDetailDTO["Content"].isNull())
|
|
||||||
smsSendDetailDTOsObject.content = valueSmsSendDetailDTOsSmsSendDetailDTO["Content"].asString();
|
|
||||||
if(!valueSmsSendDetailDTOsSmsSendDetailDTO["SendDate"].isNull())
|
|
||||||
smsSendDetailDTOsObject.sendDate = valueSmsSendDetailDTOsSmsSendDetailDTO["SendDate"].asString();
|
|
||||||
if(!valueSmsSendDetailDTOsSmsSendDetailDTO["ReceiveDate"].isNull())
|
|
||||||
smsSendDetailDTOsObject.receiveDate = valueSmsSendDetailDTOsSmsSendDetailDTO["ReceiveDate"].asString();
|
|
||||||
if(!valueSmsSendDetailDTOsSmsSendDetailDTO["OutId"].isNull())
|
|
||||||
smsSendDetailDTOsObject.outId = valueSmsSendDetailDTOsSmsSendDetailDTO["OutId"].asString();
|
|
||||||
smsSendDetailDTOs_.push_back(smsSendDetailDTOsObject);
|
|
||||||
}
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
if(!value["TotalCount"].isNull())
|
|
||||||
totalCount_ = value["TotalCount"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendDetailsResult::getTotalCount()const
|
|
||||||
{
|
|
||||||
return totalCount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendDetailsResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendDetailsResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<QuerySendDetailsResult::SmsSendDetailDTO> QuerySendDetailsResult::getSmsSendDetailDTOs()const
|
|
||||||
{
|
|
||||||
return smsSendDetailDTOs_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,128 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QuerySendStatisticsRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::QuerySendStatisticsRequest;
|
|
||||||
|
|
||||||
QuerySendStatisticsRequest::QuerySendStatisticsRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySendStatistics")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
QuerySendStatisticsRequest::~QuerySendStatisticsRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long QuerySendStatisticsRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendStatisticsRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
int QuerySendStatisticsRequest::getIsGlobe()const
|
|
||||||
{
|
|
||||||
return isGlobe_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendStatisticsRequest::setIsGlobe(int isGlobe)
|
|
||||||
{
|
|
||||||
isGlobe_ = isGlobe;
|
|
||||||
setParameter("IsGlobe", std::to_string(isGlobe));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendStatisticsRequest::getStartDate()const
|
|
||||||
{
|
|
||||||
return startDate_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendStatisticsRequest::setStartDate(const std::string& startDate)
|
|
||||||
{
|
|
||||||
startDate_ = startDate;
|
|
||||||
setParameter("StartDate", startDate);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendStatisticsRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendStatisticsRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
int QuerySendStatisticsRequest::getPageSize()const
|
|
||||||
{
|
|
||||||
return pageSize_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendStatisticsRequest::setPageSize(int pageSize)
|
|
||||||
{
|
|
||||||
pageSize_ = pageSize;
|
|
||||||
setParameter("PageSize", std::to_string(pageSize));
|
|
||||||
}
|
|
||||||
|
|
||||||
int QuerySendStatisticsRequest::getPageIndex()const
|
|
||||||
{
|
|
||||||
return pageIndex_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendStatisticsRequest::setPageIndex(int pageIndex)
|
|
||||||
{
|
|
||||||
pageIndex_ = pageIndex;
|
|
||||||
setParameter("PageIndex", std::to_string(pageIndex));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendStatisticsRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendStatisticsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long QuerySendStatisticsRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendStatisticsRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendStatisticsRequest::getEndDate()const
|
|
||||||
{
|
|
||||||
return endDate_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySendStatisticsRequest::setEndDate(const std::string& endDate)
|
|
||||||
{
|
|
||||||
endDate_ = endDate;
|
|
||||||
setParameter("EndDate", endDate);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QuerySendStatisticsResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
QuerySendStatisticsResult::QuerySendStatisticsResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
QuerySendStatisticsResult::QuerySendStatisticsResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
QuerySendStatisticsResult::~QuerySendStatisticsResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void QuerySendStatisticsResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
auto dataNode = value["Data"];
|
|
||||||
if(!dataNode["TotalSize"].isNull())
|
|
||||||
data_.totalSize = std::stol(dataNode["TotalSize"].asString());
|
|
||||||
auto allTargetListNode = dataNode["TargetList"]["SmsStatisticsDTO"];
|
|
||||||
for (auto dataNodeTargetListSmsStatisticsDTO : allTargetListNode)
|
|
||||||
{
|
|
||||||
Data::SmsStatisticsDTO smsStatisticsDTOObject;
|
|
||||||
if(!dataNodeTargetListSmsStatisticsDTO["TotalCount"].isNull())
|
|
||||||
smsStatisticsDTOObject.totalCount = std::stol(dataNodeTargetListSmsStatisticsDTO["TotalCount"].asString());
|
|
||||||
if(!dataNodeTargetListSmsStatisticsDTO["RespondedSuccessCount"].isNull())
|
|
||||||
smsStatisticsDTOObject.respondedSuccessCount = std::stol(dataNodeTargetListSmsStatisticsDTO["RespondedSuccessCount"].asString());
|
|
||||||
if(!dataNodeTargetListSmsStatisticsDTO["RespondedFailCount"].isNull())
|
|
||||||
smsStatisticsDTOObject.respondedFailCount = std::stol(dataNodeTargetListSmsStatisticsDTO["RespondedFailCount"].asString());
|
|
||||||
if(!dataNodeTargetListSmsStatisticsDTO["NoRespondedCount"].isNull())
|
|
||||||
smsStatisticsDTOObject.noRespondedCount = std::stol(dataNodeTargetListSmsStatisticsDTO["NoRespondedCount"].asString());
|
|
||||||
if(!dataNodeTargetListSmsStatisticsDTO["SendDate"].isNull())
|
|
||||||
smsStatisticsDTOObject.sendDate = dataNodeTargetListSmsStatisticsDTO["SendDate"].asString();
|
|
||||||
data_.targetList.push_back(smsStatisticsDTOObject);
|
|
||||||
}
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendStatisticsResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
QuerySendStatisticsResult::Data QuerySendStatisticsResult::getData()const
|
|
||||||
{
|
|
||||||
return data_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySendStatisticsResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QueryShortUrlRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::QueryShortUrlRequest;
|
|
||||||
|
|
||||||
QueryShortUrlRequest::QueryShortUrlRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "QueryShortUrl")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
QueryShortUrlRequest::~QueryShortUrlRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long QueryShortUrlRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QueryShortUrlRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QueryShortUrlRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QueryShortUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QueryShortUrlRequest::getShortUrl()const
|
|
||||||
{
|
|
||||||
return shortUrl_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QueryShortUrlRequest::setShortUrl(const std::string& shortUrl)
|
|
||||||
{
|
|
||||||
shortUrl_ = shortUrl;
|
|
||||||
setBodyParameter("ShortUrl", shortUrl);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QueryShortUrlRequest::getProdCode()const
|
|
||||||
{
|
|
||||||
return prodCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QueryShortUrlRequest::setProdCode(const std::string& prodCode)
|
|
||||||
{
|
|
||||||
prodCode_ = prodCode;
|
|
||||||
setBodyParameter("ProdCode", prodCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
long QueryShortUrlRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QueryShortUrlRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QueryShortUrlRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QueryShortUrlRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QueryShortUrlResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
QueryShortUrlResult::QueryShortUrlResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
QueryShortUrlResult::QueryShortUrlResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
QueryShortUrlResult::~QueryShortUrlResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void QueryShortUrlResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
auto dataNode = value["Data"];
|
|
||||||
if(!dataNode["SourceUrl"].isNull())
|
|
||||||
data_.sourceUrl = dataNode["SourceUrl"].asString();
|
|
||||||
if(!dataNode["ShortUrlName"].isNull())
|
|
||||||
data_.shortUrlName = dataNode["ShortUrlName"].asString();
|
|
||||||
if(!dataNode["ShortUrlStatus"].isNull())
|
|
||||||
data_.shortUrlStatus = dataNode["ShortUrlStatus"].asString();
|
|
||||||
if(!dataNode["ShortUrl"].isNull())
|
|
||||||
data_.shortUrl = dataNode["ShortUrl"].asString();
|
|
||||||
if(!dataNode["CreateDate"].isNull())
|
|
||||||
data_.createDate = dataNode["CreateDate"].asString();
|
|
||||||
if(!dataNode["ExpireDate"].isNull())
|
|
||||||
data_.expireDate = dataNode["ExpireDate"].asString();
|
|
||||||
if(!dataNode["PageViewCount"].isNull())
|
|
||||||
data_.pageViewCount = dataNode["PageViewCount"].asString();
|
|
||||||
if(!dataNode["UniqueVisitorCount"].isNull())
|
|
||||||
data_.uniqueVisitorCount = dataNode["UniqueVisitorCount"].asString();
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QueryShortUrlResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
QueryShortUrlResult::Data QueryShortUrlResult::getData()const
|
|
||||||
{
|
|
||||||
return data_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QueryShortUrlResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QuerySmsSignListRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::QuerySmsSignListRequest;
|
|
||||||
|
|
||||||
QuerySmsSignListRequest::QuerySmsSignListRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySmsSignList")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
QuerySmsSignListRequest::~QuerySmsSignListRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long QuerySmsSignListRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsSignListRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsSignListRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsSignListRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
int QuerySmsSignListRequest::getPageSize()const
|
|
||||||
{
|
|
||||||
return pageSize_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsSignListRequest::setPageSize(int pageSize)
|
|
||||||
{
|
|
||||||
pageSize_ = pageSize;
|
|
||||||
setParameter("PageSize", std::to_string(pageSize));
|
|
||||||
}
|
|
||||||
|
|
||||||
int QuerySmsSignListRequest::getPageIndex()const
|
|
||||||
{
|
|
||||||
return pageIndex_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsSignListRequest::setPageIndex(int pageIndex)
|
|
||||||
{
|
|
||||||
pageIndex_ = pageIndex;
|
|
||||||
setParameter("PageIndex", std::to_string(pageIndex));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsSignListRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsSignListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long QuerySmsSignListRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsSignListRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QuerySmsSignListResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
QuerySmsSignListResult::QuerySmsSignListResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
QuerySmsSignListResult::QuerySmsSignListResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
QuerySmsSignListResult::~QuerySmsSignListResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void QuerySmsSignListResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
auto allSmsSignListNode = value["SmsSignList"]["QuerySmsSignDTO"];
|
|
||||||
for (auto valueSmsSignListQuerySmsSignDTO : allSmsSignListNode)
|
|
||||||
{
|
|
||||||
QuerySmsSignDTO smsSignListObject;
|
|
||||||
if(!valueSmsSignListQuerySmsSignDTO["SignName"].isNull())
|
|
||||||
smsSignListObject.signName = valueSmsSignListQuerySmsSignDTO["SignName"].asString();
|
|
||||||
if(!valueSmsSignListQuerySmsSignDTO["AuditStatus"].isNull())
|
|
||||||
smsSignListObject.auditStatus = valueSmsSignListQuerySmsSignDTO["AuditStatus"].asString();
|
|
||||||
if(!valueSmsSignListQuerySmsSignDTO["CreateDate"].isNull())
|
|
||||||
smsSignListObject.createDate = valueSmsSignListQuerySmsSignDTO["CreateDate"].asString();
|
|
||||||
if(!valueSmsSignListQuerySmsSignDTO["BusinessType"].isNull())
|
|
||||||
smsSignListObject.businessType = valueSmsSignListQuerySmsSignDTO["BusinessType"].asString();
|
|
||||||
if(!valueSmsSignListQuerySmsSignDTO["OrderId"].isNull())
|
|
||||||
smsSignListObject.orderId = valueSmsSignListQuerySmsSignDTO["OrderId"].asString();
|
|
||||||
auto reasonNode = value["Reason"];
|
|
||||||
if(!reasonNode["RejectSubInfo"].isNull())
|
|
||||||
smsSignListObject.reason.rejectSubInfo = reasonNode["RejectSubInfo"].asString();
|
|
||||||
if(!reasonNode["RejectDate"].isNull())
|
|
||||||
smsSignListObject.reason.rejectDate = reasonNode["RejectDate"].asString();
|
|
||||||
if(!reasonNode["RejectInfo"].isNull())
|
|
||||||
smsSignListObject.reason.rejectInfo = reasonNode["RejectInfo"].asString();
|
|
||||||
smsSignList_.push_back(smsSignListObject);
|
|
||||||
}
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsSignListResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<QuerySmsSignListResult::QuerySmsSignDTO> QuerySmsSignListResult::getSmsSignList()const
|
|
||||||
{
|
|
||||||
return smsSignList_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsSignListResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QuerySmsSignRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::QuerySmsSignRequest;
|
|
||||||
|
|
||||||
QuerySmsSignRequest::QuerySmsSignRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySmsSign")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
QuerySmsSignRequest::~QuerySmsSignRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long QuerySmsSignRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsSignRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsSignRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long QuerySmsSignRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsSignRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsSignRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsSignRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsSignRequest::getSignName()const
|
|
||||||
{
|
|
||||||
return signName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsSignRequest::setSignName(const std::string& signName)
|
|
||||||
{
|
|
||||||
signName_ = signName;
|
|
||||||
setParameter("SignName", signName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QuerySmsSignResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
QuerySmsSignResult::QuerySmsSignResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
QuerySmsSignResult::QuerySmsSignResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
QuerySmsSignResult::~QuerySmsSignResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void QuerySmsSignResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
if(!value["SignStatus"].isNull())
|
|
||||||
signStatus_ = std::stoi(value["SignStatus"].asString());
|
|
||||||
if(!value["Reason"].isNull())
|
|
||||||
reason_ = value["Reason"].asString();
|
|
||||||
if(!value["SignName"].isNull())
|
|
||||||
signName_ = value["SignName"].asString();
|
|
||||||
if(!value["CreateDate"].isNull())
|
|
||||||
createDate_ = value["CreateDate"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsSignResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
int QuerySmsSignResult::getSignStatus()const
|
|
||||||
{
|
|
||||||
return signStatus_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsSignResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsSignResult::getCreateDate()const
|
|
||||||
{
|
|
||||||
return createDate_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsSignResult::getReason()const
|
|
||||||
{
|
|
||||||
return reason_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsSignResult::getSignName()const
|
|
||||||
{
|
|
||||||
return signName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QuerySmsTemplateListRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::QuerySmsTemplateListRequest;
|
|
||||||
|
|
||||||
QuerySmsTemplateListRequest::QuerySmsTemplateListRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySmsTemplateList")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
QuerySmsTemplateListRequest::~QuerySmsTemplateListRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long QuerySmsTemplateListRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsTemplateListRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateListRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsTemplateListRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
int QuerySmsTemplateListRequest::getPageSize()const
|
|
||||||
{
|
|
||||||
return pageSize_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsTemplateListRequest::setPageSize(int pageSize)
|
|
||||||
{
|
|
||||||
pageSize_ = pageSize;
|
|
||||||
setParameter("PageSize", std::to_string(pageSize));
|
|
||||||
}
|
|
||||||
|
|
||||||
int QuerySmsTemplateListRequest::getPageIndex()const
|
|
||||||
{
|
|
||||||
return pageIndex_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsTemplateListRequest::setPageIndex(int pageIndex)
|
|
||||||
{
|
|
||||||
pageIndex_ = pageIndex;
|
|
||||||
setParameter("PageIndex", std::to_string(pageIndex));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateListRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsTemplateListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long QuerySmsTemplateListRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsTemplateListRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QuerySmsTemplateListResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
QuerySmsTemplateListResult::QuerySmsTemplateListResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
QuerySmsTemplateListResult::QuerySmsTemplateListResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
QuerySmsTemplateListResult::~QuerySmsTemplateListResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void QuerySmsTemplateListResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
auto allSmsTemplateListNode = value["SmsTemplateList"]["SmsStatsResultDTO"];
|
|
||||||
for (auto valueSmsTemplateListSmsStatsResultDTO : allSmsTemplateListNode)
|
|
||||||
{
|
|
||||||
SmsStatsResultDTO smsTemplateListObject;
|
|
||||||
if(!valueSmsTemplateListSmsStatsResultDTO["TemplateCode"].isNull())
|
|
||||||
smsTemplateListObject.templateCode = valueSmsTemplateListSmsStatsResultDTO["TemplateCode"].asString();
|
|
||||||
if(!valueSmsTemplateListSmsStatsResultDTO["TemplateName"].isNull())
|
|
||||||
smsTemplateListObject.templateName = valueSmsTemplateListSmsStatsResultDTO["TemplateName"].asString();
|
|
||||||
if(!valueSmsTemplateListSmsStatsResultDTO["TemplateType"].isNull())
|
|
||||||
smsTemplateListObject.templateType = std::stoi(valueSmsTemplateListSmsStatsResultDTO["TemplateType"].asString());
|
|
||||||
if(!valueSmsTemplateListSmsStatsResultDTO["AuditStatus"].isNull())
|
|
||||||
smsTemplateListObject.auditStatus = valueSmsTemplateListSmsStatsResultDTO["AuditStatus"].asString();
|
|
||||||
if(!valueSmsTemplateListSmsStatsResultDTO["TemplateContent"].isNull())
|
|
||||||
smsTemplateListObject.templateContent = valueSmsTemplateListSmsStatsResultDTO["TemplateContent"].asString();
|
|
||||||
if(!valueSmsTemplateListSmsStatsResultDTO["CreateDate"].isNull())
|
|
||||||
smsTemplateListObject.createDate = valueSmsTemplateListSmsStatsResultDTO["CreateDate"].asString();
|
|
||||||
if(!valueSmsTemplateListSmsStatsResultDTO["OrderId"].isNull())
|
|
||||||
smsTemplateListObject.orderId = valueSmsTemplateListSmsStatsResultDTO["OrderId"].asString();
|
|
||||||
auto reasonNode = value["Reason"];
|
|
||||||
if(!reasonNode["RejectDate"].isNull())
|
|
||||||
smsTemplateListObject.reason.rejectDate = reasonNode["RejectDate"].asString();
|
|
||||||
if(!reasonNode["RejectInfo"].isNull())
|
|
||||||
smsTemplateListObject.reason.rejectInfo = reasonNode["RejectInfo"].asString();
|
|
||||||
if(!reasonNode["RejectSubInfo"].isNull())
|
|
||||||
smsTemplateListObject.reason.rejectSubInfo = reasonNode["RejectSubInfo"].asString();
|
|
||||||
smsTemplateList_.push_back(smsTemplateListObject);
|
|
||||||
}
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateListResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<QuerySmsTemplateListResult::SmsStatsResultDTO> QuerySmsTemplateListResult::getSmsTemplateList()const
|
|
||||||
{
|
|
||||||
return smsTemplateList_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateListResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QuerySmsTemplateRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::QuerySmsTemplateRequest;
|
|
||||||
|
|
||||||
QuerySmsTemplateRequest::QuerySmsTemplateRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySmsTemplate")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
QuerySmsTemplateRequest::~QuerySmsTemplateRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long QuerySmsTemplateRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long QuerySmsTemplateRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsTemplateRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateRequest::getTemplateCode()const
|
|
||||||
{
|
|
||||||
return templateCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QuerySmsTemplateRequest::setTemplateCode(const std::string& templateCode)
|
|
||||||
{
|
|
||||||
templateCode_ = templateCode;
|
|
||||||
setParameter("TemplateCode", templateCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,107 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/QuerySmsTemplateResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
QuerySmsTemplateResult::QuerySmsTemplateResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
QuerySmsTemplateResult::QuerySmsTemplateResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
QuerySmsTemplateResult::~QuerySmsTemplateResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void QuerySmsTemplateResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
if(!value["TemplateStatus"].isNull())
|
|
||||||
templateStatus_ = std::stoi(value["TemplateStatus"].asString());
|
|
||||||
if(!value["Reason"].isNull())
|
|
||||||
reason_ = value["Reason"].asString();
|
|
||||||
if(!value["TemplateCode"].isNull())
|
|
||||||
templateCode_ = value["TemplateCode"].asString();
|
|
||||||
if(!value["TemplateType"].isNull())
|
|
||||||
templateType_ = std::stoi(value["TemplateType"].asString());
|
|
||||||
if(!value["TemplateName"].isNull())
|
|
||||||
templateName_ = value["TemplateName"].asString();
|
|
||||||
if(!value["TemplateContent"].isNull())
|
|
||||||
templateContent_ = value["TemplateContent"].asString();
|
|
||||||
if(!value["CreateDate"].isNull())
|
|
||||||
createDate_ = value["CreateDate"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateResult::getTemplateCode()const
|
|
||||||
{
|
|
||||||
return templateCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateResult::getTemplateContent()const
|
|
||||||
{
|
|
||||||
return templateContent_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateResult::getTemplateName()const
|
|
||||||
{
|
|
||||||
return templateName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
int QuerySmsTemplateResult::getTemplateType()const
|
|
||||||
{
|
|
||||||
return templateType_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateResult::getCreateDate()const
|
|
||||||
{
|
|
||||||
return createDate_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string QuerySmsTemplateResult::getReason()const
|
|
||||||
{
|
|
||||||
return reason_;
|
|
||||||
}
|
|
||||||
|
|
||||||
int QuerySmsTemplateResult::getTemplateStatus()const
|
|
||||||
{
|
|
||||||
return templateStatus_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,128 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/SendBatchSmsRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::SendBatchSmsRequest;
|
|
||||||
|
|
||||||
SendBatchSmsRequest::SendBatchSmsRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "SendBatchSms")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
SendBatchSmsRequest::~SendBatchSmsRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long SendBatchSmsRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendBatchSmsRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendBatchSmsRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendBatchSmsRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendBatchSmsRequest::getTemplateParamJson()const
|
|
||||||
{
|
|
||||||
return templateParamJson_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendBatchSmsRequest::setTemplateParamJson(const std::string& templateParamJson)
|
|
||||||
{
|
|
||||||
templateParamJson_ = templateParamJson;
|
|
||||||
setParameter("TemplateParamJson", templateParamJson);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendBatchSmsRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendBatchSmsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long SendBatchSmsRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendBatchSmsRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendBatchSmsRequest::getSmsUpExtendCodeJson()const
|
|
||||||
{
|
|
||||||
return smsUpExtendCodeJson_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendBatchSmsRequest::setSmsUpExtendCodeJson(const std::string& smsUpExtendCodeJson)
|
|
||||||
{
|
|
||||||
smsUpExtendCodeJson_ = smsUpExtendCodeJson;
|
|
||||||
setParameter("SmsUpExtendCodeJson", smsUpExtendCodeJson);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendBatchSmsRequest::getSignNameJson()const
|
|
||||||
{
|
|
||||||
return signNameJson_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendBatchSmsRequest::setSignNameJson(const std::string& signNameJson)
|
|
||||||
{
|
|
||||||
signNameJson_ = signNameJson;
|
|
||||||
setParameter("SignNameJson", signNameJson);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendBatchSmsRequest::getTemplateCode()const
|
|
||||||
{
|
|
||||||
return templateCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendBatchSmsRequest::setTemplateCode(const std::string& templateCode)
|
|
||||||
{
|
|
||||||
templateCode_ = templateCode;
|
|
||||||
setParameter("TemplateCode", templateCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendBatchSmsRequest::getPhoneNumberJson()const
|
|
||||||
{
|
|
||||||
return phoneNumberJson_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendBatchSmsRequest::setPhoneNumberJson(const std::string& phoneNumberJson)
|
|
||||||
{
|
|
||||||
phoneNumberJson_ = phoneNumberJson;
|
|
||||||
setParameter("PhoneNumberJson", phoneNumberJson);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/SendBatchSmsResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
SendBatchSmsResult::SendBatchSmsResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
SendBatchSmsResult::SendBatchSmsResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
SendBatchSmsResult::~SendBatchSmsResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void SendBatchSmsResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["BizId"].isNull())
|
|
||||||
bizId_ = value["BizId"].asString();
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendBatchSmsResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendBatchSmsResult::getBizId()const
|
|
||||||
{
|
|
||||||
return bizId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendBatchSmsResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
126
dysmsapi/src/model/SendMessageToGlobeRequest.cc
Normal file
126
dysmsapi/src/model/SendMessageToGlobeRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
/*
|
||||||
|
* 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/dysmsapi/model/SendMessageToGlobeRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Dysmsapi::Model::SendMessageToGlobeRequest;
|
||||||
|
|
||||||
|
SendMessageToGlobeRequest::SendMessageToGlobeRequest()
|
||||||
|
: RpcServiceRequest("dysmsapi", "2018-05-01", "SendMessageToGlobe") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
SendMessageToGlobeRequest::~SendMessageToGlobeRequest() {}
|
||||||
|
|
||||||
|
long SendMessageToGlobeRequest::getResourceOwnerId() const {
|
||||||
|
return resourceOwnerId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageToGlobeRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||||
|
resourceOwnerId_ = resourceOwnerId;
|
||||||
|
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeRequest::getType() const {
|
||||||
|
return type_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageToGlobeRequest::setType(const std::string &type) {
|
||||||
|
type_ = type;
|
||||||
|
setParameter(std::string("Type"), type);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeRequest::getAccessKeyId() const {
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageToGlobeRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeRequest::getFrom() const {
|
||||||
|
return from_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageToGlobeRequest::setFrom(const std::string &from) {
|
||||||
|
from_ = from;
|
||||||
|
setParameter(std::string("From"), from);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeRequest::getTaskId() const {
|
||||||
|
return taskId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageToGlobeRequest::setTaskId(const std::string &taskId) {
|
||||||
|
taskId_ = taskId;
|
||||||
|
setParameter(std::string("TaskId"), taskId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeRequest::getResourceOwnerAccount() const {
|
||||||
|
return resourceOwnerAccount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageToGlobeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||||
|
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||||
|
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||||
|
}
|
||||||
|
|
||||||
|
long SendMessageToGlobeRequest::getOwnerId() const {
|
||||||
|
return ownerId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageToGlobeRequest::setOwnerId(long ownerId) {
|
||||||
|
ownerId_ = ownerId;
|
||||||
|
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeRequest::getMessage() const {
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageToGlobeRequest::setMessage(const std::string &message) {
|
||||||
|
message_ = message;
|
||||||
|
setParameter(std::string("Message"), message);
|
||||||
|
}
|
||||||
|
|
||||||
|
long SendMessageToGlobeRequest::getValidityPeriod() const {
|
||||||
|
return validityPeriod_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageToGlobeRequest::setValidityPeriod(long validityPeriod) {
|
||||||
|
validityPeriod_ = validityPeriod;
|
||||||
|
setParameter(std::string("ValidityPeriod"), std::to_string(validityPeriod));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeRequest::getTo() const {
|
||||||
|
return to_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageToGlobeRequest::setTo(const std::string &to) {
|
||||||
|
to_ = to;
|
||||||
|
setParameter(std::string("To"), to);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeRequest::getChannelId() const {
|
||||||
|
return channelId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageToGlobeRequest::setChannelId(const std::string &channelId) {
|
||||||
|
channelId_ = channelId;
|
||||||
|
setParameter(std::string("ChannelId"), channelId);
|
||||||
|
}
|
||||||
|
|
||||||
98
dysmsapi/src/model/SendMessageToGlobeResult.cc
Normal file
98
dysmsapi/src/model/SendMessageToGlobeResult.cc
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
/*
|
||||||
|
* 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/dysmsapi/model/SendMessageToGlobeResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Dysmsapi;
|
||||||
|
using namespace AlibabaCloud::Dysmsapi::Model;
|
||||||
|
|
||||||
|
SendMessageToGlobeResult::SendMessageToGlobeResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
SendMessageToGlobeResult::SendMessageToGlobeResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
SendMessageToGlobeResult::~SendMessageToGlobeResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void SendMessageToGlobeResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto numberDetailNode = value["NumberDetail"];
|
||||||
|
if(!numberDetailNode["Carrier"].isNull())
|
||||||
|
numberDetail_.carrier = numberDetailNode["Carrier"].asString();
|
||||||
|
if(!numberDetailNode["Region"].isNull())
|
||||||
|
numberDetail_.region = numberDetailNode["Region"].asString();
|
||||||
|
if(!numberDetailNode["Country"].isNull())
|
||||||
|
numberDetail_.country = numberDetailNode["Country"].asString();
|
||||||
|
if(!value["ResponseCode"].isNull())
|
||||||
|
responseCode_ = value["ResponseCode"].asString();
|
||||||
|
if(!value["Segments"].isNull())
|
||||||
|
segments_ = value["Segments"].asString();
|
||||||
|
if(!value["ResponseDescription"].isNull())
|
||||||
|
responseDescription_ = value["ResponseDescription"].asString();
|
||||||
|
if(!value["From"].isNull())
|
||||||
|
from_ = value["From"].asString();
|
||||||
|
if(!value["To"].isNull())
|
||||||
|
to_ = value["To"].asString();
|
||||||
|
if(!value["MessageId"].isNull())
|
||||||
|
messageId_ = value["MessageId"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeResult::getResponseCode()const
|
||||||
|
{
|
||||||
|
return responseCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
SendMessageToGlobeResult::NumberDetail SendMessageToGlobeResult::getNumberDetail()const
|
||||||
|
{
|
||||||
|
return numberDetail_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeResult::getSegments()const
|
||||||
|
{
|
||||||
|
return segments_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeResult::getResponseDescription()const
|
||||||
|
{
|
||||||
|
return responseDescription_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeResult::getFrom()const
|
||||||
|
{
|
||||||
|
return from_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeResult::getTo()const
|
||||||
|
{
|
||||||
|
return to_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageToGlobeResult::getMessageId()const
|
||||||
|
{
|
||||||
|
return messageId_;
|
||||||
|
}
|
||||||
|
|
||||||
126
dysmsapi/src/model/SendMessageWithTemplateRequest.cc
Normal file
126
dysmsapi/src/model/SendMessageWithTemplateRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
/*
|
||||||
|
* 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/dysmsapi/model/SendMessageWithTemplateRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Dysmsapi::Model::SendMessageWithTemplateRequest;
|
||||||
|
|
||||||
|
SendMessageWithTemplateRequest::SendMessageWithTemplateRequest()
|
||||||
|
: RpcServiceRequest("dysmsapi", "2018-05-01", "SendMessageWithTemplate") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
SendMessageWithTemplateRequest::~SendMessageWithTemplateRequest() {}
|
||||||
|
|
||||||
|
long SendMessageWithTemplateRequest::getResourceOwnerId() const {
|
||||||
|
return resourceOwnerId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageWithTemplateRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||||
|
resourceOwnerId_ = resourceOwnerId;
|
||||||
|
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageWithTemplateRequest::getAccessKeyId() const {
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageWithTemplateRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageWithTemplateRequest::getSmsUpExtendCode() const {
|
||||||
|
return smsUpExtendCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageWithTemplateRequest::setSmsUpExtendCode(const std::string &smsUpExtendCode) {
|
||||||
|
smsUpExtendCode_ = smsUpExtendCode;
|
||||||
|
setParameter(std::string("SmsUpExtendCode"), smsUpExtendCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageWithTemplateRequest::getFrom() const {
|
||||||
|
return from_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageWithTemplateRequest::setFrom(const std::string &from) {
|
||||||
|
from_ = from;
|
||||||
|
setParameter(std::string("From"), from);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageWithTemplateRequest::getResourceOwnerAccount() const {
|
||||||
|
return resourceOwnerAccount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageWithTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||||
|
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||||
|
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||||
|
}
|
||||||
|
|
||||||
|
long SendMessageWithTemplateRequest::getOwnerId() const {
|
||||||
|
return ownerId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageWithTemplateRequest::setOwnerId(long ownerId) {
|
||||||
|
ownerId_ = ownerId;
|
||||||
|
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||||
|
}
|
||||||
|
|
||||||
|
long SendMessageWithTemplateRequest::getValidityPeriod() const {
|
||||||
|
return validityPeriod_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageWithTemplateRequest::setValidityPeriod(long validityPeriod) {
|
||||||
|
validityPeriod_ = validityPeriod;
|
||||||
|
setParameter(std::string("ValidityPeriod"), std::to_string(validityPeriod));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageWithTemplateRequest::getTo() const {
|
||||||
|
return to_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageWithTemplateRequest::setTo(const std::string &to) {
|
||||||
|
to_ = to;
|
||||||
|
setParameter(std::string("To"), to);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageWithTemplateRequest::getTemplateCode() const {
|
||||||
|
return templateCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageWithTemplateRequest::setTemplateCode(const std::string &templateCode) {
|
||||||
|
templateCode_ = templateCode;
|
||||||
|
setParameter(std::string("TemplateCode"), templateCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageWithTemplateRequest::getChannelId() const {
|
||||||
|
return channelId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageWithTemplateRequest::setChannelId(const std::string &channelId) {
|
||||||
|
channelId_ = channelId;
|
||||||
|
setParameter(std::string("ChannelId"), channelId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageWithTemplateRequest::getTemplateParam() const {
|
||||||
|
return templateParam_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMessageWithTemplateRequest::setTemplateParam(const std::string &templateParam) {
|
||||||
|
templateParam_ = templateParam;
|
||||||
|
setParameter(std::string("TemplateParam"), templateParam);
|
||||||
|
}
|
||||||
|
|
||||||
91
dysmsapi/src/model/SendMessageWithTemplateResult.cc
Normal file
91
dysmsapi/src/model/SendMessageWithTemplateResult.cc
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* 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/dysmsapi/model/SendMessageWithTemplateResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Dysmsapi;
|
||||||
|
using namespace AlibabaCloud::Dysmsapi::Model;
|
||||||
|
|
||||||
|
SendMessageWithTemplateResult::SendMessageWithTemplateResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
SendMessageWithTemplateResult::SendMessageWithTemplateResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
SendMessageWithTemplateResult::~SendMessageWithTemplateResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void SendMessageWithTemplateResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto numberDetailNode = value["NumberDetail"];
|
||||||
|
if(!numberDetailNode["Carrier"].isNull())
|
||||||
|
numberDetail_.carrier = numberDetailNode["Carrier"].asString();
|
||||||
|
if(!numberDetailNode["Region"].isNull())
|
||||||
|
numberDetail_.region = numberDetailNode["Region"].asString();
|
||||||
|
if(!numberDetailNode["Country"].isNull())
|
||||||
|
numberDetail_.country = numberDetailNode["Country"].asString();
|
||||||
|
if(!value["ResponseCode"].isNull())
|
||||||
|
responseCode_ = value["ResponseCode"].asString();
|
||||||
|
if(!value["ResponseDescription"].isNull())
|
||||||
|
responseDescription_ = value["ResponseDescription"].asString();
|
||||||
|
if(!value["Segments"].isNull())
|
||||||
|
segments_ = value["Segments"].asString();
|
||||||
|
if(!value["To"].isNull())
|
||||||
|
to_ = value["To"].asString();
|
||||||
|
if(!value["MessageId"].isNull())
|
||||||
|
messageId_ = value["MessageId"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageWithTemplateResult::getResponseCode()const
|
||||||
|
{
|
||||||
|
return responseCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
SendMessageWithTemplateResult::NumberDetail SendMessageWithTemplateResult::getNumberDetail()const
|
||||||
|
{
|
||||||
|
return numberDetail_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageWithTemplateResult::getResponseDescription()const
|
||||||
|
{
|
||||||
|
return responseDescription_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageWithTemplateResult::getSegments()const
|
||||||
|
{
|
||||||
|
return segments_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageWithTemplateResult::getTo()const
|
||||||
|
{
|
||||||
|
return to_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMessageWithTemplateResult::getMessageId()const
|
||||||
|
{
|
||||||
|
return messageId_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/SendSmsRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::SendSmsRequest;
|
|
||||||
|
|
||||||
SendSmsRequest::SendSmsRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "SendSms")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
SendSmsRequest::~SendSmsRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long SendSmsRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendSmsRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendSmsRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendSmsRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendSmsRequest::getSmsUpExtendCode()const
|
|
||||||
{
|
|
||||||
return smsUpExtendCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendSmsRequest::setSmsUpExtendCode(const std::string& smsUpExtendCode)
|
|
||||||
{
|
|
||||||
smsUpExtendCode_ = smsUpExtendCode;
|
|
||||||
setParameter("SmsUpExtendCode", smsUpExtendCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendSmsRequest::getSignName()const
|
|
||||||
{
|
|
||||||
return signName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendSmsRequest::setSignName(const std::string& signName)
|
|
||||||
{
|
|
||||||
signName_ = signName;
|
|
||||||
setParameter("SignName", signName);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendSmsRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendSmsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendSmsRequest::getPhoneNumbers()const
|
|
||||||
{
|
|
||||||
return phoneNumbers_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendSmsRequest::setPhoneNumbers(const std::string& phoneNumbers)
|
|
||||||
{
|
|
||||||
phoneNumbers_ = phoneNumbers;
|
|
||||||
setParameter("PhoneNumbers", phoneNumbers);
|
|
||||||
}
|
|
||||||
|
|
||||||
long SendSmsRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendSmsRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendSmsRequest::getOutId()const
|
|
||||||
{
|
|
||||||
return outId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendSmsRequest::setOutId(const std::string& outId)
|
|
||||||
{
|
|
||||||
outId_ = outId;
|
|
||||||
setParameter("OutId", outId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendSmsRequest::getTemplateCode()const
|
|
||||||
{
|
|
||||||
return templateCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendSmsRequest::setTemplateCode(const std::string& templateCode)
|
|
||||||
{
|
|
||||||
templateCode_ = templateCode;
|
|
||||||
setParameter("TemplateCode", templateCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendSmsRequest::getTemplateParam()const
|
|
||||||
{
|
|
||||||
return templateParam_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendSmsRequest::setTemplateParam(const std::string& templateParam)
|
|
||||||
{
|
|
||||||
templateParam_ = templateParam;
|
|
||||||
setParameter("TemplateParam", templateParam);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/SendSmsResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
|
||||||
|
|
||||||
SendSmsResult::SendSmsResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
SendSmsResult::SendSmsResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
SendSmsResult::~SendSmsResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void SendSmsResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["BizId"].isNull())
|
|
||||||
bizId_ = value["BizId"].asString();
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendSmsResult::getMessage()const
|
|
||||||
{
|
|
||||||
return message_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendSmsResult::getBizId()const
|
|
||||||
{
|
|
||||||
return bizId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string SendSmsResult::getCode()const
|
|
||||||
{
|
|
||||||
return code_;
|
|
||||||
}
|
|
||||||
|
|
||||||
63
dysmsapi/src/model/SmsConversionRequest.cc
Normal file
63
dysmsapi/src/model/SmsConversionRequest.cc
Normal file
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/dysmsapi/model/SmsConversionRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Dysmsapi::Model::SmsConversionRequest;
|
||||||
|
|
||||||
|
SmsConversionRequest::SmsConversionRequest()
|
||||||
|
: RpcServiceRequest("dysmsapi", "2018-05-01", "SmsConversion") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
SmsConversionRequest::~SmsConversionRequest() {}
|
||||||
|
|
||||||
|
long SmsConversionRequest::getConversionTime() const {
|
||||||
|
return conversionTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SmsConversionRequest::setConversionTime(long conversionTime) {
|
||||||
|
conversionTime_ = conversionTime;
|
||||||
|
setParameter(std::string("ConversionTime"), std::to_string(conversionTime));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SmsConversionRequest::getMessageId() const {
|
||||||
|
return messageId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SmsConversionRequest::setMessageId(const std::string &messageId) {
|
||||||
|
messageId_ = messageId;
|
||||||
|
setParameter(std::string("MessageId"), messageId);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SmsConversionRequest::getDelivered() const {
|
||||||
|
return delivered_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SmsConversionRequest::setDelivered(bool delivered) {
|
||||||
|
delivered_ = delivered;
|
||||||
|
setParameter(std::string("Delivered"), delivered ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SmsConversionRequest::getTo() const {
|
||||||
|
return to_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SmsConversionRequest::setTo(const std::string &to) {
|
||||||
|
to_ = to;
|
||||||
|
setParameter(std::string("To"), to);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,45 +14,45 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/dysmsapi/model/TagResourcesResult.h>
|
#include <alibabacloud/dysmsapi/model/SmsConversionResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dysmsapi;
|
using namespace AlibabaCloud::Dysmsapi;
|
||||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
using namespace AlibabaCloud::Dysmsapi::Model;
|
||||||
|
|
||||||
TagResourcesResult::TagResourcesResult() :
|
SmsConversionResult::SmsConversionResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
TagResourcesResult::TagResourcesResult(const std::string &payload) :
|
SmsConversionResult::SmsConversionResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
TagResourcesResult::~TagResourcesResult()
|
SmsConversionResult::~SmsConversionResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void TagResourcesResult::parse(const std::string &payload)
|
void SmsConversionResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["Code"].isNull())
|
if(!value["ResponseCode"].isNull())
|
||||||
code_ = value["Code"].asString();
|
responseCode_ = value["ResponseCode"].asString();
|
||||||
if(!value["Data"].isNull())
|
if(!value["ResponseDescription"].isNull())
|
||||||
data_ = value["Data"].asString();
|
responseDescription_ = value["ResponseDescription"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string TagResourcesResult::getData()const
|
std::string SmsConversionResult::getResponseCode()const
|
||||||
{
|
{
|
||||||
return data_;
|
return responseCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string TagResourcesResult::getCode()const
|
std::string SmsConversionResult::getResponseDescription()const
|
||||||
{
|
{
|
||||||
return code_;
|
return responseDescription_;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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/dysmsapi/model/TagResourcesRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dysmsapi::Model::TagResourcesRequest;
|
|
||||||
|
|
||||||
TagResourcesRequest::TagResourcesRequest() :
|
|
||||||
RpcServiceRequest("dysmsapi", "2017-05-25", "TagResources")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
TagResourcesRequest::~TagResourcesRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long TagResourcesRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string TagResourcesRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TagResourcesRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string TagResourcesRequest::getRegionId()const
|
|
||||||
{
|
|
||||||
return regionId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TagResourcesRequest::setRegionId(const std::string& regionId)
|
|
||||||
{
|
|
||||||
regionId_ = regionId;
|
|
||||||
setParameter("RegionId", regionId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag()const
|
|
||||||
{
|
|
||||||
return tag_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
|
||||||
{
|
|
||||||
tag_ = tag;
|
|
||||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
|
||||||
auto tagObj = tag.at(dep1);
|
|
||||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
|
||||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
|
||||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<std::string> TagResourcesRequest::getResourceId()const
|
|
||||||
{
|
|
||||||
return resourceId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
|
||||||
{
|
|
||||||
resourceId_ = resourceId;
|
|
||||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
|
||||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string TagResourcesRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string TagResourcesRequest::getProdCode()const
|
|
||||||
{
|
|
||||||
return prodCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TagResourcesRequest::setProdCode(const std::string& prodCode)
|
|
||||||
{
|
|
||||||
prodCode_ = prodCode;
|
|
||||||
setParameter("ProdCode", prodCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
long TagResourcesRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TagResourcesRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string TagResourcesRequest::getResourceType()const
|
|
||||||
{
|
|
||||||
return resourceType_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TagResourcesRequest::setResourceType(const std::string& resourceType)
|
|
||||||
{
|
|
||||||
resourceType_ = resourceType;
|
|
||||||
setParameter("ResourceType", resourceType);
|
|
||||||
}
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user