CreateHealthCheckTemplateRequest.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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_ALB_MODEL_CREATEHEALTHCHECKTEMPLATEREQUEST_H_
  17. #define ALIBABACLOUD_ALB_MODEL_CREATEHEALTHCHECKTEMPLATEREQUEST_H_
  18. #include <alibabacloud/alb/AlbExport.h>
  19. #include <alibabacloud/core/RpcServiceRequest.h>
  20. #include <string>
  21. #include <vector>
  22. #include <map>
  23. namespace AlibabaCloud {
  24. namespace Alb {
  25. namespace Model {
  26. class ALIBABACLOUD_ALB_EXPORT CreateHealthCheckTemplateRequest : public RpcServiceRequest {
  27. public:
  28. CreateHealthCheckTemplateRequest();
  29. ~CreateHealthCheckTemplateRequest();
  30. int getHealthCheckTimeout() const;
  31. void setHealthCheckTimeout(int healthCheckTimeout);
  32. std::string getClientToken() const;
  33. void setClientToken(const std::string &clientToken);
  34. std::string getHealthCheckProtocol() const;
  35. void setHealthCheckProtocol(const std::string &healthCheckProtocol);
  36. int getUnhealthyThreshold() const;
  37. void setUnhealthyThreshold(int unhealthyThreshold);
  38. int getHealthyThreshold() const;
  39. void setHealthyThreshold(int healthyThreshold);
  40. bool getHealthCheckTcpFastCloseEnabled() const;
  41. void setHealthCheckTcpFastCloseEnabled(bool healthCheckTcpFastCloseEnabled);
  42. std::string getHealthCheckPath() const;
  43. void setHealthCheckPath(const std::string &healthCheckPath);
  44. std::vector<std::string> getHealthCheckCodes() const;
  45. void setHealthCheckCodes(const std::vector<std::string> &healthCheckCodes);
  46. bool getDryRun() const;
  47. void setDryRun(bool dryRun);
  48. std::string getHealthCheckMethod() const;
  49. void setHealthCheckMethod(const std::string &healthCheckMethod);
  50. std::string getHealthCheckHost() const;
  51. void setHealthCheckHost(const std::string &healthCheckHost);
  52. int getHealthCheckInterval() const;
  53. void setHealthCheckInterval(int healthCheckInterval);
  54. std::string getHealthCheckTemplateName() const;
  55. void setHealthCheckTemplateName(const std::string &healthCheckTemplateName);
  56. std::vector<std::string> getHealthCheckHttpCodes() const;
  57. void setHealthCheckHttpCodes(const std::vector<std::string> &healthCheckHttpCodes);
  58. std::string getHealthCheckHttpVersion() const;
  59. void setHealthCheckHttpVersion(const std::string &healthCheckHttpVersion);
  60. int getHealthCheckConnectPort() const;
  61. void setHealthCheckConnectPort(int healthCheckConnectPort);
  62. private:
  63. int healthCheckTimeout_;
  64. std::string clientToken_;
  65. std::string healthCheckProtocol_;
  66. int unhealthyThreshold_;
  67. int healthyThreshold_;
  68. bool healthCheckTcpFastCloseEnabled_;
  69. std::string healthCheckPath_;
  70. std::vector<std::string> healthCheckCodes_;
  71. bool dryRun_;
  72. std::string healthCheckMethod_;
  73. std::string healthCheckHost_;
  74. int healthCheckInterval_;
  75. std::string healthCheckTemplateName_;
  76. std::vector<std::string> healthCheckHttpCodes_;
  77. std::string healthCheckHttpVersion_;
  78. int healthCheckConnectPort_;
  79. };
  80. } // namespace Model
  81. } // namespace Alb
  82. } // namespace AlibabaCloud
  83. #endif // !ALIBABACLOUD_ALB_MODEL_CREATEHEALTHCHECKTEMPLATEREQUEST_H_