EditJobTemplateRequest.cc 3.9 KB

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