OnsDLQMessagePageQueryByGroupIdResult.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. #ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDRESULT_H_
  17. #define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/ons/OnsExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Ons
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_ONS_EXPORT OnsDLQMessagePageQueryByGroupIdResult : public ServiceResult
  30. {
  31. public:
  32. struct MsgFoundDo
  33. {
  34. struct OnsRestMessageDo
  35. {
  36. struct MessageProperty
  37. {
  38. std::string value;
  39. std::string name;
  40. };
  41. long bornTimestamp;
  42. std::string offsetId;
  43. std::string instanceId;
  44. int storeSize;
  45. std::string bornHost;
  46. int bodyCRC;
  47. int flag;
  48. std::string msgId;
  49. long storeTimestamp;
  50. std::string storeHost;
  51. std::vector<OnsRestMessageDo::MessageProperty> propertyList;
  52. std::string topic;
  53. int reconsumeTimes;
  54. std::string body;
  55. };
  56. std::string taskId;
  57. long currentPage;
  58. long maxPageCount;
  59. std::vector<OnsRestMessageDo> msgFoundList;
  60. };
  61. OnsDLQMessagePageQueryByGroupIdResult();
  62. explicit OnsDLQMessagePageQueryByGroupIdResult(const std::string &payload);
  63. ~OnsDLQMessagePageQueryByGroupIdResult();
  64. MsgFoundDo getMsgFoundDo()const;
  65. std::string getHelpUrl()const;
  66. protected:
  67. void parse(const std::string &payload);
  68. private:
  69. MsgFoundDo msgFoundDo_;
  70. std::string helpUrl_;
  71. };
  72. }
  73. }
  74. }
  75. #endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDRESULT_H_