ListJobGroupsAsyncResult.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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_OUTBOUNDBOT_MODEL_LISTJOBGROUPSASYNCRESULT_H_
  17. #define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSASYNCRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/outboundbot/OutboundBotExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace OutboundBot
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListJobGroupsAsyncResult : public ServiceResult
  30. {
  31. public:
  32. struct JobGroup
  33. {
  34. struct Strategy
  35. {
  36. long endTime;
  37. long startTime;
  38. };
  39. struct Progress
  40. {
  41. std::string status;
  42. int pausedNum;
  43. int failedNum;
  44. long startTime;
  45. int cancelledNum;
  46. int executingNum;
  47. int duration;
  48. int scheduling;
  49. int totalCompleted;
  50. int totalNotAnswered;
  51. int totalJobs;
  52. };
  53. struct ExportProgress
  54. {
  55. std::string status;
  56. std::string progress;
  57. std::string fileHttpUrl;
  58. };
  59. std::string status;
  60. std::string modifyTime;
  61. Progress progress;
  62. std::string jobDataParsingTaskId;
  63. std::string jobGroupName;
  64. std::string scriptVersion;
  65. std::string scriptId;
  66. std::string jobGroupDescription;
  67. int minConcurrency;
  68. std::string jobGroupId;
  69. int totalCallNum;
  70. std::string scriptName;
  71. long creationTime;
  72. Strategy strategy;
  73. ExportProgress exportProgress;
  74. };
  75. ListJobGroupsAsyncResult();
  76. explicit ListJobGroupsAsyncResult(const std::string &payload);
  77. ~ListJobGroupsAsyncResult();
  78. int getTotalCount()const;
  79. std::string getMessage()const;
  80. int getPageSize()const;
  81. int getPageNumber()const;
  82. bool getTimeout()const;
  83. int getHttpStatusCode()const;
  84. std::string getCode()const;
  85. std::vector<JobGroup> getJobGroups()const;
  86. bool getSuccess()const;
  87. bool getVaild()const;
  88. protected:
  89. void parse(const std::string &payload);
  90. private:
  91. int totalCount_;
  92. std::string message_;
  93. int pageSize_;
  94. int pageNumber_;
  95. bool timeout_;
  96. int httpStatusCode_;
  97. std::string code_;
  98. std::vector<JobGroup> jobGroups_;
  99. bool success_;
  100. bool vaild_;
  101. };
  102. }
  103. }
  104. }
  105. #endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSASYNCRESULT_H_