Generate SDK by new Generator
This commit is contained in:
@@ -21,21 +21,53 @@ set(dysmsapi_public_header
|
||||
include/alibabacloud/dysmsapi/DysmsapiExport.h )
|
||||
|
||||
set(dysmsapi_public_header_model
|
||||
include/alibabacloud/dysmsapi/model/SendSmsRequest.h
|
||||
include/alibabacloud/dysmsapi/model/SendSmsResult.h
|
||||
include/alibabacloud/dysmsapi/model/AddSmsSignRequest.h
|
||||
include/alibabacloud/dysmsapi/model/AddSmsSignResult.h
|
||||
include/alibabacloud/dysmsapi/model/AddSmsTemplateRequest.h
|
||||
include/alibabacloud/dysmsapi/model/AddSmsTemplateResult.h
|
||||
include/alibabacloud/dysmsapi/model/DeleteSmsSignRequest.h
|
||||
include/alibabacloud/dysmsapi/model/DeleteSmsSignResult.h
|
||||
include/alibabacloud/dysmsapi/model/DeleteSmsTemplateRequest.h
|
||||
include/alibabacloud/dysmsapi/model/DeleteSmsTemplateResult.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/QuerySmsSignRequest.h
|
||||
include/alibabacloud/dysmsapi/model/QuerySmsSignResult.h
|
||||
include/alibabacloud/dysmsapi/model/QuerySmsTemplateRequest.h
|
||||
include/alibabacloud/dysmsapi/model/QuerySmsTemplateResult.h
|
||||
include/alibabacloud/dysmsapi/model/SendBatchSmsRequest.h
|
||||
include/alibabacloud/dysmsapi/model/SendBatchSmsResult.h
|
||||
include/alibabacloud/dysmsapi/model/QuerySendDetailsRequest.h
|
||||
include/alibabacloud/dysmsapi/model/QuerySendDetailsResult.h )
|
||||
include/alibabacloud/dysmsapi/model/SendSmsRequest.h
|
||||
include/alibabacloud/dysmsapi/model/SendSmsResult.h )
|
||||
|
||||
set(dysmsapi_src
|
||||
src/DysmsapiClient.cc
|
||||
src/model/SendSmsRequest.cc
|
||||
src/model/SendSmsResult.cc
|
||||
src/model/AddSmsSignRequest.cc
|
||||
src/model/AddSmsSignResult.cc
|
||||
src/model/AddSmsTemplateRequest.cc
|
||||
src/model/AddSmsTemplateResult.cc
|
||||
src/model/DeleteSmsSignRequest.cc
|
||||
src/model/DeleteSmsSignResult.cc
|
||||
src/model/DeleteSmsTemplateRequest.cc
|
||||
src/model/DeleteSmsTemplateResult.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/QuerySmsSignRequest.cc
|
||||
src/model/QuerySmsSignResult.cc
|
||||
src/model/QuerySmsTemplateRequest.cc
|
||||
src/model/QuerySmsTemplateResult.cc
|
||||
src/model/SendBatchSmsRequest.cc
|
||||
src/model/SendBatchSmsResult.cc
|
||||
src/model/QuerySendDetailsRequest.cc
|
||||
src/model/QuerySendDetailsResult.cc )
|
||||
src/model/SendSmsRequest.cc
|
||||
src/model/SendSmsResult.cc )
|
||||
|
||||
add_library(dysmsapi ${LIB_TYPE}
|
||||
${dysmsapi_public_header}
|
||||
|
||||
@@ -22,12 +22,28 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "DysmsapiExport.h"
|
||||
#include "model/SendSmsRequest.h"
|
||||
#include "model/SendSmsResult.h"
|
||||
#include "model/SendBatchSmsRequest.h"
|
||||
#include "model/SendBatchSmsResult.h"
|
||||
#include "model/AddSmsSignRequest.h"
|
||||
#include "model/AddSmsSignResult.h"
|
||||
#include "model/AddSmsTemplateRequest.h"
|
||||
#include "model/AddSmsTemplateResult.h"
|
||||
#include "model/DeleteSmsSignRequest.h"
|
||||
#include "model/DeleteSmsSignResult.h"
|
||||
#include "model/DeleteSmsTemplateRequest.h"
|
||||
#include "model/DeleteSmsTemplateResult.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/QuerySmsSignRequest.h"
|
||||
#include "model/QuerySmsSignResult.h"
|
||||
#include "model/QuerySmsTemplateRequest.h"
|
||||
#include "model/QuerySmsTemplateResult.h"
|
||||
#include "model/SendBatchSmsRequest.h"
|
||||
#include "model/SendBatchSmsResult.h"
|
||||
#include "model/SendSmsRequest.h"
|
||||
#include "model/SendSmsResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -37,29 +53,77 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_DYSMSAPI_EXPORT DysmsapiClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
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::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::AddSmsSignResult> AddSmsSignOutcome;
|
||||
typedef std::future<AddSmsSignOutcome> AddSmsSignOutcomeCallable;
|
||||
typedef std::function<void(const DysmsapiClient*, const Model::AddSmsSignRequest&, const AddSmsSignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddSmsSignAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddSmsTemplateResult> AddSmsTemplateOutcome;
|
||||
typedef std::future<AddSmsTemplateOutcome> AddSmsTemplateOutcomeCallable;
|
||||
typedef std::function<void(const DysmsapiClient*, const Model::AddSmsTemplateRequest&, const AddSmsTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddSmsTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteSmsSignResult> DeleteSmsSignOutcome;
|
||||
typedef std::future<DeleteSmsSignOutcome> DeleteSmsSignOutcomeCallable;
|
||||
typedef std::function<void(const DysmsapiClient*, const Model::DeleteSmsSignRequest&, const DeleteSmsSignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSmsSignAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteSmsTemplateResult> DeleteSmsTemplateOutcome;
|
||||
typedef std::future<DeleteSmsTemplateOutcome> DeleteSmsTemplateOutcomeCallable;
|
||||
typedef std::function<void(const DysmsapiClient*, const Model::DeleteSmsTemplateRequest&, const DeleteSmsTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSmsTemplateAsyncHandler;
|
||||
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::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::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::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;
|
||||
|
||||
DysmsapiClient(const Credentials &credentials, 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();
|
||||
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;
|
||||
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;
|
||||
AddSmsSignOutcome addSmsSign(const Model::AddSmsSignRequest &request)const;
|
||||
void addSmsSignAsync(const Model::AddSmsSignRequest& request, const AddSmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddSmsSignOutcomeCallable addSmsSignCallable(const Model::AddSmsSignRequest& request) const;
|
||||
AddSmsTemplateOutcome addSmsTemplate(const Model::AddSmsTemplateRequest &request)const;
|
||||
void addSmsTemplateAsync(const Model::AddSmsTemplateRequest& request, const AddSmsTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddSmsTemplateOutcomeCallable addSmsTemplateCallable(const Model::AddSmsTemplateRequest& request) const;
|
||||
DeleteSmsSignOutcome deleteSmsSign(const Model::DeleteSmsSignRequest &request)const;
|
||||
void deleteSmsSignAsync(const Model::DeleteSmsSignRequest& request, const DeleteSmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteSmsSignOutcomeCallable deleteSmsSignCallable(const Model::DeleteSmsSignRequest& request) const;
|
||||
DeleteSmsTemplateOutcome deleteSmsTemplate(const Model::DeleteSmsTemplateRequest &request)const;
|
||||
void deleteSmsTemplateAsync(const Model::DeleteSmsTemplateRequest& request, const DeleteSmsTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteSmsTemplateOutcomeCallable deleteSmsTemplateCallable(const Model::DeleteSmsTemplateRequest& 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;
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
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_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -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_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,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_ADDSMSTEMPLATERESULT_H_
|
||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_ADDSMSTEMPLATERESULT_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 AddSmsTemplateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddSmsTemplateResult();
|
||||
explicit AddSmsTemplateResult(const std::string &payload);
|
||||
~AddSmsTemplateResult();
|
||||
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_ADDSMSTEMPLATERESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
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_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_MODIFYSMSSIGNRESULT_H_
|
||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_MODIFYSMSSIGNRESULT_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 ModifySmsSignResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifySmsSignResult();
|
||||
explicit ModifySmsSignResult(const std::string &payload);
|
||||
~ModifySmsSignResult();
|
||||
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_MODIFYSMSSIGNRESULT_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_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_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -37,33 +37,33 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getSendDate()const;
|
||||
void setSendDate(const std::string& sendDate);
|
||||
std::string getPhoneNumber()const;
|
||||
void setPhoneNumber(const std::string& phoneNumber);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
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 getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string sendDate_;
|
||||
std::string phoneNumber_;
|
||||
std::string bizId_;
|
||||
std::string accessKeyId_;
|
||||
std::string sendDate_;
|
||||
long pageSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long currentPage_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string bizId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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_
|
||||
@@ -35,35 +35,35 @@ namespace AlibabaCloud
|
||||
SendBatchSmsRequest();
|
||||
~SendBatchSmsRequest();
|
||||
|
||||
std::string getTemplateParamJson()const;
|
||||
void setTemplateParamJson(const std::string& templateParamJson);
|
||||
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);
|
||||
std::string getSmsUpExtendCodeJson()const;
|
||||
void setSmsUpExtendCodeJson(const std::string& smsUpExtendCodeJson);
|
||||
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);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string templateParamJson_;
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string templateParamJson_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string smsUpExtendCodeJson_;
|
||||
long ownerId_;
|
||||
std::string smsUpExtendCodeJson_;
|
||||
std::string signNameJson_;
|
||||
std::string templateCode_;
|
||||
std::string phoneNumberJson_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,37 +35,37 @@ namespace AlibabaCloud
|
||||
SendSmsRequest();
|
||||
~SendSmsRequest();
|
||||
|
||||
std::string getSmsUpExtendCode()const;
|
||||
void setSmsUpExtendCode(const std::string& smsUpExtendCode);
|
||||
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);
|
||||
std::string getOutId()const;
|
||||
void setOutId(const std::string& outId);
|
||||
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 getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getTemplateParam()const;
|
||||
void setTemplateParam(const std::string& templateParam);
|
||||
|
||||
private:
|
||||
std::string smsUpExtendCode_;
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string smsUpExtendCode_;
|
||||
std::string signName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string phoneNumbers_;
|
||||
std::string outId_;
|
||||
long ownerId_;
|
||||
std::string outId_;
|
||||
std::string templateCode_;
|
||||
std::string accessKeyId_;
|
||||
std::string templateParam_;
|
||||
|
||||
};
|
||||
|
||||
@@ -51,72 +51,216 @@ DysmsapiClient::DysmsapiClient(const std::string & accessKeyId, const std::strin
|
||||
DysmsapiClient::~DysmsapiClient()
|
||||
{}
|
||||
|
||||
DysmsapiClient::SendSmsOutcome DysmsapiClient::sendSms(const SendSmsRequest &request) const
|
||||
DysmsapiClient::AddSmsSignOutcome DysmsapiClient::addSmsSign(const AddSmsSignRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendSmsOutcome(endpointOutcome.error());
|
||||
return AddSmsSignOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendSmsOutcome(SendSmsResult(outcome.result()));
|
||||
return AddSmsSignOutcome(AddSmsSignResult(outcome.result()));
|
||||
else
|
||||
return SendSmsOutcome(outcome.error());
|
||||
return AddSmsSignOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DysmsapiClient::sendSmsAsync(const SendSmsRequest& request, const SendSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void DysmsapiClient::addSmsSignAsync(const AddSmsSignRequest& request, const AddSmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendSms(request), context);
|
||||
handler(this, request, addSmsSign(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DysmsapiClient::SendSmsOutcomeCallable DysmsapiClient::sendSmsCallable(const SendSmsRequest &request) const
|
||||
DysmsapiClient::AddSmsSignOutcomeCallable DysmsapiClient::addSmsSignCallable(const AddSmsSignRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendSmsOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<AddSmsSignOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendSms(request);
|
||||
return this->addSmsSign(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DysmsapiClient::SendBatchSmsOutcome DysmsapiClient::sendBatchSms(const SendBatchSmsRequest &request) const
|
||||
DysmsapiClient::AddSmsTemplateOutcome DysmsapiClient::addSmsTemplate(const AddSmsTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendBatchSmsOutcome(endpointOutcome.error());
|
||||
return AddSmsTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendBatchSmsOutcome(SendBatchSmsResult(outcome.result()));
|
||||
return AddSmsTemplateOutcome(AddSmsTemplateResult(outcome.result()));
|
||||
else
|
||||
return SendBatchSmsOutcome(outcome.error());
|
||||
return AddSmsTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DysmsapiClient::sendBatchSmsAsync(const SendBatchSmsRequest& request, const SendBatchSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void DysmsapiClient::addSmsTemplateAsync(const AddSmsTemplateRequest& request, const AddSmsTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendBatchSms(request), context);
|
||||
handler(this, request, addSmsTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DysmsapiClient::SendBatchSmsOutcomeCallable DysmsapiClient::sendBatchSmsCallable(const SendBatchSmsRequest &request) const
|
||||
DysmsapiClient::AddSmsTemplateOutcomeCallable DysmsapiClient::addSmsTemplateCallable(const AddSmsTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendBatchSmsOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<AddSmsTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendBatchSms(request);
|
||||
return this->addSmsTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DysmsapiClient::DeleteSmsSignOutcome DysmsapiClient::deleteSmsSign(const DeleteSmsSignRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteSmsSignOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteSmsSignOutcome(DeleteSmsSignResult(outcome.result()));
|
||||
else
|
||||
return DeleteSmsSignOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DysmsapiClient::deleteSmsSignAsync(const DeleteSmsSignRequest& request, const DeleteSmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteSmsSign(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DysmsapiClient::DeleteSmsSignOutcomeCallable DysmsapiClient::deleteSmsSignCallable(const DeleteSmsSignRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteSmsSignOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteSmsSign(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DysmsapiClient::DeleteSmsTemplateOutcome DysmsapiClient::deleteSmsTemplate(const DeleteSmsTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteSmsTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteSmsTemplateOutcome(DeleteSmsTemplateResult(outcome.result()));
|
||||
else
|
||||
return DeleteSmsTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DysmsapiClient::deleteSmsTemplateAsync(const DeleteSmsTemplateRequest& request, const DeleteSmsTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteSmsTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DysmsapiClient::DeleteSmsTemplateOutcomeCallable DysmsapiClient::deleteSmsTemplateCallable(const DeleteSmsTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteSmsTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteSmsTemplate(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)(); }));
|
||||
@@ -159,3 +303,147 @@ DysmsapiClient::QuerySendDetailsOutcomeCallable DysmsapiClient::querySendDetails
|
||||
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::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::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();
|
||||
}
|
||||
|
||||
|
||||
121
dysmsapi/src/model/AddSmsSignRequest.cc
Normal file
121
dysmsapi/src/model/AddSmsSignRequest.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
AddSmsSignRequest::~AddSmsSignRequest()
|
||||
{}
|
||||
|
||||
long AddSmsSignRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddSmsSignRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddSmsSignRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void AddSmsSignRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string AddSmsSignRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddSmsSignRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AddSmsSignRequest::getSignName()const
|
||||
{
|
||||
return signName_;
|
||||
}
|
||||
|
||||
void AddSmsSignRequest::setSignName(const std::string& signName)
|
||||
{
|
||||
signName_ = signName;
|
||||
setCoreParameter("SignName", signName);
|
||||
}
|
||||
|
||||
std::vector<AddSmsSignRequest::SignFileList> AddSmsSignRequest::getSignFileList()const
|
||||
{
|
||||
return signFileList_;
|
||||
}
|
||||
|
||||
void AddSmsSignRequest::setSignFileList(const std::vector<SignFileList>& signFileList)
|
||||
{
|
||||
signFileList_ = signFileList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= signFileList.size(); i++) {
|
||||
auto obj = signFileList.at(i);
|
||||
std::string str ="SignFileList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".FileContents", obj.fileContents);
|
||||
setCoreParameter(str + ".FileSuffix", obj.fileSuffix);
|
||||
}
|
||||
}
|
||||
|
||||
std::string AddSmsSignRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AddSmsSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long AddSmsSignRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddSmsSignRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int AddSmsSignRequest::getSignSource()const
|
||||
{
|
||||
return signSource_;
|
||||
}
|
||||
|
||||
void AddSmsSignRequest::setSignSource(int signSource)
|
||||
{
|
||||
signSource_ = signSource;
|
||||
setCoreParameter("SignSource", std::to_string(signSource));
|
||||
}
|
||||
|
||||
65
dysmsapi/src/model/AddSmsSignResult.cc
Normal file
65
dysmsapi/src/model/AddSmsSignResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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_;
|
||||
}
|
||||
|
||||
115
dysmsapi/src/model/AddSmsTemplateRequest.cc
Normal file
115
dysmsapi/src/model/AddSmsTemplateRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dysmsapi/model/AddSmsTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Dysmsapi::Model::AddSmsTemplateRequest;
|
||||
|
||||
AddSmsTemplateRequest::AddSmsTemplateRequest() :
|
||||
RpcServiceRequest("dysmsapi", "2017-05-25", "AddSmsTemplate")
|
||||
{}
|
||||
|
||||
AddSmsTemplateRequest::~AddSmsTemplateRequest()
|
||||
{}
|
||||
|
||||
long AddSmsTemplateRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddSmsTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddSmsTemplateRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void AddSmsTemplateRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string AddSmsTemplateRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddSmsTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int AddSmsTemplateRequest::getTemplateType()const
|
||||
{
|
||||
return templateType_;
|
||||
}
|
||||
|
||||
void AddSmsTemplateRequest::setTemplateType(int templateType)
|
||||
{
|
||||
templateType_ = templateType;
|
||||
setCoreParameter("TemplateType", std::to_string(templateType));
|
||||
}
|
||||
|
||||
std::string AddSmsTemplateRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void AddSmsTemplateRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setCoreParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
std::string AddSmsTemplateRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AddSmsTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long AddSmsTemplateRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddSmsTemplateRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AddSmsTemplateRequest::getTemplateContent()const
|
||||
{
|
||||
return templateContent_;
|
||||
}
|
||||
|
||||
void AddSmsTemplateRequest::setTemplateContent(const std::string& templateContent)
|
||||
{
|
||||
templateContent_ = templateContent;
|
||||
setCoreParameter("TemplateContent", templateContent);
|
||||
}
|
||||
|
||||
65
dysmsapi/src/model/AddSmsTemplateResult.cc
Normal file
65
dysmsapi/src/model/AddSmsTemplateResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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_;
|
||||
}
|
||||
|
||||
82
dysmsapi/src/model/DeleteSmsSignRequest.cc
Normal file
82
dysmsapi/src/model/DeleteSmsSignRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dysmsapi/model/DeleteSmsSignRequest.h>
|
||||
|
||||
using AlibabaCloud::Dysmsapi::Model::DeleteSmsSignRequest;
|
||||
|
||||
DeleteSmsSignRequest::DeleteSmsSignRequest() :
|
||||
RpcServiceRequest("dysmsapi", "2017-05-25", "DeleteSmsSign")
|
||||
{}
|
||||
|
||||
DeleteSmsSignRequest::~DeleteSmsSignRequest()
|
||||
{}
|
||||
|
||||
long DeleteSmsSignRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteSmsSignRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteSmsSignRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteSmsSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DeleteSmsSignRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteSmsSignRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteSmsSignRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteSmsSignRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteSmsSignRequest::getSignName()const
|
||||
{
|
||||
return signName_;
|
||||
}
|
||||
|
||||
void DeleteSmsSignRequest::setSignName(const std::string& signName)
|
||||
{
|
||||
signName_ = signName;
|
||||
setCoreParameter("SignName", signName);
|
||||
}
|
||||
|
||||
65
dysmsapi/src/model/DeleteSmsSignResult.cc
Normal file
65
dysmsapi/src/model/DeleteSmsSignResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/DeleteSmsSignResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dysmsapi;
|
||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
||||
|
||||
DeleteSmsSignResult::DeleteSmsSignResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSmsSignResult::DeleteSmsSignResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSmsSignResult::~DeleteSmsSignResult()
|
||||
{}
|
||||
|
||||
void DeleteSmsSignResult::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 DeleteSmsSignResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteSmsSignResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string DeleteSmsSignResult::getSignName()const
|
||||
{
|
||||
return signName_;
|
||||
}
|
||||
|
||||
82
dysmsapi/src/model/DeleteSmsTemplateRequest.cc
Normal file
82
dysmsapi/src/model/DeleteSmsTemplateRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dysmsapi/model/DeleteSmsTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Dysmsapi::Model::DeleteSmsTemplateRequest;
|
||||
|
||||
DeleteSmsTemplateRequest::DeleteSmsTemplateRequest() :
|
||||
RpcServiceRequest("dysmsapi", "2017-05-25", "DeleteSmsTemplate")
|
||||
{}
|
||||
|
||||
DeleteSmsTemplateRequest::~DeleteSmsTemplateRequest()
|
||||
{}
|
||||
|
||||
long DeleteSmsTemplateRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteSmsTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteSmsTemplateRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteSmsTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DeleteSmsTemplateRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteSmsTemplateRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteSmsTemplateRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteSmsTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteSmsTemplateRequest::getTemplateCode()const
|
||||
{
|
||||
return templateCode_;
|
||||
}
|
||||
|
||||
void DeleteSmsTemplateRequest::setTemplateCode(const std::string& templateCode)
|
||||
{
|
||||
templateCode_ = templateCode;
|
||||
setCoreParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
65
dysmsapi/src/model/DeleteSmsTemplateResult.cc
Normal file
65
dysmsapi/src/model/DeleteSmsTemplateResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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_;
|
||||
}
|
||||
|
||||
121
dysmsapi/src/model/ModifySmsSignRequest.cc
Normal file
121
dysmsapi/src/model/ModifySmsSignRequest.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
ModifySmsSignRequest::~ModifySmsSignRequest()
|
||||
{}
|
||||
|
||||
long ModifySmsSignRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifySmsSignRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifySmsSignRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void ModifySmsSignRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string ModifySmsSignRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifySmsSignRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifySmsSignRequest::getSignName()const
|
||||
{
|
||||
return signName_;
|
||||
}
|
||||
|
||||
void ModifySmsSignRequest::setSignName(const std::string& signName)
|
||||
{
|
||||
signName_ = signName;
|
||||
setCoreParameter("SignName", signName);
|
||||
}
|
||||
|
||||
std::vector<ModifySmsSignRequest::SignFileList> ModifySmsSignRequest::getSignFileList()const
|
||||
{
|
||||
return signFileList_;
|
||||
}
|
||||
|
||||
void ModifySmsSignRequest::setSignFileList(const std::vector<SignFileList>& signFileList)
|
||||
{
|
||||
signFileList_ = signFileList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= signFileList.size(); i++) {
|
||||
auto obj = signFileList.at(i);
|
||||
std::string str ="SignFileList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".FileContents", obj.fileContents);
|
||||
setCoreParameter(str + ".FileSuffix", obj.fileSuffix);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ModifySmsSignRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifySmsSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifySmsSignRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifySmsSignRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int ModifySmsSignRequest::getSignSource()const
|
||||
{
|
||||
return signSource_;
|
||||
}
|
||||
|
||||
void ModifySmsSignRequest::setSignSource(int signSource)
|
||||
{
|
||||
signSource_ = signSource;
|
||||
setCoreParameter("SignSource", std::to_string(signSource));
|
||||
}
|
||||
|
||||
65
dysmsapi/src/model/ModifySmsSignResult.cc
Normal file
65
dysmsapi/src/model/ModifySmsSignResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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_;
|
||||
}
|
||||
|
||||
126
dysmsapi/src/model/ModifySmsTemplateRequest.cc
Normal file
126
dysmsapi/src/model/ModifySmsTemplateRequest.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/ModifySmsTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Dysmsapi::Model::ModifySmsTemplateRequest;
|
||||
|
||||
ModifySmsTemplateRequest::ModifySmsTemplateRequest() :
|
||||
RpcServiceRequest("dysmsapi", "2017-05-25", "ModifySmsTemplate")
|
||||
{}
|
||||
|
||||
ModifySmsTemplateRequest::~ModifySmsTemplateRequest()
|
||||
{}
|
||||
|
||||
long ModifySmsTemplateRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifySmsTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifySmsTemplateRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void ModifySmsTemplateRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string ModifySmsTemplateRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifySmsTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int ModifySmsTemplateRequest::getTemplateType()const
|
||||
{
|
||||
return templateType_;
|
||||
}
|
||||
|
||||
void ModifySmsTemplateRequest::setTemplateType(int templateType)
|
||||
{
|
||||
templateType_ = templateType;
|
||||
setCoreParameter("TemplateType", std::to_string(templateType));
|
||||
}
|
||||
|
||||
std::string ModifySmsTemplateRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void ModifySmsTemplateRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setCoreParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
std::string ModifySmsTemplateRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifySmsTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifySmsTemplateRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifySmsTemplateRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifySmsTemplateRequest::getTemplateContent()const
|
||||
{
|
||||
return templateContent_;
|
||||
}
|
||||
|
||||
void ModifySmsTemplateRequest::setTemplateContent(const std::string& templateContent)
|
||||
{
|
||||
templateContent_ = templateContent;
|
||||
setCoreParameter("TemplateContent", templateContent);
|
||||
}
|
||||
|
||||
std::string ModifySmsTemplateRequest::getTemplateCode()const
|
||||
{
|
||||
return templateCode_;
|
||||
}
|
||||
|
||||
void ModifySmsTemplateRequest::setTemplateCode(const std::string& templateCode)
|
||||
{
|
||||
templateCode_ = templateCode;
|
||||
setCoreParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
65
dysmsapi/src/model/ModifySmsTemplateResult.cc
Normal file
65
dysmsapi/src/model/ModifySmsTemplateResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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_;
|
||||
}
|
||||
|
||||
@@ -36,15 +36,26 @@ void QuerySendDetailsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getResourceOwnerAccount()const
|
||||
std::string QuerySendDetailsRequest::getPhoneNumber()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
void QuerySendDetailsRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
phoneNumber_ = phoneNumber;
|
||||
setCoreParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getSendDate()const
|
||||
@@ -58,28 +69,6 @@ void QuerySendDetailsRequest::setSendDate(const std::string& sendDate)
|
||||
setCoreParameter("SendDate", sendDate);
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getPhoneNumber()const
|
||||
{
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
setCoreParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setCoreParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
long QuerySendDetailsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
@@ -91,6 +80,17 @@ void QuerySendDetailsRequest::setPageSize(long pageSize)
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long QuerySendDetailsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
@@ -113,14 +113,14 @@ void QuerySendDetailsRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getAccessKeyId()const
|
||||
std::string QuerySendDetailsRequest::getBizId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
void QuerySendDetailsRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
bizId_ = bizId;
|
||||
setCoreParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QuerySendDetailsResult::~QuerySendDetailsResult()
|
||||
|
||||
void QuerySendDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSmsSendDetailDTOs = value["SmsSendDetailDTOs"]["SmsSendDetailDTO"];
|
||||
for (auto value : allSmsSendDetailDTOs)
|
||||
|
||||
82
dysmsapi/src/model/QuerySmsSignRequest.cc
Normal file
82
dysmsapi/src/model/QuerySmsSignRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dysmsapi/model/QuerySmsSignRequest.h>
|
||||
|
||||
using AlibabaCloud::Dysmsapi::Model::QuerySmsSignRequest;
|
||||
|
||||
QuerySmsSignRequest::QuerySmsSignRequest() :
|
||||
RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySmsSign")
|
||||
{}
|
||||
|
||||
QuerySmsSignRequest::~QuerySmsSignRequest()
|
||||
{}
|
||||
|
||||
long QuerySmsSignRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QuerySmsSignRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QuerySmsSignRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QuerySmsSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long QuerySmsSignRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QuerySmsSignRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QuerySmsSignRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QuerySmsSignRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QuerySmsSignRequest::getSignName()const
|
||||
{
|
||||
return signName_;
|
||||
}
|
||||
|
||||
void QuerySmsSignRequest::setSignName(const std::string& signName)
|
||||
{
|
||||
signName_ = signName;
|
||||
setCoreParameter("SignName", signName);
|
||||
}
|
||||
|
||||
86
dysmsapi/src/model/QuerySmsSignResult.cc
Normal file
86
dysmsapi/src/model/QuerySmsSignResult.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/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_;
|
||||
}
|
||||
|
||||
82
dysmsapi/src/model/QuerySmsTemplateRequest.cc
Normal file
82
dysmsapi/src/model/QuerySmsTemplateRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dysmsapi/model/QuerySmsTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Dysmsapi::Model::QuerySmsTemplateRequest;
|
||||
|
||||
QuerySmsTemplateRequest::QuerySmsTemplateRequest() :
|
||||
RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySmsTemplate")
|
||||
{}
|
||||
|
||||
QuerySmsTemplateRequest::~QuerySmsTemplateRequest()
|
||||
{}
|
||||
|
||||
long QuerySmsTemplateRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QuerySmsTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QuerySmsTemplateRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QuerySmsTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long QuerySmsTemplateRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QuerySmsTemplateRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QuerySmsTemplateRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QuerySmsTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QuerySmsTemplateRequest::getTemplateCode()const
|
||||
{
|
||||
return templateCode_;
|
||||
}
|
||||
|
||||
void QuerySmsTemplateRequest::setTemplateCode(const std::string& templateCode)
|
||||
{
|
||||
templateCode_ = templateCode;
|
||||
setCoreParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
107
dysmsapi/src/model/QuerySmsTemplateResult.cc
Normal file
107
dysmsapi/src/model/QuerySmsTemplateResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* 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_;
|
||||
}
|
||||
|
||||
@@ -25,17 +25,6 @@ SendBatchSmsRequest::SendBatchSmsRequest() :
|
||||
SendBatchSmsRequest::~SendBatchSmsRequest()
|
||||
{}
|
||||
|
||||
std::string SendBatchSmsRequest::getTemplateParamJson()const
|
||||
{
|
||||
return templateParamJson_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setTemplateParamJson(const std::string& templateParamJson)
|
||||
{
|
||||
templateParamJson_ = templateParamJson;
|
||||
setCoreParameter("TemplateParamJson", templateParamJson);
|
||||
}
|
||||
|
||||
long SendBatchSmsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
@@ -47,6 +36,28 @@ void SendBatchSmsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getTemplateParamJson()const
|
||||
{
|
||||
return templateParamJson_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setTemplateParamJson(const std::string& templateParamJson)
|
||||
{
|
||||
templateParamJson_ = templateParamJson;
|
||||
setCoreParameter("TemplateParamJson", templateParamJson);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -58,17 +69,6 @@ void SendBatchSmsRequest::setResourceOwnerAccount(const std::string& resourceOwn
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getSmsUpExtendCodeJson()const
|
||||
{
|
||||
return smsUpExtendCodeJson_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setSmsUpExtendCodeJson(const std::string& smsUpExtendCodeJson)
|
||||
{
|
||||
smsUpExtendCodeJson_ = smsUpExtendCodeJson;
|
||||
setCoreParameter("SmsUpExtendCodeJson", smsUpExtendCodeJson);
|
||||
}
|
||||
|
||||
long SendBatchSmsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -80,6 +80,17 @@ void SendBatchSmsRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getSmsUpExtendCodeJson()const
|
||||
{
|
||||
return smsUpExtendCodeJson_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setSmsUpExtendCodeJson(const std::string& smsUpExtendCodeJson)
|
||||
{
|
||||
smsUpExtendCodeJson_ = smsUpExtendCodeJson;
|
||||
setCoreParameter("SmsUpExtendCodeJson", smsUpExtendCodeJson);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getSignNameJson()const
|
||||
{
|
||||
return signNameJson_;
|
||||
@@ -113,14 +124,3 @@ void SendBatchSmsRequest::setPhoneNumberJson(const std::string& phoneNumberJson)
|
||||
setCoreParameter("PhoneNumberJson", phoneNumberJson);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ SendBatchSmsResult::~SendBatchSmsResult()
|
||||
|
||||
void SendBatchSmsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BizId"].isNull())
|
||||
bizId_ = value["BizId"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ SendSmsRequest::SendSmsRequest() :
|
||||
SendSmsRequest::~SendSmsRequest()
|
||||
{}
|
||||
|
||||
std::string SendSmsRequest::getSmsUpExtendCode()const
|
||||
{
|
||||
return smsUpExtendCode_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setSmsUpExtendCode(const std::string& smsUpExtendCode)
|
||||
{
|
||||
smsUpExtendCode_ = smsUpExtendCode;
|
||||
setCoreParameter("SmsUpExtendCode", smsUpExtendCode);
|
||||
}
|
||||
|
||||
long SendSmsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
@@ -47,6 +36,28 @@ void SendSmsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getSmsUpExtendCode()const
|
||||
{
|
||||
return smsUpExtendCode_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setSmsUpExtendCode(const std::string& smsUpExtendCode)
|
||||
{
|
||||
smsUpExtendCode_ = smsUpExtendCode;
|
||||
setCoreParameter("SmsUpExtendCode", smsUpExtendCode);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getSignName()const
|
||||
{
|
||||
return signName_;
|
||||
@@ -80,17 +91,6 @@ void SendSmsRequest::setPhoneNumbers(const std::string& phoneNumbers)
|
||||
setCoreParameter("PhoneNumbers", phoneNumbers);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
long SendSmsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -102,6 +102,17 @@ void SendSmsRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getTemplateCode()const
|
||||
{
|
||||
return templateCode_;
|
||||
@@ -113,17 +124,6 @@ void SendSmsRequest::setTemplateCode(const std::string& templateCode)
|
||||
setCoreParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getTemplateParam()const
|
||||
{
|
||||
return templateParam_;
|
||||
|
||||
@@ -35,13 +35,9 @@ SendSmsResult::~SendSmsResult()
|
||||
|
||||
void SendSmsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BizId"].isNull())
|
||||
bizId_ = value["BizId"].asString();
|
||||
|
||||
Reference in New Issue
Block a user