CreateJobGroupResult.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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_CREATEJOBGROUPRESULT_H_
  17. #define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPRESULT_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 CreateJobGroupResult : public ServiceResult
  30. {
  31. public:
  32. struct JobGroup
  33. {
  34. struct ExportProgress
  35. {
  36. std::string status;
  37. std::string progress;
  38. std::string fileHttpUrl;
  39. };
  40. struct Strategy
  41. {
  42. struct TimeFrame
  43. {
  44. std::string endTime;
  45. std::string beginTime;
  46. };
  47. std::vector<TimeFrame> workingTime;
  48. bool isTemplate;
  49. int minAttemptInterval;
  50. std::string repeatBy;
  51. long endTime;
  52. long startTime;
  53. std::string strategyId;
  54. std::string followUpStrategy;
  55. std::string type;
  56. std::string strategyName;
  57. std::string customized;
  58. std::string strategyDescription;
  59. int maxAttemptsPerDay;
  60. std::string routingStrategy;
  61. std::vector<std::string> repeatDays;
  62. };
  63. struct RecallStrategy
  64. {
  65. bool outOfServiceIgnore;
  66. bool emptyNumberIgnore;
  67. bool inArrearsIgnore;
  68. };
  69. std::string status;
  70. std::string modifyTime;
  71. std::string scenarioId;
  72. std::string jobDataParsingTaskId;
  73. std::string jobGroupName;
  74. std::string scriptVersion;
  75. std::string priority;
  76. std::string jobGroupDescription;
  77. long ringingDuration;
  78. long minConcurrency;
  79. std::string jobGroupId;
  80. std::string scriptName;
  81. long creationTime;
  82. Strategy strategy;
  83. std::string jobFilePath;
  84. ExportProgress exportProgress;
  85. std::vector<std::string> recallCallingNumbers;
  86. RecallStrategy recallStrategy;
  87. std::vector<std::string> callingNumbers;
  88. };
  89. CreateJobGroupResult();
  90. explicit CreateJobGroupResult(const std::string &payload);
  91. ~CreateJobGroupResult();
  92. JobGroup getJobGroup()const;
  93. std::string getMessage()const;
  94. int getHttpStatusCode()const;
  95. std::string getCode()const;
  96. bool getSuccess()const;
  97. protected:
  98. void parse(const std::string &payload);
  99. private:
  100. JobGroup jobGroup_;
  101. std::string message_;
  102. int httpStatusCode_;
  103. std::string code_;
  104. bool success_;
  105. };
  106. }
  107. }
  108. }
  109. #endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPRESULT_H_