MigrateToOtherZoneRequest.cc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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/rds/model/MigrateToOtherZoneRequest.h>
  17. using AlibabaCloud::Rds::Model::MigrateToOtherZoneRequest;
  18. MigrateToOtherZoneRequest::MigrateToOtherZoneRequest() :
  19. RpcServiceRequest("rds", "2014-08-15", "MigrateToOtherZone")
  20. {}
  21. MigrateToOtherZoneRequest::~MigrateToOtherZoneRequest()
  22. {}
  23. long MigrateToOtherZoneRequest::getResourceOwnerId()const
  24. {
  25. return resourceOwnerId_;
  26. }
  27. void MigrateToOtherZoneRequest::setResourceOwnerId(long resourceOwnerId)
  28. {
  29. resourceOwnerId_ = resourceOwnerId;
  30. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  31. }
  32. std::string MigrateToOtherZoneRequest::getZoneIdSlave1()const
  33. {
  34. return zoneIdSlave1_;
  35. }
  36. void MigrateToOtherZoneRequest::setZoneIdSlave1(const std::string& zoneIdSlave1)
  37. {
  38. zoneIdSlave1_ = zoneIdSlave1;
  39. setCoreParameter("ZoneIdSlave1", zoneIdSlave1);
  40. }
  41. std::string MigrateToOtherZoneRequest::getZoneIdSlave2()const
  42. {
  43. return zoneIdSlave2_;
  44. }
  45. void MigrateToOtherZoneRequest::setZoneIdSlave2(const std::string& zoneIdSlave2)
  46. {
  47. zoneIdSlave2_ = zoneIdSlave2;
  48. setCoreParameter("ZoneIdSlave2", zoneIdSlave2);
  49. }
  50. std::string MigrateToOtherZoneRequest::getAccessKeyId()const
  51. {
  52. return accessKeyId_;
  53. }
  54. void MigrateToOtherZoneRequest::setAccessKeyId(const std::string& accessKeyId)
  55. {
  56. accessKeyId_ = accessKeyId;
  57. setCoreParameter("AccessKeyId", accessKeyId);
  58. }
  59. std::string MigrateToOtherZoneRequest::getEffectiveTime()const
  60. {
  61. return effectiveTime_;
  62. }
  63. void MigrateToOtherZoneRequest::setEffectiveTime(const std::string& effectiveTime)
  64. {
  65. effectiveTime_ = effectiveTime;
  66. setCoreParameter("EffectiveTime", effectiveTime);
  67. }
  68. std::string MigrateToOtherZoneRequest::getDBInstanceId()const
  69. {
  70. return dBInstanceId_;
  71. }
  72. void MigrateToOtherZoneRequest::setDBInstanceId(const std::string& dBInstanceId)
  73. {
  74. dBInstanceId_ = dBInstanceId;
  75. setCoreParameter("DBInstanceId", dBInstanceId);
  76. }
  77. std::string MigrateToOtherZoneRequest::getResourceOwnerAccount()const
  78. {
  79. return resourceOwnerAccount_;
  80. }
  81. void MigrateToOtherZoneRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  82. {
  83. resourceOwnerAccount_ = resourceOwnerAccount;
  84. setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
  85. }
  86. std::string MigrateToOtherZoneRequest::getOwnerAccount()const
  87. {
  88. return ownerAccount_;
  89. }
  90. void MigrateToOtherZoneRequest::setOwnerAccount(const std::string& ownerAccount)
  91. {
  92. ownerAccount_ = ownerAccount;
  93. setCoreParameter("OwnerAccount", ownerAccount);
  94. }
  95. long MigrateToOtherZoneRequest::getOwnerId()const
  96. {
  97. return ownerId_;
  98. }
  99. void MigrateToOtherZoneRequest::setOwnerId(long ownerId)
  100. {
  101. ownerId_ = ownerId;
  102. setCoreParameter("OwnerId", std::to_string(ownerId));
  103. }
  104. std::string MigrateToOtherZoneRequest::getVSwitchId()const
  105. {
  106. return vSwitchId_;
  107. }
  108. void MigrateToOtherZoneRequest::setVSwitchId(const std::string& vSwitchId)
  109. {
  110. vSwitchId_ = vSwitchId;
  111. setCoreParameter("VSwitchId", vSwitchId);
  112. }
  113. std::string MigrateToOtherZoneRequest::getVPCId()const
  114. {
  115. return vPCId_;
  116. }
  117. void MigrateToOtherZoneRequest::setVPCId(const std::string& vPCId)
  118. {
  119. vPCId_ = vPCId;
  120. setCoreParameter("VPCId", vPCId);
  121. }
  122. std::string MigrateToOtherZoneRequest::getZoneId()const
  123. {
  124. return zoneId_;
  125. }
  126. void MigrateToOtherZoneRequest::setZoneId(const std::string& zoneId)
  127. {
  128. zoneId_ = zoneId;
  129. setCoreParameter("ZoneId", zoneId);
  130. }
  131. std::string MigrateToOtherZoneRequest::getCategory()const
  132. {
  133. return category_;
  134. }
  135. void MigrateToOtherZoneRequest::setCategory(const std::string& category)
  136. {
  137. category_ = category;
  138. setCoreParameter("Category", category);
  139. }