DeployApplicationRequest.cc 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  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/sae/model/DeployApplicationRequest.h>
  17. using AlibabaCloud::Sae::Model::DeployApplicationRequest;
  18. DeployApplicationRequest::DeployApplicationRequest() :
  19. RoaServiceRequest("sae", "2019-05-06")
  20. {
  21. setResourcePath("/pop/v1/sam/app/deployApplication");
  22. setMethod(HttpRequest::Method::Post);
  23. }
  24. DeployApplicationRequest::~DeployApplicationRequest()
  25. {}
  26. std::string DeployApplicationRequest::getNasId()const
  27. {
  28. return nasId_;
  29. }
  30. void DeployApplicationRequest::setNasId(const std::string& nasId)
  31. {
  32. nasId_ = nasId;
  33. setParameter("NasId", nasId);
  34. }
  35. std::string DeployApplicationRequest::getWebContainer()const
  36. {
  37. return webContainer_;
  38. }
  39. void DeployApplicationRequest::setWebContainer(const std::string& webContainer)
  40. {
  41. webContainer_ = webContainer;
  42. setParameter("WebContainer", webContainer);
  43. }
  44. std::string DeployApplicationRequest::getJarStartArgs()const
  45. {
  46. return jarStartArgs_;
  47. }
  48. void DeployApplicationRequest::setJarStartArgs(const std::string& jarStartArgs)
  49. {
  50. jarStartArgs_ = jarStartArgs;
  51. setParameter("JarStartArgs", jarStartArgs);
  52. }
  53. std::string DeployApplicationRequest::getEnableAhas()const
  54. {
  55. return enableAhas_;
  56. }
  57. void DeployApplicationRequest::setEnableAhas(const std::string& enableAhas)
  58. {
  59. enableAhas_ = enableAhas;
  60. setParameter("EnableAhas", enableAhas);
  61. }
  62. std::string DeployApplicationRequest::getSlsConfigs()const
  63. {
  64. return slsConfigs_;
  65. }
  66. void DeployApplicationRequest::setSlsConfigs(const std::string& slsConfigs)
  67. {
  68. slsConfigs_ = slsConfigs;
  69. setParameter("SlsConfigs", slsConfigs);
  70. }
  71. std::string DeployApplicationRequest::getCommandArgs()const
  72. {
  73. return commandArgs_;
  74. }
  75. void DeployApplicationRequest::setCommandArgs(const std::string& commandArgs)
  76. {
  77. commandArgs_ = commandArgs;
  78. setParameter("CommandArgs", commandArgs);
  79. }
  80. std::string DeployApplicationRequest::getReadiness()const
  81. {
  82. return readiness_;
  83. }
  84. void DeployApplicationRequest::setReadiness(const std::string& readiness)
  85. {
  86. readiness_ = readiness;
  87. setParameter("Readiness", readiness);
  88. }
  89. std::string DeployApplicationRequest::getTimezone()const
  90. {
  91. return timezone_;
  92. }
  93. void DeployApplicationRequest::setTimezone(const std::string& timezone)
  94. {
  95. timezone_ = timezone;
  96. setParameter("Timezone", timezone);
  97. }
  98. std::string DeployApplicationRequest::getMountHost()const
  99. {
  100. return mountHost_;
  101. }
  102. void DeployApplicationRequest::setMountHost(const std::string& mountHost)
  103. {
  104. mountHost_ = mountHost;
  105. setParameter("MountHost", mountHost);
  106. }
  107. int DeployApplicationRequest::getBatchWaitTime()const
  108. {
  109. return batchWaitTime_;
  110. }
  111. void DeployApplicationRequest::setBatchWaitTime(int batchWaitTime)
  112. {
  113. batchWaitTime_ = batchWaitTime;
  114. setParameter("BatchWaitTime", std::to_string(batchWaitTime));
  115. }
  116. std::string DeployApplicationRequest::getLiveness()const
  117. {
  118. return liveness_;
  119. }
  120. void DeployApplicationRequest::setLiveness(const std::string& liveness)
  121. {
  122. liveness_ = liveness;
  123. setParameter("Liveness", liveness);
  124. }
  125. std::string DeployApplicationRequest::getEnvs()const
  126. {
  127. return envs_;
  128. }
  129. void DeployApplicationRequest::setEnvs(const std::string& envs)
  130. {
  131. envs_ = envs;
  132. setParameter("Envs", envs);
  133. }
  134. std::string DeployApplicationRequest::getPhpArmsConfigLocation()const
  135. {
  136. return phpArmsConfigLocation_;
  137. }
  138. void DeployApplicationRequest::setPhpArmsConfigLocation(const std::string& phpArmsConfigLocation)
  139. {
  140. phpArmsConfigLocation_ = phpArmsConfigLocation;
  141. setParameter("PhpArmsConfigLocation", phpArmsConfigLocation);
  142. }
  143. std::string DeployApplicationRequest::getPackageVersion()const
  144. {
  145. return packageVersion_;
  146. }
  147. void DeployApplicationRequest::setPackageVersion(const std::string& packageVersion)
  148. {
  149. packageVersion_ = packageVersion;
  150. setParameter("PackageVersion", packageVersion);
  151. }
  152. std::string DeployApplicationRequest::getTomcatConfig()const
  153. {
  154. return tomcatConfig_;
  155. }
  156. void DeployApplicationRequest::setTomcatConfig(const std::string& tomcatConfig)
  157. {
  158. tomcatConfig_ = tomcatConfig;
  159. setParameter("TomcatConfig", tomcatConfig);
  160. }
  161. std::string DeployApplicationRequest::getCustomHostAlias()const
  162. {
  163. return customHostAlias_;
  164. }
  165. void DeployApplicationRequest::setCustomHostAlias(const std::string& customHostAlias)
  166. {
  167. customHostAlias_ = customHostAlias;
  168. setParameter("CustomHostAlias", customHostAlias);
  169. }
  170. std::string DeployApplicationRequest::getWarStartOptions()const
  171. {
  172. return warStartOptions_;
  173. }
  174. void DeployApplicationRequest::setWarStartOptions(const std::string& warStartOptions)
  175. {
  176. warStartOptions_ = warStartOptions;
  177. setParameter("WarStartOptions", warStartOptions);
  178. }
  179. std::string DeployApplicationRequest::getJarStartOptions()const
  180. {
  181. return jarStartOptions_;
  182. }
  183. void DeployApplicationRequest::setJarStartOptions(const std::string& jarStartOptions)
  184. {
  185. jarStartOptions_ = jarStartOptions;
  186. setParameter("JarStartOptions", jarStartOptions);
  187. }
  188. std::string DeployApplicationRequest::getEdasContainerVersion()const
  189. {
  190. return edasContainerVersion_;
  191. }
  192. void DeployApplicationRequest::setEdasContainerVersion(const std::string& edasContainerVersion)
  193. {
  194. edasContainerVersion_ = edasContainerVersion;
  195. setParameter("EdasContainerVersion", edasContainerVersion);
  196. }
  197. std::string DeployApplicationRequest::getPackageUrl()const
  198. {
  199. return packageUrl_;
  200. }
  201. void DeployApplicationRequest::setPackageUrl(const std::string& packageUrl)
  202. {
  203. packageUrl_ = packageUrl;
  204. setParameter("PackageUrl", packageUrl);
  205. }
  206. int DeployApplicationRequest::getTerminationGracePeriodSeconds()const
  207. {
  208. return terminationGracePeriodSeconds_;
  209. }
  210. void DeployApplicationRequest::setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds)
  211. {
  212. terminationGracePeriodSeconds_ = terminationGracePeriodSeconds;
  213. setParameter("TerminationGracePeriodSeconds", std::to_string(terminationGracePeriodSeconds));
  214. }
  215. std::string DeployApplicationRequest::getConfigMapMountDesc()const
  216. {
  217. return configMapMountDesc_;
  218. }
  219. void DeployApplicationRequest::setConfigMapMountDesc(const std::string& configMapMountDesc)
  220. {
  221. configMapMountDesc_ = configMapMountDesc;
  222. setBodyParameter("ConfigMapMountDesc", configMapMountDesc);
  223. }
  224. std::string DeployApplicationRequest::getPhpConfig()const
  225. {
  226. return phpConfig_;
  227. }
  228. void DeployApplicationRequest::setPhpConfig(const std::string& phpConfig)
  229. {
  230. phpConfig_ = phpConfig;
  231. setBodyParameter("PhpConfig", phpConfig);
  232. }
  233. std::string DeployApplicationRequest::getPreStop()const
  234. {
  235. return preStop_;
  236. }
  237. void DeployApplicationRequest::setPreStop(const std::string& preStop)
  238. {
  239. preStop_ = preStop;
  240. setParameter("PreStop", preStop);
  241. }
  242. std::string DeployApplicationRequest::getCommand()const
  243. {
  244. return command_;
  245. }
  246. void DeployApplicationRequest::setCommand(const std::string& command)
  247. {
  248. command_ = command;
  249. setParameter("Command", command);
  250. }
  251. std::string DeployApplicationRequest::getUpdateStrategy()const
  252. {
  253. return updateStrategy_;
  254. }
  255. void DeployApplicationRequest::setUpdateStrategy(const std::string& updateStrategy)
  256. {
  257. updateStrategy_ = updateStrategy;
  258. setParameter("UpdateStrategy", updateStrategy);
  259. }
  260. std::string DeployApplicationRequest::getMountDesc()const
  261. {
  262. return mountDesc_;
  263. }
  264. void DeployApplicationRequest::setMountDesc(const std::string& mountDesc)
  265. {
  266. mountDesc_ = mountDesc;
  267. setParameter("MountDesc", mountDesc);
  268. }
  269. std::string DeployApplicationRequest::getJdk()const
  270. {
  271. return jdk_;
  272. }
  273. void DeployApplicationRequest::setJdk(const std::string& jdk)
  274. {
  275. jdk_ = jdk;
  276. setParameter("Jdk", jdk);
  277. }
  278. int DeployApplicationRequest::getMinReadyInstances()const
  279. {
  280. return minReadyInstances_;
  281. }
  282. void DeployApplicationRequest::setMinReadyInstances(int minReadyInstances)
  283. {
  284. minReadyInstances_ = minReadyInstances;
  285. setParameter("MinReadyInstances", std::to_string(minReadyInstances));
  286. }
  287. std::string DeployApplicationRequest::getChangeOrderDesc()const
  288. {
  289. return changeOrderDesc_;
  290. }
  291. void DeployApplicationRequest::setChangeOrderDesc(const std::string& changeOrderDesc)
  292. {
  293. changeOrderDesc_ = changeOrderDesc;
  294. setParameter("ChangeOrderDesc", changeOrderDesc);
  295. }
  296. std::string DeployApplicationRequest::getAppId()const
  297. {
  298. return appId_;
  299. }
  300. void DeployApplicationRequest::setAppId(const std::string& appId)
  301. {
  302. appId_ = appId;
  303. setParameter("AppId", appId);
  304. }
  305. std::string DeployApplicationRequest::getImageUrl()const
  306. {
  307. return imageUrl_;
  308. }
  309. void DeployApplicationRequest::setImageUrl(const std::string& imageUrl)
  310. {
  311. imageUrl_ = imageUrl;
  312. setParameter("ImageUrl", imageUrl);
  313. }
  314. bool DeployApplicationRequest::getAutoEnableApplicationScalingRule()const
  315. {
  316. return autoEnableApplicationScalingRule_;
  317. }
  318. void DeployApplicationRequest::setAutoEnableApplicationScalingRule(bool autoEnableApplicationScalingRule)
  319. {
  320. autoEnableApplicationScalingRule_ = autoEnableApplicationScalingRule;
  321. setParameter("AutoEnableApplicationScalingRule", autoEnableApplicationScalingRule ? "true" : "false");
  322. }
  323. std::string DeployApplicationRequest::getPhpConfigLocation()const
  324. {
  325. return phpConfigLocation_;
  326. }
  327. void DeployApplicationRequest::setPhpConfigLocation(const std::string& phpConfigLocation)
  328. {
  329. phpConfigLocation_ = phpConfigLocation;
  330. setParameter("PhpConfigLocation", phpConfigLocation);
  331. }
  332. std::string DeployApplicationRequest::getPostStart()const
  333. {
  334. return postStart_;
  335. }
  336. void DeployApplicationRequest::setPostStart(const std::string& postStart)
  337. {
  338. postStart_ = postStart;
  339. setParameter("PostStart", postStart);
  340. }