CreateMultiZoneClusterRequest.cc 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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/hbase/model/CreateMultiZoneClusterRequest.h>
  17. using AlibabaCloud::HBase::Model::CreateMultiZoneClusterRequest;
  18. CreateMultiZoneClusterRequest::CreateMultiZoneClusterRequest() :
  19. RpcServiceRequest("hbase", "2019-01-01", "CreateMultiZoneCluster")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. CreateMultiZoneClusterRequest::~CreateMultiZoneClusterRequest()
  24. {}
  25. std::string CreateMultiZoneClusterRequest::getArchVersion()const
  26. {
  27. return archVersion_;
  28. }
  29. void CreateMultiZoneClusterRequest::setArchVersion(const std::string& archVersion)
  30. {
  31. archVersion_ = archVersion;
  32. setParameter("ArchVersion", archVersion);
  33. }
  34. std::string CreateMultiZoneClusterRequest::getClusterName()const
  35. {
  36. return clusterName_;
  37. }
  38. void CreateMultiZoneClusterRequest::setClusterName(const std::string& clusterName)
  39. {
  40. clusterName_ = clusterName;
  41. setParameter("ClusterName", clusterName);
  42. }
  43. std::string CreateMultiZoneClusterRequest::getEngineVersion()const
  44. {
  45. return engineVersion_;
  46. }
  47. void CreateMultiZoneClusterRequest::setEngineVersion(const std::string& engineVersion)
  48. {
  49. engineVersion_ = engineVersion;
  50. setParameter("EngineVersion", engineVersion);
  51. }
  52. std::string CreateMultiZoneClusterRequest::getLogDiskType()const
  53. {
  54. return logDiskType_;
  55. }
  56. void CreateMultiZoneClusterRequest::setLogDiskType(const std::string& logDiskType)
  57. {
  58. logDiskType_ = logDiskType;
  59. setParameter("LogDiskType", logDiskType);
  60. }
  61. std::string CreateMultiZoneClusterRequest::getResourceGroupId()const
  62. {
  63. return resourceGroupId_;
  64. }
  65. void CreateMultiZoneClusterRequest::setResourceGroupId(const std::string& resourceGroupId)
  66. {
  67. resourceGroupId_ = resourceGroupId;
  68. setParameter("ResourceGroupId", resourceGroupId);
  69. }
  70. std::string CreateMultiZoneClusterRequest::getPrimaryVSwitchId()const
  71. {
  72. return primaryVSwitchId_;
  73. }
  74. void CreateMultiZoneClusterRequest::setPrimaryVSwitchId(const std::string& primaryVSwitchId)
  75. {
  76. primaryVSwitchId_ = primaryVSwitchId;
  77. setParameter("PrimaryVSwitchId", primaryVSwitchId);
  78. }
  79. std::string CreateMultiZoneClusterRequest::getLogInstanceType()const
  80. {
  81. return logInstanceType_;
  82. }
  83. void CreateMultiZoneClusterRequest::setLogInstanceType(const std::string& logInstanceType)
  84. {
  85. logInstanceType_ = logInstanceType;
  86. setParameter("LogInstanceType", logInstanceType);
  87. }
  88. int CreateMultiZoneClusterRequest::getAutoRenewPeriod()const
  89. {
  90. return autoRenewPeriod_;
  91. }
  92. void CreateMultiZoneClusterRequest::setAutoRenewPeriod(int autoRenewPeriod)
  93. {
  94. autoRenewPeriod_ = autoRenewPeriod;
  95. setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
  96. }
  97. int CreateMultiZoneClusterRequest::getPeriod()const
  98. {
  99. return period_;
  100. }
  101. void CreateMultiZoneClusterRequest::setPeriod(int period)
  102. {
  103. period_ = period;
  104. setParameter("Period", std::to_string(period));
  105. }
  106. int CreateMultiZoneClusterRequest::getLogNodeCount()const
  107. {
  108. return logNodeCount_;
  109. }
  110. void CreateMultiZoneClusterRequest::setLogNodeCount(int logNodeCount)
  111. {
  112. logNodeCount_ = logNodeCount;
  113. setParameter("LogNodeCount", std::to_string(logNodeCount));
  114. }
  115. std::string CreateMultiZoneClusterRequest::getSecurityIPList()const
  116. {
  117. return securityIPList_;
  118. }
  119. void CreateMultiZoneClusterRequest::setSecurityIPList(const std::string& securityIPList)
  120. {
  121. securityIPList_ = securityIPList;
  122. setParameter("SecurityIPList", securityIPList);
  123. }
  124. std::string CreateMultiZoneClusterRequest::getPeriodUnit()const
  125. {
  126. return periodUnit_;
  127. }
  128. void CreateMultiZoneClusterRequest::setPeriodUnit(const std::string& periodUnit)
  129. {
  130. periodUnit_ = periodUnit;
  131. setParameter("PeriodUnit", periodUnit);
  132. }
  133. std::string CreateMultiZoneClusterRequest::getCoreDiskType()const
  134. {
  135. return coreDiskType_;
  136. }
  137. void CreateMultiZoneClusterRequest::setCoreDiskType(const std::string& coreDiskType)
  138. {
  139. coreDiskType_ = coreDiskType;
  140. setParameter("CoreDiskType", coreDiskType);
  141. }
  142. std::string CreateMultiZoneClusterRequest::getArbiterZoneId()const
  143. {
  144. return arbiterZoneId_;
  145. }
  146. void CreateMultiZoneClusterRequest::setArbiterZoneId(const std::string& arbiterZoneId)
  147. {
  148. arbiterZoneId_ = arbiterZoneId;
  149. setParameter("ArbiterZoneId", arbiterZoneId);
  150. }
  151. std::string CreateMultiZoneClusterRequest::getClientToken()const
  152. {
  153. return clientToken_;
  154. }
  155. void CreateMultiZoneClusterRequest::setClientToken(const std::string& clientToken)
  156. {
  157. clientToken_ = clientToken;
  158. setParameter("ClientToken", clientToken);
  159. }
  160. std::string CreateMultiZoneClusterRequest::getMultiZoneCombination()const
  161. {
  162. return multiZoneCombination_;
  163. }
  164. void CreateMultiZoneClusterRequest::setMultiZoneCombination(const std::string& multiZoneCombination)
  165. {
  166. multiZoneCombination_ = multiZoneCombination;
  167. setParameter("MultiZoneCombination", multiZoneCombination);
  168. }
  169. std::string CreateMultiZoneClusterRequest::getPrimaryZoneId()const
  170. {
  171. return primaryZoneId_;
  172. }
  173. void CreateMultiZoneClusterRequest::setPrimaryZoneId(const std::string& primaryZoneId)
  174. {
  175. primaryZoneId_ = primaryZoneId;
  176. setParameter("PrimaryZoneId", primaryZoneId);
  177. }
  178. std::string CreateMultiZoneClusterRequest::getEngine()const
  179. {
  180. return engine_;
  181. }
  182. void CreateMultiZoneClusterRequest::setEngine(const std::string& engine)
  183. {
  184. engine_ = engine;
  185. setParameter("Engine", engine);
  186. }
  187. std::string CreateMultiZoneClusterRequest::getRegionId()const
  188. {
  189. return regionId_;
  190. }
  191. void CreateMultiZoneClusterRequest::setRegionId(const std::string& regionId)
  192. {
  193. regionId_ = regionId;
  194. setParameter("RegionId", regionId);
  195. }
  196. std::string CreateMultiZoneClusterRequest::getStandbyVSwitchId()const
  197. {
  198. return standbyVSwitchId_;
  199. }
  200. void CreateMultiZoneClusterRequest::setStandbyVSwitchId(const std::string& standbyVSwitchId)
  201. {
  202. standbyVSwitchId_ = standbyVSwitchId;
  203. setParameter("StandbyVSwitchId", standbyVSwitchId);
  204. }
  205. std::string CreateMultiZoneClusterRequest::getStandbyZoneId()const
  206. {
  207. return standbyZoneId_;
  208. }
  209. void CreateMultiZoneClusterRequest::setStandbyZoneId(const std::string& standbyZoneId)
  210. {
  211. standbyZoneId_ = standbyZoneId;
  212. setParameter("StandbyZoneId", standbyZoneId);
  213. }
  214. std::string CreateMultiZoneClusterRequest::getMasterInstanceType()const
  215. {
  216. return masterInstanceType_;
  217. }
  218. void CreateMultiZoneClusterRequest::setMasterInstanceType(const std::string& masterInstanceType)
  219. {
  220. masterInstanceType_ = masterInstanceType;
  221. setParameter("MasterInstanceType", masterInstanceType);
  222. }
  223. int CreateMultiZoneClusterRequest::getCoreNodeCount()const
  224. {
  225. return coreNodeCount_;
  226. }
  227. void CreateMultiZoneClusterRequest::setCoreNodeCount(int coreNodeCount)
  228. {
  229. coreNodeCount_ = coreNodeCount;
  230. setParameter("CoreNodeCount", std::to_string(coreNodeCount));
  231. }
  232. int CreateMultiZoneClusterRequest::getLogDiskSize()const
  233. {
  234. return logDiskSize_;
  235. }
  236. void CreateMultiZoneClusterRequest::setLogDiskSize(int logDiskSize)
  237. {
  238. logDiskSize_ = logDiskSize;
  239. setParameter("LogDiskSize", std::to_string(logDiskSize));
  240. }
  241. std::string CreateMultiZoneClusterRequest::getCoreInstanceType()const
  242. {
  243. return coreInstanceType_;
  244. }
  245. void CreateMultiZoneClusterRequest::setCoreInstanceType(const std::string& coreInstanceType)
  246. {
  247. coreInstanceType_ = coreInstanceType;
  248. setParameter("CoreInstanceType", coreInstanceType);
  249. }
  250. int CreateMultiZoneClusterRequest::getCoreDiskSize()const
  251. {
  252. return coreDiskSize_;
  253. }
  254. void CreateMultiZoneClusterRequest::setCoreDiskSize(int coreDiskSize)
  255. {
  256. coreDiskSize_ = coreDiskSize;
  257. setParameter("CoreDiskSize", std::to_string(coreDiskSize));
  258. }
  259. std::string CreateMultiZoneClusterRequest::getVpcId()const
  260. {
  261. return vpcId_;
  262. }
  263. void CreateMultiZoneClusterRequest::setVpcId(const std::string& vpcId)
  264. {
  265. vpcId_ = vpcId;
  266. setParameter("VpcId", vpcId);
  267. }
  268. std::string CreateMultiZoneClusterRequest::getPayType()const
  269. {
  270. return payType_;
  271. }
  272. void CreateMultiZoneClusterRequest::setPayType(const std::string& payType)
  273. {
  274. payType_ = payType;
  275. setParameter("PayType", payType);
  276. }
  277. std::string CreateMultiZoneClusterRequest::getArbiterVSwitchId()const
  278. {
  279. return arbiterVSwitchId_;
  280. }
  281. void CreateMultiZoneClusterRequest::setArbiterVSwitchId(const std::string& arbiterVSwitchId)
  282. {
  283. arbiterVSwitchId_ = arbiterVSwitchId;
  284. setParameter("ArbiterVSwitchId", arbiterVSwitchId);
  285. }