DescribePackageDeductionsResult.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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_WSS_MODEL_DESCRIBEPACKAGEDEDUCTIONSRESULT_H_
  17. #define ALIBABACLOUD_WSS_MODEL_DESCRIBEPACKAGEDEDUCTIONSRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/wss/WssExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Wss
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_WSS_EXPORT DescribePackageDeductionsResult : public ServiceResult
  30. {
  31. public:
  32. struct Deduction
  33. {
  34. std::string endTime;
  35. float usedCoreTime;
  36. long memory;
  37. std::string desktopName;
  38. std::string desktopId;
  39. int cpu;
  40. std::string resourceType;
  41. std::string gpu;
  42. std::string instanceState;
  43. std::string desktopType;
  44. std::string osType;
  45. long usedTime;
  46. std::string regionId;
  47. std::string staTime;
  48. };
  49. DescribePackageDeductionsResult();
  50. explicit DescribePackageDeductionsResult(const std::string &payload);
  51. ~DescribePackageDeductionsResult();
  52. long getTotalCount()const;
  53. int getPageNum()const;
  54. int getPageSize()const;
  55. long getTotalUsedTime()const;
  56. std::vector<Deduction> getDeductions()const;
  57. float getTotalUsedCoreTime()const;
  58. protected:
  59. void parse(const std::string &payload);
  60. private:
  61. long totalCount_;
  62. int pageNum_;
  63. int pageSize_;
  64. long totalUsedTime_;
  65. std::vector<Deduction> deductions_;
  66. float totalUsedCoreTime_;
  67. };
  68. }
  69. }
  70. }
  71. #endif // !ALIBABACLOUD_WSS_MODEL_DESCRIBEPACKAGEDEDUCTIONSRESULT_H_