CreatePredictiveJobGroupRequest.cc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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/ccc/model/CreatePredictiveJobGroupRequest.h>
  17. using AlibabaCloud::CCC::Model::CreatePredictiveJobGroupRequest;
  18. CreatePredictiveJobGroupRequest::CreatePredictiveJobGroupRequest() :
  19. RpcServiceRequest("ccc", "2017-07-05", "CreatePredictiveJobGroup")
  20. {}
  21. CreatePredictiveJobGroupRequest::~CreatePredictiveJobGroupRequest()
  22. {}
  23. std::string CreatePredictiveJobGroupRequest::getDescription()const
  24. {
  25. return description_;
  26. }
  27. void CreatePredictiveJobGroupRequest::setDescription(const std::string& description)
  28. {
  29. description_ = description;
  30. setCoreParameter("Description", description);
  31. }
  32. bool CreatePredictiveJobGroupRequest::getTimingSchedule()const
  33. {
  34. return timingSchedule_;
  35. }
  36. void CreatePredictiveJobGroupRequest::setTimingSchedule(bool timingSchedule)
  37. {
  38. timingSchedule_ = timingSchedule;
  39. setCoreParameter("TimingSchedule", timingSchedule ? "true" : "false");
  40. }
  41. std::vector<std::string> CreatePredictiveJobGroupRequest::getJobsJson()const
  42. {
  43. return jobsJson_;
  44. }
  45. void CreatePredictiveJobGroupRequest::setJobsJson(const std::vector<std::string>& jobsJson)
  46. {
  47. jobsJson_ = jobsJson;
  48. for(int i = 0; i!= jobsJson.size(); i++)
  49. setCoreParameter("JobsJson."+ std::to_string(i), jobsJson.at(i));
  50. }
  51. std::string CreatePredictiveJobGroupRequest::getJobFilePath()const
  52. {
  53. return jobFilePath_;
  54. }
  55. void CreatePredictiveJobGroupRequest::setJobFilePath(const std::string& jobFilePath)
  56. {
  57. jobFilePath_ = jobFilePath;
  58. setCoreParameter("JobFilePath", jobFilePath);
  59. }
  60. std::string CreatePredictiveJobGroupRequest::getInstanceId()const
  61. {
  62. return instanceId_;
  63. }
  64. void CreatePredictiveJobGroupRequest::setInstanceId(const std::string& instanceId)
  65. {
  66. instanceId_ = instanceId;
  67. setCoreParameter("InstanceId", instanceId);
  68. }
  69. bool CreatePredictiveJobGroupRequest::getIsDraft()const
  70. {
  71. return isDraft_;
  72. }
  73. void CreatePredictiveJobGroupRequest::setIsDraft(bool isDraft)
  74. {
  75. isDraft_ = isDraft;
  76. setCoreParameter("IsDraft", isDraft ? "true" : "false");
  77. }
  78. std::string CreatePredictiveJobGroupRequest::getSkillGroupId()const
  79. {
  80. return skillGroupId_;
  81. }
  82. void CreatePredictiveJobGroupRequest::setSkillGroupId(const std::string& skillGroupId)
  83. {
  84. skillGroupId_ = skillGroupId;
  85. setCoreParameter("SkillGroupId", skillGroupId);
  86. }
  87. std::string CreatePredictiveJobGroupRequest::getStrategyJson()const
  88. {
  89. return strategyJson_;
  90. }
  91. void CreatePredictiveJobGroupRequest::setStrategyJson(const std::string& strategyJson)
  92. {
  93. strategyJson_ = strategyJson;
  94. setCoreParameter("StrategyJson", strategyJson);
  95. }
  96. std::string CreatePredictiveJobGroupRequest::getName()const
  97. {
  98. return name_;
  99. }
  100. void CreatePredictiveJobGroupRequest::setName(const std::string& name)
  101. {
  102. name_ = name;
  103. setCoreParameter("Name", name);
  104. }