| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- /*
- * 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/iot/model/QueryAppDeviceListRequest.h>
- using AlibabaCloud::Iot::Model::QueryAppDeviceListRequest;
- QueryAppDeviceListRequest::QueryAppDeviceListRequest() :
- RpcServiceRequest("iot", "2018-01-20", "QueryAppDeviceList")
- {}
- QueryAppDeviceListRequest::~QueryAppDeviceListRequest()
- {}
- std::vector<std::string> QueryAppDeviceListRequest::getProductKeyList()const
- {
- return productKeyList_;
- }
- void QueryAppDeviceListRequest::setProductKeyList(const std::vector<std::string>& productKeyList)
- {
- productKeyList_ = productKeyList;
- for(int i = 0; i!= productKeyList.size(); i++)
- setParameter("ProductKeyList."+ std::to_string(i), productKeyList.at(i));
- }
- std::vector<std::string> QueryAppDeviceListRequest::getCategoryKeyList()const
- {
- return categoryKeyList_;
- }
- void QueryAppDeviceListRequest::setCategoryKeyList(const std::vector<std::string>& categoryKeyList)
- {
- categoryKeyList_ = categoryKeyList;
- for(int i = 0; i!= categoryKeyList.size(); i++)
- setParameter("CategoryKeyList."+ std::to_string(i), categoryKeyList.at(i));
- }
- int QueryAppDeviceListRequest::getPageSize()const
- {
- return pageSize_;
- }
- void QueryAppDeviceListRequest::setPageSize(int pageSize)
- {
- pageSize_ = pageSize;
- setParameter("PageSize", std::to_string(pageSize));
- }
- int QueryAppDeviceListRequest::getCurrentPage()const
- {
- return currentPage_;
- }
- void QueryAppDeviceListRequest::setCurrentPage(int currentPage)
- {
- currentPage_ = currentPage;
- setParameter("CurrentPage", std::to_string(currentPage));
- }
- std::string QueryAppDeviceListRequest::getAppKey()const
- {
- return appKey_;
- }
- void QueryAppDeviceListRequest::setAppKey(const std::string& appKey)
- {
- appKey_ = appKey;
- setParameter("AppKey", appKey);
- }
- std::vector<QueryAppDeviceListRequest::TagList> QueryAppDeviceListRequest::getTagList()const
- {
- return tagList_;
- }
- void QueryAppDeviceListRequest::setTagList(const std::vector<TagList>& tagList)
- {
- tagList_ = tagList;
- int i = 0;
- for(int i = 0; i!= tagList.size(); i++) {
- auto obj = tagList.at(i);
- std::string str ="TagList."+ std::to_string(i);
- setParameter(str + ".TagName", obj.tagName);
- setParameter(str + ".TagValue", obj.tagValue);
- }
- }
|