CancelPredictiveJobsRequest.cc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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/CancelPredictiveJobsRequest.h>
  17. using AlibabaCloud::CCC::Model::CancelPredictiveJobsRequest;
  18. CancelPredictiveJobsRequest::CancelPredictiveJobsRequest() :
  19. RpcServiceRequest("ccc", "2017-07-05", "CancelPredictiveJobs")
  20. {}
  21. CancelPredictiveJobsRequest::~CancelPredictiveJobsRequest()
  22. {}
  23. bool CancelPredictiveJobsRequest::getAll()const
  24. {
  25. return all_;
  26. }
  27. void CancelPredictiveJobsRequest::setAll(bool all)
  28. {
  29. all_ = all;
  30. setCoreParameter("All", all ? "true" : "false");
  31. }
  32. std::vector<std::string> CancelPredictiveJobsRequest::getJobId()const
  33. {
  34. return jobId_;
  35. }
  36. void CancelPredictiveJobsRequest::setJobId(const std::vector<std::string>& jobId)
  37. {
  38. jobId_ = jobId;
  39. for(int i = 0; i!= jobId.size(); i++)
  40. setCoreParameter("JobId."+ std::to_string(i), jobId.at(i));
  41. }
  42. std::string CancelPredictiveJobsRequest::getInstanceId()const
  43. {
  44. return instanceId_;
  45. }
  46. void CancelPredictiveJobsRequest::setInstanceId(const std::string& instanceId)
  47. {
  48. instanceId_ = instanceId;
  49. setCoreParameter("InstanceId", instanceId);
  50. }
  51. std::string CancelPredictiveJobsRequest::getJobGroupId()const
  52. {
  53. return jobGroupId_;
  54. }
  55. void CancelPredictiveJobsRequest::setJobGroupId(const std::string& jobGroupId)
  56. {
  57. jobGroupId_ = jobGroupId;
  58. setCoreParameter("JobGroupId", jobGroupId);
  59. }