QueryInstanceBillResult.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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_QUERYINSTANCEBILLRESULT_H_
  17. #define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLRESULT_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 QueryInstanceBillResult : public ServiceResult
  30. {
  31. public:
  32. struct Data
  33. {
  34. struct Item
  35. {
  36. std::string instanceSpec;
  37. std::string productName;
  38. std::string instanceID;
  39. float deductedByCashCoupons;
  40. std::string listPriceUnit;
  41. float listPrice;
  42. float paymentAmount;
  43. float deductedByPrepaidCard;
  44. float invoiceDiscount;
  45. std::string subscriptionType;
  46. std::string item;
  47. float pretaxGrossAmount;
  48. std::string instanceConfig;
  49. std::string currency;
  50. std::string costUnit;
  51. std::string resourceGroup;
  52. std::string billingType;
  53. float usage;
  54. float deductedByCoupons;
  55. std::string productDetail;
  56. std::string productCode;
  57. std::string zone;
  58. std::string productType;
  59. float outstandingAmount;
  60. std::string billingItem;
  61. std::string nickName;
  62. std::string intranetIP;
  63. std::string servicePeriod;
  64. float deductedByResourcePackage;
  65. std::string usageUnit;
  66. long ownerID;
  67. float pretaxAmount;
  68. std::string internetIP;
  69. std::string region;
  70. std::string tag;
  71. };
  72. std::string billingCycle;
  73. int totalCount;
  74. std::string accountID;
  75. int pageNum;
  76. int pageSize;
  77. std::vector<Item> items;
  78. std::string accountName;
  79. };
  80. QueryInstanceBillResult();
  81. explicit QueryInstanceBillResult(const std::string &payload);
  82. ~QueryInstanceBillResult();
  83. std::string getMessage()const;
  84. Data getData()const;
  85. std::string getCode()const;
  86. bool getSuccess()const;
  87. protected:
  88. void parse(const std::string &payload);
  89. private:
  90. std::string message_;
  91. Data data_;
  92. std::string code_;
  93. bool success_;
  94. };
  95. }
  96. }
  97. }
  98. #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLRESULT_H_