ModifyJobGroupRequest.cc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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/outboundbot/model/ModifyJobGroupRequest.h>
  17. using AlibabaCloud::OutboundBot::Model::ModifyJobGroupRequest;
  18. ModifyJobGroupRequest::ModifyJobGroupRequest() :
  19. RpcServiceRequest("outboundbot", "2019-12-26", "ModifyJobGroup")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ModifyJobGroupRequest::~ModifyJobGroupRequest()
  24. {}
  25. std::string ModifyJobGroupRequest::getDescription()const
  26. {
  27. return description_;
  28. }
  29. void ModifyJobGroupRequest::setDescription(const std::string& description)
  30. {
  31. description_ = description;
  32. setParameter("Description", description);
  33. }
  34. std::vector<std::string> ModifyJobGroupRequest::getCallingNumber()const
  35. {
  36. return callingNumber_;
  37. }
  38. void ModifyJobGroupRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
  39. {
  40. callingNumber_ = callingNumber;
  41. for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
  42. setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
  43. }
  44. }
  45. std::string ModifyJobGroupRequest::getScriptId()const
  46. {
  47. return scriptId_;
  48. }
  49. void ModifyJobGroupRequest::setScriptId(const std::string& scriptId)
  50. {
  51. scriptId_ = scriptId;
  52. setParameter("ScriptId", scriptId);
  53. }
  54. std::string ModifyJobGroupRequest::getInstanceId()const
  55. {
  56. return instanceId_;
  57. }
  58. void ModifyJobGroupRequest::setInstanceId(const std::string& instanceId)
  59. {
  60. instanceId_ = instanceId;
  61. setParameter("InstanceId", instanceId);
  62. }
  63. std::string ModifyJobGroupRequest::getStrategyJson()const
  64. {
  65. return strategyJson_;
  66. }
  67. void ModifyJobGroupRequest::setStrategyJson(const std::string& strategyJson)
  68. {
  69. strategyJson_ = strategyJson;
  70. setParameter("StrategyJson", strategyJson);
  71. }
  72. std::string ModifyJobGroupRequest::getJobGroupId()const
  73. {
  74. return jobGroupId_;
  75. }
  76. void ModifyJobGroupRequest::setJobGroupId(const std::string& jobGroupId)
  77. {
  78. jobGroupId_ = jobGroupId;
  79. setParameter("JobGroupId", jobGroupId);
  80. }
  81. std::string ModifyJobGroupRequest::getName()const
  82. {
  83. return name_;
  84. }
  85. void ModifyJobGroupRequest::setName(const std::string& name)
  86. {
  87. name_ = name;
  88. setParameter("Name", name);
  89. }
  90. std::string ModifyJobGroupRequest::getScenarioId()const
  91. {
  92. return scenarioId_;
  93. }
  94. void ModifyJobGroupRequest::setScenarioId(const std::string& scenarioId)
  95. {
  96. scenarioId_ = scenarioId;
  97. setParameter("ScenarioId", scenarioId);
  98. }