UpdateJobRequest.cc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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/foas/model/UpdateJobRequest.h>
  17. using AlibabaCloud::Foas::Model::UpdateJobRequest;
  18. UpdateJobRequest::UpdateJobRequest() :
  19. RoaServiceRequest("foas", "2018-11-11")
  20. {
  21. setResourcePath("/api/v2/projects/[projectName]/jobs/[jobName]");
  22. setMethod(HttpRequest::Method::Put);
  23. }
  24. UpdateJobRequest::~UpdateJobRequest()
  25. {}
  26. std::string UpdateJobRequest::getQueueName()const
  27. {
  28. return queueName_;
  29. }
  30. void UpdateJobRequest::setQueueName(const std::string& queueName)
  31. {
  32. queueName_ = queueName;
  33. setBodyParameter("QueueName", queueName);
  34. }
  35. std::string UpdateJobRequest::getProjectName()const
  36. {
  37. return projectName_;
  38. }
  39. void UpdateJobRequest::setProjectName(const std::string& projectName)
  40. {
  41. projectName_ = projectName;
  42. setParameter("ProjectName", projectName);
  43. }
  44. std::string UpdateJobRequest::getCode()const
  45. {
  46. return code_;
  47. }
  48. void UpdateJobRequest::setCode(const std::string& code)
  49. {
  50. code_ = code;
  51. setBodyParameter("Code", code);
  52. }
  53. std::string UpdateJobRequest::getRegionId()const
  54. {
  55. return regionId_;
  56. }
  57. void UpdateJobRequest::setRegionId(const std::string& regionId)
  58. {
  59. regionId_ = regionId;
  60. setHeader("RegionId", regionId);
  61. }
  62. std::string UpdateJobRequest::getDescription()const
  63. {
  64. return description_;
  65. }
  66. void UpdateJobRequest::setDescription(const std::string& description)
  67. {
  68. description_ = description;
  69. setBodyParameter("Description", description);
  70. }
  71. std::string UpdateJobRequest::getPlanJson()const
  72. {
  73. return planJson_;
  74. }
  75. void UpdateJobRequest::setPlanJson(const std::string& planJson)
  76. {
  77. planJson_ = planJson;
  78. setBodyParameter("PlanJson", planJson);
  79. }
  80. std::string UpdateJobRequest::getEngineVersion()const
  81. {
  82. return engineVersion_;
  83. }
  84. void UpdateJobRequest::setEngineVersion(const std::string& engineVersion)
  85. {
  86. engineVersion_ = engineVersion;
  87. setBodyParameter("EngineVersion", engineVersion);
  88. }
  89. std::string UpdateJobRequest::getClusterId()const
  90. {
  91. return clusterId_;
  92. }
  93. void UpdateJobRequest::setClusterId(const std::string& clusterId)
  94. {
  95. clusterId_ = clusterId;
  96. setBodyParameter("ClusterId", clusterId);
  97. }
  98. std::string UpdateJobRequest::getPackages()const
  99. {
  100. return packages_;
  101. }
  102. void UpdateJobRequest::setPackages(const std::string& packages)
  103. {
  104. packages_ = packages;
  105. setBodyParameter("Packages", packages);
  106. }
  107. long UpdateJobRequest::getFolderId()const
  108. {
  109. return folderId_;
  110. }
  111. void UpdateJobRequest::setFolderId(long folderId)
  112. {
  113. folderId_ = folderId;
  114. setBodyParameter("FolderId", std::to_string(folderId));
  115. }
  116. std::string UpdateJobRequest::getProperties()const
  117. {
  118. return properties_;
  119. }
  120. void UpdateJobRequest::setProperties(const std::string& properties)
  121. {
  122. properties_ = properties;
  123. setBodyParameter("Properties", properties);
  124. }
  125. std::string UpdateJobRequest::getJobName()const
  126. {
  127. return jobName_;
  128. }
  129. void UpdateJobRequest::setJobName(const std::string& jobName)
  130. {
  131. jobName_ = jobName;
  132. setParameter("JobName", jobName);
  133. }