QueryJobsRequest.cc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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/QueryJobsRequest.h>
  17. using AlibabaCloud::OutboundBot::Model::QueryJobsRequest;
  18. QueryJobsRequest::QueryJobsRequest() :
  19. RpcServiceRequest("outboundbot", "2019-12-26", "QueryJobs")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. QueryJobsRequest::~QueryJobsRequest()
  24. {}
  25. std::string QueryJobsRequest::getTimeAlignment()const
  26. {
  27. return timeAlignment_;
  28. }
  29. void QueryJobsRequest::setTimeAlignment(const std::string& timeAlignment)
  30. {
  31. timeAlignment_ = timeAlignment;
  32. setParameter("TimeAlignment", timeAlignment);
  33. }
  34. std::string QueryJobsRequest::getPhoneNumber()const
  35. {
  36. return phoneNumber_;
  37. }
  38. void QueryJobsRequest::setPhoneNumber(const std::string& phoneNumber)
  39. {
  40. phoneNumber_ = phoneNumber;
  41. setParameter("PhoneNumber", phoneNumber);
  42. }
  43. long QueryJobsRequest::getEndTime()const
  44. {
  45. return endTime_;
  46. }
  47. void QueryJobsRequest::setEndTime(long endTime)
  48. {
  49. endTime_ = endTime;
  50. setParameter("EndTime", std::to_string(endTime));
  51. }
  52. long QueryJobsRequest::getStartTime()const
  53. {
  54. return startTime_;
  55. }
  56. void QueryJobsRequest::setStartTime(long startTime)
  57. {
  58. startTime_ = startTime;
  59. setParameter("StartTime", std::to_string(startTime));
  60. }
  61. int QueryJobsRequest::getPageNumber()const
  62. {
  63. return pageNumber_;
  64. }
  65. void QueryJobsRequest::setPageNumber(int pageNumber)
  66. {
  67. pageNumber_ = pageNumber;
  68. setParameter("PageNumber", std::to_string(pageNumber));
  69. }
  70. std::string QueryJobsRequest::getContactName()const
  71. {
  72. return contactName_;
  73. }
  74. void QueryJobsRequest::setContactName(const std::string& contactName)
  75. {
  76. contactName_ = contactName;
  77. setParameter("ContactName", contactName);
  78. }
  79. std::string QueryJobsRequest::getInstanceId()const
  80. {
  81. return instanceId_;
  82. }
  83. void QueryJobsRequest::setInstanceId(const std::string& instanceId)
  84. {
  85. instanceId_ = instanceId;
  86. setParameter("InstanceId", instanceId);
  87. }
  88. std::string QueryJobsRequest::getJobGroupId()const
  89. {
  90. return jobGroupId_;
  91. }
  92. void QueryJobsRequest::setJobGroupId(const std::string& jobGroupId)
  93. {
  94. jobGroupId_ = jobGroupId;
  95. setParameter("JobGroupId", jobGroupId);
  96. }
  97. int QueryJobsRequest::getPageSize()const
  98. {
  99. return pageSize_;
  100. }
  101. void QueryJobsRequest::setPageSize(int pageSize)
  102. {
  103. pageSize_ = pageSize;
  104. setParameter("PageSize", std::to_string(pageSize));
  105. }
  106. std::string QueryJobsRequest::getScenarioId()const
  107. {
  108. return scenarioId_;
  109. }
  110. void QueryJobsRequest::setScenarioId(const std::string& scenarioId)
  111. {
  112. scenarioId_ = scenarioId;
  113. setParameter("ScenarioId", scenarioId);
  114. }