BatchGetDeviceStateRequest.cc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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/BatchGetDeviceStateRequest.h>
  17. using AlibabaCloud::Iot::Model::BatchGetDeviceStateRequest;
  18. BatchGetDeviceStateRequest::BatchGetDeviceStateRequest() :
  19. RpcServiceRequest("iot", "2018-01-20", "BatchGetDeviceState")
  20. {}
  21. BatchGetDeviceStateRequest::~BatchGetDeviceStateRequest()
  22. {}
  23. std::string BatchGetDeviceStateRequest::getProductKey()const
  24. {
  25. return productKey_;
  26. }
  27. void BatchGetDeviceStateRequest::setProductKey(const std::string& productKey)
  28. {
  29. productKey_ = productKey;
  30. setCoreParameter("ProductKey", productKey);
  31. }
  32. std::string BatchGetDeviceStateRequest::getAccessKeyId()const
  33. {
  34. return accessKeyId_;
  35. }
  36. void BatchGetDeviceStateRequest::setAccessKeyId(const std::string& accessKeyId)
  37. {
  38. accessKeyId_ = accessKeyId;
  39. setCoreParameter("AccessKeyId", accessKeyId);
  40. }
  41. std::vector<std::string> BatchGetDeviceStateRequest::getIotId()const
  42. {
  43. return iotId_;
  44. }
  45. void BatchGetDeviceStateRequest::setIotId(const std::vector<std::string>& iotId)
  46. {
  47. iotId_ = iotId;
  48. for(int i = 0; i!= iotId.size(); i++)
  49. setCoreParameter("IotId."+ std::to_string(i), iotId.at(i));
  50. }
  51. std::string BatchGetDeviceStateRequest::getIotInstanceId()const
  52. {
  53. return iotInstanceId_;
  54. }
  55. void BatchGetDeviceStateRequest::setIotInstanceId(const std::string& iotInstanceId)
  56. {
  57. iotInstanceId_ = iotInstanceId;
  58. setCoreParameter("IotInstanceId", iotInstanceId);
  59. }
  60. std::vector<std::string> BatchGetDeviceStateRequest::getDeviceName()const
  61. {
  62. return deviceName_;
  63. }
  64. void BatchGetDeviceStateRequest::setDeviceName(const std::vector<std::string>& deviceName)
  65. {
  66. deviceName_ = deviceName;
  67. for(int i = 0; i!= deviceName.size(); i++)
  68. setCoreParameter("DeviceName."+ std::to_string(i), deviceName.at(i));
  69. }