AddMonitorRequest.cc 3.4 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/vcs/model/AddMonitorRequest.h>
  17. using AlibabaCloud::Vcs::Model::AddMonitorRequest;
  18. AddMonitorRequest::AddMonitorRequest() :
  19. RpcServiceRequest("vcs", "2020-05-15", "AddMonitor")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. AddMonitorRequest::~AddMonitorRequest()
  24. {}
  25. std::string AddMonitorRequest::getMonitorType()const
  26. {
  27. return monitorType_;
  28. }
  29. void AddMonitorRequest::setMonitorType(const std::string& monitorType)
  30. {
  31. monitorType_ = monitorType;
  32. setBodyParameter("MonitorType", monitorType);
  33. }
  34. std::string AddMonitorRequest::getCorpId()const
  35. {
  36. return corpId_;
  37. }
  38. void AddMonitorRequest::setCorpId(const std::string& corpId)
  39. {
  40. corpId_ = corpId;
  41. setBodyParameter("CorpId", corpId);
  42. }
  43. std::string AddMonitorRequest::getDescription()const
  44. {
  45. return description_;
  46. }
  47. void AddMonitorRequest::setDescription(const std::string& description)
  48. {
  49. description_ = description;
  50. setBodyParameter("Description", description);
  51. }
  52. std::string AddMonitorRequest::getNotifierAppSecret()const
  53. {
  54. return notifierAppSecret_;
  55. }
  56. void AddMonitorRequest::setNotifierAppSecret(const std::string& notifierAppSecret)
  57. {
  58. notifierAppSecret_ = notifierAppSecret;
  59. setBodyParameter("NotifierAppSecret", notifierAppSecret);
  60. }
  61. std::string AddMonitorRequest::getNotifierExtendValues()const
  62. {
  63. return notifierExtendValues_;
  64. }
  65. void AddMonitorRequest::setNotifierExtendValues(const std::string& notifierExtendValues)
  66. {
  67. notifierExtendValues_ = notifierExtendValues;
  68. setBodyParameter("NotifierExtendValues", notifierExtendValues);
  69. }
  70. std::string AddMonitorRequest::getNotifierUrl()const
  71. {
  72. return notifierUrl_;
  73. }
  74. void AddMonitorRequest::setNotifierUrl(const std::string& notifierUrl)
  75. {
  76. notifierUrl_ = notifierUrl;
  77. setBodyParameter("NotifierUrl", notifierUrl);
  78. }
  79. std::string AddMonitorRequest::getNotifierType()const
  80. {
  81. return notifierType_;
  82. }
  83. void AddMonitorRequest::setNotifierType(const std::string& notifierType)
  84. {
  85. notifierType_ = notifierType;
  86. setBodyParameter("NotifierType", notifierType);
  87. }
  88. int AddMonitorRequest::getBatchIndicator()const
  89. {
  90. return batchIndicator_;
  91. }
  92. void AddMonitorRequest::setBatchIndicator(int batchIndicator)
  93. {
  94. batchIndicator_ = batchIndicator;
  95. setBodyParameter("BatchIndicator", std::to_string(batchIndicator));
  96. }
  97. int AddMonitorRequest::getNotifierTimeOut()const
  98. {
  99. return notifierTimeOut_;
  100. }
  101. void AddMonitorRequest::setNotifierTimeOut(int notifierTimeOut)
  102. {
  103. notifierTimeOut_ = notifierTimeOut;
  104. setBodyParameter("NotifierTimeOut", std::to_string(notifierTimeOut));
  105. }
  106. std::string AddMonitorRequest::getAlgorithmVendor()const
  107. {
  108. return algorithmVendor_;
  109. }
  110. void AddMonitorRequest::setAlgorithmVendor(const std::string& algorithmVendor)
  111. {
  112. algorithmVendor_ = algorithmVendor;
  113. setBodyParameter("AlgorithmVendor", algorithmVendor);
  114. }