DescribeSlowLogRecordsRequest.cc 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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/r-kvstore/model/DescribeSlowLogRecordsRequest.h>
  17. using AlibabaCloud::R_kvstore::Model::DescribeSlowLogRecordsRequest;
  18. DescribeSlowLogRecordsRequest::DescribeSlowLogRecordsRequest() :
  19. RpcServiceRequest("r-kvstore", "2015-01-01", "DescribeSlowLogRecords")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. DescribeSlowLogRecordsRequest::~DescribeSlowLogRecordsRequest()
  24. {}
  25. long DescribeSlowLogRecordsRequest::getResourceOwnerId()const
  26. {
  27. return resourceOwnerId_;
  28. }
  29. void DescribeSlowLogRecordsRequest::setResourceOwnerId(long resourceOwnerId)
  30. {
  31. resourceOwnerId_ = resourceOwnerId;
  32. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  33. }
  34. std::string DescribeSlowLogRecordsRequest::getStartTime()const
  35. {
  36. return startTime_;
  37. }
  38. void DescribeSlowLogRecordsRequest::setStartTime(const std::string& startTime)
  39. {
  40. startTime_ = startTime;
  41. setParameter("StartTime", startTime);
  42. }
  43. int DescribeSlowLogRecordsRequest::getPageNumber()const
  44. {
  45. return pageNumber_;
  46. }
  47. void DescribeSlowLogRecordsRequest::setPageNumber(int pageNumber)
  48. {
  49. pageNumber_ = pageNumber;
  50. setParameter("PageNumber", std::to_string(pageNumber));
  51. }
  52. std::string DescribeSlowLogRecordsRequest::getAccessKeyId()const
  53. {
  54. return accessKeyId_;
  55. }
  56. void DescribeSlowLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
  57. {
  58. accessKeyId_ = accessKeyId;
  59. setParameter("AccessKeyId", accessKeyId);
  60. }
  61. std::string DescribeSlowLogRecordsRequest::getSecurityToken()const
  62. {
  63. return securityToken_;
  64. }
  65. void DescribeSlowLogRecordsRequest::setSecurityToken(const std::string& securityToken)
  66. {
  67. securityToken_ = securityToken;
  68. setParameter("SecurityToken", securityToken);
  69. }
  70. int DescribeSlowLogRecordsRequest::getPageSize()const
  71. {
  72. return pageSize_;
  73. }
  74. void DescribeSlowLogRecordsRequest::setPageSize(int pageSize)
  75. {
  76. pageSize_ = pageSize;
  77. setParameter("PageSize", std::to_string(pageSize));
  78. }
  79. std::string DescribeSlowLogRecordsRequest::getNodeId()const
  80. {
  81. return nodeId_;
  82. }
  83. void DescribeSlowLogRecordsRequest::setNodeId(const std::string& nodeId)
  84. {
  85. nodeId_ = nodeId;
  86. setParameter("NodeId", nodeId);
  87. }
  88. long DescribeSlowLogRecordsRequest::getSQLId()const
  89. {
  90. return sQLId_;
  91. }
  92. void DescribeSlowLogRecordsRequest::setSQLId(long sQLId)
  93. {
  94. sQLId_ = sQLId;
  95. setParameter("SQLId", std::to_string(sQLId));
  96. }
  97. std::string DescribeSlowLogRecordsRequest::getResourceOwnerAccount()const
  98. {
  99. return resourceOwnerAccount_;
  100. }
  101. void DescribeSlowLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  102. {
  103. resourceOwnerAccount_ = resourceOwnerAccount;
  104. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  105. }
  106. std::string DescribeSlowLogRecordsRequest::getOwnerAccount()const
  107. {
  108. return ownerAccount_;
  109. }
  110. void DescribeSlowLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount)
  111. {
  112. ownerAccount_ = ownerAccount;
  113. setParameter("OwnerAccount", ownerAccount);
  114. }
  115. std::string DescribeSlowLogRecordsRequest::getQueryKeyword()const
  116. {
  117. return queryKeyword_;
  118. }
  119. void DescribeSlowLogRecordsRequest::setQueryKeyword(const std::string& queryKeyword)
  120. {
  121. queryKeyword_ = queryKeyword;
  122. setParameter("QueryKeyword", queryKeyword);
  123. }
  124. std::string DescribeSlowLogRecordsRequest::getEndTime()const
  125. {
  126. return endTime_;
  127. }
  128. void DescribeSlowLogRecordsRequest::setEndTime(const std::string& endTime)
  129. {
  130. endTime_ = endTime;
  131. setParameter("EndTime", endTime);
  132. }
  133. std::string DescribeSlowLogRecordsRequest::getOrderBy()const
  134. {
  135. return orderBy_;
  136. }
  137. void DescribeSlowLogRecordsRequest::setOrderBy(const std::string& orderBy)
  138. {
  139. orderBy_ = orderBy;
  140. setParameter("OrderBy", orderBy);
  141. }
  142. long DescribeSlowLogRecordsRequest::getOwnerId()const
  143. {
  144. return ownerId_;
  145. }
  146. void DescribeSlowLogRecordsRequest::setOwnerId(long ownerId)
  147. {
  148. ownerId_ = ownerId;
  149. setParameter("OwnerId", std::to_string(ownerId));
  150. }
  151. std::string DescribeSlowLogRecordsRequest::getSlowLogRecordType()const
  152. {
  153. return slowLogRecordType_;
  154. }
  155. void DescribeSlowLogRecordsRequest::setSlowLogRecordType(const std::string& slowLogRecordType)
  156. {
  157. slowLogRecordType_ = slowLogRecordType;
  158. setParameter("SlowLogRecordType", slowLogRecordType);
  159. }
  160. std::string DescribeSlowLogRecordsRequest::getInstanceId()const
  161. {
  162. return instanceId_;
  163. }
  164. void DescribeSlowLogRecordsRequest::setInstanceId(const std::string& instanceId)
  165. {
  166. instanceId_ = instanceId;
  167. setParameter("InstanceId", instanceId);
  168. }
  169. std::string DescribeSlowLogRecordsRequest::getDBName()const
  170. {
  171. return dBName_;
  172. }
  173. void DescribeSlowLogRecordsRequest::setDBName(const std::string& dBName)
  174. {
  175. dBName_ = dBName;
  176. setParameter("DBName", dBName);
  177. }
  178. std::string DescribeSlowLogRecordsRequest::getOrderType()const
  179. {
  180. return orderType_;
  181. }
  182. void DescribeSlowLogRecordsRequest::setOrderType(const std::string& orderType)
  183. {
  184. orderType_ = orderType;
  185. setParameter("OrderType", orderType);
  186. }