RerunJobRequest.cc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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/schedulerx2/model/RerunJobRequest.h>
  17. using AlibabaCloud::Schedulerx2::Model::RerunJobRequest;
  18. RerunJobRequest::RerunJobRequest()
  19. : RpcServiceRequest("schedulerx2", "2019-04-30", "RerunJob") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. RerunJobRequest::~RerunJobRequest() {}
  23. std::string RerunJobRequest::getNamespaceSource() const {
  24. return namespaceSource_;
  25. }
  26. void RerunJobRequest::setNamespaceSource(const std::string &namespaceSource) {
  27. namespaceSource_ = namespaceSource;
  28. setBodyParameter(std::string("NamespaceSource"), namespaceSource);
  29. }
  30. std::string RerunJobRequest::getDataTime() const {
  31. return dataTime_;
  32. }
  33. void RerunJobRequest::setDataTime(const std::string &dataTime) {
  34. dataTime_ = dataTime;
  35. setBodyParameter(std::string("DataTime"), dataTime);
  36. }
  37. long RerunJobRequest::getStartDate() const {
  38. return startDate_;
  39. }
  40. void RerunJobRequest::setStartDate(long startDate) {
  41. startDate_ = startDate;
  42. setBodyParameter(std::string("StartDate"), std::to_string(startDate));
  43. }
  44. long RerunJobRequest::getJobId() const {
  45. return jobId_;
  46. }
  47. void RerunJobRequest::setJobId(long jobId) {
  48. jobId_ = jobId;
  49. setBodyParameter(std::string("JobId"), std::to_string(jobId));
  50. }
  51. std::string RerunJobRequest::getRegionId() const {
  52. return regionId_;
  53. }
  54. void RerunJobRequest::setRegionId(const std::string &regionId) {
  55. regionId_ = regionId;
  56. setBodyParameter(std::string("RegionId"), regionId);
  57. }
  58. std::string RerunJobRequest::getGroupId() const {
  59. return groupId_;
  60. }
  61. void RerunJobRequest::setGroupId(const std::string &groupId) {
  62. groupId_ = groupId;
  63. setBodyParameter(std::string("GroupId"), groupId);
  64. }
  65. long RerunJobRequest::getEndDate() const {
  66. return endDate_;
  67. }
  68. void RerunJobRequest::setEndDate(long endDate) {
  69. endDate_ = endDate;
  70. setBodyParameter(std::string("EndDate"), std::to_string(endDate));
  71. }
  72. std::string RerunJobRequest::get_Namespace() const {
  73. return _namespace_;
  74. }
  75. void RerunJobRequest::set_Namespace(const std::string &_namespace) {
  76. _namespace_ = _namespace;
  77. setBodyParameter(std::string("Namespace"), _namespace);
  78. }