ConfigureBackupPlanRequest.cc 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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/dbs/model/ConfigureBackupPlanRequest.h>
  17. using AlibabaCloud::Dbs::Model::ConfigureBackupPlanRequest;
  18. ConfigureBackupPlanRequest::ConfigureBackupPlanRequest() :
  19. RpcServiceRequest("dbs", "2019-03-06", "ConfigureBackupPlan")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ConfigureBackupPlanRequest::~ConfigureBackupPlanRequest()
  24. {}
  25. std::string ConfigureBackupPlanRequest::getSourceEndpointRegion()const
  26. {
  27. return sourceEndpointRegion_;
  28. }
  29. void ConfigureBackupPlanRequest::setSourceEndpointRegion(const std::string& sourceEndpointRegion)
  30. {
  31. sourceEndpointRegion_ = sourceEndpointRegion;
  32. setParameter("SourceEndpointRegion", sourceEndpointRegion);
  33. }
  34. long ConfigureBackupPlanRequest::getBackupGatewayId()const
  35. {
  36. return backupGatewayId_;
  37. }
  38. void ConfigureBackupPlanRequest::setBackupGatewayId(long backupGatewayId)
  39. {
  40. backupGatewayId_ = backupGatewayId;
  41. setParameter("BackupGatewayId", std::to_string(backupGatewayId));
  42. }
  43. std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceID()const
  44. {
  45. return sourceEndpointInstanceID_;
  46. }
  47. void ConfigureBackupPlanRequest::setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID)
  48. {
  49. sourceEndpointInstanceID_ = sourceEndpointInstanceID;
  50. setParameter("SourceEndpointInstanceID", sourceEndpointInstanceID);
  51. }
  52. std::string ConfigureBackupPlanRequest::getSourceEndpointUserName()const
  53. {
  54. return sourceEndpointUserName_;
  55. }
  56. void ConfigureBackupPlanRequest::setSourceEndpointUserName(const std::string& sourceEndpointUserName)
  57. {
  58. sourceEndpointUserName_ = sourceEndpointUserName;
  59. setParameter("SourceEndpointUserName", sourceEndpointUserName);
  60. }
  61. std::string ConfigureBackupPlanRequest::getClientToken()const
  62. {
  63. return clientToken_;
  64. }
  65. void ConfigureBackupPlanRequest::setClientToken(const std::string& clientToken)
  66. {
  67. clientToken_ = clientToken;
  68. setParameter("ClientToken", clientToken);
  69. }
  70. std::string ConfigureBackupPlanRequest::getBackupPlanId()const
  71. {
  72. return backupPlanId_;
  73. }
  74. void ConfigureBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId)
  75. {
  76. backupPlanId_ = backupPlanId;
  77. setParameter("BackupPlanId", backupPlanId);
  78. }
  79. std::string ConfigureBackupPlanRequest::getSourceEndpointDatabaseName()const
  80. {
  81. return sourceEndpointDatabaseName_;
  82. }
  83. void ConfigureBackupPlanRequest::setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName)
  84. {
  85. sourceEndpointDatabaseName_ = sourceEndpointDatabaseName;
  86. setParameter("SourceEndpointDatabaseName", sourceEndpointDatabaseName);
  87. }
  88. int ConfigureBackupPlanRequest::getDuplicationInfrequentAccessPeriod()const
  89. {
  90. return duplicationInfrequentAccessPeriod_;
  91. }
  92. void ConfigureBackupPlanRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod)
  93. {
  94. duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod;
  95. setParameter("DuplicationInfrequentAccessPeriod", std::to_string(duplicationInfrequentAccessPeriod));
  96. }
  97. std::string ConfigureBackupPlanRequest::getBackupStartTime()const
  98. {
  99. return backupStartTime_;
  100. }
  101. void ConfigureBackupPlanRequest::setBackupStartTime(const std::string& backupStartTime)
  102. {
  103. backupStartTime_ = backupStartTime;
  104. setParameter("BackupStartTime", backupStartTime);
  105. }
  106. std::string ConfigureBackupPlanRequest::getSourceEndpointIP()const
  107. {
  108. return sourceEndpointIP_;
  109. }
  110. void ConfigureBackupPlanRequest::setSourceEndpointIP(const std::string& sourceEndpointIP)
  111. {
  112. sourceEndpointIP_ = sourceEndpointIP;
  113. setParameter("SourceEndpointIP", sourceEndpointIP);
  114. }
  115. bool ConfigureBackupPlanRequest::getEnableBackupLog()const
  116. {
  117. return enableBackupLog_;
  118. }
  119. void ConfigureBackupPlanRequest::setEnableBackupLog(bool enableBackupLog)
  120. {
  121. enableBackupLog_ = enableBackupLog;
  122. setParameter("EnableBackupLog", enableBackupLog ? "true" : "false");
  123. }
  124. std::string ConfigureBackupPlanRequest::getBackupStorageType()const
  125. {
  126. return backupStorageType_;
  127. }
  128. void ConfigureBackupPlanRequest::setBackupStorageType(const std::string& backupStorageType)
  129. {
  130. backupStorageType_ = backupStorageType;
  131. setParameter("BackupStorageType", backupStorageType);
  132. }
  133. int ConfigureBackupPlanRequest::getDuplicationArchivePeriod()const
  134. {
  135. return duplicationArchivePeriod_;
  136. }
  137. void ConfigureBackupPlanRequest::setDuplicationArchivePeriod(int duplicationArchivePeriod)
  138. {
  139. duplicationArchivePeriod_ = duplicationArchivePeriod;
  140. setParameter("DuplicationArchivePeriod", std::to_string(duplicationArchivePeriod));
  141. }
  142. std::string ConfigureBackupPlanRequest::getSourceEndpointPassword()const
  143. {
  144. return sourceEndpointPassword_;
  145. }
  146. void ConfigureBackupPlanRequest::setSourceEndpointPassword(const std::string& sourceEndpointPassword)
  147. {
  148. sourceEndpointPassword_ = sourceEndpointPassword;
  149. setParameter("SourceEndpointPassword", sourceEndpointPassword);
  150. }
  151. std::string ConfigureBackupPlanRequest::getBackupObjects()const
  152. {
  153. return backupObjects_;
  154. }
  155. void ConfigureBackupPlanRequest::setBackupObjects(const std::string& backupObjects)
  156. {
  157. backupObjects_ = backupObjects;
  158. setParameter("BackupObjects", backupObjects);
  159. }
  160. std::string ConfigureBackupPlanRequest::getOwnerId()const
  161. {
  162. return ownerId_;
  163. }
  164. void ConfigureBackupPlanRequest::setOwnerId(const std::string& ownerId)
  165. {
  166. ownerId_ = ownerId;
  167. setParameter("OwnerId", ownerId);
  168. }
  169. int ConfigureBackupPlanRequest::getSourceEndpointPort()const
  170. {
  171. return sourceEndpointPort_;
  172. }
  173. void ConfigureBackupPlanRequest::setSourceEndpointPort(int sourceEndpointPort)
  174. {
  175. sourceEndpointPort_ = sourceEndpointPort;
  176. setParameter("SourceEndpointPort", std::to_string(sourceEndpointPort));
  177. }
  178. int ConfigureBackupPlanRequest::getBackupRetentionPeriod()const
  179. {
  180. return backupRetentionPeriod_;
  181. }
  182. void ConfigureBackupPlanRequest::setBackupRetentionPeriod(int backupRetentionPeriod)
  183. {
  184. backupRetentionPeriod_ = backupRetentionPeriod;
  185. setParameter("BackupRetentionPeriod", std::to_string(backupRetentionPeriod));
  186. }
  187. std::string ConfigureBackupPlanRequest::getBackupPeriod()const
  188. {
  189. return backupPeriod_;
  190. }
  191. void ConfigureBackupPlanRequest::setBackupPeriod(const std::string& backupPeriod)
  192. {
  193. backupPeriod_ = backupPeriod;
  194. setParameter("BackupPeriod", backupPeriod);
  195. }
  196. std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceType()const
  197. {
  198. return sourceEndpointInstanceType_;
  199. }
  200. void ConfigureBackupPlanRequest::setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType)
  201. {
  202. sourceEndpointInstanceType_ = sourceEndpointInstanceType;
  203. setParameter("SourceEndpointInstanceType", sourceEndpointInstanceType);
  204. }
  205. std::string ConfigureBackupPlanRequest::getBackupPlanName()const
  206. {
  207. return backupPlanName_;
  208. }
  209. void ConfigureBackupPlanRequest::setBackupPlanName(const std::string& backupPlanName)
  210. {
  211. backupPlanName_ = backupPlanName;
  212. setParameter("BackupPlanName", backupPlanName);
  213. }
  214. std::string ConfigureBackupPlanRequest::getSourceEndpointOracleSID()const
  215. {
  216. return sourceEndpointOracleSID_;
  217. }
  218. void ConfigureBackupPlanRequest::setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID)
  219. {
  220. sourceEndpointOracleSID_ = sourceEndpointOracleSID;
  221. setParameter("SourceEndpointOracleSID", sourceEndpointOracleSID);
  222. }
  223. std::string ConfigureBackupPlanRequest::getOSSBucketName()const
  224. {
  225. return oSSBucketName_;
  226. }
  227. void ConfigureBackupPlanRequest::setOSSBucketName(const std::string& oSSBucketName)
  228. {
  229. oSSBucketName_ = oSSBucketName;
  230. setParameter("OSSBucketName", oSSBucketName);
  231. }