DryRunClusterRequest.cc 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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/adb/model/DryRunClusterRequest.h>
  17. using AlibabaCloud::Adb::Model::DryRunClusterRequest;
  18. DryRunClusterRequest::DryRunClusterRequest()
  19. : RpcServiceRequest("adb", "2019-03-15", "DryRunCluster") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. DryRunClusterRequest::~DryRunClusterRequest() {}
  23. std::string DryRunClusterRequest::getDBClusterDescription() const {
  24. return dBClusterDescription_;
  25. }
  26. void DryRunClusterRequest::setDBClusterDescription(const std::string &dBClusterDescription) {
  27. dBClusterDescription_ = dBClusterDescription;
  28. setParameter(std::string("DBClusterDescription"), dBClusterDescription);
  29. }
  30. bool DryRunClusterRequest::getEnableDefaultResourcePool() const {
  31. return enableDefaultResourcePool_;
  32. }
  33. void DryRunClusterRequest::setEnableDefaultResourcePool(bool enableDefaultResourcePool) {
  34. enableDefaultResourcePool_ = enableDefaultResourcePool;
  35. setParameter(std::string("EnableDefaultResourcePool"), enableDefaultResourcePool ? "true" : "false");
  36. }
  37. std::string DryRunClusterRequest::getAccessKeyId() const {
  38. return accessKeyId_;
  39. }
  40. void DryRunClusterRequest::setAccessKeyId(const std::string &accessKeyId) {
  41. accessKeyId_ = accessKeyId;
  42. setParameter(std::string("AccessKeyId"), accessKeyId);
  43. }
  44. std::string DryRunClusterRequest::getStorageResource() const {
  45. return storageResource_;
  46. }
  47. void DryRunClusterRequest::setStorageResource(const std::string &storageResource) {
  48. storageResource_ = storageResource;
  49. setParameter(std::string("StorageResource"), storageResource);
  50. }
  51. std::string DryRunClusterRequest::getRegionId() const {
  52. return regionId_;
  53. }
  54. void DryRunClusterRequest::setRegionId(const std::string &regionId) {
  55. regionId_ = regionId;
  56. setParameter(std::string("RegionId"), regionId);
  57. }
  58. std::string DryRunClusterRequest::getDBClusterNetworkType() const {
  59. return dBClusterNetworkType_;
  60. }
  61. void DryRunClusterRequest::setDBClusterNetworkType(const std::string &dBClusterNetworkType) {
  62. dBClusterNetworkType_ = dBClusterNetworkType;
  63. setParameter(std::string("DBClusterNetworkType"), dBClusterNetworkType);
  64. }
  65. std::string DryRunClusterRequest::getPeriod() const {
  66. return period_;
  67. }
  68. void DryRunClusterRequest::setPeriod(const std::string &period) {
  69. period_ = period;
  70. setParameter(std::string("Period"), period);
  71. }
  72. std::string DryRunClusterRequest::getDBClusterId() const {
  73. return dBClusterId_;
  74. }
  75. void DryRunClusterRequest::setDBClusterId(const std::string &dBClusterId) {
  76. dBClusterId_ = dBClusterId;
  77. setParameter(std::string("DBClusterId"), dBClusterId);
  78. }
  79. std::string DryRunClusterRequest::getDBClusterVersion() const {
  80. return dBClusterVersion_;
  81. }
  82. void DryRunClusterRequest::setDBClusterVersion(const std::string &dBClusterVersion) {
  83. dBClusterVersion_ = dBClusterVersion;
  84. setParameter(std::string("DBClusterVersion"), dBClusterVersion);
  85. }
  86. std::string DryRunClusterRequest::getUsedTime() const {
  87. return usedTime_;
  88. }
  89. void DryRunClusterRequest::setUsedTime(const std::string &usedTime) {
  90. usedTime_ = usedTime;
  91. setParameter(std::string("UsedTime"), usedTime);
  92. }
  93. std::string DryRunClusterRequest::getVSwitchId() const {
  94. return vSwitchId_;
  95. }
  96. void DryRunClusterRequest::setVSwitchId(const std::string &vSwitchId) {
  97. vSwitchId_ = vSwitchId;
  98. setParameter(std::string("VSwitchId"), vSwitchId);
  99. }
  100. std::string DryRunClusterRequest::getVPCId() const {
  101. return vPCId_;
  102. }
  103. void DryRunClusterRequest::setVPCId(const std::string &vPCId) {
  104. vPCId_ = vPCId;
  105. setParameter(std::string("VPCId"), vPCId);
  106. }
  107. std::string DryRunClusterRequest::getZoneId() const {
  108. return zoneId_;
  109. }
  110. void DryRunClusterRequest::setZoneId(const std::string &zoneId) {
  111. zoneId_ = zoneId;
  112. setParameter(std::string("ZoneId"), zoneId);
  113. }
  114. std::string DryRunClusterRequest::getComputeResource() const {
  115. return computeResource_;
  116. }
  117. void DryRunClusterRequest::setComputeResource(const std::string &computeResource) {
  118. computeResource_ = computeResource;
  119. setParameter(std::string("ComputeResource"), computeResource);
  120. }
  121. std::string DryRunClusterRequest::getPayType() const {
  122. return payType_;
  123. }
  124. void DryRunClusterRequest::setPayType(const std::string &payType) {
  125. payType_ = payType;
  126. setParameter(std::string("PayType"), payType);
  127. }
  128. std::string DryRunClusterRequest::getOperation() const {
  129. return operation_;
  130. }
  131. void DryRunClusterRequest::setOperation(const std::string &operation) {
  132. operation_ = operation;
  133. setParameter(std::string("Operation"), operation);
  134. }