Upgrade Service for SMS.

This commit is contained in:
sdk-team
2022-01-19 11:44:35 +00:00
parent 8383b37798
commit c2bfeb1216
41 changed files with 3348 additions and 6 deletions

View File

@@ -22,28 +22,46 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "DysmsapiExport.h"
#include "model/AddShortUrlRequest.h"
#include "model/AddShortUrlResult.h"
#include "model/AddSmsSignRequest.h"
#include "model/AddSmsSignResult.h"
#include "model/AddSmsTemplateRequest.h"
#include "model/AddSmsTemplateResult.h"
#include "model/DeleteShortUrlRequest.h"
#include "model/DeleteShortUrlResult.h"
#include "model/DeleteSmsSignRequest.h"
#include "model/DeleteSmsSignResult.h"
#include "model/DeleteSmsTemplateRequest.h"
#include "model/DeleteSmsTemplateResult.h"
#include "model/ListTagResourcesRequest.h"
#include "model/ListTagResourcesResult.h"
#include "model/ModifySmsSignRequest.h"
#include "model/ModifySmsSignResult.h"
#include "model/ModifySmsTemplateRequest.h"
#include "model/ModifySmsTemplateResult.h"
#include "model/QuerySendDetailsRequest.h"
#include "model/QuerySendDetailsResult.h"
#include "model/QuerySendStatisticsRequest.h"
#include "model/QuerySendStatisticsResult.h"
#include "model/QueryShortUrlRequest.h"
#include "model/QueryShortUrlResult.h"
#include "model/QuerySmsSignRequest.h"
#include "model/QuerySmsSignResult.h"
#include "model/QuerySmsSignListRequest.h"
#include "model/QuerySmsSignListResult.h"
#include "model/QuerySmsTemplateRequest.h"
#include "model/QuerySmsTemplateResult.h"
#include "model/QuerySmsTemplateListRequest.h"
#include "model/QuerySmsTemplateListResult.h"
#include "model/SendBatchSmsRequest.h"
#include "model/SendBatchSmsResult.h"
#include "model/SendSmsRequest.h"
#include "model/SendSmsResult.h"
#include "model/TagResourcesRequest.h"
#include "model/TagResourcesResult.h"
#include "model/UntagResourcesRequest.h"
#include "model/UntagResourcesResult.h"
namespace AlibabaCloud
@@ -53,18 +71,27 @@ namespace AlibabaCloud
class ALIBABACLOUD_DYSMSAPI_EXPORT DysmsapiClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AddShortUrlResult> AddShortUrlOutcome;
typedef std::future<AddShortUrlOutcome> AddShortUrlOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::AddShortUrlRequest&, const AddShortUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddShortUrlAsyncHandler;
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::DeleteShortUrlResult> DeleteShortUrlOutcome;
typedef std::future<DeleteShortUrlOutcome> DeleteShortUrlOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::DeleteShortUrlRequest&, const DeleteShortUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteShortUrlAsyncHandler;
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::ListTagResourcesResult> ListTagResourcesOutcome;
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
typedef Outcome<Error, Model::ModifySmsSignResult> ModifySmsSignOutcome;
typedef std::future<ModifySmsSignOutcome> ModifySmsSignOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::ModifySmsSignRequest&, const ModifySmsSignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySmsSignAsyncHandler;
@@ -74,35 +101,62 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QuerySendDetailsResult> QuerySendDetailsOutcome;
typedef std::future<QuerySendDetailsOutcome> QuerySendDetailsOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::QuerySendDetailsRequest&, const QuerySendDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySendDetailsAsyncHandler;
typedef Outcome<Error, Model::QuerySendStatisticsResult> QuerySendStatisticsOutcome;
typedef std::future<QuerySendStatisticsOutcome> QuerySendStatisticsOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::QuerySendStatisticsRequest&, const QuerySendStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySendStatisticsAsyncHandler;
typedef Outcome<Error, Model::QueryShortUrlResult> QueryShortUrlOutcome;
typedef std::future<QueryShortUrlOutcome> QueryShortUrlOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::QueryShortUrlRequest&, const QueryShortUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryShortUrlAsyncHandler;
typedef Outcome<Error, Model::QuerySmsSignResult> QuerySmsSignOutcome;
typedef std::future<QuerySmsSignOutcome> QuerySmsSignOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::QuerySmsSignRequest&, const QuerySmsSignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySmsSignAsyncHandler;
typedef Outcome<Error, Model::QuerySmsSignListResult> QuerySmsSignListOutcome;
typedef std::future<QuerySmsSignListOutcome> QuerySmsSignListOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::QuerySmsSignListRequest&, const QuerySmsSignListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySmsSignListAsyncHandler;
typedef Outcome<Error, Model::QuerySmsTemplateResult> QuerySmsTemplateOutcome;
typedef std::future<QuerySmsTemplateOutcome> QuerySmsTemplateOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::QuerySmsTemplateRequest&, const QuerySmsTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySmsTemplateAsyncHandler;
typedef Outcome<Error, Model::QuerySmsTemplateListResult> QuerySmsTemplateListOutcome;
typedef std::future<QuerySmsTemplateListOutcome> QuerySmsTemplateListOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::QuerySmsTemplateListRequest&, const QuerySmsTemplateListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySmsTemplateListAsyncHandler;
typedef Outcome<Error, Model::SendBatchSmsResult> SendBatchSmsOutcome;
typedef std::future<SendBatchSmsOutcome> SendBatchSmsOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::SendBatchSmsRequest&, const SendBatchSmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendBatchSmsAsyncHandler;
typedef Outcome<Error, Model::SendSmsResult> SendSmsOutcome;
typedef std::future<SendSmsOutcome> SendSmsOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::SendSmsRequest&, const SendSmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendSmsAsyncHandler;
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
DysmsapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
DysmsapiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
DysmsapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~DysmsapiClient();
AddShortUrlOutcome addShortUrl(const Model::AddShortUrlRequest &request)const;
void addShortUrlAsync(const Model::AddShortUrlRequest& request, const AddShortUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddShortUrlOutcomeCallable addShortUrlCallable(const Model::AddShortUrlRequest& 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;
DeleteShortUrlOutcome deleteShortUrl(const Model::DeleteShortUrlRequest &request)const;
void deleteShortUrlAsync(const Model::DeleteShortUrlRequest& request, const DeleteShortUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteShortUrlOutcomeCallable deleteShortUrlCallable(const Model::DeleteShortUrlRequest& 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;
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
ModifySmsSignOutcome modifySmsSign(const Model::ModifySmsSignRequest &request)const;
void modifySmsSignAsync(const Model::ModifySmsSignRequest& request, const ModifySmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifySmsSignOutcomeCallable modifySmsSignCallable(const Model::ModifySmsSignRequest& request) const;
@@ -112,18 +166,36 @@ namespace AlibabaCloud
QuerySendDetailsOutcome querySendDetails(const Model::QuerySendDetailsRequest &request)const;
void querySendDetailsAsync(const Model::QuerySendDetailsRequest& request, const QuerySendDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySendDetailsOutcomeCallable querySendDetailsCallable(const Model::QuerySendDetailsRequest& request) const;
QuerySendStatisticsOutcome querySendStatistics(const Model::QuerySendStatisticsRequest &request)const;
void querySendStatisticsAsync(const Model::QuerySendStatisticsRequest& request, const QuerySendStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySendStatisticsOutcomeCallable querySendStatisticsCallable(const Model::QuerySendStatisticsRequest& request) const;
QueryShortUrlOutcome queryShortUrl(const Model::QueryShortUrlRequest &request)const;
void queryShortUrlAsync(const Model::QueryShortUrlRequest& request, const QueryShortUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryShortUrlOutcomeCallable queryShortUrlCallable(const Model::QueryShortUrlRequest& request) const;
QuerySmsSignOutcome querySmsSign(const Model::QuerySmsSignRequest &request)const;
void querySmsSignAsync(const Model::QuerySmsSignRequest& request, const QuerySmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySmsSignOutcomeCallable querySmsSignCallable(const Model::QuerySmsSignRequest& request) const;
QuerySmsSignListOutcome querySmsSignList(const Model::QuerySmsSignListRequest &request)const;
void querySmsSignListAsync(const Model::QuerySmsSignListRequest& request, const QuerySmsSignListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySmsSignListOutcomeCallable querySmsSignListCallable(const Model::QuerySmsSignListRequest& request) const;
QuerySmsTemplateOutcome querySmsTemplate(const Model::QuerySmsTemplateRequest &request)const;
void querySmsTemplateAsync(const Model::QuerySmsTemplateRequest& request, const QuerySmsTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySmsTemplateOutcomeCallable querySmsTemplateCallable(const Model::QuerySmsTemplateRequest& request) const;
QuerySmsTemplateListOutcome querySmsTemplateList(const Model::QuerySmsTemplateListRequest &request)const;
void querySmsTemplateListAsync(const Model::QuerySmsTemplateListRequest& request, const QuerySmsTemplateListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySmsTemplateListOutcomeCallable querySmsTemplateListCallable(const Model::QuerySmsTemplateListRequest& request) const;
SendBatchSmsOutcome sendBatchSms(const Model::SendBatchSmsRequest &request)const;
void sendBatchSmsAsync(const Model::SendBatchSmsRequest& request, const SendBatchSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SendBatchSmsOutcomeCallable sendBatchSmsCallable(const Model::SendBatchSmsRequest& request) const;
SendSmsOutcome sendSms(const Model::SendSmsRequest &request)const;
void sendSmsAsync(const Model::SendSmsRequest& request, const SendSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SendSmsOutcomeCallable sendSmsCallable(const Model::SendSmsRequest& request) const;
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLREQUEST_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT AddShortUrlRequest : public RpcServiceRequest
{
public:
AddShortUrlRequest();
~AddShortUrlRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getShortUrlName()const;
void setShortUrlName(const std::string& shortUrlName);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getEffectiveDays()const;
void setEffectiveDays(const std::string& effectiveDays);
std::string getProdCode()const;
void setProdCode(const std::string& prodCode);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getSourceUrl()const;
void setSourceUrl(const std::string& sourceUrl);
private:
long resourceOwnerId_;
std::string shortUrlName_;
std::string accessKeyId_;
std::string resourceOwnerAccount_;
std::string effectiveDays_;
std::string prodCode_;
long ownerId_;
std::string sourceUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLREQUEST_H_

View File

@@ -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_ADDSHORTURLRESULT_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT AddShortUrlResult : public ServiceResult
{
public:
struct Data
{
std::string sourceUrl;
std::string shortUrl;
std::string expireDate;
};
AddShortUrlResult();
explicit AddShortUrlResult(const std::string &payload);
~AddShortUrlResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLREQUEST_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT DeleteShortUrlRequest : public RpcServiceRequest
{
public:
DeleteShortUrlRequest();
~DeleteShortUrlRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getProdCode()const;
void setProdCode(const std::string& prodCode);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSourceUrl()const;
void setSourceUrl(const std::string& sourceUrl);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
std::string prodCode_;
long ownerId_;
std::string accessKeyId_;
std::string sourceUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLRESULT_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT DeleteShortUrlResult : public ServiceResult
{
public:
DeleteShortUrlResult();
explicit DeleteShortUrlResult(const std::string &payload);
~DeleteShortUrlResult();
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLRESULT_H_

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT ListTagResourcesRequest : public RpcServiceRequest
{
public:
struct Tag
{
std::string value;
std::string key;
};
public:
ListTagResourcesRequest();
~ListTagResourcesRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
int getPageSize()const;
void setPageSize(int pageSize);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::vector<std::string> getResourceId()const;
void setResourceId(const std::vector<std::string>& resourceId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getProdCode()const;
void setProdCode(const std::string& prodCode);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string regionId_;
std::string nextToken_;
int pageSize_;
std::vector<Tag> tag_;
std::vector<std::string> resourceId_;
std::string resourceOwnerAccount_;
std::string prodCode_;
long ownerId_;
std::string resourceType_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESREQUEST_H_

View File

@@ -0,0 +1,62 @@
/*
* 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_LISTTAGRESOURCESRESULT_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESRESULT_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 ListTagResourcesResult : public ServiceResult
{
public:
struct TagResource
{
std::string resourceId;
std::string tagKey;
std::string resourceType;
std::string tagValue;
};
ListTagResourcesResult();
explicit ListTagResourcesResult(const std::string &payload);
~ListTagResourcesResult();
std::string getNextToken()const;
std::vector<TagResource> getTagResources()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::vector<TagResource> tagResources_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESRESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSREQUEST_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySendStatisticsRequest : public RpcServiceRequest
{
public:
QuerySendStatisticsRequest();
~QuerySendStatisticsRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getIsGlobe()const;
void setIsGlobe(int isGlobe);
std::string getStartDate()const;
void setStartDate(const std::string& startDate);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
int getPageSize()const;
void setPageSize(int pageSize);
int getPageIndex()const;
void setPageIndex(int pageIndex);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getEndDate()const;
void setEndDate(const std::string& endDate);
private:
long resourceOwnerId_;
int isGlobe_;
std::string startDate_;
std::string accessKeyId_;
int pageSize_;
int pageIndex_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string endDate_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSRESULT_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySendStatisticsResult : public ServiceResult
{
public:
struct Data
{
struct SmsStatisticsDTO
{
long totalCount;
long noRespondedCount;
std::string sendDate;
long respondedFailCount;
long respondedSuccessCount;
};
std::vector<SmsStatisticsDTO> targetList;
long totalSize;
};
QuerySendStatisticsResult();
explicit QuerySendStatisticsResult(const std::string &payload);
~QuerySendStatisticsResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLREQUEST_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT QueryShortUrlRequest : public RpcServiceRequest
{
public:
QueryShortUrlRequest();
~QueryShortUrlRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getShortUrl()const;
void setShortUrl(const std::string& shortUrl);
std::string getProdCode()const;
void setProdCode(const std::string& prodCode);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
std::string shortUrl_;
std::string prodCode_;
long ownerId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLREQUEST_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLRESULT_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT QueryShortUrlResult : public ServiceResult
{
public:
struct Data
{
std::string sourceUrl;
std::string shortUrlName;
std::string shortUrl;
std::string expireDate;
std::string pageViewCount;
std::string createDate;
std::string shortUrlStatus;
std::string uniqueVisitorCount;
};
QueryShortUrlResult();
explicit QueryShortUrlResult(const std::string &payload);
~QueryShortUrlResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTREQUEST_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsSignListRequest : public RpcServiceRequest
{
public:
QuerySmsSignListRequest();
~QuerySmsSignListRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
int getPageSize()const;
void setPageSize(int pageSize);
int getPageIndex()const;
void setPageIndex(int pageIndex);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string accessKeyId_;
int pageSize_;
int pageIndex_;
std::string resourceOwnerAccount_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTREQUEST_H_

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTRESULT_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsSignListResult : public ServiceResult
{
public:
struct QuerySmsSignDTO
{
struct Reason
{
std::string rejectInfo;
std::string rejectSubInfo;
std::string rejectDate;
};
std::string auditStatus;
std::string businessType;
std::string orderId;
std::string createDate;
Reason reason;
std::string signName;
};
QuerySmsSignListResult();
explicit QuerySmsSignListResult(const std::string &payload);
~QuerySmsSignListResult();
std::string getMessage()const;
std::vector<QuerySmsSignDTO> getSmsSignList()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<QuerySmsSignDTO> smsSignList_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTREQUEST_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsTemplateListRequest : public RpcServiceRequest
{
public:
QuerySmsTemplateListRequest();
~QuerySmsTemplateListRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
int getPageSize()const;
void setPageSize(int pageSize);
int getPageIndex()const;
void setPageIndex(int pageIndex);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string accessKeyId_;
int pageSize_;
int pageIndex_;
std::string resourceOwnerAccount_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTREQUEST_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTRESULT_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsTemplateListResult : public ServiceResult
{
public:
struct SmsStatsResultDTO
{
struct Reason
{
std::string rejectInfo;
std::string rejectSubInfo;
std::string rejectDate;
};
std::string templateCode;
std::string auditStatus;
std::string templateContent;
std::string templateName;
int templateType;
std::string orderId;
std::string createDate;
Reason reason;
};
QuerySmsTemplateListResult();
explicit QuerySmsTemplateListResult(const std::string &payload);
~QuerySmsTemplateListResult();
std::string getMessage()const;
std::vector<SmsStatsResultDTO> getSmsTemplateList()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<SmsStatsResultDTO> smsTemplateList_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTRESULT_H_

View File

@@ -0,0 +1,78 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT TagResourcesRequest : public RpcServiceRequest
{
public:
struct Tag
{
std::string value;
std::string key;
};
public:
TagResourcesRequest();
~TagResourcesRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::vector<std::string> getResourceId()const;
void setResourceId(const std::vector<std::string>& resourceId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getProdCode()const;
void setProdCode(const std::string& prodCode);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string regionId_;
std::vector<Tag> tag_;
std::vector<std::string> resourceId_;
std::string resourceOwnerAccount_;
std::string prodCode_;
long ownerId_;
std::string resourceType_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESRESULT_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT TagResourcesResult : public ServiceResult
{
public:
TagResourcesResult();
explicit TagResourcesResult(const std::string &payload);
~TagResourcesResult();
std::string getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESRESULT_H_

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT UntagResourcesRequest : public RpcServiceRequest
{
public:
UntagResourcesRequest();
~UntagResourcesRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
bool getAll()const;
void setAll(bool all);
std::vector<std::string> getResourceId()const;
void setResourceId(const std::vector<std::string>& resourceId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getProdCode()const;
void setProdCode(const std::string& prodCode);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
std::vector<std::string> getTagKey()const;
void setTagKey(const std::vector<std::string>& tagKey);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string regionId_;
bool all_;
std::vector<std::string> resourceId_;
std::string resourceOwnerAccount_;
std::string prodCode_;
long ownerId_;
std::string resourceType_;
std::vector<std::string> tagKey_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* 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_UNTAGRESOURCESRESULT_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESRESULT_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 UntagResourcesResult : public ServiceResult
{
public:
UntagResourcesResult();
explicit UntagResourcesResult(const std::string &payload);
~UntagResourcesResult();
std::string getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESRESULT_H_