ModifyChatappTemplateRequest.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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_CAMS_MODEL_MODIFYCHATAPPTEMPLATEREQUEST_H_
  17. #define ALIBABACLOUD_CAMS_MODEL_MODIFYCHATAPPTEMPLATEREQUEST_H_
  18. #include <alibabacloud/cams/CamsExport.h>
  19. #include <alibabacloud/core/RpcServiceRequest.h>
  20. #include <string>
  21. #include <vector>
  22. #include <map>
  23. namespace AlibabaCloud {
  24. namespace Cams {
  25. namespace Model {
  26. class ALIBABACLOUD_CAMS_EXPORT ModifyChatappTemplateRequest : public RpcServiceRequest {
  27. public:
  28. struct Components {
  29. std::string type;
  30. std::string text;
  31. std::string format;
  32. std::string url;
  33. std::string caption;
  34. std::string fileName;
  35. struct ButtonsItem {
  36. std::string type;
  37. std::string text;
  38. std::string phoneNumber;
  39. std::string url;
  40. std::string urlType;
  41. std::string signatureHash;
  42. std::string packageName;
  43. std::string autofillText;
  44. bool isOptOut;
  45. std::string couponCode;
  46. std::string flowId;
  47. std::string flowAction;
  48. std::string navigateScreen;
  49. struct SupportedAppsItem {
  50. std::string signatureHash;
  51. std::string packageName;
  52. };
  53. SupportedAppsItem supportedAppsItem;
  54. std::vector<SupportedAppsItem> supportedApps;
  55. };
  56. ButtonsItem buttonsItem;
  57. std::vector<ButtonsItem> buttons;
  58. std::string thumbUrl;
  59. int duration;
  60. std::string fileType;
  61. int codeExpirationMinutes;
  62. bool addSecretRecommendation;
  63. bool hasExpiration;
  64. struct CardsItem {
  65. struct CardComponentsItem {
  66. std::string type;
  67. std::string format;
  68. std::string text;
  69. std::string url;
  70. struct ButtonsItem {
  71. std::string text;
  72. std::string type;
  73. std::string url;
  74. std::string urlType;
  75. std::string phoneNumber;
  76. };
  77. ButtonsItem buttonsItem;
  78. std::vector<ButtonsItem> buttons;
  79. };
  80. CardComponentsItem cardComponentsItem;
  81. std::vector<CardComponentsItem> cardComponents;
  82. };
  83. CardsItem cardsItem;
  84. std::vector<CardsItem> cards;
  85. };
  86. ModifyChatappTemplateRequest();
  87. ~ModifyChatappTemplateRequest();
  88. std::vector<Components> getComponents() const;
  89. void setComponents(const std::vector<Components> &components);
  90. std::string getLanguage() const;
  91. void setLanguage(const std::string &language);
  92. std::string getCustWabaId() const;
  93. void setCustWabaId(const std::string &custWabaId);
  94. std::map<std::string, std::string> getExample() const;
  95. void setExample(const std::map<std::string, std::string> &example);
  96. std::string getApiCode() const;
  97. void setApiCode(const std::string &apiCode);
  98. std::string getTemplateType() const;
  99. void setTemplateType(const std::string &templateType);
  100. std::string getTemplateName() const;
  101. void setTemplateName(const std::string &templateName);
  102. std::string getIsvCode() const;
  103. void setIsvCode(const std::string &isvCode);
  104. std::string getProdCode() const;
  105. void setProdCode(const std::string &prodCode);
  106. std::string getCustSpaceId() const;
  107. void setCustSpaceId(const std::string &custSpaceId);
  108. std::string getCategory() const;
  109. void setCategory(const std::string &category);
  110. int getMessageSendTtlSeconds() const;
  111. void setMessageSendTtlSeconds(int messageSendTtlSeconds);
  112. std::string getTemplateCode() const;
  113. void setTemplateCode(const std::string &templateCode);
  114. private:
  115. std::vector<Components> components_;
  116. std::string language_;
  117. std::string custWabaId_;
  118. std::map<std::string, std::string> example_;
  119. std::string apiCode_;
  120. std::string templateType_;
  121. std::string templateName_;
  122. std::string isvCode_;
  123. std::string prodCode_;
  124. std::string custSpaceId_;
  125. std::string category_;
  126. int messageSendTtlSeconds_;
  127. std::string templateCode_;
  128. };
  129. } // namespace Model
  130. } // namespace Cams
  131. } // namespace AlibabaCloud
  132. #endif // !ALIBABACLOUD_CAMS_MODEL_MODIFYCHATAPPTEMPLATEREQUEST_H_