DescribeMonitorGroupsRequest.cc 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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/DescribeMonitorGroupsRequest.h>
  17. using AlibabaCloud::Cms::Model::DescribeMonitorGroupsRequest;
  18. DescribeMonitorGroupsRequest::DescribeMonitorGroupsRequest() :
  19. RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroups")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. DescribeMonitorGroupsRequest::~DescribeMonitorGroupsRequest()
  24. {}
  25. bool DescribeMonitorGroupsRequest::getSelectContactGroups()const
  26. {
  27. return selectContactGroups_;
  28. }
  29. void DescribeMonitorGroupsRequest::setSelectContactGroups(bool selectContactGroups)
  30. {
  31. selectContactGroups_ = selectContactGroups;
  32. setParameter("SelectContactGroups", selectContactGroups ? "true" : "false");
  33. }
  34. bool DescribeMonitorGroupsRequest::getIncludeTemplateHistory()const
  35. {
  36. return includeTemplateHistory_;
  37. }
  38. void DescribeMonitorGroupsRequest::setIncludeTemplateHistory(bool includeTemplateHistory)
  39. {
  40. includeTemplateHistory_ = includeTemplateHistory;
  41. setParameter("IncludeTemplateHistory", includeTemplateHistory ? "true" : "false");
  42. }
  43. std::string DescribeMonitorGroupsRequest::getDynamicTagRuleId()const
  44. {
  45. return dynamicTagRuleId_;
  46. }
  47. void DescribeMonitorGroupsRequest::setDynamicTagRuleId(const std::string& dynamicTagRuleId)
  48. {
  49. dynamicTagRuleId_ = dynamicTagRuleId;
  50. setParameter("DynamicTagRuleId", dynamicTagRuleId);
  51. }
  52. std::string DescribeMonitorGroupsRequest::getType()const
  53. {
  54. return type_;
  55. }
  56. void DescribeMonitorGroupsRequest::setType(const std::string& type)
  57. {
  58. type_ = type;
  59. setParameter("Type", type);
  60. }
  61. int DescribeMonitorGroupsRequest::getPageNumber()const
  62. {
  63. return pageNumber_;
  64. }
  65. void DescribeMonitorGroupsRequest::setPageNumber(int pageNumber)
  66. {
  67. pageNumber_ = pageNumber;
  68. setParameter("PageNumber", std::to_string(pageNumber));
  69. }
  70. std::string DescribeMonitorGroupsRequest::getResourceGroupId()const
  71. {
  72. return resourceGroupId_;
  73. }
  74. void DescribeMonitorGroupsRequest::setResourceGroupId(const std::string& resourceGroupId)
  75. {
  76. resourceGroupId_ = resourceGroupId;
  77. setParameter("ResourceGroupId", resourceGroupId);
  78. }
  79. std::string DescribeMonitorGroupsRequest::getGroupFounderTagKey()const
  80. {
  81. return groupFounderTagKey_;
  82. }
  83. void DescribeMonitorGroupsRequest::setGroupFounderTagKey(const std::string& groupFounderTagKey)
  84. {
  85. groupFounderTagKey_ = groupFounderTagKey;
  86. setParameter("GroupFounderTagKey", groupFounderTagKey);
  87. }
  88. int DescribeMonitorGroupsRequest::getPageSize()const
  89. {
  90. return pageSize_;
  91. }
  92. void DescribeMonitorGroupsRequest::setPageSize(int pageSize)
  93. {
  94. pageSize_ = pageSize;
  95. setParameter("PageSize", std::to_string(pageSize));
  96. }
  97. std::vector<DescribeMonitorGroupsRequest::Tag> DescribeMonitorGroupsRequest::getTag()const
  98. {
  99. return tag_;
  100. }
  101. void DescribeMonitorGroupsRequest::setTag(const std::vector<Tag>& tag)
  102. {
  103. tag_ = tag;
  104. for(int dep1 = 0; dep1!= tag.size(); dep1++) {
  105. auto tagObj = tag.at(dep1);
  106. std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
  107. setParameter(tagObjStr + ".Value", tagObj.value);
  108. setParameter(tagObjStr + ".Key", tagObj.key);
  109. }
  110. }
  111. std::string DescribeMonitorGroupsRequest::getGroupFounderTagValue()const
  112. {
  113. return groupFounderTagValue_;
  114. }
  115. void DescribeMonitorGroupsRequest::setGroupFounderTagValue(const std::string& groupFounderTagValue)
  116. {
  117. groupFounderTagValue_ = groupFounderTagValue;
  118. setParameter("GroupFounderTagValue", groupFounderTagValue);
  119. }
  120. std::string DescribeMonitorGroupsRequest::getKeyword()const
  121. {
  122. return keyword_;
  123. }
  124. void DescribeMonitorGroupsRequest::setKeyword(const std::string& keyword)
  125. {
  126. keyword_ = keyword;
  127. setParameter("Keyword", keyword);
  128. }
  129. std::string DescribeMonitorGroupsRequest::getGroupId()const
  130. {
  131. return groupId_;
  132. }
  133. void DescribeMonitorGroupsRequest::setGroupId(const std::string& groupId)
  134. {
  135. groupId_ = groupId;
  136. setParameter("GroupId", groupId);
  137. }
  138. std::string DescribeMonitorGroupsRequest::getGroupName()const
  139. {
  140. return groupName_;
  141. }
  142. void DescribeMonitorGroupsRequest::setGroupName(const std::string& groupName)
  143. {
  144. groupName_ = groupName;
  145. setParameter("GroupName", groupName);
  146. }
  147. std::string DescribeMonitorGroupsRequest::getInstanceId()const
  148. {
  149. return instanceId_;
  150. }
  151. void DescribeMonitorGroupsRequest::setInstanceId(const std::string& instanceId)
  152. {
  153. instanceId_ = instanceId;
  154. setParameter("InstanceId", instanceId);
  155. }
  156. std::string DescribeMonitorGroupsRequest::getServiceId()const
  157. {
  158. return serviceId_;
  159. }
  160. void DescribeMonitorGroupsRequest::setServiceId(const std::string& serviceId)
  161. {
  162. serviceId_ = serviceId;
  163. setParameter("ServiceId", serviceId);
  164. }