EditJobTemplateRequest.cc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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/ehpc/model/EditJobTemplateRequest.h>
  17. using AlibabaCloud::EHPC::Model::EditJobTemplateRequest;
  18. EditJobTemplateRequest::EditJobTemplateRequest() :
  19. RpcServiceRequest("ehpc", "2018-04-12", "EditJobTemplate")
  20. {}
  21. EditJobTemplateRequest::~EditJobTemplateRequest()
  22. {}
  23. std::string EditJobTemplateRequest::getStderrRedirectPath()const
  24. {
  25. return stderrRedirectPath_;
  26. }
  27. void EditJobTemplateRequest::setStderrRedirectPath(const std::string& stderrRedirectPath)
  28. {
  29. stderrRedirectPath_ = stderrRedirectPath;
  30. setParameter("StderrRedirectPath", stderrRedirectPath);
  31. }
  32. std::string EditJobTemplateRequest::getVariables()const
  33. {
  34. return variables_;
  35. }
  36. void EditJobTemplateRequest::setVariables(const std::string& variables)
  37. {
  38. variables_ = variables;
  39. setParameter("Variables", variables);
  40. }
  41. std::string EditJobTemplateRequest::getRunasUser()const
  42. {
  43. return runasUser_;
  44. }
  45. void EditJobTemplateRequest::setRunasUser(const std::string& runasUser)
  46. {
  47. runasUser_ = runasUser;
  48. setParameter("RunasUser", runasUser);
  49. }
  50. bool EditJobTemplateRequest::getReRunable()const
  51. {
  52. return reRunable_;
  53. }
  54. void EditJobTemplateRequest::setReRunable(bool reRunable)
  55. {
  56. reRunable_ = reRunable;
  57. setParameter("ReRunable", std::to_string(reRunable));
  58. }
  59. std::string EditJobTemplateRequest::getTemplateId()const
  60. {
  61. return templateId_;
  62. }
  63. void EditJobTemplateRequest::setTemplateId(const std::string& templateId)
  64. {
  65. templateId_ = templateId;
  66. setParameter("TemplateId", templateId);
  67. }
  68. int EditJobTemplateRequest::getPriority()const
  69. {
  70. return priority_;
  71. }
  72. void EditJobTemplateRequest::setPriority(int priority)
  73. {
  74. priority_ = priority;
  75. setParameter("Priority", std::to_string(priority));
  76. }
  77. std::string EditJobTemplateRequest::getCommandLine()const
  78. {
  79. return commandLine_;
  80. }
  81. void EditJobTemplateRequest::setCommandLine(const std::string& commandLine)
  82. {
  83. commandLine_ = commandLine;
  84. setParameter("CommandLine", commandLine);
  85. }
  86. std::string EditJobTemplateRequest::getAccessKeyId()const
  87. {
  88. return accessKeyId_;
  89. }
  90. void EditJobTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
  91. {
  92. accessKeyId_ = accessKeyId;
  93. setParameter("AccessKeyId", accessKeyId);
  94. }
  95. std::string EditJobTemplateRequest::getArrayRequest()const
  96. {
  97. return arrayRequest_;
  98. }
  99. void EditJobTemplateRequest::setArrayRequest(const std::string& arrayRequest)
  100. {
  101. arrayRequest_ = arrayRequest;
  102. setParameter("ArrayRequest", arrayRequest);
  103. }
  104. std::string EditJobTemplateRequest::getPackagePath()const
  105. {
  106. return packagePath_;
  107. }
  108. void EditJobTemplateRequest::setPackagePath(const std::string& packagePath)
  109. {
  110. packagePath_ = packagePath;
  111. setParameter("PackagePath", packagePath);
  112. }
  113. std::string EditJobTemplateRequest::getName()const
  114. {
  115. return name_;
  116. }
  117. void EditJobTemplateRequest::setName(const std::string& name)
  118. {
  119. name_ = name;
  120. setParameter("Name", name);
  121. }
  122. std::string EditJobTemplateRequest::getStdoutRedirectPath()const
  123. {
  124. return stdoutRedirectPath_;
  125. }
  126. void EditJobTemplateRequest::setStdoutRedirectPath(const std::string& stdoutRedirectPath)
  127. {
  128. stdoutRedirectPath_ = stdoutRedirectPath;
  129. setParameter("StdoutRedirectPath", stdoutRedirectPath);
  130. }