ListBackupsRequest.cc 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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/emr/model/ListBackupsRequest.h>
  17. using AlibabaCloud::Emr::Model::ListBackupsRequest;
  18. ListBackupsRequest::ListBackupsRequest() :
  19. RpcServiceRequest("emr", "2016-04-08", "ListBackups")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ListBackupsRequest::~ListBackupsRequest()
  24. {}
  25. long ListBackupsRequest::getResourceOwnerId()const
  26. {
  27. return resourceOwnerId_;
  28. }
  29. void ListBackupsRequest::setResourceOwnerId(long resourceOwnerId)
  30. {
  31. resourceOwnerId_ = resourceOwnerId;
  32. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  33. }
  34. int ListBackupsRequest::getPageCount()const
  35. {
  36. return pageCount_;
  37. }
  38. void ListBackupsRequest::setPageCount(int pageCount)
  39. {
  40. pageCount_ = pageCount;
  41. setParameter("PageCount", std::to_string(pageCount));
  42. }
  43. std::string ListBackupsRequest::getOrderMode()const
  44. {
  45. return orderMode_;
  46. }
  47. void ListBackupsRequest::setOrderMode(const std::string& orderMode)
  48. {
  49. orderMode_ = orderMode;
  50. setParameter("OrderMode", orderMode);
  51. }
  52. std::string ListBackupsRequest::getBackupPlanId()const
  53. {
  54. return backupPlanId_;
  55. }
  56. void ListBackupsRequest::setBackupPlanId(const std::string& backupPlanId)
  57. {
  58. backupPlanId_ = backupPlanId;
  59. setParameter("BackupPlanId", backupPlanId);
  60. }
  61. int ListBackupsRequest::getPageNumber()const
  62. {
  63. return pageNumber_;
  64. }
  65. void ListBackupsRequest::setPageNumber(int pageNumber)
  66. {
  67. pageNumber_ = pageNumber;
  68. setParameter("PageNumber", std::to_string(pageNumber));
  69. }
  70. std::string ListBackupsRequest::getAccessKeyId()const
  71. {
  72. return accessKeyId_;
  73. }
  74. void ListBackupsRequest::setAccessKeyId(const std::string& accessKeyId)
  75. {
  76. accessKeyId_ = accessKeyId;
  77. setParameter("AccessKeyId", accessKeyId);
  78. }
  79. std::string ListBackupsRequest::getRegionId()const
  80. {
  81. return regionId_;
  82. }
  83. void ListBackupsRequest::setRegionId(const std::string& regionId)
  84. {
  85. regionId_ = regionId;
  86. setParameter("RegionId", regionId);
  87. }
  88. int ListBackupsRequest::getLimit()const
  89. {
  90. return limit_;
  91. }
  92. void ListBackupsRequest::setLimit(int limit)
  93. {
  94. limit_ = limit;
  95. setParameter("Limit", std::to_string(limit));
  96. }
  97. int ListBackupsRequest::getPageSize()const
  98. {
  99. return pageSize_;
  100. }
  101. void ListBackupsRequest::setPageSize(int pageSize)
  102. {
  103. pageSize_ = pageSize;
  104. setParameter("PageSize", std::to_string(pageSize));
  105. }
  106. std::string ListBackupsRequest::getServiceName()const
  107. {
  108. return serviceName_;
  109. }
  110. void ListBackupsRequest::setServiceName(const std::string& serviceName)
  111. {
  112. serviceName_ = serviceName;
  113. setParameter("ServiceName", serviceName);
  114. }
  115. long ListBackupsRequest::getId()const
  116. {
  117. return id_;
  118. }
  119. void ListBackupsRequest::setId(long id)
  120. {
  121. id_ = id;
  122. setParameter("Id", std::to_string(id));
  123. }
  124. int ListBackupsRequest::getCurrentSize()const
  125. {
  126. return currentSize_;
  127. }
  128. void ListBackupsRequest::setCurrentSize(int currentSize)
  129. {
  130. currentSize_ = currentSize;
  131. setParameter("CurrentSize", std::to_string(currentSize));
  132. }
  133. std::vector<std::string> ListBackupsRequest::getBackupId()const
  134. {
  135. return backupId_;
  136. }
  137. void ListBackupsRequest::setBackupId(const std::vector<std::string>& backupId)
  138. {
  139. backupId_ = backupId;
  140. for(int dep1 = 0; dep1!= backupId.size(); dep1++) {
  141. setParameter("BackupId."+ std::to_string(dep1), backupId.at(dep1));
  142. }
  143. }
  144. std::string ListBackupsRequest::getClusterId()const
  145. {
  146. return clusterId_;
  147. }
  148. void ListBackupsRequest::setClusterId(const std::string& clusterId)
  149. {
  150. clusterId_ = clusterId;
  151. setParameter("ClusterId", clusterId);
  152. }
  153. std::string ListBackupsRequest::getMetadataType()const
  154. {
  155. return metadataType_;
  156. }
  157. void ListBackupsRequest::setMetadataType(const std::string& metadataType)
  158. {
  159. metadataType_ = metadataType;
  160. setParameter("MetadataType", metadataType);
  161. }
  162. std::string ListBackupsRequest::getBizId()const
  163. {
  164. return bizId_;
  165. }
  166. void ListBackupsRequest::setBizId(const std::string& bizId)
  167. {
  168. bizId_ = bizId;
  169. setParameter("BizId", bizId);
  170. }
  171. std::string ListBackupsRequest::getStatus()const
  172. {
  173. return status_;
  174. }
  175. void ListBackupsRequest::setStatus(const std::string& status)
  176. {
  177. status_ = status;
  178. setParameter("Status", status);
  179. }