UpdateGatewayServiceTrafficPolicyResult.h 2.6 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_MSE_MODEL_UPDATEGATEWAYSERVICETRAFFICPOLICYRESULT_H_
  17. #define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYSERVICETRAFFICPOLICYRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/mse/MseExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Mse
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_MSE_EXPORT UpdateGatewayServiceTrafficPolicyResult : public ServiceResult
  30. {
  31. public:
  32. struct Data
  33. {
  34. struct GatewayTrafficPolicy
  35. {
  36. struct TlsSetting
  37. {
  38. std::string certId;
  39. std::string caCertContent;
  40. std::string tlsMode;
  41. std::string sni;
  42. };
  43. struct LoadBalancerSettings
  44. {
  45. struct ConsistentHashLBConfig
  46. {
  47. struct HttpCookie
  48. {
  49. std::string path;
  50. std::string tTL;
  51. std::string name;
  52. };
  53. std::string consistentHashLBType;
  54. std::string parameterName;
  55. HttpCookie httpCookie;
  56. };
  57. ConsistentHashLBConfig consistentHashLBConfig;
  58. std::string loadbalancerType;
  59. };
  60. TlsSetting tlsSetting;
  61. LoadBalancerSettings loadBalancerSettings;
  62. };
  63. std::string groupName;
  64. std::string gatewayUniqueId;
  65. std::string sourceType;
  66. std::string metaInfo;
  67. std::string _namespace;
  68. long id;
  69. GatewayTrafficPolicy gatewayTrafficPolicy;
  70. std::string name;
  71. };
  72. UpdateGatewayServiceTrafficPolicyResult();
  73. explicit UpdateGatewayServiceTrafficPolicyResult(const std::string &payload);
  74. ~UpdateGatewayServiceTrafficPolicyResult();
  75. std::string getMessage()const;
  76. int getHttpStatusCode()const;
  77. Data getData()const;
  78. int getCode()const;
  79. bool getSuccess()const;
  80. protected:
  81. void parse(const std::string &payload);
  82. private:
  83. std::string message_;
  84. int httpStatusCode_;
  85. Data data_;
  86. int code_;
  87. bool success_;
  88. };
  89. }
  90. }
  91. }
  92. #endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYSERVICETRAFFICPOLICYRESULT_H_