DescribeRestoreTablesResult.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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_HBASE_MODEL_DESCRIBERESTORETABLESRESULT_H_
  17. #define ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTORETABLESRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/hbase/HBaseExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace HBase
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreTablesResult : public ServiceResult
  30. {
  31. public:
  32. struct RestoreSummary
  33. {
  34. std::string endTime;
  35. std::string targetCluster;
  36. std::string state;
  37. std::string startTime;
  38. std::string restoreToDate;
  39. std::string recordId;
  40. };
  41. struct RestoreSchema
  42. {
  43. struct RestoreSchemaDetail
  44. {
  45. std::string table;
  46. std::string endTime;
  47. std::string message;
  48. std::string state;
  49. std::string startTime;
  50. };
  51. int pageSize;
  52. int pageNumber;
  53. long total;
  54. std::vector<RestoreSchemaDetail> restoreSchemaDetails;
  55. int succeed;
  56. int fail;
  57. };
  58. struct RestoreFull
  59. {
  60. struct RestoreFullDetail
  61. {
  62. std::string speed;
  63. std::string table;
  64. std::string endTime;
  65. std::string message;
  66. std::string state;
  67. std::string dataSize;
  68. std::string startTime;
  69. std::string process;
  70. };
  71. std::vector<RestoreFullDetail> restoreFullDetails;
  72. std::string speed;
  73. int pageSize;
  74. int pageNumber;
  75. std::string dataSize;
  76. long total;
  77. int succeed;
  78. int fail;
  79. };
  80. struct RestoreIncrDetail
  81. {
  82. std::string endTime;
  83. std::string restoreDelay;
  84. std::string restoreStartTs;
  85. std::string state;
  86. std::string startTime;
  87. std::string restoredTs;
  88. std::string process;
  89. };
  90. DescribeRestoreTablesResult();
  91. explicit DescribeRestoreTablesResult(const std::string &payload);
  92. ~DescribeRestoreTablesResult();
  93. RestoreSchema getRestoreSchema()const;
  94. RestoreFull getRestoreFull()const;
  95. RestoreSummary getRestoreSummary()const;
  96. std::vector<std::string> getTables()const;
  97. RestoreIncrDetail getRestoreIncrDetail()const;
  98. protected:
  99. void parse(const std::string &payload);
  100. private:
  101. RestoreSchema restoreSchema_;
  102. RestoreFull restoreFull_;
  103. RestoreSummary restoreSummary_;
  104. std::vector<std::string> tables_;
  105. RestoreIncrDetail restoreIncrDetail_;
  106. };
  107. }
  108. }
  109. }
  110. #endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTORETABLESRESULT_H_