ListTicketsRequest.cc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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/workorder/model/ListTicketsRequest.h>
  17. using AlibabaCloud::Workorder::Model::ListTicketsRequest;
  18. ListTicketsRequest::ListTicketsRequest() :
  19. RpcServiceRequest("workorder", "2021-06-10", "ListTickets")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ListTicketsRequest::~ListTicketsRequest()
  24. {}
  25. std::vector<std::string> ListTicketsRequest::getStatusList()const
  26. {
  27. return statusList_;
  28. }
  29. void ListTicketsRequest::setStatusList(const std::vector<std::string>& statusList)
  30. {
  31. statusList_ = statusList;
  32. for(int dep1 = 0; dep1!= statusList.size(); dep1++) {
  33. setBodyParameter("StatusList."+ std::to_string(dep1), statusList.at(dep1));
  34. }
  35. }
  36. long ListTicketsRequest::getStartDate()const
  37. {
  38. return startDate_;
  39. }
  40. void ListTicketsRequest::setStartDate(long startDate)
  41. {
  42. startDate_ = startDate;
  43. setBodyParameter("StartDate", std::to_string(startDate));
  44. }
  45. int ListTicketsRequest::getPageNumber()const
  46. {
  47. return pageNumber_;
  48. }
  49. void ListTicketsRequest::setPageNumber(int pageNumber)
  50. {
  51. pageNumber_ = pageNumber;
  52. setParameter("PageNumber", std::to_string(pageNumber));
  53. }
  54. long ListTicketsRequest::getEndDate()const
  55. {
  56. return endDate_;
  57. }
  58. void ListTicketsRequest::setEndDate(long endDate)
  59. {
  60. endDate_ = endDate;
  61. setBodyParameter("EndDate", std::to_string(endDate));
  62. }
  63. int ListTicketsRequest::getPageSize()const
  64. {
  65. return pageSize_;
  66. }
  67. void ListTicketsRequest::setPageSize(int pageSize)
  68. {
  69. pageSize_ = pageSize;
  70. setParameter("PageSize", std::to_string(pageSize));
  71. }
  72. std::string ListTicketsRequest::getKeyword()const
  73. {
  74. return keyword_;
  75. }
  76. void ListTicketsRequest::setKeyword(const std::string& keyword)
  77. {
  78. keyword_ = keyword;
  79. setBodyParameter("Keyword", keyword);
  80. }
  81. std::string ListTicketsRequest::getTicketId()const
  82. {
  83. return ticketId_;
  84. }
  85. void ListTicketsRequest::setTicketId(const std::string& ticketId)
  86. {
  87. ticketId_ = ticketId;
  88. setBodyParameter("TicketId", ticketId);
  89. }