UpdateGatewayRouteRequest.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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_MSE_MODEL_UPDATEGATEWAYROUTEREQUEST_H_
  17. #define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEREQUEST_H_
  18. #include <alibabacloud/mse/MseExport.h>
  19. #include <alibabacloud/core/RpcServiceRequest.h>
  20. #include <string>
  21. #include <vector>
  22. #include <map>
  23. namespace AlibabaCloud {
  24. namespace Mse {
  25. namespace Model {
  26. class ALIBABACLOUD_MSE_EXPORT UpdateGatewayRouteRequest : public RpcServiceRequest {
  27. public:
  28. struct Services {
  29. std::string name;
  30. std::string _namespace;
  31. std::string sourceType;
  32. long serviceId;
  33. int percent;
  34. std::string version;
  35. std::string groupName;
  36. };
  37. struct Predicates {
  38. struct PathPredicates {
  39. std::string path;
  40. bool ignoreCase;
  41. std::string type;
  42. };
  43. PathPredicates pathPredicates;
  44. std::string string;
  45. std::vector<std::string> methodPredicates;
  46. struct HeaderPredicatesItem {
  47. std::string type;
  48. std::string value;
  49. std::string key;
  50. };
  51. HeaderPredicatesItem headerPredicatesItem;
  52. std::vector<HeaderPredicatesItem> headerPredicates;
  53. struct QueryPredicatesItem {
  54. std::string type;
  55. std::string value;
  56. std::string key;
  57. };
  58. QueryPredicatesItem queryPredicatesItem;
  59. std::vector<QueryPredicatesItem> queryPredicates;
  60. };
  61. struct RedirectJSON {
  62. std::string path;
  63. int code;
  64. std::string host;
  65. };
  66. struct DirectResponseJSON {
  67. long code;
  68. std::string body;
  69. };
  70. UpdateGatewayRouteRequest();
  71. ~UpdateGatewayRouteRequest();
  72. std::string getGatewayUniqueId() const;
  73. void setGatewayUniqueId(const std::string &gatewayUniqueId);
  74. std::string getDestinationType() const;
  75. void setDestinationType(const std::string &destinationType);
  76. std::string getDomainIdListJSON() const;
  77. void setDomainIdListJSON(const std::string &domainIdListJSON);
  78. long getId() const;
  79. void setId(long id);
  80. long getGatewayId() const;
  81. void setGatewayId(long gatewayId);
  82. int getRouteOrder() const;
  83. void setRouteOrder(int routeOrder);
  84. bool getEnableWaf() const;
  85. void setEnableWaf(bool enableWaf);
  86. std::vector<Services> getServices() const;
  87. void setServices(const std::vector<Services> &services);
  88. Predicates getPredicates() const;
  89. void setPredicates(const Predicates &predicates);
  90. RedirectJSON getRedirectJSON() const;
  91. void setRedirectJSON(const RedirectJSON &redirectJSON);
  92. DirectResponseJSON getDirectResponseJSON() const;
  93. void setDirectResponseJSON(const DirectResponseJSON &directResponseJSON);
  94. std::string getName() const;
  95. void setName(const std::string &name);
  96. std::string getAcceptLanguage() const;
  97. void setAcceptLanguage(const std::string &acceptLanguage);
  98. private:
  99. std::string gatewayUniqueId_;
  100. std::string destinationType_;
  101. std::string domainIdListJSON_;
  102. long id_;
  103. long gatewayId_;
  104. int routeOrder_;
  105. bool enableWaf_;
  106. std::vector<Services> services_;
  107. Predicates predicates_;
  108. RedirectJSON redirectJSON_;
  109. DirectResponseJSON directResponseJSON_;
  110. std::string name_;
  111. std::string acceptLanguage_;
  112. };
  113. } // namespace Model
  114. } // namespace Mse
  115. } // namespace AlibabaCloud
  116. #endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEREQUEST_H_