ModifyNodeSpecBatchRequest.cc 5.2 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/dds/model/ModifyNodeSpecBatchRequest.h>
  17. using AlibabaCloud::Dds::Model::ModifyNodeSpecBatchRequest;
  18. ModifyNodeSpecBatchRequest::ModifyNodeSpecBatchRequest()
  19. : RpcServiceRequest("dds", "2015-12-01", "ModifyNodeSpecBatch") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ModifyNodeSpecBatchRequest::~ModifyNodeSpecBatchRequest() {}
  23. long ModifyNodeSpecBatchRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void ModifyNodeSpecBatchRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. std::string ModifyNodeSpecBatchRequest::getClientToken() const {
  31. return clientToken_;
  32. }
  33. void ModifyNodeSpecBatchRequest::setClientToken(const std::string &clientToken) {
  34. clientToken_ = clientToken;
  35. setParameter(std::string("ClientToken"), clientToken);
  36. }
  37. std::string ModifyNodeSpecBatchRequest::getNodesInfo() const {
  38. return nodesInfo_;
  39. }
  40. void ModifyNodeSpecBatchRequest::setNodesInfo(const std::string &nodesInfo) {
  41. nodesInfo_ = nodesInfo;
  42. setParameter(std::string("NodesInfo"), nodesInfo);
  43. }
  44. std::string ModifyNodeSpecBatchRequest::getCouponNo() const {
  45. return couponNo_;
  46. }
  47. void ModifyNodeSpecBatchRequest::setCouponNo(const std::string &couponNo) {
  48. couponNo_ = couponNo;
  49. setParameter(std::string("CouponNo"), couponNo);
  50. }
  51. std::string ModifyNodeSpecBatchRequest::getAccessKeyId() const {
  52. return accessKeyId_;
  53. }
  54. void ModifyNodeSpecBatchRequest::setAccessKeyId(const std::string &accessKeyId) {
  55. accessKeyId_ = accessKeyId;
  56. setParameter(std::string("AccessKeyId"), accessKeyId);
  57. }
  58. std::string ModifyNodeSpecBatchRequest::getSecurityToken() const {
  59. return securityToken_;
  60. }
  61. void ModifyNodeSpecBatchRequest::setSecurityToken(const std::string &securityToken) {
  62. securityToken_ = securityToken;
  63. setParameter(std::string("SecurityToken"), securityToken);
  64. }
  65. std::string ModifyNodeSpecBatchRequest::getRegionId() const {
  66. return regionId_;
  67. }
  68. void ModifyNodeSpecBatchRequest::setRegionId(const std::string &regionId) {
  69. regionId_ = regionId;
  70. setParameter(std::string("RegionId"), regionId);
  71. }
  72. std::string ModifyNodeSpecBatchRequest::getEffectiveTime() const {
  73. return effectiveTime_;
  74. }
  75. void ModifyNodeSpecBatchRequest::setEffectiveTime(const std::string &effectiveTime) {
  76. effectiveTime_ = effectiveTime;
  77. setParameter(std::string("EffectiveTime"), effectiveTime);
  78. }
  79. std::string ModifyNodeSpecBatchRequest::getDBInstanceId() const {
  80. return dBInstanceId_;
  81. }
  82. void ModifyNodeSpecBatchRequest::setDBInstanceId(const std::string &dBInstanceId) {
  83. dBInstanceId_ = dBInstanceId;
  84. setParameter(std::string("DBInstanceId"), dBInstanceId);
  85. }
  86. std::string ModifyNodeSpecBatchRequest::getBusinessInfo() const {
  87. return businessInfo_;
  88. }
  89. void ModifyNodeSpecBatchRequest::setBusinessInfo(const std::string &businessInfo) {
  90. businessInfo_ = businessInfo;
  91. setParameter(std::string("BusinessInfo"), businessInfo);
  92. }
  93. bool ModifyNodeSpecBatchRequest::getAutoPay() const {
  94. return autoPay_;
  95. }
  96. void ModifyNodeSpecBatchRequest::setAutoPay(bool autoPay) {
  97. autoPay_ = autoPay;
  98. setParameter(std::string("AutoPay"), autoPay ? "true" : "false");
  99. }
  100. std::string ModifyNodeSpecBatchRequest::getFromApp() const {
  101. return fromApp_;
  102. }
  103. void ModifyNodeSpecBatchRequest::setFromApp(const std::string &fromApp) {
  104. fromApp_ = fromApp;
  105. setParameter(std::string("FromApp"), fromApp);
  106. }
  107. std::string ModifyNodeSpecBatchRequest::getResourceOwnerAccount() const {
  108. return resourceOwnerAccount_;
  109. }
  110. void ModifyNodeSpecBatchRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  111. resourceOwnerAccount_ = resourceOwnerAccount;
  112. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  113. }
  114. std::string ModifyNodeSpecBatchRequest::getOwnerAccount() const {
  115. return ownerAccount_;
  116. }
  117. void ModifyNodeSpecBatchRequest::setOwnerAccount(const std::string &ownerAccount) {
  118. ownerAccount_ = ownerAccount;
  119. setParameter(std::string("OwnerAccount"), ownerAccount);
  120. }
  121. long ModifyNodeSpecBatchRequest::getOwnerId() const {
  122. return ownerId_;
  123. }
  124. void ModifyNodeSpecBatchRequest::setOwnerId(long ownerId) {
  125. ownerId_ = ownerId;
  126. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  127. }
  128. std::string ModifyNodeSpecBatchRequest::getOrderType() const {
  129. return orderType_;
  130. }
  131. void ModifyNodeSpecBatchRequest::setOrderType(const std::string &orderType) {
  132. orderType_ = orderType;
  133. setParameter(std::string("OrderType"), orderType);
  134. }