DescribeClusterBackupsResult.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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_DDS_MODEL_DESCRIBECLUSTERBACKUPSRESULT_H_
  17. #define ALIBABACLOUD_DDS_MODEL_DESCRIBECLUSTERBACKUPSRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/dds/DdsExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Dds
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_DDS_EXPORT DescribeClusterBackupsResult : public ServiceResult
  30. {
  31. public:
  32. struct ClusterBackup
  33. {
  34. struct ExtraInfo
  35. {
  36. std::string registryFromHistory;
  37. };
  38. struct Backup
  39. {
  40. struct ExtraInfo1
  41. {
  42. std::string nodeType;
  43. std::string nodeId;
  44. std::string storageSize;
  45. std::string instanceClass;
  46. };
  47. std::string instanceName;
  48. std::string backupDownloadURL;
  49. std::string backupIntranetDownloadURL;
  50. std::string backupEndTime;
  51. std::string backupSize;
  52. std::string backupStartTime;
  53. std::string backupId;
  54. std::string isAvail;
  55. ExtraInfo1 extraInfo1;
  56. std::string backupStatus;
  57. std::string backupName;
  58. };
  59. std::string clusterBackupId;
  60. std::string clusterBackupStartTime;
  61. std::string progress;
  62. std::string attachLogStatus;
  63. std::string clusterBackupStatus;
  64. std::string engineVersion;
  65. std::string clusterBackupSize;
  66. std::vector<ClusterBackup::Backup> backups;
  67. std::string clusterBackupEndTime;
  68. std::string clusterBackupMode;
  69. ExtraInfo extraInfo;
  70. int isAvail;
  71. };
  72. DescribeClusterBackupsResult();
  73. explicit DescribeClusterBackupsResult(const std::string &payload);
  74. ~DescribeClusterBackupsResult();
  75. std::vector<ClusterBackup> getClusterBackups()const;
  76. int getPageSize()const;
  77. int getPageNumber()const;
  78. int getMaxResults()const;
  79. protected:
  80. void parse(const std::string &payload);
  81. private:
  82. std::vector<ClusterBackup> clusterBackups_;
  83. int pageSize_;
  84. int pageNumber_;
  85. int maxResults_;
  86. };
  87. }
  88. }
  89. }
  90. #endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBECLUSTERBACKUPSRESULT_H_