ModifyNodeSpecRequest.cc 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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/ModifyNodeSpecRequest.h>
  17. using AlibabaCloud::Dds::Model::ModifyNodeSpecRequest;
  18. ModifyNodeSpecRequest::ModifyNodeSpecRequest() :
  19. RpcServiceRequest("dds", "2015-12-01", "ModifyNodeSpec")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ModifyNodeSpecRequest::~ModifyNodeSpecRequest()
  24. {}
  25. long ModifyNodeSpecRequest::getResourceOwnerId()const
  26. {
  27. return resourceOwnerId_;
  28. }
  29. void ModifyNodeSpecRequest::setResourceOwnerId(long resourceOwnerId)
  30. {
  31. resourceOwnerId_ = resourceOwnerId;
  32. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  33. }
  34. std::string ModifyNodeSpecRequest::getClientToken()const
  35. {
  36. return clientToken_;
  37. }
  38. void ModifyNodeSpecRequest::setClientToken(const std::string& clientToken)
  39. {
  40. clientToken_ = clientToken;
  41. setParameter("ClientToken", clientToken);
  42. }
  43. std::string ModifyNodeSpecRequest::getNodeClass()const
  44. {
  45. return nodeClass_;
  46. }
  47. void ModifyNodeSpecRequest::setNodeClass(const std::string& nodeClass)
  48. {
  49. nodeClass_ = nodeClass;
  50. setParameter("NodeClass", nodeClass);
  51. }
  52. std::string ModifyNodeSpecRequest::getAccessKeyId()const
  53. {
  54. return accessKeyId_;
  55. }
  56. void ModifyNodeSpecRequest::setAccessKeyId(const std::string& accessKeyId)
  57. {
  58. accessKeyId_ = accessKeyId;
  59. setParameter("AccessKeyId", accessKeyId);
  60. }
  61. std::string ModifyNodeSpecRequest::getSecurityToken()const
  62. {
  63. return securityToken_;
  64. }
  65. void ModifyNodeSpecRequest::setSecurityToken(const std::string& securityToken)
  66. {
  67. securityToken_ = securityToken;
  68. setParameter("SecurityToken", securityToken);
  69. }
  70. std::string ModifyNodeSpecRequest::getEffectiveTime()const
  71. {
  72. return effectiveTime_;
  73. }
  74. void ModifyNodeSpecRequest::setEffectiveTime(const std::string& effectiveTime)
  75. {
  76. effectiveTime_ = effectiveTime;
  77. setParameter("EffectiveTime", effectiveTime);
  78. }
  79. std::string ModifyNodeSpecRequest::getDBInstanceId()const
  80. {
  81. return dBInstanceId_;
  82. }
  83. void ModifyNodeSpecRequest::setDBInstanceId(const std::string& dBInstanceId)
  84. {
  85. dBInstanceId_ = dBInstanceId;
  86. setParameter("DBInstanceId", dBInstanceId);
  87. }
  88. std::string ModifyNodeSpecRequest::getNodeId()const
  89. {
  90. return nodeId_;
  91. }
  92. void ModifyNodeSpecRequest::setNodeId(const std::string& nodeId)
  93. {
  94. nodeId_ = nodeId;
  95. setParameter("NodeId", nodeId);
  96. }
  97. bool ModifyNodeSpecRequest::getAutoPay()const
  98. {
  99. return autoPay_;
  100. }
  101. void ModifyNodeSpecRequest::setAutoPay(bool autoPay)
  102. {
  103. autoPay_ = autoPay;
  104. setParameter("AutoPay", autoPay ? "true" : "false");
  105. }
  106. std::string ModifyNodeSpecRequest::getFromApp()const
  107. {
  108. return fromApp_;
  109. }
  110. void ModifyNodeSpecRequest::setFromApp(const std::string& fromApp)
  111. {
  112. fromApp_ = fromApp;
  113. setParameter("FromApp", fromApp);
  114. }
  115. std::string ModifyNodeSpecRequest::getResourceOwnerAccount()const
  116. {
  117. return resourceOwnerAccount_;
  118. }
  119. void ModifyNodeSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  120. {
  121. resourceOwnerAccount_ = resourceOwnerAccount;
  122. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  123. }
  124. int ModifyNodeSpecRequest::getNodeStorage()const
  125. {
  126. return nodeStorage_;
  127. }
  128. void ModifyNodeSpecRequest::setNodeStorage(int nodeStorage)
  129. {
  130. nodeStorage_ = nodeStorage;
  131. setParameter("NodeStorage", std::to_string(nodeStorage));
  132. }
  133. std::string ModifyNodeSpecRequest::getOwnerAccount()const
  134. {
  135. return ownerAccount_;
  136. }
  137. void ModifyNodeSpecRequest::setOwnerAccount(const std::string& ownerAccount)
  138. {
  139. ownerAccount_ = ownerAccount;
  140. setParameter("OwnerAccount", ownerAccount);
  141. }
  142. long ModifyNodeSpecRequest::getOwnerId()const
  143. {
  144. return ownerId_;
  145. }
  146. void ModifyNodeSpecRequest::setOwnerId(long ownerId)
  147. {
  148. ownerId_ = ownerId;
  149. setParameter("OwnerId", std::to_string(ownerId));
  150. }
  151. std::string ModifyNodeSpecRequest::getOrderType()const
  152. {
  153. return orderType_;
  154. }
  155. void ModifyNodeSpecRequest::setOrderType(const std::string& orderType)
  156. {
  157. orderType_ = orderType;
  158. setParameter("OrderType", orderType);
  159. }