QueryMessageRequest.cc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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/alikafka/model/QueryMessageRequest.h>
  17. using AlibabaCloud::Alikafka::Model::QueryMessageRequest;
  18. QueryMessageRequest::QueryMessageRequest()
  19. : RpcServiceRequest("alikafka", "2019-09-16", "QueryMessage") {
  20. setMethod(HttpRequest::Method::Get);
  21. }
  22. QueryMessageRequest::~QueryMessageRequest() {}
  23. std::string QueryMessageRequest::getOffset() const {
  24. return offset_;
  25. }
  26. void QueryMessageRequest::setOffset(const std::string &offset) {
  27. offset_ = offset;
  28. setParameter(std::string("Offset"), offset);
  29. }
  30. long QueryMessageRequest::getBeginTime() const {
  31. return beginTime_;
  32. }
  33. void QueryMessageRequest::setBeginTime(long beginTime) {
  34. beginTime_ = beginTime;
  35. setParameter(std::string("BeginTime"), std::to_string(beginTime));
  36. }
  37. std::string QueryMessageRequest::getInstanceId() const {
  38. return instanceId_;
  39. }
  40. void QueryMessageRequest::setInstanceId(const std::string &instanceId) {
  41. instanceId_ = instanceId;
  42. setParameter(std::string("InstanceId"), instanceId);
  43. }
  44. std::string QueryMessageRequest::getPartition() const {
  45. return partition_;
  46. }
  47. void QueryMessageRequest::setPartition(const std::string &partition) {
  48. partition_ = partition;
  49. setParameter(std::string("Partition"), partition);
  50. }
  51. std::string QueryMessageRequest::getRegionId() const {
  52. return regionId_;
  53. }
  54. void QueryMessageRequest::setRegionId(const std::string &regionId) {
  55. regionId_ = regionId;
  56. setParameter(std::string("RegionId"), regionId);
  57. }
  58. std::string QueryMessageRequest::getTopic() const {
  59. return topic_;
  60. }
  61. void QueryMessageRequest::setTopic(const std::string &topic) {
  62. topic_ = topic;
  63. setParameter(std::string("Topic"), topic);
  64. }
  65. std::string QueryMessageRequest::getQueryType() const {
  66. return queryType_;
  67. }
  68. void QueryMessageRequest::setQueryType(const std::string &queryType) {
  69. queryType_ = queryType;
  70. setParameter(std::string("QueryType"), queryType);
  71. }