GetJMeterLogsRequest.cc 3.0 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/pts/model/GetJMeterLogsRequest.h>
  17. using AlibabaCloud::PTS::Model::GetJMeterLogsRequest;
  18. GetJMeterLogsRequest::GetJMeterLogsRequest()
  19. : RpcServiceRequest("pts", "2020-10-20", "GetJMeterLogs") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. GetJMeterLogsRequest::~GetJMeterLogsRequest() {}
  23. int GetJMeterLogsRequest::getAgentIndex() const {
  24. return agentIndex_;
  25. }
  26. void GetJMeterLogsRequest::setAgentIndex(int agentIndex) {
  27. agentIndex_ = agentIndex;
  28. setParameter(std::string("AgentIndex"), std::to_string(agentIndex));
  29. }
  30. std::string GetJMeterLogsRequest::getReportId() const {
  31. return reportId_;
  32. }
  33. void GetJMeterLogsRequest::setReportId(const std::string &reportId) {
  34. reportId_ = reportId;
  35. setParameter(std::string("ReportId"), reportId);
  36. }
  37. std::string GetJMeterLogsRequest::getLevel() const {
  38. return level_;
  39. }
  40. void GetJMeterLogsRequest::setLevel(const std::string &level) {
  41. level_ = level;
  42. setParameter(std::string("Level"), level);
  43. }
  44. long GetJMeterLogsRequest::getEndTime() const {
  45. return endTime_;
  46. }
  47. void GetJMeterLogsRequest::setEndTime(long endTime) {
  48. endTime_ = endTime;
  49. setParameter(std::string("EndTime"), std::to_string(endTime));
  50. }
  51. long GetJMeterLogsRequest::getBeginTime() const {
  52. return beginTime_;
  53. }
  54. void GetJMeterLogsRequest::setBeginTime(long beginTime) {
  55. beginTime_ = beginTime;
  56. setParameter(std::string("BeginTime"), std::to_string(beginTime));
  57. }
  58. std::string GetJMeterLogsRequest::getThread() const {
  59. return thread_;
  60. }
  61. void GetJMeterLogsRequest::setThread(const std::string &thread) {
  62. thread_ = thread;
  63. setParameter(std::string("Thread"), thread);
  64. }
  65. int GetJMeterLogsRequest::getPageNumber() const {
  66. return pageNumber_;
  67. }
  68. void GetJMeterLogsRequest::setPageNumber(int pageNumber) {
  69. pageNumber_ = pageNumber;
  70. setParameter(std::string("PageNumber"), std::to_string(pageNumber));
  71. }
  72. int GetJMeterLogsRequest::getPageSize() const {
  73. return pageSize_;
  74. }
  75. void GetJMeterLogsRequest::setPageSize(int pageSize) {
  76. pageSize_ = pageSize;
  77. setParameter(std::string("PageSize"), std::to_string(pageSize));
  78. }
  79. std::string GetJMeterLogsRequest::getKeyword() const {
  80. return keyword_;
  81. }
  82. void GetJMeterLogsRequest::setKeyword(const std::string &keyword) {
  83. keyword_ = keyword;
  84. setParameter(std::string("Keyword"), keyword);
  85. }