AllocateDedicatedHostsRequest.cc 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  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/ecs/model/AllocateDedicatedHostsRequest.h>
  17. using AlibabaCloud::Ecs::Model::AllocateDedicatedHostsRequest;
  18. AllocateDedicatedHostsRequest::AllocateDedicatedHostsRequest() :
  19. RpcServiceRequest("ecs", "2014-05-26", "AllocateDedicatedHosts")
  20. {}
  21. AllocateDedicatedHostsRequest::~AllocateDedicatedHostsRequest()
  22. {}
  23. long AllocateDedicatedHostsRequest::getResourceOwnerId()const
  24. {
  25. return resourceOwnerId_;
  26. }
  27. void AllocateDedicatedHostsRequest::setResourceOwnerId(long resourceOwnerId)
  28. {
  29. resourceOwnerId_ = resourceOwnerId;
  30. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  31. }
  32. std::string AllocateDedicatedHostsRequest::getClientToken()const
  33. {
  34. return clientToken_;
  35. }
  36. void AllocateDedicatedHostsRequest::setClientToken(const std::string& clientToken)
  37. {
  38. clientToken_ = clientToken;
  39. setCoreParameter("ClientToken", clientToken);
  40. }
  41. long AllocateDedicatedHostsRequest::getCallerParentId()const
  42. {
  43. return callerParentId_;
  44. }
  45. void AllocateDedicatedHostsRequest::setCallerParentId(long callerParentId)
  46. {
  47. callerParentId_ = callerParentId;
  48. setCoreParameter("CallerParentId", std::to_string(callerParentId));
  49. }
  50. bool AllocateDedicatedHostsRequest::getProxy_original_security_transport()const
  51. {
  52. return proxy_original_security_transport_;
  53. }
  54. void AllocateDedicatedHostsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
  55. {
  56. proxy_original_security_transport_ = proxy_original_security_transport;
  57. setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
  58. }
  59. std::string AllocateDedicatedHostsRequest::getDescription()const
  60. {
  61. return description_;
  62. }
  63. void AllocateDedicatedHostsRequest::setDescription(const std::string& description)
  64. {
  65. description_ = description;
  66. setCoreParameter("Description", description);
  67. }
  68. std::string AllocateDedicatedHostsRequest::getProxy_original_source_ip()const
  69. {
  70. return proxy_original_source_ip_;
  71. }
  72. void AllocateDedicatedHostsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
  73. {
  74. proxy_original_source_ip_ = proxy_original_source_ip;
  75. setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
  76. }
  77. std::string AllocateDedicatedHostsRequest::getOwnerIdLoginEmail()const
  78. {
  79. return ownerIdLoginEmail_;
  80. }
  81. void AllocateDedicatedHostsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
  82. {
  83. ownerIdLoginEmail_ = ownerIdLoginEmail;
  84. setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
  85. }
  86. std::string AllocateDedicatedHostsRequest::getCallerType()const
  87. {
  88. return callerType_;
  89. }
  90. void AllocateDedicatedHostsRequest::setCallerType(const std::string& callerType)
  91. {
  92. callerType_ = callerType;
  93. setCoreParameter("CallerType", callerType);
  94. }
  95. std::string AllocateDedicatedHostsRequest::getAccessKeyId()const
  96. {
  97. return accessKeyId_;
  98. }
  99. void AllocateDedicatedHostsRequest::setAccessKeyId(const std::string& accessKeyId)
  100. {
  101. accessKeyId_ = accessKeyId;
  102. setCoreParameter("AccessKeyId", accessKeyId);
  103. }
  104. std::string AllocateDedicatedHostsRequest::getSourceRegionId()const
  105. {
  106. return sourceRegionId_;
  107. }
  108. void AllocateDedicatedHostsRequest::setSourceRegionId(const std::string& sourceRegionId)
  109. {
  110. sourceRegionId_ = sourceRegionId;
  111. setCoreParameter("SourceRegionId", sourceRegionId);
  112. }
  113. std::string AllocateDedicatedHostsRequest::getResourceGroupId()const
  114. {
  115. return resourceGroupId_;
  116. }
  117. void AllocateDedicatedHostsRequest::setResourceGroupId(const std::string& resourceGroupId)
  118. {
  119. resourceGroupId_ = resourceGroupId;
  120. setCoreParameter("ResourceGroupId", resourceGroupId);
  121. }
  122. std::string AllocateDedicatedHostsRequest::getSecurityToken()const
  123. {
  124. return securityToken_;
  125. }
  126. void AllocateDedicatedHostsRequest::setSecurityToken(const std::string& securityToken)
  127. {
  128. securityToken_ = securityToken;
  129. setCoreParameter("SecurityToken", securityToken);
  130. }
  131. std::string AllocateDedicatedHostsRequest::getRegionId()const
  132. {
  133. return regionId_;
  134. }
  135. void AllocateDedicatedHostsRequest::setRegionId(const std::string& regionId)
  136. {
  137. regionId_ = regionId;
  138. setCoreParameter("RegionId", regionId);
  139. }
  140. bool AllocateDedicatedHostsRequest::getEnable()const
  141. {
  142. return enable_;
  143. }
  144. void AllocateDedicatedHostsRequest::setEnable(bool enable)
  145. {
  146. enable_ = enable;
  147. setCoreParameter("Enable", enable ? "true" : "false");
  148. }
  149. std::string AllocateDedicatedHostsRequest::getRequestContent()const
  150. {
  151. return requestContent_;
  152. }
  153. void AllocateDedicatedHostsRequest::setRequestContent(const std::string& requestContent)
  154. {
  155. requestContent_ = requestContent;
  156. setCoreParameter("RequestContent", requestContent);
  157. }
  158. std::string AllocateDedicatedHostsRequest::getActionOnMaintenance()const
  159. {
  160. return actionOnMaintenance_;
  161. }
  162. void AllocateDedicatedHostsRequest::setActionOnMaintenance(const std::string& actionOnMaintenance)
  163. {
  164. actionOnMaintenance_ = actionOnMaintenance;
  165. setCoreParameter("ActionOnMaintenance", actionOnMaintenance);
  166. }
  167. std::string AllocateDedicatedHostsRequest::getCallerBidEmail()const
  168. {
  169. return callerBidEmail_;
  170. }
  171. void AllocateDedicatedHostsRequest::setCallerBidEmail(const std::string& callerBidEmail)
  172. {
  173. callerBidEmail_ = callerBidEmail;
  174. setCoreParameter("CallerBidEmail", callerBidEmail);
  175. }
  176. std::vector<AllocateDedicatedHostsRequest::Tag> AllocateDedicatedHostsRequest::getTag()const
  177. {
  178. return tag_;
  179. }
  180. void AllocateDedicatedHostsRequest::setTag(const std::vector<Tag>& tag)
  181. {
  182. tag_ = tag;
  183. int i = 0;
  184. for(int i = 0; i!= tag.size(); i++) {
  185. auto obj = tag.at(i);
  186. std::string str ="Tag."+ std::to_string(i);
  187. setCoreParameter(str + ".Key", obj.key);
  188. setCoreParameter(str + ".Value", obj.value);
  189. }
  190. }
  191. std::string AllocateDedicatedHostsRequest::getDedicatedHostType()const
  192. {
  193. return dedicatedHostType_;
  194. }
  195. void AllocateDedicatedHostsRequest::setDedicatedHostType(const std::string& dedicatedHostType)
  196. {
  197. dedicatedHostType_ = dedicatedHostType;
  198. setCoreParameter("DedicatedHostType", dedicatedHostType);
  199. }
  200. std::string AllocateDedicatedHostsRequest::getCallerUidEmail()const
  201. {
  202. return callerUidEmail_;
  203. }
  204. void AllocateDedicatedHostsRequest::setCallerUidEmail(const std::string& callerUidEmail)
  205. {
  206. callerUidEmail_ = callerUidEmail;
  207. setCoreParameter("CallerUidEmail", callerUidEmail);
  208. }
  209. long AllocateDedicatedHostsRequest::getCallerUid()const
  210. {
  211. return callerUid_;
  212. }
  213. void AllocateDedicatedHostsRequest::setCallerUid(long callerUid)
  214. {
  215. callerUid_ = callerUid;
  216. setCoreParameter("CallerUid", std::to_string(callerUid));
  217. }
  218. std::string AllocateDedicatedHostsRequest::getApp_ip()const
  219. {
  220. return app_ip_;
  221. }
  222. void AllocateDedicatedHostsRequest::setApp_ip(const std::string& app_ip)
  223. {
  224. app_ip_ = app_ip;
  225. setCoreParameter("App_ip", app_ip);
  226. }
  227. int AllocateDedicatedHostsRequest::getAutoRenewPeriod()const
  228. {
  229. return autoRenewPeriod_;
  230. }
  231. void AllocateDedicatedHostsRequest::setAutoRenewPeriod(int autoRenewPeriod)
  232. {
  233. autoRenewPeriod_ = autoRenewPeriod;
  234. setCoreParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
  235. }
  236. int AllocateDedicatedHostsRequest::getPeriod()const
  237. {
  238. return period_;
  239. }
  240. void AllocateDedicatedHostsRequest::setPeriod(int period)
  241. {
  242. period_ = period;
  243. setCoreParameter("Period", std::to_string(period));
  244. }
  245. int AllocateDedicatedHostsRequest::getQuantity()const
  246. {
  247. return quantity_;
  248. }
  249. void AllocateDedicatedHostsRequest::setQuantity(int quantity)
  250. {
  251. quantity_ = quantity;
  252. setCoreParameter("Quantity", std::to_string(quantity));
  253. }
  254. std::string AllocateDedicatedHostsRequest::getDedicatedHostName()const
  255. {
  256. return dedicatedHostName_;
  257. }
  258. void AllocateDedicatedHostsRequest::setDedicatedHostName(const std::string& dedicatedHostName)
  259. {
  260. dedicatedHostName_ = dedicatedHostName;
  261. setCoreParameter("DedicatedHostName", dedicatedHostName);
  262. }
  263. std::string AllocateDedicatedHostsRequest::getResourceOwnerAccount()const
  264. {
  265. return resourceOwnerAccount_;
  266. }
  267. void AllocateDedicatedHostsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  268. {
  269. resourceOwnerAccount_ = resourceOwnerAccount;
  270. setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
  271. }
  272. std::string AllocateDedicatedHostsRequest::getOwnerAccount()const
  273. {
  274. return ownerAccount_;
  275. }
  276. void AllocateDedicatedHostsRequest::setOwnerAccount(const std::string& ownerAccount)
  277. {
  278. ownerAccount_ = ownerAccount;
  279. setCoreParameter("OwnerAccount", ownerAccount);
  280. }
  281. std::string AllocateDedicatedHostsRequest::getAutoReleaseTime()const
  282. {
  283. return autoReleaseTime_;
  284. }
  285. void AllocateDedicatedHostsRequest::setAutoReleaseTime(const std::string& autoReleaseTime)
  286. {
  287. autoReleaseTime_ = autoReleaseTime;
  288. setCoreParameter("AutoReleaseTime", autoReleaseTime);
  289. }
  290. std::string AllocateDedicatedHostsRequest::getCallerBid()const
  291. {
  292. return callerBid_;
  293. }
  294. void AllocateDedicatedHostsRequest::setCallerBid(const std::string& callerBid)
  295. {
  296. callerBid_ = callerBid;
  297. setCoreParameter("CallerBid", callerBid);
  298. }
  299. long AllocateDedicatedHostsRequest::getOwnerId()const
  300. {
  301. return ownerId_;
  302. }
  303. void AllocateDedicatedHostsRequest::setOwnerId(long ownerId)
  304. {
  305. ownerId_ = ownerId;
  306. setCoreParameter("OwnerId", std::to_string(ownerId));
  307. }
  308. bool AllocateDedicatedHostsRequest::getProxy_trust_transport_info()const
  309. {
  310. return proxy_trust_transport_info_;
  311. }
  312. void AllocateDedicatedHostsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
  313. {
  314. proxy_trust_transport_info_ = proxy_trust_transport_info;
  315. setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
  316. }
  317. bool AllocateDedicatedHostsRequest::getAk_mfa_present()const
  318. {
  319. return ak_mfa_present_;
  320. }
  321. void AllocateDedicatedHostsRequest::setAk_mfa_present(bool ak_mfa_present)
  322. {
  323. ak_mfa_present_ = ak_mfa_present;
  324. setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
  325. }
  326. bool AllocateDedicatedHostsRequest::getSecurity_transport()const
  327. {
  328. return security_transport_;
  329. }
  330. void AllocateDedicatedHostsRequest::setSecurity_transport(bool security_transport)
  331. {
  332. security_transport_ = security_transport;
  333. setCoreParameter("Security_transport", security_transport ? "true" : "false");
  334. }
  335. std::string AllocateDedicatedHostsRequest::getPeriodUnit()const
  336. {
  337. return periodUnit_;
  338. }
  339. void AllocateDedicatedHostsRequest::setPeriodUnit(const std::string& periodUnit)
  340. {
  341. periodUnit_ = periodUnit;
  342. setCoreParameter("PeriodUnit", periodUnit);
  343. }
  344. bool AllocateDedicatedHostsRequest::getAutoRenew()const
  345. {
  346. return autoRenew_;
  347. }
  348. void AllocateDedicatedHostsRequest::setAutoRenew(bool autoRenew)
  349. {
  350. autoRenew_ = autoRenew;
  351. setCoreParameter("AutoRenew", autoRenew ? "true" : "false");
  352. }
  353. std::string AllocateDedicatedHostsRequest::getRequestId()const
  354. {
  355. return requestId_;
  356. }
  357. void AllocateDedicatedHostsRequest::setRequestId(const std::string& requestId)
  358. {
  359. requestId_ = requestId;
  360. setCoreParameter("RequestId", requestId);
  361. }
  362. int AllocateDedicatedHostsRequest::getNetworkAttributesSlbUdpTimeout()const
  363. {
  364. return networkAttributesSlbUdpTimeout_;
  365. }
  366. void AllocateDedicatedHostsRequest::setNetworkAttributesSlbUdpTimeout(int networkAttributesSlbUdpTimeout)
  367. {
  368. networkAttributesSlbUdpTimeout_ = networkAttributesSlbUdpTimeout;
  369. setCoreParameter("NetworkAttributesSlbUdpTimeout", std::to_string(networkAttributesSlbUdpTimeout));
  370. }
  371. std::string AllocateDedicatedHostsRequest::getZoneId()const
  372. {
  373. return zoneId_;
  374. }
  375. void AllocateDedicatedHostsRequest::setZoneId(const std::string& zoneId)
  376. {
  377. zoneId_ = zoneId;
  378. setCoreParameter("ZoneId", zoneId);
  379. }
  380. std::string AllocateDedicatedHostsRequest::getAutoPlacement()const
  381. {
  382. return autoPlacement_;
  383. }
  384. void AllocateDedicatedHostsRequest::setAutoPlacement(const std::string& autoPlacement)
  385. {
  386. autoPlacement_ = autoPlacement;
  387. setCoreParameter("AutoPlacement", autoPlacement);
  388. }
  389. std::string AllocateDedicatedHostsRequest::getChargeType()const
  390. {
  391. return chargeType_;
  392. }
  393. void AllocateDedicatedHostsRequest::setChargeType(const std::string& chargeType)
  394. {
  395. chargeType_ = chargeType;
  396. setCoreParameter("ChargeType", chargeType);
  397. }
  398. int AllocateDedicatedHostsRequest::getNetworkAttributesUdpTimeout()const
  399. {
  400. return networkAttributesUdpTimeout_;
  401. }
  402. void AllocateDedicatedHostsRequest::setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout)
  403. {
  404. networkAttributesUdpTimeout_ = networkAttributesUdpTimeout;
  405. setCoreParameter("NetworkAttributesUdpTimeout", std::to_string(networkAttributesUdpTimeout));
  406. }