DescribeActiveOperationTasksRequest.cc 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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/DescribeActiveOperationTasksRequest.h>
  17. using AlibabaCloud::R_kvstore::Model::DescribeActiveOperationTasksRequest;
  18. DescribeActiveOperationTasksRequest::DescribeActiveOperationTasksRequest()
  19. : RpcServiceRequest("r-kvstore", "2015-01-01", "DescribeActiveOperationTasks") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. DescribeActiveOperationTasksRequest::~DescribeActiveOperationTasksRequest() {}
  23. long DescribeActiveOperationTasksRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void DescribeActiveOperationTasksRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. std::string DescribeActiveOperationTasksRequest::getProductId() const {
  31. return productId_;
  32. }
  33. void DescribeActiveOperationTasksRequest::setProductId(const std::string &productId) {
  34. productId_ = productId;
  35. setParameter(std::string("ProductId"), productId);
  36. }
  37. std::string DescribeActiveOperationTasksRequest::getChangeLevel() const {
  38. return changeLevel_;
  39. }
  40. void DescribeActiveOperationTasksRequest::setChangeLevel(const std::string &changeLevel) {
  41. changeLevel_ = changeLevel;
  42. setParameter(std::string("ChangeLevel"), changeLevel);
  43. }
  44. int DescribeActiveOperationTasksRequest::getPageNumber() const {
  45. return pageNumber_;
  46. }
  47. void DescribeActiveOperationTasksRequest::setPageNumber(int pageNumber) {
  48. pageNumber_ = pageNumber;
  49. setParameter(std::string("PageNumber"), std::to_string(pageNumber));
  50. }
  51. std::string DescribeActiveOperationTasksRequest::getAccessKeyId() const {
  52. return accessKeyId_;
  53. }
  54. void DescribeActiveOperationTasksRequest::setAccessKeyId(const std::string &accessKeyId) {
  55. accessKeyId_ = accessKeyId;
  56. setParameter(std::string("AccessKeyId"), accessKeyId);
  57. }
  58. std::string DescribeActiveOperationTasksRequest::getInsName() const {
  59. return insName_;
  60. }
  61. void DescribeActiveOperationTasksRequest::setInsName(const std::string &insName) {
  62. insName_ = insName;
  63. setParameter(std::string("InsName"), insName);
  64. }
  65. std::string DescribeActiveOperationTasksRequest::getSecurityToken() const {
  66. return securityToken_;
  67. }
  68. void DescribeActiveOperationTasksRequest::setSecurityToken(const std::string &securityToken) {
  69. securityToken_ = securityToken;
  70. setParameter(std::string("SecurityToken"), securityToken);
  71. }
  72. std::string DescribeActiveOperationTasksRequest::getRegionId() const {
  73. return regionId_;
  74. }
  75. void DescribeActiveOperationTasksRequest::setRegionId(const std::string &regionId) {
  76. regionId_ = regionId;
  77. setParameter(std::string("RegionId"), regionId);
  78. }
  79. int DescribeActiveOperationTasksRequest::getPageSize() const {
  80. return pageSize_;
  81. }
  82. void DescribeActiveOperationTasksRequest::setPageSize(int pageSize) {
  83. pageSize_ = pageSize;
  84. setParameter(std::string("PageSize"), std::to_string(pageSize));
  85. }
  86. std::string DescribeActiveOperationTasksRequest::getTaskType() const {
  87. return taskType_;
  88. }
  89. void DescribeActiveOperationTasksRequest::setTaskType(const std::string &taskType) {
  90. taskType_ = taskType;
  91. setParameter(std::string("TaskType"), taskType);
  92. }
  93. std::string DescribeActiveOperationTasksRequest::getResourceOwnerAccount() const {
  94. return resourceOwnerAccount_;
  95. }
  96. void DescribeActiveOperationTasksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  97. resourceOwnerAccount_ = resourceOwnerAccount;
  98. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  99. }
  100. std::string DescribeActiveOperationTasksRequest::getOwnerAccount() const {
  101. return ownerAccount_;
  102. }
  103. void DescribeActiveOperationTasksRequest::setOwnerAccount(const std::string &ownerAccount) {
  104. ownerAccount_ = ownerAccount;
  105. setParameter(std::string("OwnerAccount"), ownerAccount);
  106. }
  107. int DescribeActiveOperationTasksRequest::getAllowCancel() const {
  108. return allowCancel_;
  109. }
  110. void DescribeActiveOperationTasksRequest::setAllowCancel(int allowCancel) {
  111. allowCancel_ = allowCancel;
  112. setParameter(std::string("AllowCancel"), std::to_string(allowCancel));
  113. }
  114. long DescribeActiveOperationTasksRequest::getOwnerId() const {
  115. return ownerId_;
  116. }
  117. void DescribeActiveOperationTasksRequest::setOwnerId(long ownerId) {
  118. ownerId_ = ownerId;
  119. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  120. }
  121. std::string DescribeActiveOperationTasksRequest::getDbType() const {
  122. return dbType_;
  123. }
  124. void DescribeActiveOperationTasksRequest::setDbType(const std::string &dbType) {
  125. dbType_ = dbType;
  126. setParameter(std::string("DbType"), dbType);
  127. }
  128. int DescribeActiveOperationTasksRequest::getAllowChange() const {
  129. return allowChange_;
  130. }
  131. void DescribeActiveOperationTasksRequest::setAllowChange(int allowChange) {
  132. allowChange_ = allowChange;
  133. setParameter(std::string("AllowChange"), std::to_string(allowChange));
  134. }
  135. std::string DescribeActiveOperationTasksRequest::getRegion() const {
  136. return region_;
  137. }
  138. void DescribeActiveOperationTasksRequest::setRegion(const std::string &region) {
  139. region_ = region;
  140. setParameter(std::string("Region"), region);
  141. }
  142. int DescribeActiveOperationTasksRequest::getStatus() const {
  143. return status_;
  144. }
  145. void DescribeActiveOperationTasksRequest::setStatus(int status) {
  146. status_ = status;
  147. setParameter(std::string("Status"), std::to_string(status));
  148. }