SetRuleRequest.cc 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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. #include <alibabacloud/slb/model/SetRuleRequest.h>
  17. using AlibabaCloud::Slb::Model::SetRuleRequest;
  18. SetRuleRequest::SetRuleRequest() :
  19. RpcServiceRequest("slb", "2014-05-15", "SetRule")
  20. {}
  21. SetRuleRequest::~SetRuleRequest()
  22. {}
  23. std::string SetRuleRequest::getAccess_key_id()const
  24. {
  25. return access_key_id_;
  26. }
  27. void SetRuleRequest::setAccess_key_id(const std::string& access_key_id)
  28. {
  29. access_key_id_ = access_key_id;
  30. setCoreParameter("Access_key_id", access_key_id);
  31. }
  32. long SetRuleRequest::getResourceOwnerId()const
  33. {
  34. return resourceOwnerId_;
  35. }
  36. void SetRuleRequest::setResourceOwnerId(long resourceOwnerId)
  37. {
  38. resourceOwnerId_ = resourceOwnerId;
  39. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  40. }
  41. int SetRuleRequest::getHealthCheckTimeout()const
  42. {
  43. return healthCheckTimeout_;
  44. }
  45. void SetRuleRequest::setHealthCheckTimeout(int healthCheckTimeout)
  46. {
  47. healthCheckTimeout_ = healthCheckTimeout;
  48. setCoreParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout));
  49. }
  50. std::string SetRuleRequest::getHealthCheckURI()const
  51. {
  52. return healthCheckURI_;
  53. }
  54. void SetRuleRequest::setHealthCheckURI(const std::string& healthCheckURI)
  55. {
  56. healthCheckURI_ = healthCheckURI;
  57. setCoreParameter("HealthCheckURI", healthCheckURI);
  58. }
  59. std::string SetRuleRequest::getRuleName()const
  60. {
  61. return ruleName_;
  62. }
  63. void SetRuleRequest::setRuleName(const std::string& ruleName)
  64. {
  65. ruleName_ = ruleName;
  66. setCoreParameter("RuleName", ruleName);
  67. }
  68. int SetRuleRequest::getUnhealthyThreshold()const
  69. {
  70. return unhealthyThreshold_;
  71. }
  72. void SetRuleRequest::setUnhealthyThreshold(int unhealthyThreshold)
  73. {
  74. unhealthyThreshold_ = unhealthyThreshold;
  75. setCoreParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold));
  76. }
  77. int SetRuleRequest::getHealthyThreshold()const
  78. {
  79. return healthyThreshold_;
  80. }
  81. void SetRuleRequest::setHealthyThreshold(int healthyThreshold)
  82. {
  83. healthyThreshold_ = healthyThreshold;
  84. setCoreParameter("HealthyThreshold", std::to_string(healthyThreshold));
  85. }
  86. std::string SetRuleRequest::getScheduler()const
  87. {
  88. return scheduler_;
  89. }
  90. void SetRuleRequest::setScheduler(const std::string& scheduler)
  91. {
  92. scheduler_ = scheduler;
  93. setCoreParameter("Scheduler", scheduler);
  94. }
  95. std::string SetRuleRequest::getHealthCheck()const
  96. {
  97. return healthCheck_;
  98. }
  99. void SetRuleRequest::setHealthCheck(const std::string& healthCheck)
  100. {
  101. healthCheck_ = healthCheck;
  102. setCoreParameter("HealthCheck", healthCheck);
  103. }
  104. std::string SetRuleRequest::getRegionId()const
  105. {
  106. return regionId_;
  107. }
  108. void SetRuleRequest::setRegionId(const std::string& regionId)
  109. {
  110. regionId_ = regionId;
  111. setCoreParameter("RegionId", regionId);
  112. }
  113. std::string SetRuleRequest::getListenerSync()const
  114. {
  115. return listenerSync_;
  116. }
  117. void SetRuleRequest::setListenerSync(const std::string& listenerSync)
  118. {
  119. listenerSync_ = listenerSync;
  120. setCoreParameter("ListenerSync", listenerSync);
  121. }
  122. int SetRuleRequest::getCookieTimeout()const
  123. {
  124. return cookieTimeout_;
  125. }
  126. void SetRuleRequest::setCookieTimeout(int cookieTimeout)
  127. {
  128. cookieTimeout_ = cookieTimeout;
  129. setCoreParameter("CookieTimeout", std::to_string(cookieTimeout));
  130. }
  131. std::string SetRuleRequest::getStickySessionType()const
  132. {
  133. return stickySessionType_;
  134. }
  135. void SetRuleRequest::setStickySessionType(const std::string& stickySessionType)
  136. {
  137. stickySessionType_ = stickySessionType;
  138. setCoreParameter("StickySessionType", stickySessionType);
  139. }
  140. std::string SetRuleRequest::getVServerGroupId()const
  141. {
  142. return vServerGroupId_;
  143. }
  144. void SetRuleRequest::setVServerGroupId(const std::string& vServerGroupId)
  145. {
  146. vServerGroupId_ = vServerGroupId;
  147. setCoreParameter("VServerGroupId", vServerGroupId);
  148. }
  149. std::string SetRuleRequest::getCookie()const
  150. {
  151. return cookie_;
  152. }
  153. void SetRuleRequest::setCookie(const std::string& cookie)
  154. {
  155. cookie_ = cookie;
  156. setCoreParameter("Cookie", cookie);
  157. }
  158. std::string SetRuleRequest::getResourceOwnerAccount()const
  159. {
  160. return resourceOwnerAccount_;
  161. }
  162. void SetRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  163. {
  164. resourceOwnerAccount_ = resourceOwnerAccount;
  165. setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
  166. }
  167. std::string SetRuleRequest::getStickySession()const
  168. {
  169. return stickySession_;
  170. }
  171. void SetRuleRequest::setStickySession(const std::string& stickySession)
  172. {
  173. stickySession_ = stickySession;
  174. setCoreParameter("StickySession", stickySession);
  175. }
  176. std::string SetRuleRequest::getHealthCheckDomain()const
  177. {
  178. return healthCheckDomain_;
  179. }
  180. void SetRuleRequest::setHealthCheckDomain(const std::string& healthCheckDomain)
  181. {
  182. healthCheckDomain_ = healthCheckDomain;
  183. setCoreParameter("HealthCheckDomain", healthCheckDomain);
  184. }
  185. std::string SetRuleRequest::getOwnerAccount()const
  186. {
  187. return ownerAccount_;
  188. }
  189. void SetRuleRequest::setOwnerAccount(const std::string& ownerAccount)
  190. {
  191. ownerAccount_ = ownerAccount;
  192. setCoreParameter("OwnerAccount", ownerAccount);
  193. }
  194. long SetRuleRequest::getOwnerId()const
  195. {
  196. return ownerId_;
  197. }
  198. void SetRuleRequest::setOwnerId(long ownerId)
  199. {
  200. ownerId_ = ownerId;
  201. setCoreParameter("OwnerId", std::to_string(ownerId));
  202. }
  203. std::string SetRuleRequest::getTags()const
  204. {
  205. return tags_;
  206. }
  207. void SetRuleRequest::setTags(const std::string& tags)
  208. {
  209. tags_ = tags;
  210. setCoreParameter("Tags", tags);
  211. }
  212. int SetRuleRequest::getHealthCheckInterval()const
  213. {
  214. return healthCheckInterval_;
  215. }
  216. void SetRuleRequest::setHealthCheckInterval(int healthCheckInterval)
  217. {
  218. healthCheckInterval_ = healthCheckInterval;
  219. setCoreParameter("HealthCheckInterval", std::to_string(healthCheckInterval));
  220. }
  221. std::string SetRuleRequest::getRuleId()const
  222. {
  223. return ruleId_;
  224. }
  225. void SetRuleRequest::setRuleId(const std::string& ruleId)
  226. {
  227. ruleId_ = ruleId;
  228. setCoreParameter("RuleId", ruleId);
  229. }
  230. int SetRuleRequest::getHealthCheckConnectPort()const
  231. {
  232. return healthCheckConnectPort_;
  233. }
  234. void SetRuleRequest::setHealthCheckConnectPort(int healthCheckConnectPort)
  235. {
  236. healthCheckConnectPort_ = healthCheckConnectPort;
  237. setCoreParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort));
  238. }
  239. std::string SetRuleRequest::getHealthCheckHttpCode()const
  240. {
  241. return healthCheckHttpCode_;
  242. }
  243. void SetRuleRequest::setHealthCheckHttpCode(const std::string& healthCheckHttpCode)
  244. {
  245. healthCheckHttpCode_ = healthCheckHttpCode;
  246. setCoreParameter("HealthCheckHttpCode", healthCheckHttpCode);
  247. }