EnableCenVbrHealthCheckRequest.cc 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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/cbn/model/EnableCenVbrHealthCheckRequest.h>
  17. using AlibabaCloud::Cbn::Model::EnableCenVbrHealthCheckRequest;
  18. EnableCenVbrHealthCheckRequest::EnableCenVbrHealthCheckRequest()
  19. : RpcServiceRequest("cbn", "2017-09-12", "EnableCenVbrHealthCheck") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. EnableCenVbrHealthCheckRequest::~EnableCenVbrHealthCheckRequest() {}
  23. long EnableCenVbrHealthCheckRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void EnableCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. std::string EnableCenVbrHealthCheckRequest::getCenId() const {
  31. return cenId_;
  32. }
  33. void EnableCenVbrHealthCheckRequest::setCenId(const std::string &cenId) {
  34. cenId_ = cenId;
  35. setParameter(std::string("CenId"), cenId);
  36. }
  37. std::string EnableCenVbrHealthCheckRequest::getHealthCheckTargetIp() const {
  38. return healthCheckTargetIp_;
  39. }
  40. void EnableCenVbrHealthCheckRequest::setHealthCheckTargetIp(const std::string &healthCheckTargetIp) {
  41. healthCheckTargetIp_ = healthCheckTargetIp;
  42. setParameter(std::string("HealthCheckTargetIp"), healthCheckTargetIp);
  43. }
  44. std::string EnableCenVbrHealthCheckRequest::getDescription() const {
  45. return description_;
  46. }
  47. void EnableCenVbrHealthCheckRequest::setDescription(const std::string &description) {
  48. description_ = description;
  49. setParameter(std::string("Description"), description);
  50. }
  51. int EnableCenVbrHealthCheckRequest::getHealthyThreshold() const {
  52. return healthyThreshold_;
  53. }
  54. void EnableCenVbrHealthCheckRequest::setHealthyThreshold(int healthyThreshold) {
  55. healthyThreshold_ = healthyThreshold;
  56. setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold));
  57. }
  58. long EnableCenVbrHealthCheckRequest::getVbrInstanceOwnerId() const {
  59. return vbrInstanceOwnerId_;
  60. }
  61. void EnableCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId) {
  62. vbrInstanceOwnerId_ = vbrInstanceOwnerId;
  63. setParameter(std::string("VbrInstanceOwnerId"), std::to_string(vbrInstanceOwnerId));
  64. }
  65. bool EnableCenVbrHealthCheckRequest::getHealthCheckOnly() const {
  66. return healthCheckOnly_;
  67. }
  68. void EnableCenVbrHealthCheckRequest::setHealthCheckOnly(bool healthCheckOnly) {
  69. healthCheckOnly_ = healthCheckOnly;
  70. setParameter(std::string("HealthCheckOnly"), healthCheckOnly ? "true" : "false");
  71. }
  72. std::string EnableCenVbrHealthCheckRequest::getVbrInstanceRegionId() const {
  73. return vbrInstanceRegionId_;
  74. }
  75. void EnableCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string &vbrInstanceRegionId) {
  76. vbrInstanceRegionId_ = vbrInstanceRegionId;
  77. setParameter(std::string("VbrInstanceRegionId"), vbrInstanceRegionId);
  78. }
  79. std::string EnableCenVbrHealthCheckRequest::getResourceOwnerAccount() const {
  80. return resourceOwnerAccount_;
  81. }
  82. void EnableCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  83. resourceOwnerAccount_ = resourceOwnerAccount;
  84. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  85. }
  86. std::string EnableCenVbrHealthCheckRequest::getOwnerAccount() const {
  87. return ownerAccount_;
  88. }
  89. void EnableCenVbrHealthCheckRequest::setOwnerAccount(const std::string &ownerAccount) {
  90. ownerAccount_ = ownerAccount;
  91. setParameter(std::string("OwnerAccount"), ownerAccount);
  92. }
  93. long EnableCenVbrHealthCheckRequest::getOwnerId() const {
  94. return ownerId_;
  95. }
  96. void EnableCenVbrHealthCheckRequest::setOwnerId(long ownerId) {
  97. ownerId_ = ownerId;
  98. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  99. }
  100. std::string EnableCenVbrHealthCheckRequest::getVersion() const {
  101. return version_;
  102. }
  103. void EnableCenVbrHealthCheckRequest::setVersion(const std::string &version) {
  104. version_ = version;
  105. setParameter(std::string("Version"), version);
  106. }
  107. std::string EnableCenVbrHealthCheckRequest::getHealthCheckSourceIp() const {
  108. return healthCheckSourceIp_;
  109. }
  110. void EnableCenVbrHealthCheckRequest::setHealthCheckSourceIp(const std::string &healthCheckSourceIp) {
  111. healthCheckSourceIp_ = healthCheckSourceIp;
  112. setParameter(std::string("HealthCheckSourceIp"), healthCheckSourceIp);
  113. }
  114. int EnableCenVbrHealthCheckRequest::getHealthCheckInterval() const {
  115. return healthCheckInterval_;
  116. }
  117. void EnableCenVbrHealthCheckRequest::setHealthCheckInterval(int healthCheckInterval) {
  118. healthCheckInterval_ = healthCheckInterval;
  119. setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval));
  120. }
  121. std::string EnableCenVbrHealthCheckRequest::getVbrInstanceId() const {
  122. return vbrInstanceId_;
  123. }
  124. void EnableCenVbrHealthCheckRequest::setVbrInstanceId(const std::string &vbrInstanceId) {
  125. vbrInstanceId_ = vbrInstanceId;
  126. setParameter(std::string("VbrInstanceId"), vbrInstanceId);
  127. }