DescribeEventRuleTargetListResult.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTRESULT_H_
  17. #define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/cms/CmsExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Cms
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleTargetListResult : public ServiceResult
  30. {
  31. public:
  32. struct ContactParameter
  33. {
  34. std::string contactGroupName;
  35. std::string level;
  36. std::string id;
  37. };
  38. struct FCParameter
  39. {
  40. std::string functionName;
  41. std::string serviceName;
  42. std::string region;
  43. std::string id;
  44. std::string arn;
  45. };
  46. struct MnsParameter
  47. {
  48. std::string region;
  49. std::string id;
  50. std::string arn;
  51. std::string queue;
  52. };
  53. struct WebhookParameter
  54. {
  55. std::string id;
  56. std::string method;
  57. std::string protocol;
  58. std::string url;
  59. };
  60. struct SlsParameter
  61. {
  62. std::string project;
  63. std::string logStore;
  64. std::string region;
  65. std::string id;
  66. std::string arn;
  67. };
  68. DescribeEventRuleTargetListResult();
  69. explicit DescribeEventRuleTargetListResult(const std::string &payload);
  70. ~DescribeEventRuleTargetListResult();
  71. std::vector<ContactParameter> getContactParameters()const;
  72. std::string getMessage()const;
  73. std::vector<SlsParameter> getSlsParameters()const;
  74. std::vector<WebhookParameter> getWebhookParameters()const;
  75. std::vector<FCParameter> getFcParameters()const;
  76. std::string getCode()const;
  77. std::vector<MnsParameter> getMnsParameters()const;
  78. protected:
  79. void parse(const std::string &payload);
  80. private:
  81. std::vector<ContactParameter> contactParameters_;
  82. std::string message_;
  83. std::vector<SlsParameter> slsParameters_;
  84. std::vector<WebhookParameter> webhookParameters_;
  85. std::vector<FCParameter> fcParameters_;
  86. std::string code_;
  87. std::vector<MnsParameter> mnsParameters_;
  88. };
  89. }
  90. }
  91. }
  92. #endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTRESULT_H_