CreateDBClusterRequest.cc 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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. {}
  21. CreateDBClusterRequest::~CreateDBClusterRequest()
  22. {}
  23. long CreateDBClusterRequest::getResourceOwnerId()const
  24. {
  25. return resourceOwnerId_;
  26. }
  27. void CreateDBClusterRequest::setResourceOwnerId(long resourceOwnerId)
  28. {
  29. resourceOwnerId_ = resourceOwnerId;
  30. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  31. }
  32. std::string CreateDBClusterRequest::getDBClusterDescription()const
  33. {
  34. return dBClusterDescription_;
  35. }
  36. void CreateDBClusterRequest::setDBClusterDescription(const std::string& dBClusterDescription)
  37. {
  38. dBClusterDescription_ = dBClusterDescription;
  39. setCoreParameter("DBClusterDescription", dBClusterDescription);
  40. }
  41. std::string CreateDBClusterRequest::getClientToken()const
  42. {
  43. return clientToken_;
  44. }
  45. void CreateDBClusterRequest::setClientToken(const std::string& clientToken)
  46. {
  47. clientToken_ = clientToken;
  48. setCoreParameter("ClientToken", clientToken);
  49. }
  50. std::string CreateDBClusterRequest::getAccessKeyId()const
  51. {
  52. return accessKeyId_;
  53. }
  54. void CreateDBClusterRequest::setAccessKeyId(const std::string& accessKeyId)
  55. {
  56. accessKeyId_ = accessKeyId;
  57. setCoreParameter("AccessKeyId", accessKeyId);
  58. }
  59. std::string CreateDBClusterRequest::getClusterNetworkType()const
  60. {
  61. return clusterNetworkType_;
  62. }
  63. void CreateDBClusterRequest::setClusterNetworkType(const std::string& clusterNetworkType)
  64. {
  65. clusterNetworkType_ = clusterNetworkType;
  66. setCoreParameter("ClusterNetworkType", clusterNetworkType);
  67. }
  68. std::string CreateDBClusterRequest::getDBNodeClass()const
  69. {
  70. return dBNodeClass_;
  71. }
  72. void CreateDBClusterRequest::setDBNodeClass(const std::string& dBNodeClass)
  73. {
  74. dBNodeClass_ = dBNodeClass;
  75. setCoreParameter("DBNodeClass", dBNodeClass);
  76. }
  77. std::string CreateDBClusterRequest::getEngine()const
  78. {
  79. return engine_;
  80. }
  81. void CreateDBClusterRequest::setEngine(const std::string& engine)
  82. {
  83. engine_ = engine;
  84. setCoreParameter("Engine", engine);
  85. }
  86. std::string CreateDBClusterRequest::getCreationOption()const
  87. {
  88. return creationOption_;
  89. }
  90. void CreateDBClusterRequest::setCreationOption(const std::string& creationOption)
  91. {
  92. creationOption_ = creationOption;
  93. setCoreParameter("CreationOption", creationOption);
  94. }
  95. std::string CreateDBClusterRequest::getSourceResourceId()const
  96. {
  97. return sourceResourceId_;
  98. }
  99. void CreateDBClusterRequest::setSourceResourceId(const std::string& sourceResourceId)
  100. {
  101. sourceResourceId_ = sourceResourceId;
  102. setCoreParameter("SourceResourceId", sourceResourceId);
  103. }
  104. std::string CreateDBClusterRequest::getPeriod()const
  105. {
  106. return period_;
  107. }
  108. void CreateDBClusterRequest::setPeriod(const std::string& period)
  109. {
  110. period_ = period;
  111. setCoreParameter("Period", period);
  112. }
  113. std::string CreateDBClusterRequest::getResourceOwnerAccount()const
  114. {
  115. return resourceOwnerAccount_;
  116. }
  117. void CreateDBClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  118. {
  119. resourceOwnerAccount_ = resourceOwnerAccount;
  120. setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
  121. }
  122. std::string CreateDBClusterRequest::getOwnerAccount()const
  123. {
  124. return ownerAccount_;
  125. }
  126. void CreateDBClusterRequest::setOwnerAccount(const std::string& ownerAccount)
  127. {
  128. ownerAccount_ = ownerAccount;
  129. setCoreParameter("OwnerAccount", ownerAccount);
  130. }
  131. long CreateDBClusterRequest::getOwnerId()const
  132. {
  133. return ownerId_;
  134. }
  135. void CreateDBClusterRequest::setOwnerId(long ownerId)
  136. {
  137. ownerId_ = ownerId;
  138. setCoreParameter("OwnerId", std::to_string(ownerId));
  139. }
  140. std::string CreateDBClusterRequest::getUsedTime()const
  141. {
  142. return usedTime_;
  143. }
  144. void CreateDBClusterRequest::setUsedTime(const std::string& usedTime)
  145. {
  146. usedTime_ = usedTime;
  147. setCoreParameter("UsedTime", usedTime);
  148. }
  149. std::string CreateDBClusterRequest::getVSwitchId()const
  150. {
  151. return vSwitchId_;
  152. }
  153. void CreateDBClusterRequest::setVSwitchId(const std::string& vSwitchId)
  154. {
  155. vSwitchId_ = vSwitchId;
  156. setCoreParameter("VSwitchId", vSwitchId);
  157. }
  158. bool CreateDBClusterRequest::getAutoRenew()const
  159. {
  160. return autoRenew_;
  161. }
  162. void CreateDBClusterRequest::setAutoRenew(bool autoRenew)
  163. {
  164. autoRenew_ = autoRenew;
  165. setCoreParameter("AutoRenew", autoRenew ? "true" : "false");
  166. }
  167. std::string CreateDBClusterRequest::getVPCId()const
  168. {
  169. return vPCId_;
  170. }
  171. void CreateDBClusterRequest::setVPCId(const std::string& vPCId)
  172. {
  173. vPCId_ = vPCId;
  174. setCoreParameter("VPCId", vPCId);
  175. }
  176. std::string CreateDBClusterRequest::getDBType()const
  177. {
  178. return dBType_;
  179. }
  180. void CreateDBClusterRequest::setDBType(const std::string& dBType)
  181. {
  182. dBType_ = dBType;
  183. setCoreParameter("DBType", dBType);
  184. }
  185. std::string CreateDBClusterRequest::getZoneId()const
  186. {
  187. return zoneId_;
  188. }
  189. void CreateDBClusterRequest::setZoneId(const std::string& zoneId)
  190. {
  191. zoneId_ = zoneId;
  192. setCoreParameter("ZoneId", zoneId);
  193. }
  194. std::string CreateDBClusterRequest::getDBVersion()const
  195. {
  196. return dBVersion_;
  197. }
  198. void CreateDBClusterRequest::setDBVersion(const std::string& dBVersion)
  199. {
  200. dBVersion_ = dBVersion;
  201. setCoreParameter("DBVersion", dBVersion);
  202. }
  203. std::string CreateDBClusterRequest::getCloneDataPoint()const
  204. {
  205. return cloneDataPoint_;
  206. }
  207. void CreateDBClusterRequest::setCloneDataPoint(const std::string& cloneDataPoint)
  208. {
  209. cloneDataPoint_ = cloneDataPoint;
  210. setCoreParameter("CloneDataPoint", cloneDataPoint);
  211. }
  212. std::string CreateDBClusterRequest::getPayType()const
  213. {
  214. return payType_;
  215. }
  216. void CreateDBClusterRequest::setPayType(const std::string& payType)
  217. {
  218. payType_ = payType;
  219. setCoreParameter("PayType", payType);
  220. }