CreateDBClusterRequest.cc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  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/polardb/model/CreateDBClusterRequest.h>
  17. using AlibabaCloud::Polardb::Model::CreateDBClusterRequest;
  18. CreateDBClusterRequest::CreateDBClusterRequest()
  19. : RpcServiceRequest("polardb", "2017-08-01", "CreateDBCluster") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateDBClusterRequest::~CreateDBClusterRequest() {}
  23. long CreateDBClusterRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void CreateDBClusterRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. std::string CreateDBClusterRequest::getDBClusterDescription() const {
  31. return dBClusterDescription_;
  32. }
  33. void CreateDBClusterRequest::setDBClusterDescription(const std::string &dBClusterDescription) {
  34. dBClusterDescription_ = dBClusterDescription;
  35. setParameter(std::string("DBClusterDescription"), dBClusterDescription);
  36. }
  37. std::string CreateDBClusterRequest::getProxyClass() const {
  38. return proxyClass_;
  39. }
  40. void CreateDBClusterRequest::setProxyClass(const std::string &proxyClass) {
  41. proxyClass_ = proxyClass;
  42. setParameter(std::string("ProxyClass"), proxyClass);
  43. }
  44. std::string CreateDBClusterRequest::getProxyType() const {
  45. return proxyType_;
  46. }
  47. void CreateDBClusterRequest::setProxyType(const std::string &proxyType) {
  48. proxyType_ = proxyType;
  49. setParameter(std::string("ProxyType"), proxyType);
  50. }
  51. std::string CreateDBClusterRequest::getScaleMax() const {
  52. return scaleMax_;
  53. }
  54. void CreateDBClusterRequest::setScaleMax(const std::string &scaleMax) {
  55. scaleMax_ = scaleMax;
  56. setParameter(std::string("ScaleMax"), scaleMax);
  57. }
  58. std::string CreateDBClusterRequest::getStorageType() const {
  59. return storageType_;
  60. }
  61. void CreateDBClusterRequest::setStorageType(const std::string &storageType) {
  62. storageType_ = storageType;
  63. setParameter(std::string("StorageType"), storageType);
  64. }
  65. std::string CreateDBClusterRequest::getCreationCategory() const {
  66. return creationCategory_;
  67. }
  68. void CreateDBClusterRequest::setCreationCategory(const std::string &creationCategory) {
  69. creationCategory_ = creationCategory;
  70. setParameter(std::string("CreationCategory"), creationCategory);
  71. }
  72. std::string CreateDBClusterRequest::getResourceGroupId() const {
  73. return resourceGroupId_;
  74. }
  75. void CreateDBClusterRequest::setResourceGroupId(const std::string &resourceGroupId) {
  76. resourceGroupId_ = resourceGroupId;
  77. setParameter(std::string("ResourceGroupId"), resourceGroupId);
  78. }
  79. std::string CreateDBClusterRequest::getDBNodeClass() const {
  80. return dBNodeClass_;
  81. }
  82. void CreateDBClusterRequest::setDBNodeClass(const std::string &dBNodeClass) {
  83. dBNodeClass_ = dBNodeClass;
  84. setParameter(std::string("DBNodeClass"), dBNodeClass);
  85. }
  86. std::string CreateDBClusterRequest::getCreationOption() const {
  87. return creationOption_;
  88. }
  89. void CreateDBClusterRequest::setCreationOption(const std::string &creationOption) {
  90. creationOption_ = creationOption;
  91. setParameter(std::string("CreationOption"), creationOption);
  92. }
  93. std::vector<CreateDBClusterRequest::Tag> CreateDBClusterRequest::getTag() const {
  94. return tag_;
  95. }
  96. void CreateDBClusterRequest::setTag(const std::vector<CreateDBClusterRequest::Tag> &tag) {
  97. tag_ = tag;
  98. for(int dep1 = 0; dep1 != tag.size(); dep1++) {
  99. auto tagObj = tag.at(dep1);
  100. std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
  101. setParameter(tagObjStr + ".Value", tagObj.value);
  102. setParameter(tagObjStr + ".Key", tagObj.key);
  103. }
  104. }
  105. std::string CreateDBClusterRequest::getSourceResourceId() const {
  106. return sourceResourceId_;
  107. }
  108. void CreateDBClusterRequest::setSourceResourceId(const std::string &sourceResourceId) {
  109. sourceResourceId_ = sourceResourceId;
  110. setParameter(std::string("SourceResourceId"), sourceResourceId);
  111. }
  112. std::string CreateDBClusterRequest::getScaleMin() const {
  113. return scaleMin_;
  114. }
  115. void CreateDBClusterRequest::setScaleMin(const std::string &scaleMin) {
  116. scaleMin_ = scaleMin;
  117. setParameter(std::string("ScaleMin"), scaleMin);
  118. }
  119. std::string CreateDBClusterRequest::getBackupRetentionPolicyOnClusterDeletion() const {
  120. return backupRetentionPolicyOnClusterDeletion_;
  121. }
  122. void CreateDBClusterRequest::setBackupRetentionPolicyOnClusterDeletion(const std::string &backupRetentionPolicyOnClusterDeletion) {
  123. backupRetentionPolicyOnClusterDeletion_ = backupRetentionPolicyOnClusterDeletion;
  124. setParameter(std::string("BackupRetentionPolicyOnClusterDeletion"), backupRetentionPolicyOnClusterDeletion);
  125. }
  126. std::string CreateDBClusterRequest::getPeriod() const {
  127. return period_;
  128. }
  129. void CreateDBClusterRequest::setPeriod(const std::string &period) {
  130. period_ = period;
  131. setParameter(std::string("Period"), period);
  132. }
  133. long CreateDBClusterRequest::getOwnerId() const {
  134. return ownerId_;
  135. }
  136. void CreateDBClusterRequest::setOwnerId(long ownerId) {
  137. ownerId_ = ownerId;
  138. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  139. }
  140. std::string CreateDBClusterRequest::getVSwitchId() const {
  141. return vSwitchId_;
  142. }
  143. void CreateDBClusterRequest::setVSwitchId(const std::string &vSwitchId) {
  144. vSwitchId_ = vSwitchId;
  145. setParameter(std::string("VSwitchId"), vSwitchId);
  146. }
  147. std::string CreateDBClusterRequest::getSecurityIPList() const {
  148. return securityIPList_;
  149. }
  150. void CreateDBClusterRequest::setSecurityIPList(const std::string &securityIPList) {
  151. securityIPList_ = securityIPList;
  152. setParameter(std::string("SecurityIPList"), securityIPList);
  153. }
  154. std::string CreateDBClusterRequest::getDBMinorVersion() const {
  155. return dBMinorVersion_;
  156. }
  157. void CreateDBClusterRequest::setDBMinorVersion(const std::string &dBMinorVersion) {
  158. dBMinorVersion_ = dBMinorVersion;
  159. setParameter(std::string("DBMinorVersion"), dBMinorVersion);
  160. }
  161. long CreateDBClusterRequest::getProvisionedIops() const {
  162. return provisionedIops_;
  163. }
  164. void CreateDBClusterRequest::setProvisionedIops(long provisionedIops) {
  165. provisionedIops_ = provisionedIops;
  166. setParameter(std::string("ProvisionedIops"), std::to_string(provisionedIops));
  167. }
  168. bool CreateDBClusterRequest::getAutoRenew() const {
  169. return autoRenew_;
  170. }
  171. void CreateDBClusterRequest::setAutoRenew(bool autoRenew) {
  172. autoRenew_ = autoRenew;
  173. setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false");
  174. }
  175. std::string CreateDBClusterRequest::getHotStandbyCluster() const {
  176. return hotStandbyCluster_;
  177. }
  178. void CreateDBClusterRequest::setHotStandbyCluster(const std::string &hotStandbyCluster) {
  179. hotStandbyCluster_ = hotStandbyCluster;
  180. setParameter(std::string("HotStandbyCluster"), hotStandbyCluster);
  181. }
  182. std::string CreateDBClusterRequest::getStoragePayType() const {
  183. return storagePayType_;
  184. }
  185. void CreateDBClusterRequest::setStoragePayType(const std::string &storagePayType) {
  186. storagePayType_ = storagePayType;
  187. setParameter(std::string("StoragePayType"), storagePayType);
  188. }
  189. std::string CreateDBClusterRequest::getZoneId() const {
  190. return zoneId_;
  191. }
  192. void CreateDBClusterRequest::setZoneId(const std::string &zoneId) {
  193. zoneId_ = zoneId;
  194. setParameter(std::string("ZoneId"), zoneId);
  195. }
  196. std::string CreateDBClusterRequest::getStorageAutoScale() const {
  197. return storageAutoScale_;
  198. }
  199. void CreateDBClusterRequest::setStorageAutoScale(const std::string &storageAutoScale) {
  200. storageAutoScale_ = storageAutoScale;
  201. setParameter(std::string("StorageAutoScale"), storageAutoScale);
  202. }
  203. bool CreateDBClusterRequest::getTDEStatus() const {
  204. return tDEStatus_;
  205. }
  206. void CreateDBClusterRequest::setTDEStatus(bool tDEStatus) {
  207. tDEStatus_ = tDEStatus;
  208. setParameter(std::string("TDEStatus"), tDEStatus ? "true" : "false");
  209. }
  210. std::string CreateDBClusterRequest::getAllowShutDown() const {
  211. return allowShutDown_;
  212. }
  213. void CreateDBClusterRequest::setAllowShutDown(const std::string &allowShutDown) {
  214. allowShutDown_ = allowShutDown;
  215. setParameter(std::string("AllowShutDown"), allowShutDown);
  216. }
  217. std::string CreateDBClusterRequest::getLowerCaseTableNames() const {
  218. return lowerCaseTableNames_;
  219. }
  220. void CreateDBClusterRequest::setLowerCaseTableNames(const std::string &lowerCaseTableNames) {
  221. lowerCaseTableNames_ = lowerCaseTableNames;
  222. setParameter(std::string("LowerCaseTableNames"), lowerCaseTableNames);
  223. }
  224. std::string CreateDBClusterRequest::getScaleRoNumMax() const {
  225. return scaleRoNumMax_;
  226. }
  227. void CreateDBClusterRequest::setScaleRoNumMax(const std::string &scaleRoNumMax) {
  228. scaleRoNumMax_ = scaleRoNumMax;
  229. setParameter(std::string("ScaleRoNumMax"), scaleRoNumMax);
  230. }
  231. std::string CreateDBClusterRequest::getStandbyAZ() const {
  232. return standbyAZ_;
  233. }
  234. void CreateDBClusterRequest::setStandbyAZ(const std::string &standbyAZ) {
  235. standbyAZ_ = standbyAZ;
  236. setParameter(std::string("StandbyAZ"), standbyAZ);
  237. }
  238. std::string CreateDBClusterRequest::getClientToken() const {
  239. return clientToken_;
  240. }
  241. void CreateDBClusterRequest::setClientToken(const std::string &clientToken) {
  242. clientToken_ = clientToken;
  243. setParameter(std::string("ClientToken"), clientToken);
  244. }
  245. std::string CreateDBClusterRequest::getDefaultTimeZone() const {
  246. return defaultTimeZone_;
  247. }
  248. void CreateDBClusterRequest::setDefaultTimeZone(const std::string &defaultTimeZone) {
  249. defaultTimeZone_ = defaultTimeZone;
  250. setParameter(std::string("DefaultTimeZone"), defaultTimeZone);
  251. }
  252. std::string CreateDBClusterRequest::getAccessKeyId() const {
  253. return accessKeyId_;
  254. }
  255. void CreateDBClusterRequest::setAccessKeyId(const std::string &accessKeyId) {
  256. accessKeyId_ = accessKeyId;
  257. setParameter(std::string("AccessKeyId"), accessKeyId);
  258. }
  259. std::string CreateDBClusterRequest::getClusterNetworkType() const {
  260. return clusterNetworkType_;
  261. }
  262. void CreateDBClusterRequest::setClusterNetworkType(const std::string &clusterNetworkType) {
  263. clusterNetworkType_ = clusterNetworkType;
  264. setParameter(std::string("ClusterNetworkType"), clusterNetworkType);
  265. }
  266. std::string CreateDBClusterRequest::getParameterGroupId() const {
  267. return parameterGroupId_;
  268. }
  269. void CreateDBClusterRequest::setParameterGroupId(const std::string &parameterGroupId) {
  270. parameterGroupId_ = parameterGroupId;
  271. setParameter(std::string("ParameterGroupId"), parameterGroupId);
  272. }
  273. std::string CreateDBClusterRequest::getRegionId() const {
  274. return regionId_;
  275. }
  276. void CreateDBClusterRequest::setRegionId(const std::string &regionId) {
  277. regionId_ = regionId;
  278. setParameter(std::string("RegionId"), regionId);
  279. }
  280. std::string CreateDBClusterRequest::getEngine() const {
  281. return engine_;
  282. }
  283. void CreateDBClusterRequest::setEngine(const std::string &engine) {
  284. engine_ = engine;
  285. setParameter(std::string("Engine"), engine);
  286. }
  287. std::string CreateDBClusterRequest::getGDNId() const {
  288. return gDNId_;
  289. }
  290. void CreateDBClusterRequest::setGDNId(const std::string &gDNId) {
  291. gDNId_ = gDNId;
  292. setParameter(std::string("GDNId"), gDNId);
  293. }
  294. std::string CreateDBClusterRequest::getLooseXEngine() const {
  295. return looseXEngine_;
  296. }
  297. void CreateDBClusterRequest::setLooseXEngine(const std::string &looseXEngine) {
  298. looseXEngine_ = looseXEngine;
  299. setParameter(std::string("LooseXEngine"), looseXEngine);
  300. }
  301. std::string CreateDBClusterRequest::getLoosePolarLogBin() const {
  302. return loosePolarLogBin_;
  303. }
  304. void CreateDBClusterRequest::setLoosePolarLogBin(const std::string &loosePolarLogBin) {
  305. loosePolarLogBin_ = loosePolarLogBin;
  306. setParameter(std::string("LoosePolarLogBin"), loosePolarLogBin);
  307. }
  308. std::string CreateDBClusterRequest::getArchitecture() const {
  309. return architecture_;
  310. }
  311. void CreateDBClusterRequest::setArchitecture(const std::string &architecture) {
  312. architecture_ = architecture;
  313. setParameter(std::string("Architecture"), architecture);
  314. }
  315. std::string CreateDBClusterRequest::getResourceOwnerAccount() const {
  316. return resourceOwnerAccount_;
  317. }
  318. void CreateDBClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  319. resourceOwnerAccount_ = resourceOwnerAccount;
  320. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  321. }
  322. std::string CreateDBClusterRequest::getOwnerAccount() const {
  323. return ownerAccount_;
  324. }
  325. void CreateDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) {
  326. ownerAccount_ = ownerAccount;
  327. setParameter(std::string("OwnerAccount"), ownerAccount);
  328. }
  329. std::string CreateDBClusterRequest::getLooseXEngineUseMemoryPct() const {
  330. return looseXEngineUseMemoryPct_;
  331. }
  332. void CreateDBClusterRequest::setLooseXEngineUseMemoryPct(const std::string &looseXEngineUseMemoryPct) {
  333. looseXEngineUseMemoryPct_ = looseXEngineUseMemoryPct;
  334. setParameter(std::string("LooseXEngineUseMemoryPct"), looseXEngineUseMemoryPct);
  335. }
  336. std::string CreateDBClusterRequest::getUsedTime() const {
  337. return usedTime_;
  338. }
  339. void CreateDBClusterRequest::setUsedTime(const std::string &usedTime) {
  340. usedTime_ = usedTime;
  341. setParameter(std::string("UsedTime"), usedTime);
  342. }
  343. int CreateDBClusterRequest::getDBNodeNum() const {
  344. return dBNodeNum_;
  345. }
  346. void CreateDBClusterRequest::setDBNodeNum(int dBNodeNum) {
  347. dBNodeNum_ = dBNodeNum;
  348. setParameter(std::string("DBNodeNum"), std::to_string(dBNodeNum));
  349. }
  350. long CreateDBClusterRequest::getStorageUpperBound() const {
  351. return storageUpperBound_;
  352. }
  353. void CreateDBClusterRequest::setStorageUpperBound(long storageUpperBound) {
  354. storageUpperBound_ = storageUpperBound;
  355. setParameter(std::string("StorageUpperBound"), std::to_string(storageUpperBound));
  356. }
  357. std::string CreateDBClusterRequest::getVPCId() const {
  358. return vPCId_;
  359. }
  360. void CreateDBClusterRequest::setVPCId(const std::string &vPCId) {
  361. vPCId_ = vPCId;
  362. setParameter(std::string("VPCId"), vPCId);
  363. }
  364. std::string CreateDBClusterRequest::getScaleRoNumMin() const {
  365. return scaleRoNumMin_;
  366. }
  367. void CreateDBClusterRequest::setScaleRoNumMin(const std::string &scaleRoNumMin) {
  368. scaleRoNumMin_ = scaleRoNumMin;
  369. setParameter(std::string("ScaleRoNumMin"), scaleRoNumMin);
  370. }
  371. std::string CreateDBClusterRequest::getDBType() const {
  372. return dBType_;
  373. }
  374. void CreateDBClusterRequest::setDBType(const std::string &dBType) {
  375. dBType_ = dBType;
  376. setParameter(std::string("DBType"), dBType);
  377. }
  378. std::string CreateDBClusterRequest::getDBVersion() const {
  379. return dBVersion_;
  380. }
  381. void CreateDBClusterRequest::setDBVersion(const std::string &dBVersion) {
  382. dBVersion_ = dBVersion;
  383. setParameter(std::string("DBVersion"), dBVersion);
  384. }
  385. std::string CreateDBClusterRequest::getStrictConsistency() const {
  386. return strictConsistency_;
  387. }
  388. void CreateDBClusterRequest::setStrictConsistency(const std::string &strictConsistency) {
  389. strictConsistency_ = strictConsistency;
  390. setParameter(std::string("StrictConsistency"), strictConsistency);
  391. }
  392. std::string CreateDBClusterRequest::getCloneDataPoint() const {
  393. return cloneDataPoint_;
  394. }
  395. void CreateDBClusterRequest::setCloneDataPoint(const std::string &cloneDataPoint) {
  396. cloneDataPoint_ = cloneDataPoint;
  397. setParameter(std::string("CloneDataPoint"), cloneDataPoint);
  398. }
  399. std::string CreateDBClusterRequest::getPayType() const {
  400. return payType_;
  401. }
  402. void CreateDBClusterRequest::setPayType(const std::string &payType) {
  403. payType_ = payType;
  404. setParameter(std::string("PayType"), payType);
  405. }
  406. long CreateDBClusterRequest::getStorageSpace() const {
  407. return storageSpace_;
  408. }
  409. void CreateDBClusterRequest::setStorageSpace(long storageSpace) {
  410. storageSpace_ = storageSpace;
  411. setParameter(std::string("StorageSpace"), std::to_string(storageSpace));
  412. }
  413. std::string CreateDBClusterRequest::getServerlessType() const {
  414. return serverlessType_;
  415. }
  416. void CreateDBClusterRequest::setServerlessType(const std::string &serverlessType) {
  417. serverlessType_ = serverlessType;
  418. setParameter(std::string("ServerlessType"), serverlessType);
  419. }