ListRegistrationPoliciesResult.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_CSAS_MODEL_LISTREGISTRATIONPOLICIESRESULT_H_
  17. #define ALIBABACLOUD_CSAS_MODEL_LISTREGISTRATIONPOLICIESRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/csas/CsasExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Csas
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_CSAS_EXPORT ListRegistrationPoliciesResult : public ServiceResult
  30. {
  31. public:
  32. struct DataList
  33. {
  34. struct LimitDetailItem
  35. {
  36. struct LimitCount
  37. {
  38. int all;
  39. int pC;
  40. int mobile;
  41. };
  42. LimitCount limitCount;
  43. std::string deviceBelong;
  44. std::string limitType;
  45. };
  46. std::string status;
  47. std::string matchMode;
  48. std::string description;
  49. long priority;
  50. std::string createTime;
  51. std::vector<std::string> userGroupIds;
  52. std::vector<DataList::LimitDetailItem> limitDetail;
  53. std::vector<std::string> whitelist;
  54. std::string policyId;
  55. std::string name;
  56. };
  57. ListRegistrationPoliciesResult();
  58. explicit ListRegistrationPoliciesResult(const std::string &payload);
  59. ~ListRegistrationPoliciesResult();
  60. std::vector<DataList> getPolicies()const;
  61. std::string getTotalNum()const;
  62. protected:
  63. void parse(const std::string &payload);
  64. private:
  65. std::vector<DataList> policies_;
  66. std::string totalNum_;
  67. };
  68. }
  69. }
  70. }
  71. #endif // !ALIBABACLOUD_CSAS_MODEL_LISTREGISTRATIONPOLICIESRESULT_H_