ListTaskExecutionsRequest.cc 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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/oos/model/ListTaskExecutionsRequest.h>
  17. using AlibabaCloud::Oos::Model::ListTaskExecutionsRequest;
  18. ListTaskExecutionsRequest::ListTaskExecutionsRequest()
  19. : RpcServiceRequest("oos", "2019-06-01", "ListTaskExecutions") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ListTaskExecutionsRequest::~ListTaskExecutionsRequest() {}
  23. std::string ListTaskExecutionsRequest::getTaskName() const {
  24. return taskName_;
  25. }
  26. void ListTaskExecutionsRequest::setTaskName(const std::string &taskName) {
  27. taskName_ = taskName;
  28. setParameter(std::string("TaskName"), taskName);
  29. }
  30. bool ListTaskExecutionsRequest::getIncludeChildTaskExecution() const {
  31. return includeChildTaskExecution_;
  32. }
  33. void ListTaskExecutionsRequest::setIncludeChildTaskExecution(bool includeChildTaskExecution) {
  34. includeChildTaskExecution_ = includeChildTaskExecution;
  35. setParameter(std::string("IncludeChildTaskExecution"), includeChildTaskExecution ? "true" : "false");
  36. }
  37. std::string ListTaskExecutionsRequest::getExecutionId() const {
  38. return executionId_;
  39. }
  40. void ListTaskExecutionsRequest::setExecutionId(const std::string &executionId) {
  41. executionId_ = executionId;
  42. setParameter(std::string("ExecutionId"), executionId);
  43. }
  44. std::string ListTaskExecutionsRequest::getParentTaskExecutionId() const {
  45. return parentTaskExecutionId_;
  46. }
  47. void ListTaskExecutionsRequest::setParentTaskExecutionId(const std::string &parentTaskExecutionId) {
  48. parentTaskExecutionId_ = parentTaskExecutionId;
  49. setParameter(std::string("ParentTaskExecutionId"), parentTaskExecutionId);
  50. }
  51. std::string ListTaskExecutionsRequest::getRegionId() const {
  52. return regionId_;
  53. }
  54. void ListTaskExecutionsRequest::setRegionId(const std::string &regionId) {
  55. regionId_ = regionId;
  56. setParameter(std::string("RegionId"), regionId);
  57. }
  58. std::string ListTaskExecutionsRequest::getNextToken() const {
  59. return nextToken_;
  60. }
  61. void ListTaskExecutionsRequest::setNextToken(const std::string &nextToken) {
  62. nextToken_ = nextToken;
  63. setParameter(std::string("NextToken"), nextToken);
  64. }
  65. std::string ListTaskExecutionsRequest::getEndDateBefore() const {
  66. return endDateBefore_;
  67. }
  68. void ListTaskExecutionsRequest::setEndDateBefore(const std::string &endDateBefore) {
  69. endDateBefore_ = endDateBefore;
  70. setParameter(std::string("EndDateBefore"), endDateBefore);
  71. }
  72. std::string ListTaskExecutionsRequest::getSortOrder() const {
  73. return sortOrder_;
  74. }
  75. void ListTaskExecutionsRequest::setSortOrder(const std::string &sortOrder) {
  76. sortOrder_ = sortOrder;
  77. setParameter(std::string("SortOrder"), sortOrder);
  78. }
  79. std::string ListTaskExecutionsRequest::getStartDateAfter() const {
  80. return startDateAfter_;
  81. }
  82. void ListTaskExecutionsRequest::setStartDateAfter(const std::string &startDateAfter) {
  83. startDateAfter_ = startDateAfter;
  84. setParameter(std::string("StartDateAfter"), startDateAfter);
  85. }
  86. std::string ListTaskExecutionsRequest::getStartDateBefore() const {
  87. return startDateBefore_;
  88. }
  89. void ListTaskExecutionsRequest::setStartDateBefore(const std::string &startDateBefore) {
  90. startDateBefore_ = startDateBefore;
  91. setParameter(std::string("StartDateBefore"), startDateBefore);
  92. }
  93. std::string ListTaskExecutionsRequest::getEndDateAfter() const {
  94. return endDateAfter_;
  95. }
  96. void ListTaskExecutionsRequest::setEndDateAfter(const std::string &endDateAfter) {
  97. endDateAfter_ = endDateAfter;
  98. setParameter(std::string("EndDateAfter"), endDateAfter);
  99. }
  100. int ListTaskExecutionsRequest::getMaxResults() const {
  101. return maxResults_;
  102. }
  103. void ListTaskExecutionsRequest::setMaxResults(int maxResults) {
  104. maxResults_ = maxResults;
  105. setParameter(std::string("MaxResults"), std::to_string(maxResults));
  106. }
  107. std::string ListTaskExecutionsRequest::getTaskExecutionId() const {
  108. return taskExecutionId_;
  109. }
  110. void ListTaskExecutionsRequest::setTaskExecutionId(const std::string &taskExecutionId) {
  111. taskExecutionId_ = taskExecutionId;
  112. setParameter(std::string("TaskExecutionId"), taskExecutionId);
  113. }
  114. std::string ListTaskExecutionsRequest::getSortField() const {
  115. return sortField_;
  116. }
  117. void ListTaskExecutionsRequest::setSortField(const std::string &sortField) {
  118. sortField_ = sortField;
  119. setParameter(std::string("SortField"), sortField);
  120. }
  121. std::string ListTaskExecutionsRequest::getTaskAction() const {
  122. return taskAction_;
  123. }
  124. void ListTaskExecutionsRequest::setTaskAction(const std::string &taskAction) {
  125. taskAction_ = taskAction;
  126. setParameter(std::string("TaskAction"), taskAction);
  127. }
  128. std::string ListTaskExecutionsRequest::getStatus() const {
  129. return status_;
  130. }
  131. void ListTaskExecutionsRequest::setStatus(const std::string &status) {
  132. status_ = status;
  133. setParameter(std::string("Status"), status);
  134. }