ModifyDBClusterPrimaryZoneRequest.cc 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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/polardb/model/ModifyDBClusterPrimaryZoneRequest.h>
  17. using AlibabaCloud::Polardb::Model::ModifyDBClusterPrimaryZoneRequest;
  18. ModifyDBClusterPrimaryZoneRequest::ModifyDBClusterPrimaryZoneRequest()
  19. : RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterPrimaryZone") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ModifyDBClusterPrimaryZoneRequest::~ModifyDBClusterPrimaryZoneRequest() {}
  23. long ModifyDBClusterPrimaryZoneRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void ModifyDBClusterPrimaryZoneRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. std::string ModifyDBClusterPrimaryZoneRequest::getPlannedEndTime() const {
  31. return plannedEndTime_;
  32. }
  33. void ModifyDBClusterPrimaryZoneRequest::setPlannedEndTime(const std::string &plannedEndTime) {
  34. plannedEndTime_ = plannedEndTime;
  35. setParameter(std::string("PlannedEndTime"), plannedEndTime);
  36. }
  37. std::string ModifyDBClusterPrimaryZoneRequest::getAccessKeyId() const {
  38. return accessKeyId_;
  39. }
  40. void ModifyDBClusterPrimaryZoneRequest::setAccessKeyId(const std::string &accessKeyId) {
  41. accessKeyId_ = accessKeyId;
  42. setParameter(std::string("AccessKeyId"), accessKeyId);
  43. }
  44. std::string ModifyDBClusterPrimaryZoneRequest::getResourceOwnerAccount() const {
  45. return resourceOwnerAccount_;
  46. }
  47. void ModifyDBClusterPrimaryZoneRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  48. resourceOwnerAccount_ = resourceOwnerAccount;
  49. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  50. }
  51. std::string ModifyDBClusterPrimaryZoneRequest::getDBClusterId() const {
  52. return dBClusterId_;
  53. }
  54. void ModifyDBClusterPrimaryZoneRequest::setDBClusterId(const std::string &dBClusterId) {
  55. dBClusterId_ = dBClusterId;
  56. setParameter(std::string("DBClusterId"), dBClusterId);
  57. }
  58. std::string ModifyDBClusterPrimaryZoneRequest::getOwnerAccount() const {
  59. return ownerAccount_;
  60. }
  61. void ModifyDBClusterPrimaryZoneRequest::setOwnerAccount(const std::string &ownerAccount) {
  62. ownerAccount_ = ownerAccount;
  63. setParameter(std::string("OwnerAccount"), ownerAccount);
  64. }
  65. long ModifyDBClusterPrimaryZoneRequest::getOwnerId() const {
  66. return ownerId_;
  67. }
  68. void ModifyDBClusterPrimaryZoneRequest::setOwnerId(long ownerId) {
  69. ownerId_ = ownerId;
  70. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  71. }
  72. std::string ModifyDBClusterPrimaryZoneRequest::getIsSwitchOverForDisaster() const {
  73. return isSwitchOverForDisaster_;
  74. }
  75. void ModifyDBClusterPrimaryZoneRequest::setIsSwitchOverForDisaster(const std::string &isSwitchOverForDisaster) {
  76. isSwitchOverForDisaster_ = isSwitchOverForDisaster;
  77. setParameter(std::string("IsSwitchOverForDisaster"), isSwitchOverForDisaster);
  78. }
  79. std::string ModifyDBClusterPrimaryZoneRequest::getVSwitchId() const {
  80. return vSwitchId_;
  81. }
  82. void ModifyDBClusterPrimaryZoneRequest::setVSwitchId(const std::string &vSwitchId) {
  83. vSwitchId_ = vSwitchId;
  84. setParameter(std::string("VSwitchId"), vSwitchId);
  85. }
  86. std::string ModifyDBClusterPrimaryZoneRequest::getPlannedStartTime() const {
  87. return plannedStartTime_;
  88. }
  89. void ModifyDBClusterPrimaryZoneRequest::setPlannedStartTime(const std::string &plannedStartTime) {
  90. plannedStartTime_ = plannedStartTime;
  91. setParameter(std::string("PlannedStartTime"), plannedStartTime);
  92. }
  93. std::string ModifyDBClusterPrimaryZoneRequest::getVPCId() const {
  94. return vPCId_;
  95. }
  96. void ModifyDBClusterPrimaryZoneRequest::setVPCId(const std::string &vPCId) {
  97. vPCId_ = vPCId;
  98. setParameter(std::string("VPCId"), vPCId);
  99. }
  100. std::string ModifyDBClusterPrimaryZoneRequest::getZoneId() const {
  101. return zoneId_;
  102. }
  103. void ModifyDBClusterPrimaryZoneRequest::setZoneId(const std::string &zoneId) {
  104. zoneId_ = zoneId;
  105. setParameter(std::string("ZoneId"), zoneId);
  106. }
  107. bool ModifyDBClusterPrimaryZoneRequest::getFromTimeService() const {
  108. return fromTimeService_;
  109. }
  110. void ModifyDBClusterPrimaryZoneRequest::setFromTimeService(bool fromTimeService) {
  111. fromTimeService_ = fromTimeService;
  112. setParameter(std::string("FromTimeService"), fromTimeService ? "true" : "false");
  113. }