QueryAppDeviceListRequest.cc 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include <alibabacloud/iot/model/QueryAppDeviceListRequest.h>
  17. using AlibabaCloud::Iot::Model::QueryAppDeviceListRequest;
  18. QueryAppDeviceListRequest::QueryAppDeviceListRequest() :
  19. RpcServiceRequest("iot", "2018-01-20", "QueryAppDeviceList")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. QueryAppDeviceListRequest::~QueryAppDeviceListRequest()
  24. {}
  25. std::vector<QueryAppDeviceListRequest::TagList> QueryAppDeviceListRequest::getTagList()const
  26. {
  27. return tagList_;
  28. }
  29. void QueryAppDeviceListRequest::setTagList(const std::vector<TagList>& tagList)
  30. {
  31. tagList_ = tagList;
  32. for(int dep1 = 0; dep1!= tagList.size(); dep1++) {
  33. auto tagListObj = tagList.at(dep1);
  34. std::string tagListObjStr = "TagList." + std::to_string(dep1 + 1);
  35. setParameter(tagListObjStr + ".TagName", tagListObj.tagName);
  36. setParameter(tagListObjStr + ".TagValue", tagListObj.tagValue);
  37. }
  38. }
  39. std::vector<std::string> QueryAppDeviceListRequest::getProductKeyList()const
  40. {
  41. return productKeyList_;
  42. }
  43. void QueryAppDeviceListRequest::setProductKeyList(const std::vector<std::string>& productKeyList)
  44. {
  45. productKeyList_ = productKeyList;
  46. for(int dep1 = 0; dep1!= productKeyList.size(); dep1++) {
  47. setParameter("ProductKeyList."+ std::to_string(dep1), productKeyList.at(dep1));
  48. }
  49. }
  50. std::string QueryAppDeviceListRequest::getIotInstanceId()const
  51. {
  52. return iotInstanceId_;
  53. }
  54. void QueryAppDeviceListRequest::setIotInstanceId(const std::string& iotInstanceId)
  55. {
  56. iotInstanceId_ = iotInstanceId;
  57. setParameter("IotInstanceId", iotInstanceId);
  58. }
  59. int QueryAppDeviceListRequest::getPageSize()const
  60. {
  61. return pageSize_;
  62. }
  63. void QueryAppDeviceListRequest::setPageSize(int pageSize)
  64. {
  65. pageSize_ = pageSize;
  66. setParameter("PageSize", std::to_string(pageSize));
  67. }
  68. int QueryAppDeviceListRequest::getCurrentPage()const
  69. {
  70. return currentPage_;
  71. }
  72. void QueryAppDeviceListRequest::setCurrentPage(int currentPage)
  73. {
  74. currentPage_ = currentPage;
  75. setParameter("CurrentPage", std::to_string(currentPage));
  76. }
  77. std::vector<std::string> QueryAppDeviceListRequest::getCategoryKeyList()const
  78. {
  79. return categoryKeyList_;
  80. }
  81. void QueryAppDeviceListRequest::setCategoryKeyList(const std::vector<std::string>& categoryKeyList)
  82. {
  83. categoryKeyList_ = categoryKeyList;
  84. for(int dep1 = 0; dep1!= categoryKeyList.size(); dep1++) {
  85. setParameter("CategoryKeyList."+ std::to_string(dep1), categoryKeyList.at(dep1));
  86. }
  87. }
  88. std::string QueryAppDeviceListRequest::getApiProduct()const
  89. {
  90. return apiProduct_;
  91. }
  92. void QueryAppDeviceListRequest::setApiProduct(const std::string& apiProduct)
  93. {
  94. apiProduct_ = apiProduct;
  95. setBodyParameter("ApiProduct", apiProduct);
  96. }
  97. std::string QueryAppDeviceListRequest::getApiRevision()const
  98. {
  99. return apiRevision_;
  100. }
  101. void QueryAppDeviceListRequest::setApiRevision(const std::string& apiRevision)
  102. {
  103. apiRevision_ = apiRevision;
  104. setBodyParameter("ApiRevision", apiRevision);
  105. }
  106. std::string QueryAppDeviceListRequest::getAppKey()const
  107. {
  108. return appKey_;
  109. }
  110. void QueryAppDeviceListRequest::setAppKey(const std::string& appKey)
  111. {
  112. appKey_ = appKey;
  113. setParameter("AppKey", appKey);
  114. }