UpdateAlarmRequest.cc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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/cms/model/UpdateAlarmRequest.h>
  17. using AlibabaCloud::Cms::Model::UpdateAlarmRequest;
  18. UpdateAlarmRequest::UpdateAlarmRequest() :
  19. RpcServiceRequest("cms", "2017-03-01", "UpdateAlarm")
  20. {}
  21. UpdateAlarmRequest::~UpdateAlarmRequest()
  22. {}
  23. std::string UpdateAlarmRequest::getCallby_cms_owner()const
  24. {
  25. return callby_cms_owner_;
  26. }
  27. void UpdateAlarmRequest::setCallby_cms_owner(const std::string& callby_cms_owner)
  28. {
  29. callby_cms_owner_ = callby_cms_owner;
  30. setParameter("Callby_cms_owner", callby_cms_owner);
  31. }
  32. int UpdateAlarmRequest::getPeriod()const
  33. {
  34. return period_;
  35. }
  36. void UpdateAlarmRequest::setPeriod(int period)
  37. {
  38. period_ = period;
  39. setParameter("Period", std::to_string(period));
  40. }
  41. std::string UpdateAlarmRequest::getWebhook()const
  42. {
  43. return webhook_;
  44. }
  45. void UpdateAlarmRequest::setWebhook(const std::string& webhook)
  46. {
  47. webhook_ = webhook;
  48. setParameter("Webhook", webhook);
  49. }
  50. std::string UpdateAlarmRequest::getContactGroups()const
  51. {
  52. return contactGroups_;
  53. }
  54. void UpdateAlarmRequest::setContactGroups(const std::string& contactGroups)
  55. {
  56. contactGroups_ = contactGroups;
  57. setParameter("ContactGroups", contactGroups);
  58. }
  59. int UpdateAlarmRequest::getEndTime()const
  60. {
  61. return endTime_;
  62. }
  63. void UpdateAlarmRequest::setEndTime(int endTime)
  64. {
  65. endTime_ = endTime;
  66. setParameter("EndTime", std::to_string(endTime));
  67. }
  68. std::string UpdateAlarmRequest::getThreshold()const
  69. {
  70. return threshold_;
  71. }
  72. void UpdateAlarmRequest::setThreshold(const std::string& threshold)
  73. {
  74. threshold_ = threshold;
  75. setParameter("Threshold", threshold);
  76. }
  77. int UpdateAlarmRequest::getStartTime()const
  78. {
  79. return startTime_;
  80. }
  81. void UpdateAlarmRequest::setStartTime(int startTime)
  82. {
  83. startTime_ = startTime;
  84. setParameter("StartTime", std::to_string(startTime));
  85. }
  86. std::string UpdateAlarmRequest::getName()const
  87. {
  88. return name_;
  89. }
  90. void UpdateAlarmRequest::setName(const std::string& name)
  91. {
  92. name_ = name;
  93. setParameter("Name", name);
  94. }
  95. int UpdateAlarmRequest::getEvaluationCount()const
  96. {
  97. return evaluationCount_;
  98. }
  99. void UpdateAlarmRequest::setEvaluationCount(int evaluationCount)
  100. {
  101. evaluationCount_ = evaluationCount;
  102. setParameter("EvaluationCount", std::to_string(evaluationCount));
  103. }
  104. int UpdateAlarmRequest::getSilenceTime()const
  105. {
  106. return silenceTime_;
  107. }
  108. void UpdateAlarmRequest::setSilenceTime(int silenceTime)
  109. {
  110. silenceTime_ = silenceTime;
  111. setParameter("SilenceTime", std::to_string(silenceTime));
  112. }
  113. std::string UpdateAlarmRequest::getId()const
  114. {
  115. return id_;
  116. }
  117. void UpdateAlarmRequest::setId(const std::string& id)
  118. {
  119. id_ = id;
  120. setParameter("Id", id);
  121. }
  122. int UpdateAlarmRequest::getNotifyType()const
  123. {
  124. return notifyType_;
  125. }
  126. void UpdateAlarmRequest::setNotifyType(int notifyType)
  127. {
  128. notifyType_ = notifyType;
  129. setParameter("NotifyType", std::to_string(notifyType));
  130. }
  131. std::string UpdateAlarmRequest::getComparisonOperator()const
  132. {
  133. return comparisonOperator_;
  134. }
  135. void UpdateAlarmRequest::setComparisonOperator(const std::string& comparisonOperator)
  136. {
  137. comparisonOperator_ = comparisonOperator;
  138. setParameter("ComparisonOperator", comparisonOperator);
  139. }
  140. std::string UpdateAlarmRequest::getStatistics()const
  141. {
  142. return statistics_;
  143. }
  144. void UpdateAlarmRequest::setStatistics(const std::string& statistics)
  145. {
  146. statistics_ = statistics;
  147. setParameter("Statistics", statistics);
  148. }