CreateFileRequest.cc 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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/dataworks-public/model/CreateFileRequest.h>
  17. using AlibabaCloud::Dataworks_public::Model::CreateFileRequest;
  18. CreateFileRequest::CreateFileRequest() :
  19. RpcServiceRequest("dataworks-public", "2020-05-18", "CreateFile")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. CreateFileRequest::~CreateFileRequest()
  24. {}
  25. int CreateFileRequest::getFileType()const
  26. {
  27. return fileType_;
  28. }
  29. void CreateFileRequest::setFileType(int fileType)
  30. {
  31. fileType_ = fileType;
  32. setBodyParameter("FileType", std::to_string(fileType));
  33. }
  34. std::string CreateFileRequest::getDependentNodeIdList()const
  35. {
  36. return dependentNodeIdList_;
  37. }
  38. void CreateFileRequest::setDependentNodeIdList(const std::string& dependentNodeIdList)
  39. {
  40. dependentNodeIdList_ = dependentNodeIdList;
  41. setBodyParameter("DependentNodeIdList", dependentNodeIdList);
  42. }
  43. std::string CreateFileRequest::getContent()const
  44. {
  45. return content_;
  46. }
  47. void CreateFileRequest::setContent(const std::string& content)
  48. {
  49. content_ = content;
  50. setBodyParameter("Content", content);
  51. }
  52. std::string CreateFileRequest::getProjectIdentifier()const
  53. {
  54. return projectIdentifier_;
  55. }
  56. void CreateFileRequest::setProjectIdentifier(const std::string& projectIdentifier)
  57. {
  58. projectIdentifier_ = projectIdentifier;
  59. setBodyParameter("ProjectIdentifier", projectIdentifier);
  60. }
  61. long CreateFileRequest::getProjectId()const
  62. {
  63. return projectId_;
  64. }
  65. void CreateFileRequest::setProjectId(long projectId)
  66. {
  67. projectId_ = projectId;
  68. setBodyParameter("ProjectId", std::to_string(projectId));
  69. }
  70. long CreateFileRequest::getStartEffectDate()const
  71. {
  72. return startEffectDate_;
  73. }
  74. void CreateFileRequest::setStartEffectDate(long startEffectDate)
  75. {
  76. startEffectDate_ = startEffectDate;
  77. setBodyParameter("StartEffectDate", std::to_string(startEffectDate));
  78. }
  79. std::string CreateFileRequest::getCycleType()const
  80. {
  81. return cycleType_;
  82. }
  83. void CreateFileRequest::setCycleType(const std::string& cycleType)
  84. {
  85. cycleType_ = cycleType;
  86. setBodyParameter("CycleType", cycleType);
  87. }
  88. std::string CreateFileRequest::getOwner()const
  89. {
  90. return owner_;
  91. }
  92. void CreateFileRequest::setOwner(const std::string& owner)
  93. {
  94. owner_ = owner;
  95. setBodyParameter("Owner", owner);
  96. }
  97. int CreateFileRequest::getAutoRerunIntervalMillis()const
  98. {
  99. return autoRerunIntervalMillis_;
  100. }
  101. void CreateFileRequest::setAutoRerunIntervalMillis(int autoRerunIntervalMillis)
  102. {
  103. autoRerunIntervalMillis_ = autoRerunIntervalMillis;
  104. setBodyParameter("AutoRerunIntervalMillis", std::to_string(autoRerunIntervalMillis));
  105. }
  106. std::string CreateFileRequest::getInputList()const
  107. {
  108. return inputList_;
  109. }
  110. void CreateFileRequest::setInputList(const std::string& inputList)
  111. {
  112. inputList_ = inputList;
  113. setBodyParameter("InputList", inputList);
  114. }
  115. std::string CreateFileRequest::getRerunMode()const
  116. {
  117. return rerunMode_;
  118. }
  119. void CreateFileRequest::setRerunMode(const std::string& rerunMode)
  120. {
  121. rerunMode_ = rerunMode;
  122. setBodyParameter("RerunMode", rerunMode);
  123. }
  124. std::string CreateFileRequest::getParaValue()const
  125. {
  126. return paraValue_;
  127. }
  128. void CreateFileRequest::setParaValue(const std::string& paraValue)
  129. {
  130. paraValue_ = paraValue;
  131. setBodyParameter("ParaValue", paraValue);
  132. }
  133. int CreateFileRequest::getAutoRerunTimes()const
  134. {
  135. return autoRerunTimes_;
  136. }
  137. void CreateFileRequest::setAutoRerunTimes(int autoRerunTimes)
  138. {
  139. autoRerunTimes_ = autoRerunTimes;
  140. setBodyParameter("AutoRerunTimes", std::to_string(autoRerunTimes));
  141. }
  142. std::string CreateFileRequest::getCronExpress()const
  143. {
  144. return cronExpress_;
  145. }
  146. void CreateFileRequest::setCronExpress(const std::string& cronExpress)
  147. {
  148. cronExpress_ = cronExpress;
  149. setBodyParameter("CronExpress", cronExpress);
  150. }
  151. long CreateFileRequest::getEndEffectDate()const
  152. {
  153. return endEffectDate_;
  154. }
  155. void CreateFileRequest::setEndEffectDate(long endEffectDate)
  156. {
  157. endEffectDate_ = endEffectDate;
  158. setBodyParameter("EndEffectDate", std::to_string(endEffectDate));
  159. }
  160. std::string CreateFileRequest::getFileName()const
  161. {
  162. return fileName_;
  163. }
  164. void CreateFileRequest::setFileName(const std::string& fileName)
  165. {
  166. fileName_ = fileName;
  167. setBodyParameter("FileName", fileName);
  168. }
  169. bool CreateFileRequest::getStop()const
  170. {
  171. return stop_;
  172. }
  173. void CreateFileRequest::setStop(bool stop)
  174. {
  175. stop_ = stop;
  176. setBodyParameter("Stop", stop ? "true" : "false");
  177. }
  178. std::string CreateFileRequest::getDependentType()const
  179. {
  180. return dependentType_;
  181. }
  182. void CreateFileRequest::setDependentType(const std::string& dependentType)
  183. {
  184. dependentType_ = dependentType;
  185. setBodyParameter("DependentType", dependentType);
  186. }
  187. std::string CreateFileRequest::getFileFolderPath()const
  188. {
  189. return fileFolderPath_;
  190. }
  191. void CreateFileRequest::setFileFolderPath(const std::string& fileFolderPath)
  192. {
  193. fileFolderPath_ = fileFolderPath;
  194. setBodyParameter("FileFolderPath", fileFolderPath);
  195. }
  196. std::string CreateFileRequest::getFileDescription()const
  197. {
  198. return fileDescription_;
  199. }
  200. void CreateFileRequest::setFileDescription(const std::string& fileDescription)
  201. {
  202. fileDescription_ = fileDescription;
  203. setBodyParameter("FileDescription", fileDescription);
  204. }