QuerySavingsPlansInstanceResult.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCERESULT_H_
  17. #define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCERESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/bssopenapi/BssOpenApiExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace BssOpenApi
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySavingsPlansInstanceResult : public ServiceResult
  30. {
  31. public:
  32. struct Data
  33. {
  34. struct SavingsPlansDetailResponse
  35. {
  36. struct Tag
  37. {
  38. std::string value;
  39. std::string key;
  40. };
  41. std::string status;
  42. std::string allocationStatus;
  43. std::string endTime;
  44. long startTimestamp;
  45. std::string instanceId;
  46. std::string instanceFamily;
  47. std::string startTime;
  48. std::string totalSave;
  49. std::string prepayFee;
  50. long endTimestamp;
  51. std::string lastBillTotalUsage;
  52. std::string payMode;
  53. std::string cycle;
  54. std::string utilization;
  55. std::string lastBillUtilization;
  56. std::string currency;
  57. std::string poolValue;
  58. std::string region;
  59. std::vector<SavingsPlansDetailResponse::Tag> tags;
  60. std::string savingsType;
  61. std::string deductCycleType;
  62. };
  63. int totalCount;
  64. int pageNum;
  65. int pageSize;
  66. std::vector<SavingsPlansDetailResponse> items;
  67. };
  68. QuerySavingsPlansInstanceResult();
  69. explicit QuerySavingsPlansInstanceResult(const std::string &payload);
  70. ~QuerySavingsPlansInstanceResult();
  71. std::string getMessage()const;
  72. Data getData()const;
  73. std::string getCode()const;
  74. bool getSuccess()const;
  75. protected:
  76. void parse(const std::string &payload);
  77. private:
  78. std::string message_;
  79. Data data_;
  80. std::string code_;
  81. bool success_;
  82. };
  83. }
  84. }
  85. }
  86. #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCERESULT_H_