AddShareTaskDeviceRequest.cc 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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/AddShareTaskDeviceRequest.h>
  17. using AlibabaCloud::Iot::Model::AddShareTaskDeviceRequest;
  18. AddShareTaskDeviceRequest::AddShareTaskDeviceRequest() :
  19. RpcServiceRequest("iot", "2018-01-20", "AddShareTaskDevice")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. AddShareTaskDeviceRequest::~AddShareTaskDeviceRequest()
  24. {}
  25. std::string AddShareTaskDeviceRequest::getIotInstanceId()const
  26. {
  27. return iotInstanceId_;
  28. }
  29. void AddShareTaskDeviceRequest::setIotInstanceId(const std::string& iotInstanceId)
  30. {
  31. iotInstanceId_ = iotInstanceId;
  32. setBodyParameter("IotInstanceId", iotInstanceId);
  33. }
  34. std::vector<std::string> AddShareTaskDeviceRequest::getIotIdList()const
  35. {
  36. return iotIdList_;
  37. }
  38. void AddShareTaskDeviceRequest::setIotIdList(const std::vector<std::string>& iotIdList)
  39. {
  40. iotIdList_ = iotIdList;
  41. for(int dep1 = 0; dep1!= iotIdList.size(); dep1++) {
  42. setBodyParameter("IotIdList."+ std::to_string(dep1), iotIdList.at(dep1));
  43. }
  44. }
  45. std::string AddShareTaskDeviceRequest::getShareTaskId()const
  46. {
  47. return shareTaskId_;
  48. }
  49. void AddShareTaskDeviceRequest::setShareTaskId(const std::string& shareTaskId)
  50. {
  51. shareTaskId_ = shareTaskId;
  52. setBodyParameter("ShareTaskId", shareTaskId);
  53. }
  54. std::string AddShareTaskDeviceRequest::getProductKey()const
  55. {
  56. return productKey_;
  57. }
  58. void AddShareTaskDeviceRequest::setProductKey(const std::string& productKey)
  59. {
  60. productKey_ = productKey;
  61. setBodyParameter("ProductKey", productKey);
  62. }
  63. std::string AddShareTaskDeviceRequest::getApiProduct()const
  64. {
  65. return apiProduct_;
  66. }
  67. void AddShareTaskDeviceRequest::setApiProduct(const std::string& apiProduct)
  68. {
  69. apiProduct_ = apiProduct;
  70. setBodyParameter("ApiProduct", apiProduct);
  71. }
  72. std::string AddShareTaskDeviceRequest::getApiRevision()const
  73. {
  74. return apiRevision_;
  75. }
  76. void AddShareTaskDeviceRequest::setApiRevision(const std::string& apiRevision)
  77. {
  78. apiRevision_ = apiRevision;
  79. setBodyParameter("ApiRevision", apiRevision);
  80. }