ListLogstashLogRequest.cc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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/elasticsearch/model/ListLogstashLogRequest.h>
  17. using AlibabaCloud::Elasticsearch::Model::ListLogstashLogRequest;
  18. ListLogstashLogRequest::ListLogstashLogRequest() :
  19. RoaServiceRequest("elasticsearch", "2017-06-13")
  20. {
  21. setResourcePath("/openapi/logstashes/[InstanceId]/search-log");
  22. setMethod(HttpRequest::Method::GET);
  23. }
  24. ListLogstashLogRequest::~ListLogstashLogRequest()
  25. {}
  26. std::string ListLogstashLogRequest::getInstanceId()const
  27. {
  28. return instanceId_;
  29. }
  30. void ListLogstashLogRequest::setInstanceId(const std::string& instanceId)
  31. {
  32. instanceId_ = instanceId;
  33. setParameter("InstanceId", instanceId);
  34. }
  35. int ListLogstashLogRequest::getSize()const
  36. {
  37. return size_;
  38. }
  39. void ListLogstashLogRequest::setSize(int size)
  40. {
  41. size_ = size;
  42. setParameter("Size", std::to_string(size));
  43. }
  44. std::string ListLogstashLogRequest::getQuery()const
  45. {
  46. return query_;
  47. }
  48. void ListLogstashLogRequest::setQuery(const std::string& query)
  49. {
  50. query_ = query;
  51. setParameter("Query", query);
  52. }
  53. long ListLogstashLogRequest::getEndTime()const
  54. {
  55. return endTime_;
  56. }
  57. void ListLogstashLogRequest::setEndTime(long endTime)
  58. {
  59. endTime_ = endTime;
  60. setParameter("EndTime", std::to_string(endTime));
  61. }
  62. long ListLogstashLogRequest::getBeginTime()const
  63. {
  64. return beginTime_;
  65. }
  66. void ListLogstashLogRequest::setBeginTime(long beginTime)
  67. {
  68. beginTime_ = beginTime;
  69. setParameter("BeginTime", std::to_string(beginTime));
  70. }
  71. int ListLogstashLogRequest::getPage()const
  72. {
  73. return page_;
  74. }
  75. void ListLogstashLogRequest::setPage(int page)
  76. {
  77. page_ = page;
  78. setParameter("Page", std::to_string(page));
  79. }
  80. std::string ListLogstashLogRequest::getType()const
  81. {
  82. return type_;
  83. }
  84. void ListLogstashLogRequest::setType(const std::string& type)
  85. {
  86. type_ = type;
  87. setParameter("Type", type);
  88. }