CreateDeviceAlarmRequest.cc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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/vs/model/CreateDeviceAlarmRequest.h>
  17. using AlibabaCloud::Vs::Model::CreateDeviceAlarmRequest;
  18. CreateDeviceAlarmRequest::CreateDeviceAlarmRequest() :
  19. RpcServiceRequest("vs", "2018-12-12", "CreateDeviceAlarm")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. CreateDeviceAlarmRequest::~CreateDeviceAlarmRequest()
  24. {}
  25. long CreateDeviceAlarmRequest::getStartTime()const
  26. {
  27. return startTime_;
  28. }
  29. void CreateDeviceAlarmRequest::setStartTime(long startTime)
  30. {
  31. startTime_ = startTime;
  32. setParameter("StartTime", std::to_string(startTime));
  33. }
  34. int CreateDeviceAlarmRequest::getAlarm()const
  35. {
  36. return alarm_;
  37. }
  38. void CreateDeviceAlarmRequest::setAlarm(int alarm)
  39. {
  40. alarm_ = alarm;
  41. setParameter("Alarm", std::to_string(alarm));
  42. }
  43. std::string CreateDeviceAlarmRequest::getId()const
  44. {
  45. return id_;
  46. }
  47. void CreateDeviceAlarmRequest::setId(const std::string& id)
  48. {
  49. id_ = id;
  50. setParameter("Id", id);
  51. }
  52. int CreateDeviceAlarmRequest::getObjectType()const
  53. {
  54. return objectType_;
  55. }
  56. void CreateDeviceAlarmRequest::setObjectType(int objectType)
  57. {
  58. objectType_ = objectType;
  59. setParameter("ObjectType", std::to_string(objectType));
  60. }
  61. std::string CreateDeviceAlarmRequest::getShowLog()const
  62. {
  63. return showLog_;
  64. }
  65. void CreateDeviceAlarmRequest::setShowLog(const std::string& showLog)
  66. {
  67. showLog_ = showLog;
  68. setParameter("ShowLog", showLog);
  69. }
  70. long CreateDeviceAlarmRequest::getEndTime()const
  71. {
  72. return endTime_;
  73. }
  74. void CreateDeviceAlarmRequest::setEndTime(long endTime)
  75. {
  76. endTime_ = endTime;
  77. setParameter("EndTime", std::to_string(endTime));
  78. }
  79. long CreateDeviceAlarmRequest::getOwnerId()const
  80. {
  81. return ownerId_;
  82. }
  83. void CreateDeviceAlarmRequest::setOwnerId(long ownerId)
  84. {
  85. ownerId_ = ownerId;
  86. setParameter("OwnerId", std::to_string(ownerId));
  87. }
  88. int CreateDeviceAlarmRequest::getSubAlarm()const
  89. {
  90. return subAlarm_;
  91. }
  92. void CreateDeviceAlarmRequest::setSubAlarm(int subAlarm)
  93. {
  94. subAlarm_ = subAlarm;
  95. setParameter("SubAlarm", std::to_string(subAlarm));
  96. }
  97. long CreateDeviceAlarmRequest::getExpire()const
  98. {
  99. return expire_;
  100. }
  101. void CreateDeviceAlarmRequest::setExpire(long expire)
  102. {
  103. expire_ = expire;
  104. setParameter("Expire", std::to_string(expire));
  105. }
  106. int CreateDeviceAlarmRequest::getChannelId()const
  107. {
  108. return channelId_;
  109. }
  110. void CreateDeviceAlarmRequest::setChannelId(int channelId)
  111. {
  112. channelId_ = channelId;
  113. setParameter("ChannelId", std::to_string(channelId));
  114. }