ModifyFlowForWebRequest.cc 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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/ModifyFlowForWebRequest.h>
  17. using AlibabaCloud::Emr::Model::ModifyFlowForWebRequest;
  18. ModifyFlowForWebRequest::ModifyFlowForWebRequest() :
  19. RpcServiceRequest("emr", "2016-04-08", "ModifyFlowForWeb")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ModifyFlowForWebRequest::~ModifyFlowForWebRequest()
  24. {}
  25. std::string ModifyFlowForWebRequest::getCronExpr()const
  26. {
  27. return cronExpr_;
  28. }
  29. void ModifyFlowForWebRequest::setCronExpr(const std::string& cronExpr)
  30. {
  31. cronExpr_ = cronExpr;
  32. setParameter("CronExpr", cronExpr);
  33. }
  34. bool ModifyFlowForWebRequest::getPeriodic()const
  35. {
  36. return periodic_;
  37. }
  38. void ModifyFlowForWebRequest::setPeriodic(bool periodic)
  39. {
  40. periodic_ = periodic;
  41. setParameter("Periodic", periodic ? "true" : "false");
  42. }
  43. std::string ModifyFlowForWebRequest::getDescription()const
  44. {
  45. return description_;
  46. }
  47. void ModifyFlowForWebRequest::setDescription(const std::string& description)
  48. {
  49. description_ = description;
  50. setParameter("Description", description);
  51. }
  52. std::string ModifyFlowForWebRequest::getAlertUserGroupBizId()const
  53. {
  54. return alertUserGroupBizId_;
  55. }
  56. void ModifyFlowForWebRequest::setAlertUserGroupBizId(const std::string& alertUserGroupBizId)
  57. {
  58. alertUserGroupBizId_ = alertUserGroupBizId;
  59. setParameter("AlertUserGroupBizId", alertUserGroupBizId);
  60. }
  61. std::string ModifyFlowForWebRequest::getLifecycle()const
  62. {
  63. return lifecycle_;
  64. }
  65. void ModifyFlowForWebRequest::setLifecycle(const std::string& lifecycle)
  66. {
  67. lifecycle_ = lifecycle;
  68. setParameter("Lifecycle", lifecycle);
  69. }
  70. std::string ModifyFlowForWebRequest::getHostName()const
  71. {
  72. return hostName_;
  73. }
  74. void ModifyFlowForWebRequest::setHostName(const std::string& hostName)
  75. {
  76. hostName_ = hostName;
  77. setParameter("HostName", hostName);
  78. }
  79. std::string ModifyFlowForWebRequest::getRegionId()const
  80. {
  81. return regionId_;
  82. }
  83. void ModifyFlowForWebRequest::setRegionId(const std::string& regionId)
  84. {
  85. regionId_ = regionId;
  86. setParameter("RegionId", regionId);
  87. }
  88. bool ModifyFlowForWebRequest::getCreateCluster()const
  89. {
  90. return createCluster_;
  91. }
  92. void ModifyFlowForWebRequest::setCreateCluster(bool createCluster)
  93. {
  94. createCluster_ = createCluster;
  95. setParameter("CreateCluster", createCluster ? "true" : "false");
  96. }
  97. long ModifyFlowForWebRequest::getEndSchedule()const
  98. {
  99. return endSchedule_;
  100. }
  101. void ModifyFlowForWebRequest::setEndSchedule(long endSchedule)
  102. {
  103. endSchedule_ = endSchedule;
  104. setParameter("EndSchedule", std::to_string(endSchedule));
  105. }
  106. std::string ModifyFlowForWebRequest::getId()const
  107. {
  108. return id_;
  109. }
  110. void ModifyFlowForWebRequest::setId(const std::string& id)
  111. {
  112. id_ = id;
  113. setParameter("Id", id);
  114. }
  115. std::string ModifyFlowForWebRequest::getAlertConf()const
  116. {
  117. return alertConf_;
  118. }
  119. void ModifyFlowForWebRequest::setAlertConf(const std::string& alertConf)
  120. {
  121. alertConf_ = alertConf;
  122. setParameter("AlertConf", alertConf);
  123. }
  124. std::string ModifyFlowForWebRequest::getProjectId()const
  125. {
  126. return projectId_;
  127. }
  128. void ModifyFlowForWebRequest::setProjectId(const std::string& projectId)
  129. {
  130. projectId_ = projectId;
  131. setParameter("ProjectId", projectId);
  132. }
  133. std::string ModifyFlowForWebRequest::getParentFlowList()const
  134. {
  135. return parentFlowList_;
  136. }
  137. void ModifyFlowForWebRequest::setParentFlowList(const std::string& parentFlowList)
  138. {
  139. parentFlowList_ = parentFlowList;
  140. setParameter("ParentFlowList", parentFlowList);
  141. }
  142. std::string ModifyFlowForWebRequest::getLogArchiveLocation()const
  143. {
  144. return logArchiveLocation_;
  145. }
  146. void ModifyFlowForWebRequest::setLogArchiveLocation(const std::string& logArchiveLocation)
  147. {
  148. logArchiveLocation_ = logArchiveLocation;
  149. setParameter("LogArchiveLocation", logArchiveLocation);
  150. }
  151. std::string ModifyFlowForWebRequest::getAlertDingDingGroupBizId()const
  152. {
  153. return alertDingDingGroupBizId_;
  154. }
  155. void ModifyFlowForWebRequest::setAlertDingDingGroupBizId(const std::string& alertDingDingGroupBizId)
  156. {
  157. alertDingDingGroupBizId_ = alertDingDingGroupBizId;
  158. setParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId);
  159. }
  160. long ModifyFlowForWebRequest::getStartSchedule()const
  161. {
  162. return startSchedule_;
  163. }
  164. void ModifyFlowForWebRequest::setStartSchedule(long startSchedule)
  165. {
  166. startSchedule_ = startSchedule;
  167. setParameter("StartSchedule", std::to_string(startSchedule));
  168. }
  169. std::string ModifyFlowForWebRequest::getClusterId()const
  170. {
  171. return clusterId_;
  172. }
  173. void ModifyFlowForWebRequest::setClusterId(const std::string& clusterId)
  174. {
  175. clusterId_ = clusterId;
  176. setParameter("ClusterId", clusterId);
  177. }
  178. std::string ModifyFlowForWebRequest::getGraph()const
  179. {
  180. return graph_;
  181. }
  182. void ModifyFlowForWebRequest::setGraph(const std::string& graph)
  183. {
  184. graph_ = graph;
  185. setParameter("Graph", graph);
  186. }
  187. std::string ModifyFlowForWebRequest::getName()const
  188. {
  189. return name_;
  190. }
  191. void ModifyFlowForWebRequest::setName(const std::string& name)
  192. {
  193. name_ = name;
  194. setParameter("Name", name);
  195. }
  196. std::string ModifyFlowForWebRequest::get_Namespace()const
  197. {
  198. return _namespace_;
  199. }
  200. void ModifyFlowForWebRequest::set_Namespace(const std::string& _namespace)
  201. {
  202. _namespace_ = _namespace;
  203. setParameter("_Namespace", _namespace);
  204. }
  205. std::string ModifyFlowForWebRequest::getStatus()const
  206. {
  207. return status_;
  208. }
  209. void ModifyFlowForWebRequest::setStatus(const std::string& status)
  210. {
  211. status_ = status;
  212. setParameter("Status", status);
  213. }
  214. std::string ModifyFlowForWebRequest::getParentCategory()const
  215. {
  216. return parentCategory_;
  217. }
  218. void ModifyFlowForWebRequest::setParentCategory(const std::string& parentCategory)
  219. {
  220. parentCategory_ = parentCategory;
  221. setParameter("ParentCategory", parentCategory);
  222. }