QueryThingModelRequest.cc 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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/QueryThingModelRequest.h>
  17. using AlibabaCloud::Iot::Model::QueryThingModelRequest;
  18. QueryThingModelRequest::QueryThingModelRequest() :
  19. RpcServiceRequest("iot", "2018-01-20", "QueryThingModel")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. QueryThingModelRequest::~QueryThingModelRequest()
  24. {}
  25. std::string QueryThingModelRequest::getRealTenantId()const
  26. {
  27. return realTenantId_;
  28. }
  29. void QueryThingModelRequest::setRealTenantId(const std::string& realTenantId)
  30. {
  31. realTenantId_ = realTenantId;
  32. setParameter("RealTenantId", realTenantId);
  33. }
  34. std::string QueryThingModelRequest::getAccessKeyId()const
  35. {
  36. return accessKeyId_;
  37. }
  38. void QueryThingModelRequest::setAccessKeyId(const std::string& accessKeyId)
  39. {
  40. accessKeyId_ = accessKeyId;
  41. setParameter("AccessKeyId", accessKeyId);
  42. }
  43. std::string QueryThingModelRequest::getRealTripartiteKey()const
  44. {
  45. return realTripartiteKey_;
  46. }
  47. void QueryThingModelRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
  48. {
  49. realTripartiteKey_ = realTripartiteKey;
  50. setParameter("RealTripartiteKey", realTripartiteKey);
  51. }
  52. std::string QueryThingModelRequest::getResourceGroupId()const
  53. {
  54. return resourceGroupId_;
  55. }
  56. void QueryThingModelRequest::setResourceGroupId(const std::string& resourceGroupId)
  57. {
  58. resourceGroupId_ = resourceGroupId;
  59. setParameter("ResourceGroupId", resourceGroupId);
  60. }
  61. std::string QueryThingModelRequest::getDTModelId()const
  62. {
  63. return dTModelId_;
  64. }
  65. void QueryThingModelRequest::setDTModelId(const std::string& dTModelId)
  66. {
  67. dTModelId_ = dTModelId;
  68. setParameter("DTModelId", dTModelId);
  69. }
  70. std::string QueryThingModelRequest::getIotInstanceId()const
  71. {
  72. return iotInstanceId_;
  73. }
  74. void QueryThingModelRequest::setIotInstanceId(const std::string& iotInstanceId)
  75. {
  76. iotInstanceId_ = iotInstanceId;
  77. setParameter("IotInstanceId", iotInstanceId);
  78. }
  79. std::string QueryThingModelRequest::getProductKey()const
  80. {
  81. return productKey_;
  82. }
  83. void QueryThingModelRequest::setProductKey(const std::string& productKey)
  84. {
  85. productKey_ = productKey;
  86. setParameter("ProductKey", productKey);
  87. }
  88. std::string QueryThingModelRequest::getApiProduct()const
  89. {
  90. return apiProduct_;
  91. }
  92. void QueryThingModelRequest::setApiProduct(const std::string& apiProduct)
  93. {
  94. apiProduct_ = apiProduct;
  95. setBodyParameter("ApiProduct", apiProduct);
  96. }
  97. std::string QueryThingModelRequest::getApiRevision()const
  98. {
  99. return apiRevision_;
  100. }
  101. void QueryThingModelRequest::setApiRevision(const std::string& apiRevision)
  102. {
  103. apiRevision_ = apiRevision;
  104. setBodyParameter("ApiRevision", apiRevision);
  105. }
  106. std::string QueryThingModelRequest::getModelVersion()const
  107. {
  108. return modelVersion_;
  109. }
  110. void QueryThingModelRequest::setModelVersion(const std::string& modelVersion)
  111. {
  112. modelVersion_ = modelVersion;
  113. setParameter("ModelVersion", modelVersion);
  114. }
  115. std::string QueryThingModelRequest::getFunctionBlockId()const
  116. {
  117. return functionBlockId_;
  118. }
  119. void QueryThingModelRequest::setFunctionBlockId(const std::string& functionBlockId)
  120. {
  121. functionBlockId_ = functionBlockId;
  122. setParameter("FunctionBlockId", functionBlockId);
  123. }