DescribeDBInstancesOverviewResult.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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_DESCRIBEDBINSTANCESOVERVIEWRESULT_H_
  17. #define ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCESOVERVIEWRESULT_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 DescribeDBInstancesOverviewResult : public ServiceResult
  30. {
  31. public:
  32. struct DBInstance
  33. {
  34. struct Tag
  35. {
  36. std::string value;
  37. std::string key;
  38. };
  39. struct ShardAttribute
  40. {
  41. std::string nodeClass;
  42. std::string nodeDescription;
  43. int readonlyReplicas;
  44. int nodeStorage;
  45. std::string nodeId;
  46. };
  47. struct MongosAttribute
  48. {
  49. std::string nodeClass;
  50. std::string nodeDescription;
  51. std::string nodeId;
  52. };
  53. std::string resourceGroupId;
  54. std::string capacityUnit;
  55. std::string destroyTime;
  56. std::string dBInstanceType;
  57. std::vector<DBInstance::MongosAttribute> mongosList;
  58. std::string dBInstanceId;
  59. std::string networkType;
  60. std::string lastDowngradeTime;
  61. int dBInstanceStorage;
  62. std::vector<DBInstance::Tag> tags;
  63. std::string engine;
  64. std::string dBInstanceDescription;
  65. std::string engineVersion;
  66. std::string dBInstanceStatus;
  67. std::string zoneId;
  68. std::string replicationFactor;
  69. std::string dBInstanceClass;
  70. std::vector<DBInstance::ShardAttribute> shardList;
  71. std::string lockMode;
  72. std::string chargeType;
  73. std::string vpcAuthMode;
  74. std::string creationTime;
  75. std::string regionId;
  76. std::string expireTime;
  77. std::string kindCode;
  78. };
  79. DescribeDBInstancesOverviewResult();
  80. explicit DescribeDBInstancesOverviewResult(const std::string &payload);
  81. ~DescribeDBInstancesOverviewResult();
  82. std::string getTotalCount()const;
  83. std::vector<DBInstance> getDBInstances()const;
  84. protected:
  85. void parse(const std::string &payload);
  86. private:
  87. std::string totalCount_;
  88. std::vector<DBInstance> dBInstances_;
  89. };
  90. }
  91. }
  92. }
  93. #endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCESOVERVIEWRESULT_H_