AddNodesRequest.cc 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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/ehpc/model/AddNodesRequest.h>
  17. using AlibabaCloud::EHPC::Model::AddNodesRequest;
  18. AddNodesRequest::AddNodesRequest() :
  19. RpcServiceRequest("ehpc", "2018-04-12", "AddNodes")
  20. {}
  21. AddNodesRequest::~AddNodesRequest()
  22. {}
  23. int AddNodesRequest::getAutoRenewPeriod()const
  24. {
  25. return autoRenewPeriod_;
  26. }
  27. void AddNodesRequest::setAutoRenewPeriod(int autoRenewPeriod)
  28. {
  29. autoRenewPeriod_ = autoRenewPeriod;
  30. setCoreParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
  31. }
  32. int AddNodesRequest::getPeriod()const
  33. {
  34. return period_;
  35. }
  36. void AddNodesRequest::setPeriod(int period)
  37. {
  38. period_ = period;
  39. setCoreParameter("Period", std::to_string(period));
  40. }
  41. std::string AddNodesRequest::getImageId()const
  42. {
  43. return imageId_;
  44. }
  45. void AddNodesRequest::setImageId(const std::string& imageId)
  46. {
  47. imageId_ = imageId;
  48. setCoreParameter("ImageId", imageId);
  49. }
  50. int AddNodesRequest::getCount()const
  51. {
  52. return count_;
  53. }
  54. void AddNodesRequest::setCount(int count)
  55. {
  56. count_ = count;
  57. setCoreParameter("Count", std::to_string(count));
  58. }
  59. std::string AddNodesRequest::getClusterId()const
  60. {
  61. return clusterId_;
  62. }
  63. void AddNodesRequest::setClusterId(const std::string& clusterId)
  64. {
  65. clusterId_ = clusterId;
  66. setCoreParameter("ClusterId", clusterId);
  67. }
  68. std::string AddNodesRequest::getComputeSpotStrategy()const
  69. {
  70. return computeSpotStrategy_;
  71. }
  72. void AddNodesRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy)
  73. {
  74. computeSpotStrategy_ = computeSpotStrategy;
  75. setCoreParameter("ComputeSpotStrategy", computeSpotStrategy);
  76. }
  77. std::string AddNodesRequest::getJobQueue()const
  78. {
  79. return jobQueue_;
  80. }
  81. void AddNodesRequest::setJobQueue(const std::string& jobQueue)
  82. {
  83. jobQueue_ = jobQueue;
  84. setCoreParameter("JobQueue", jobQueue);
  85. }
  86. std::string AddNodesRequest::getAccessKeyId()const
  87. {
  88. return accessKeyId_;
  89. }
  90. void AddNodesRequest::setAccessKeyId(const std::string& accessKeyId)
  91. {
  92. accessKeyId_ = accessKeyId;
  93. setCoreParameter("AccessKeyId", accessKeyId);
  94. }
  95. std::string AddNodesRequest::getImageOwnerAlias()const
  96. {
  97. return imageOwnerAlias_;
  98. }
  99. void AddNodesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
  100. {
  101. imageOwnerAlias_ = imageOwnerAlias;
  102. setCoreParameter("ImageOwnerAlias", imageOwnerAlias);
  103. }
  104. std::string AddNodesRequest::getVSwitchId()const
  105. {
  106. return vSwitchId_;
  107. }
  108. void AddNodesRequest::setVSwitchId(const std::string& vSwitchId)
  109. {
  110. vSwitchId_ = vSwitchId;
  111. setCoreParameter("VSwitchId", vSwitchId);
  112. }
  113. std::string AddNodesRequest::getPeriodUnit()const
  114. {
  115. return periodUnit_;
  116. }
  117. void AddNodesRequest::setPeriodUnit(const std::string& periodUnit)
  118. {
  119. periodUnit_ = periodUnit;
  120. setCoreParameter("PeriodUnit", periodUnit);
  121. }
  122. std::string AddNodesRequest::getAutoRenew()const
  123. {
  124. return autoRenew_;
  125. }
  126. void AddNodesRequest::setAutoRenew(const std::string& autoRenew)
  127. {
  128. autoRenew_ = autoRenew;
  129. setCoreParameter("AutoRenew", autoRenew);
  130. }
  131. std::string AddNodesRequest::getEcsChargeType()const
  132. {
  133. return ecsChargeType_;
  134. }
  135. void AddNodesRequest::setEcsChargeType(const std::string& ecsChargeType)
  136. {
  137. ecsChargeType_ = ecsChargeType;
  138. setCoreParameter("EcsChargeType", ecsChargeType);
  139. }
  140. std::string AddNodesRequest::getCreateMode()const
  141. {
  142. return createMode_;
  143. }
  144. void AddNodesRequest::setCreateMode(const std::string& createMode)
  145. {
  146. createMode_ = createMode;
  147. setCoreParameter("CreateMode", createMode);
  148. }
  149. int AddNodesRequest::getSystemDiskSize()const
  150. {
  151. return systemDiskSize_;
  152. }
  153. void AddNodesRequest::setSystemDiskSize(int systemDiskSize)
  154. {
  155. systemDiskSize_ = systemDiskSize;
  156. setCoreParameter("SystemDiskSize", std::to_string(systemDiskSize));
  157. }
  158. std::string AddNodesRequest::getInstanceType()const
  159. {
  160. return instanceType_;
  161. }
  162. void AddNodesRequest::setInstanceType(const std::string& instanceType)
  163. {
  164. instanceType_ = instanceType;
  165. setCoreParameter("InstanceType", instanceType);
  166. }
  167. std::string AddNodesRequest::getZoneId()const
  168. {
  169. return zoneId_;
  170. }
  171. void AddNodesRequest::setZoneId(const std::string& zoneId)
  172. {
  173. zoneId_ = zoneId;
  174. setCoreParameter("ZoneId", zoneId);
  175. }
  176. std::string AddNodesRequest::getComputeSpotPriceLimit()const
  177. {
  178. return computeSpotPriceLimit_;
  179. }
  180. void AddNodesRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit)
  181. {
  182. computeSpotPriceLimit_ = computeSpotPriceLimit;
  183. setCoreParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
  184. }