CreateRuleRequest.cc 3.0 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/CreateRuleRequest.h>
  17. using AlibabaCloud::Iot::Model::CreateRuleRequest;
  18. CreateRuleRequest::CreateRuleRequest() :
  19. RpcServiceRequest("iot", "2018-01-20", "CreateRule")
  20. {}
  21. CreateRuleRequest::~CreateRuleRequest()
  22. {}
  23. std::string CreateRuleRequest::getSelect()const
  24. {
  25. return select_;
  26. }
  27. void CreateRuleRequest::setSelect(const std::string& select)
  28. {
  29. select_ = select;
  30. setCoreParameter("Select", select);
  31. }
  32. std::string CreateRuleRequest::getRuleDesc()const
  33. {
  34. return ruleDesc_;
  35. }
  36. void CreateRuleRequest::setRuleDesc(const std::string& ruleDesc)
  37. {
  38. ruleDesc_ = ruleDesc;
  39. setCoreParameter("RuleDesc", ruleDesc);
  40. }
  41. std::string CreateRuleRequest::getProductKey()const
  42. {
  43. return productKey_;
  44. }
  45. void CreateRuleRequest::setProductKey(const std::string& productKey)
  46. {
  47. productKey_ = productKey;
  48. setCoreParameter("ProductKey", productKey);
  49. }
  50. std::string CreateRuleRequest::getAccessKeyId()const
  51. {
  52. return accessKeyId_;
  53. }
  54. void CreateRuleRequest::setAccessKeyId(const std::string& accessKeyId)
  55. {
  56. accessKeyId_ = accessKeyId;
  57. setCoreParameter("AccessKeyId", accessKeyId);
  58. }
  59. std::string CreateRuleRequest::getShortTopic()const
  60. {
  61. return shortTopic_;
  62. }
  63. void CreateRuleRequest::setShortTopic(const std::string& shortTopic)
  64. {
  65. shortTopic_ = shortTopic;
  66. setCoreParameter("ShortTopic", shortTopic);
  67. }
  68. std::string CreateRuleRequest::getDataType()const
  69. {
  70. return dataType_;
  71. }
  72. void CreateRuleRequest::setDataType(const std::string& dataType)
  73. {
  74. dataType_ = dataType;
  75. setCoreParameter("DataType", dataType);
  76. }
  77. std::string CreateRuleRequest::getIotInstanceId()const
  78. {
  79. return iotInstanceId_;
  80. }
  81. void CreateRuleRequest::setIotInstanceId(const std::string& iotInstanceId)
  82. {
  83. iotInstanceId_ = iotInstanceId;
  84. setCoreParameter("IotInstanceId", iotInstanceId);
  85. }
  86. std::string CreateRuleRequest::getName()const
  87. {
  88. return name_;
  89. }
  90. void CreateRuleRequest::setName(const std::string& name)
  91. {
  92. name_ = name;
  93. setCoreParameter("Name", name);
  94. }
  95. std::string CreateRuleRequest::getWhere()const
  96. {
  97. return where_;
  98. }
  99. void CreateRuleRequest::setWhere(const std::string& where)
  100. {
  101. where_ = where;
  102. setCoreParameter("Where", where);
  103. }
  104. int CreateRuleRequest::getTopicType()const
  105. {
  106. return topicType_;
  107. }
  108. void CreateRuleRequest::setTopicType(int topicType)
  109. {
  110. topicType_ = topicType;
  111. setCoreParameter("TopicType", std::to_string(topicType));
  112. }