CreateFileRequest.cc 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateFileRequest::~CreateFileRequest() {}
  23. int CreateFileRequest::getFileType() const {
  24. return fileType_;
  25. }
  26. void CreateFileRequest::setFileType(int fileType) {
  27. fileType_ = fileType;
  28. setBodyParameter(std::string("FileType"), std::to_string(fileType));
  29. }
  30. std::string CreateFileRequest::getDependentNodeIdList() const {
  31. return dependentNodeIdList_;
  32. }
  33. void CreateFileRequest::setDependentNodeIdList(const std::string &dependentNodeIdList) {
  34. dependentNodeIdList_ = dependentNodeIdList;
  35. setBodyParameter(std::string("DependentNodeIdList"), dependentNodeIdList);
  36. }
  37. std::string CreateFileRequest::getContent() const {
  38. return content_;
  39. }
  40. void CreateFileRequest::setContent(const std::string &content) {
  41. content_ = content;
  42. setBodyParameter(std::string("Content"), content);
  43. }
  44. std::string CreateFileRequest::getProjectIdentifier() const {
  45. return projectIdentifier_;
  46. }
  47. void CreateFileRequest::setProjectIdentifier(const std::string &projectIdentifier) {
  48. projectIdentifier_ = projectIdentifier;
  49. setBodyParameter(std::string("ProjectIdentifier"), projectIdentifier);
  50. }
  51. long CreateFileRequest::getResourceGroupId() const {
  52. return resourceGroupId_;
  53. }
  54. void CreateFileRequest::setResourceGroupId(long resourceGroupId) {
  55. resourceGroupId_ = resourceGroupId;
  56. setBodyParameter(std::string("ResourceGroupId"), std::to_string(resourceGroupId));
  57. }
  58. bool CreateFileRequest::getStartImmediately() const {
  59. return startImmediately_;
  60. }
  61. void CreateFileRequest::setStartImmediately(bool startImmediately) {
  62. startImmediately_ = startImmediately;
  63. setBodyParameter(std::string("StartImmediately"), startImmediately ? "true" : "false");
  64. }
  65. long CreateFileRequest::getProjectId() const {
  66. return projectId_;
  67. }
  68. void CreateFileRequest::setProjectId(long projectId) {
  69. projectId_ = projectId;
  70. setBodyParameter(std::string("ProjectId"), std::to_string(projectId));
  71. }
  72. std::string CreateFileRequest::getAdvancedSettings() const {
  73. return advancedSettings_;
  74. }
  75. void CreateFileRequest::setAdvancedSettings(const std::string &advancedSettings) {
  76. advancedSettings_ = advancedSettings;
  77. setBodyParameter(std::string("AdvancedSettings"), advancedSettings);
  78. }
  79. long CreateFileRequest::getStartEffectDate() const {
  80. return startEffectDate_;
  81. }
  82. void CreateFileRequest::setStartEffectDate(long startEffectDate) {
  83. startEffectDate_ = startEffectDate;
  84. setBodyParameter(std::string("StartEffectDate"), std::to_string(startEffectDate));
  85. }
  86. std::string CreateFileRequest::getCycleType() const {
  87. return cycleType_;
  88. }
  89. void CreateFileRequest::setCycleType(const std::string &cycleType) {
  90. cycleType_ = cycleType;
  91. setBodyParameter(std::string("CycleType"), cycleType);
  92. }
  93. std::string CreateFileRequest::getOwner() const {
  94. return owner_;
  95. }
  96. void CreateFileRequest::setOwner(const std::string &owner) {
  97. owner_ = owner;
  98. setBodyParameter(std::string("Owner"), owner);
  99. }
  100. int CreateFileRequest::getAutoRerunIntervalMillis() const {
  101. return autoRerunIntervalMillis_;
  102. }
  103. void CreateFileRequest::setAutoRerunIntervalMillis(int autoRerunIntervalMillis) {
  104. autoRerunIntervalMillis_ = autoRerunIntervalMillis;
  105. setBodyParameter(std::string("AutoRerunIntervalMillis"), std::to_string(autoRerunIntervalMillis));
  106. }
  107. std::string CreateFileRequest::getInputList() const {
  108. return inputList_;
  109. }
  110. void CreateFileRequest::setInputList(const std::string &inputList) {
  111. inputList_ = inputList;
  112. setBodyParameter(std::string("InputList"), inputList);
  113. }
  114. std::string CreateFileRequest::getRerunMode() const {
  115. return rerunMode_;
  116. }
  117. void CreateFileRequest::setRerunMode(const std::string &rerunMode) {
  118. rerunMode_ = rerunMode;
  119. setBodyParameter(std::string("RerunMode"), rerunMode);
  120. }
  121. std::string CreateFileRequest::getConnectionName() const {
  122. return connectionName_;
  123. }
  124. void CreateFileRequest::setConnectionName(const std::string &connectionName) {
  125. connectionName_ = connectionName;
  126. setBodyParameter(std::string("ConnectionName"), connectionName);
  127. }
  128. std::string CreateFileRequest::getOutputParameters() const {
  129. return outputParameters_;
  130. }
  131. void CreateFileRequest::setOutputParameters(const std::string &outputParameters) {
  132. outputParameters_ = outputParameters;
  133. setBodyParameter(std::string("OutputParameters"), outputParameters);
  134. }
  135. std::string CreateFileRequest::getParaValue() const {
  136. return paraValue_;
  137. }
  138. void CreateFileRequest::setParaValue(const std::string &paraValue) {
  139. paraValue_ = paraValue;
  140. setBodyParameter(std::string("ParaValue"), paraValue);
  141. }
  142. std::string CreateFileRequest::getResourceGroupIdentifier() const {
  143. return resourceGroupIdentifier_;
  144. }
  145. void CreateFileRequest::setResourceGroupIdentifier(const std::string &resourceGroupIdentifier) {
  146. resourceGroupIdentifier_ = resourceGroupIdentifier;
  147. setBodyParameter(std::string("ResourceGroupIdentifier"), resourceGroupIdentifier);
  148. }
  149. int CreateFileRequest::getAutoRerunTimes() const {
  150. return autoRerunTimes_;
  151. }
  152. void CreateFileRequest::setAutoRerunTimes(int autoRerunTimes) {
  153. autoRerunTimes_ = autoRerunTimes;
  154. setBodyParameter(std::string("AutoRerunTimes"), std::to_string(autoRerunTimes));
  155. }
  156. std::string CreateFileRequest::getCronExpress() const {
  157. return cronExpress_;
  158. }
  159. void CreateFileRequest::setCronExpress(const std::string &cronExpress) {
  160. cronExpress_ = cronExpress;
  161. setBodyParameter(std::string("CronExpress"), cronExpress);
  162. }
  163. long CreateFileRequest::getEndEffectDate() const {
  164. return endEffectDate_;
  165. }
  166. void CreateFileRequest::setEndEffectDate(long endEffectDate) {
  167. endEffectDate_ = endEffectDate;
  168. setBodyParameter(std::string("EndEffectDate"), std::to_string(endEffectDate));
  169. }
  170. std::string CreateFileRequest::getFileName() const {
  171. return fileName_;
  172. }
  173. void CreateFileRequest::setFileName(const std::string &fileName) {
  174. fileName_ = fileName;
  175. setBodyParameter(std::string("FileName"), fileName);
  176. }
  177. std::string CreateFileRequest::getInputParameters() const {
  178. return inputParameters_;
  179. }
  180. void CreateFileRequest::setInputParameters(const std::string &inputParameters) {
  181. inputParameters_ = inputParameters;
  182. setBodyParameter(std::string("InputParameters"), inputParameters);
  183. }
  184. bool CreateFileRequest::getStop() const {
  185. return stop_;
  186. }
  187. void CreateFileRequest::setStop(bool stop) {
  188. stop_ = stop;
  189. setBodyParameter(std::string("Stop"), stop ? "true" : "false");
  190. }
  191. std::string CreateFileRequest::getDependentType() const {
  192. return dependentType_;
  193. }
  194. void CreateFileRequest::setDependentType(const std::string &dependentType) {
  195. dependentType_ = dependentType;
  196. setBodyParameter(std::string("DependentType"), dependentType);
  197. }
  198. std::string CreateFileRequest::getFileFolderPath() const {
  199. return fileFolderPath_;
  200. }
  201. void CreateFileRequest::setFileFolderPath(const std::string &fileFolderPath) {
  202. fileFolderPath_ = fileFolderPath;
  203. setBodyParameter(std::string("FileFolderPath"), fileFolderPath);
  204. }
  205. std::string CreateFileRequest::getFileDescription() const {
  206. return fileDescription_;
  207. }
  208. void CreateFileRequest::setFileDescription(const std::string &fileDescription) {
  209. fileDescription_ = fileDescription;
  210. setBodyParameter(std::string("FileDescription"), fileDescription);
  211. }
  212. bool CreateFileRequest::getAutoParsing() const {
  213. return autoParsing_;
  214. }
  215. void CreateFileRequest::setAutoParsing(bool autoParsing) {
  216. autoParsing_ = autoParsing;
  217. setBodyParameter(std::string("AutoParsing"), autoParsing ? "true" : "false");
  218. }
  219. std::string CreateFileRequest::getSchedulerType() const {
  220. return schedulerType_;
  221. }
  222. void CreateFileRequest::setSchedulerType(const std::string &schedulerType) {
  223. schedulerType_ = schedulerType;
  224. setBodyParameter(std::string("SchedulerType"), schedulerType);
  225. }