DescribeEventRuleTargetListResult.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 method;
  56. std::string id;
  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. struct OpenApiParametersItem
  69. {
  70. std::string role;
  71. std::string action;
  72. std::string version;
  73. std::string product;
  74. std::string region;
  75. std::string id;
  76. std::string arn;
  77. };
  78. DescribeEventRuleTargetListResult();
  79. explicit DescribeEventRuleTargetListResult(const std::string &payload);
  80. ~DescribeEventRuleTargetListResult();
  81. std::vector<ContactParameter> getContactParameters()const;
  82. std::vector<OpenApiParametersItem> getOpenApiParameters()const;
  83. std::string getMessage()const;
  84. std::vector<SlsParameter> getSlsParameters()const;
  85. std::vector<WebhookParameter> getWebhookParameters()const;
  86. std::vector<FCParameter> getFcParameters()const;
  87. std::string getCode()const;
  88. std::vector<MnsParameter> getMnsParameters()const;
  89. protected:
  90. void parse(const std::string &payload);
  91. private:
  92. std::vector<ContactParameter> contactParameters_;
  93. std::vector<OpenApiParametersItem> openApiParameters_;
  94. std::string message_;
  95. std::vector<SlsParameter> slsParameters_;
  96. std::vector<WebhookParameter> webhookParameters_;
  97. std::vector<FCParameter> fcParameters_;
  98. std::string code_;
  99. std::vector<MnsParameter> mnsParameters_;
  100. };
  101. }
  102. }
  103. }
  104. #endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTRESULT_H_