ListFlowInstanceRequest.cc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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/ListFlowInstanceRequest.h>
  17. using AlibabaCloud::Emr::Model::ListFlowInstanceRequest;
  18. ListFlowInstanceRequest::ListFlowInstanceRequest() :
  19. RpcServiceRequest("emr", "2016-04-08", "ListFlowInstance")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ListFlowInstanceRequest::~ListFlowInstanceRequest()
  24. {}
  25. std::vector<std::string> ListFlowInstanceRequest::getStatusList()const
  26. {
  27. return statusList_;
  28. }
  29. void ListFlowInstanceRequest::setStatusList(const std::vector<std::string>& statusList)
  30. {
  31. statusList_ = statusList;
  32. for(int dep1 = 0; dep1!= statusList.size(); dep1++) {
  33. setParameter("StatusList."+ std::to_string(dep1), statusList.at(dep1));
  34. }
  35. }
  36. std::string ListFlowInstanceRequest::getNodeInstanceId()const
  37. {
  38. return nodeInstanceId_;
  39. }
  40. void ListFlowInstanceRequest::setNodeInstanceId(const std::string& nodeInstanceId)
  41. {
  42. nodeInstanceId_ = nodeInstanceId;
  43. setParameter("NodeInstanceId", nodeInstanceId);
  44. }
  45. int ListFlowInstanceRequest::getPageNumber()const
  46. {
  47. return pageNumber_;
  48. }
  49. void ListFlowInstanceRequest::setPageNumber(int pageNumber)
  50. {
  51. pageNumber_ = pageNumber;
  52. setParameter("PageNumber", std::to_string(pageNumber));
  53. }
  54. std::string ListFlowInstanceRequest::getRegionId()const
  55. {
  56. return regionId_;
  57. }
  58. void ListFlowInstanceRequest::setRegionId(const std::string& regionId)
  59. {
  60. regionId_ = regionId;
  61. setParameter("RegionId", regionId);
  62. }
  63. int ListFlowInstanceRequest::getPageSize()const
  64. {
  65. return pageSize_;
  66. }
  67. void ListFlowInstanceRequest::setPageSize(int pageSize)
  68. {
  69. pageSize_ = pageSize;
  70. setParameter("PageSize", std::to_string(pageSize));
  71. }
  72. std::string ListFlowInstanceRequest::getId()const
  73. {
  74. return id_;
  75. }
  76. void ListFlowInstanceRequest::setId(const std::string& id)
  77. {
  78. id_ = id;
  79. setParameter("Id", id);
  80. }
  81. std::string ListFlowInstanceRequest::getProjectId()const
  82. {
  83. return projectId_;
  84. }
  85. void ListFlowInstanceRequest::setProjectId(const std::string& projectId)
  86. {
  87. projectId_ = projectId;
  88. setParameter("ProjectId", projectId);
  89. }
  90. std::string ListFlowInstanceRequest::getOwner()const
  91. {
  92. return owner_;
  93. }
  94. void ListFlowInstanceRequest::setOwner(const std::string& owner)
  95. {
  96. owner_ = owner;
  97. setParameter("Owner", owner);
  98. }
  99. std::string ListFlowInstanceRequest::getTimeRange()const
  100. {
  101. return timeRange_;
  102. }
  103. void ListFlowInstanceRequest::setTimeRange(const std::string& timeRange)
  104. {
  105. timeRange_ = timeRange;
  106. setParameter("TimeRange", timeRange);
  107. }
  108. std::string ListFlowInstanceRequest::getOrderBy()const
  109. {
  110. return orderBy_;
  111. }
  112. void ListFlowInstanceRequest::setOrderBy(const std::string& orderBy)
  113. {
  114. orderBy_ = orderBy;
  115. setParameter("OrderBy", orderBy);
  116. }
  117. std::string ListFlowInstanceRequest::getInstanceId()const
  118. {
  119. return instanceId_;
  120. }
  121. void ListFlowInstanceRequest::setInstanceId(const std::string& instanceId)
  122. {
  123. instanceId_ = instanceId;
  124. setParameter("InstanceId", instanceId);
  125. }
  126. std::string ListFlowInstanceRequest::getFlowName()const
  127. {
  128. return flowName_;
  129. }
  130. void ListFlowInstanceRequest::setFlowName(const std::string& flowName)
  131. {
  132. flowName_ = flowName;
  133. setParameter("FlowName", flowName);
  134. }
  135. std::string ListFlowInstanceRequest::getFlowId()const
  136. {
  137. return flowId_;
  138. }
  139. void ListFlowInstanceRequest::setFlowId(const std::string& flowId)
  140. {
  141. flowId_ = flowId;
  142. setParameter("FlowId", flowId);
  143. }
  144. std::string ListFlowInstanceRequest::getOrderType()const
  145. {
  146. return orderType_;
  147. }
  148. void ListFlowInstanceRequest::setOrderType(const std::string& orderType)
  149. {
  150. orderType_ = orderType;
  151. setParameter("OrderType", orderType);
  152. }