DeployApplicationRequest.cc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  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::getJarStartArgs()const
  36. {
  37. return jarStartArgs_;
  38. }
  39. void DeployApplicationRequest::setJarStartArgs(const std::string& jarStartArgs)
  40. {
  41. jarStartArgs_ = jarStartArgs;
  42. setParameter("JarStartArgs", jarStartArgs);
  43. }
  44. std::string DeployApplicationRequest::getOssAkSecret()const
  45. {
  46. return ossAkSecret_;
  47. }
  48. void DeployApplicationRequest::setOssAkSecret(const std::string& ossAkSecret)
  49. {
  50. ossAkSecret_ = ossAkSecret;
  51. setBodyParameter("OssAkSecret", ossAkSecret);
  52. }
  53. std::string DeployApplicationRequest::getMountHost()const
  54. {
  55. return mountHost_;
  56. }
  57. void DeployApplicationRequest::setMountHost(const std::string& mountHost)
  58. {
  59. mountHost_ = mountHost;
  60. setParameter("MountHost", mountHost);
  61. }
  62. int DeployApplicationRequest::getBatchWaitTime()const
  63. {
  64. return batchWaitTime_;
  65. }
  66. void DeployApplicationRequest::setBatchWaitTime(int batchWaitTime)
  67. {
  68. batchWaitTime_ = batchWaitTime;
  69. setParameter("BatchWaitTime", std::to_string(batchWaitTime));
  70. }
  71. std::string DeployApplicationRequest::getEnvs()const
  72. {
  73. return envs_;
  74. }
  75. void DeployApplicationRequest::setEnvs(const std::string& envs)
  76. {
  77. envs_ = envs;
  78. setParameter("Envs", envs);
  79. }
  80. std::string DeployApplicationRequest::getKafkaInstanceId()const
  81. {
  82. return kafkaInstanceId_;
  83. }
  84. void DeployApplicationRequest::setKafkaInstanceId(const std::string& kafkaInstanceId)
  85. {
  86. kafkaInstanceId_ = kafkaInstanceId;
  87. setParameter("KafkaInstanceId", kafkaInstanceId);
  88. }
  89. std::string DeployApplicationRequest::getPhpPECLExtensions()const
  90. {
  91. return phpPECLExtensions_;
  92. }
  93. void DeployApplicationRequest::setPhpPECLExtensions(const std::string& phpPECLExtensions)
  94. {
  95. phpPECLExtensions_ = phpPECLExtensions;
  96. setBodyParameter("PhpPECLExtensions", phpPECLExtensions);
  97. }
  98. std::string DeployApplicationRequest::getPhpArmsConfigLocation()const
  99. {
  100. return phpArmsConfigLocation_;
  101. }
  102. void DeployApplicationRequest::setPhpArmsConfigLocation(const std::string& phpArmsConfigLocation)
  103. {
  104. phpArmsConfigLocation_ = phpArmsConfigLocation;
  105. setParameter("PhpArmsConfigLocation", phpArmsConfigLocation);
  106. }
  107. std::string DeployApplicationRequest::getCustomHostAlias()const
  108. {
  109. return customHostAlias_;
  110. }
  111. void DeployApplicationRequest::setCustomHostAlias(const std::string& customHostAlias)
  112. {
  113. customHostAlias_ = customHostAlias;
  114. setParameter("CustomHostAlias", customHostAlias);
  115. }
  116. std::string DeployApplicationRequest::getJarStartOptions()const
  117. {
  118. return jarStartOptions_;
  119. }
  120. void DeployApplicationRequest::setJarStartOptions(const std::string& jarStartOptions)
  121. {
  122. jarStartOptions_ = jarStartOptions;
  123. setParameter("JarStartOptions", jarStartOptions);
  124. }
  125. std::string DeployApplicationRequest::getConfigMapMountDesc()const
  126. {
  127. return configMapMountDesc_;
  128. }
  129. void DeployApplicationRequest::setConfigMapMountDesc(const std::string& configMapMountDesc)
  130. {
  131. configMapMountDesc_ = configMapMountDesc;
  132. setBodyParameter("ConfigMapMountDesc", configMapMountDesc);
  133. }
  134. std::string DeployApplicationRequest::getOssMountDescs()const
  135. {
  136. return ossMountDescs_;
  137. }
  138. void DeployApplicationRequest::setOssMountDescs(const std::string& ossMountDescs)
  139. {
  140. ossMountDescs_ = ossMountDescs;
  141. setBodyParameter("OssMountDescs", ossMountDescs);
  142. }
  143. std::string DeployApplicationRequest::getKafkaEndpoint()const
  144. {
  145. return kafkaEndpoint_;
  146. }
  147. void DeployApplicationRequest::setKafkaEndpoint(const std::string& kafkaEndpoint)
  148. {
  149. kafkaEndpoint_ = kafkaEndpoint;
  150. setParameter("KafkaEndpoint", kafkaEndpoint);
  151. }
  152. std::string DeployApplicationRequest::getPreStop()const
  153. {
  154. return preStop_;
  155. }
  156. void DeployApplicationRequest::setPreStop(const std::string& preStop)
  157. {
  158. preStop_ = preStop;
  159. setParameter("PreStop", preStop);
  160. }
  161. std::string DeployApplicationRequest::getUpdateStrategy()const
  162. {
  163. return updateStrategy_;
  164. }
  165. void DeployApplicationRequest::setUpdateStrategy(const std::string& updateStrategy)
  166. {
  167. updateStrategy_ = updateStrategy;
  168. setParameter("UpdateStrategy", updateStrategy);
  169. }
  170. std::string DeployApplicationRequest::getChangeOrderDesc()const
  171. {
  172. return changeOrderDesc_;
  173. }
  174. void DeployApplicationRequest::setChangeOrderDesc(const std::string& changeOrderDesc)
  175. {
  176. changeOrderDesc_ = changeOrderDesc;
  177. setParameter("ChangeOrderDesc", changeOrderDesc);
  178. }
  179. int DeployApplicationRequest::getMinReadyInstanceRatio()const
  180. {
  181. return minReadyInstanceRatio_;
  182. }
  183. void DeployApplicationRequest::setMinReadyInstanceRatio(int minReadyInstanceRatio)
  184. {
  185. minReadyInstanceRatio_ = minReadyInstanceRatio;
  186. setParameter("MinReadyInstanceRatio", std::to_string(minReadyInstanceRatio));
  187. }
  188. bool DeployApplicationRequest::getAutoEnableApplicationScalingRule()const
  189. {
  190. return autoEnableApplicationScalingRule_;
  191. }
  192. void DeployApplicationRequest::setAutoEnableApplicationScalingRule(bool autoEnableApplicationScalingRule)
  193. {
  194. autoEnableApplicationScalingRule_ = autoEnableApplicationScalingRule;
  195. setParameter("AutoEnableApplicationScalingRule", autoEnableApplicationScalingRule ? "true" : "false");
  196. }
  197. std::string DeployApplicationRequest::getPostStart()const
  198. {
  199. return postStart_;
  200. }
  201. void DeployApplicationRequest::setPostStart(const std::string& postStart)
  202. {
  203. postStart_ = postStart;
  204. setParameter("PostStart", postStart);
  205. }
  206. std::string DeployApplicationRequest::getPhpExtensions()const
  207. {
  208. return phpExtensions_;
  209. }
  210. void DeployApplicationRequest::setPhpExtensions(const std::string& phpExtensions)
  211. {
  212. phpExtensions_ = phpExtensions;
  213. setBodyParameter("PhpExtensions", phpExtensions);
  214. }
  215. bool DeployApplicationRequest::getAssociateEip()const
  216. {
  217. return associateEip_;
  218. }
  219. void DeployApplicationRequest::setAssociateEip(bool associateEip)
  220. {
  221. associateEip_ = associateEip;
  222. setBodyParameter("AssociateEip", associateEip ? "true" : "false");
  223. }
  224. std::string DeployApplicationRequest::getWebContainer()const
  225. {
  226. return webContainer_;
  227. }
  228. void DeployApplicationRequest::setWebContainer(const std::string& webContainer)
  229. {
  230. webContainer_ = webContainer;
  231. setParameter("WebContainer", webContainer);
  232. }
  233. std::string DeployApplicationRequest::getEnableAhas()const
  234. {
  235. return enableAhas_;
  236. }
  237. void DeployApplicationRequest::setEnableAhas(const std::string& enableAhas)
  238. {
  239. enableAhas_ = enableAhas;
  240. setParameter("EnableAhas", enableAhas);
  241. }
  242. std::string DeployApplicationRequest::getSlsConfigs()const
  243. {
  244. return slsConfigs_;
  245. }
  246. void DeployApplicationRequest::setSlsConfigs(const std::string& slsConfigs)
  247. {
  248. slsConfigs_ = slsConfigs;
  249. setParameter("SlsConfigs", slsConfigs);
  250. }
  251. bool DeployApplicationRequest::getOpenCollectToKafka()const
  252. {
  253. return openCollectToKafka_;
  254. }
  255. void DeployApplicationRequest::setOpenCollectToKafka(bool openCollectToKafka)
  256. {
  257. openCollectToKafka_ = openCollectToKafka;
  258. setParameter("OpenCollectToKafka", openCollectToKafka ? "true" : "false");
  259. }
  260. std::string DeployApplicationRequest::getCommandArgs()const
  261. {
  262. return commandArgs_;
  263. }
  264. void DeployApplicationRequest::setCommandArgs(const std::string& commandArgs)
  265. {
  266. commandArgs_ = commandArgs;
  267. setParameter("CommandArgs", commandArgs);
  268. }
  269. std::string DeployApplicationRequest::getAcrAssumeRoleArn()const
  270. {
  271. return acrAssumeRoleArn_;
  272. }
  273. void DeployApplicationRequest::setAcrAssumeRoleArn(const std::string& acrAssumeRoleArn)
  274. {
  275. acrAssumeRoleArn_ = acrAssumeRoleArn;
  276. setParameter("AcrAssumeRoleArn", acrAssumeRoleArn);
  277. }
  278. std::string DeployApplicationRequest::getReadiness()const
  279. {
  280. return readiness_;
  281. }
  282. void DeployApplicationRequest::setReadiness(const std::string& readiness)
  283. {
  284. readiness_ = readiness;
  285. setParameter("Readiness", readiness);
  286. }
  287. std::string DeployApplicationRequest::getTimezone()const
  288. {
  289. return timezone_;
  290. }
  291. void DeployApplicationRequest::setTimezone(const std::string& timezone)
  292. {
  293. timezone_ = timezone;
  294. setParameter("Timezone", timezone);
  295. }
  296. std::string DeployApplicationRequest::getOssAkId()const
  297. {
  298. return ossAkId_;
  299. }
  300. void DeployApplicationRequest::setOssAkId(const std::string& ossAkId)
  301. {
  302. ossAkId_ = ossAkId;
  303. setBodyParameter("OssAkId", ossAkId);
  304. }
  305. std::string DeployApplicationRequest::getLiveness()const
  306. {
  307. return liveness_;
  308. }
  309. void DeployApplicationRequest::setLiveness(const std::string& liveness)
  310. {
  311. liveness_ = liveness;
  312. setParameter("Liveness", liveness);
  313. }
  314. std::string DeployApplicationRequest::getPackageVersion()const
  315. {
  316. return packageVersion_;
  317. }
  318. void DeployApplicationRequest::setPackageVersion(const std::string& packageVersion)
  319. {
  320. packageVersion_ = packageVersion;
  321. setParameter("PackageVersion", packageVersion);
  322. }
  323. std::string DeployApplicationRequest::getTomcatConfig()const
  324. {
  325. return tomcatConfig_;
  326. }
  327. void DeployApplicationRequest::setTomcatConfig(const std::string& tomcatConfig)
  328. {
  329. tomcatConfig_ = tomcatConfig;
  330. setParameter("TomcatConfig", tomcatConfig);
  331. }
  332. std::string DeployApplicationRequest::getWarStartOptions()const
  333. {
  334. return warStartOptions_;
  335. }
  336. void DeployApplicationRequest::setWarStartOptions(const std::string& warStartOptions)
  337. {
  338. warStartOptions_ = warStartOptions;
  339. setParameter("WarStartOptions", warStartOptions);
  340. }
  341. std::string DeployApplicationRequest::getEdasContainerVersion()const
  342. {
  343. return edasContainerVersion_;
  344. }
  345. void DeployApplicationRequest::setEdasContainerVersion(const std::string& edasContainerVersion)
  346. {
  347. edasContainerVersion_ = edasContainerVersion;
  348. setParameter("EdasContainerVersion", edasContainerVersion);
  349. }
  350. std::string DeployApplicationRequest::getPackageUrl()const
  351. {
  352. return packageUrl_;
  353. }
  354. void DeployApplicationRequest::setPackageUrl(const std::string& packageUrl)
  355. {
  356. packageUrl_ = packageUrl;
  357. setParameter("PackageUrl", packageUrl);
  358. }
  359. int DeployApplicationRequest::getTerminationGracePeriodSeconds()const
  360. {
  361. return terminationGracePeriodSeconds_;
  362. }
  363. void DeployApplicationRequest::setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds)
  364. {
  365. terminationGracePeriodSeconds_ = terminationGracePeriodSeconds;
  366. setParameter("TerminationGracePeriodSeconds", std::to_string(terminationGracePeriodSeconds));
  367. }
  368. std::string DeployApplicationRequest::getPhpConfig()const
  369. {
  370. return phpConfig_;
  371. }
  372. void DeployApplicationRequest::setPhpConfig(const std::string& phpConfig)
  373. {
  374. phpConfig_ = phpConfig;
  375. setBodyParameter("PhpConfig", phpConfig);
  376. }
  377. bool DeployApplicationRequest::getEnableGreyTagRoute()const
  378. {
  379. return enableGreyTagRoute_;
  380. }
  381. void DeployApplicationRequest::setEnableGreyTagRoute(bool enableGreyTagRoute)
  382. {
  383. enableGreyTagRoute_ = enableGreyTagRoute;
  384. setParameter("EnableGreyTagRoute", enableGreyTagRoute ? "true" : "false");
  385. }
  386. std::string DeployApplicationRequest::getCommand()const
  387. {
  388. return command_;
  389. }
  390. void DeployApplicationRequest::setCommand(const std::string& command)
  391. {
  392. command_ = command;
  393. setParameter("Command", command);
  394. }
  395. std::string DeployApplicationRequest::getMountDesc()const
  396. {
  397. return mountDesc_;
  398. }
  399. void DeployApplicationRequest::setMountDesc(const std::string& mountDesc)
  400. {
  401. mountDesc_ = mountDesc;
  402. setParameter("MountDesc", mountDesc);
  403. }
  404. std::string DeployApplicationRequest::getJdk()const
  405. {
  406. return jdk_;
  407. }
  408. void DeployApplicationRequest::setJdk(const std::string& jdk)
  409. {
  410. jdk_ = jdk;
  411. setParameter("Jdk", jdk);
  412. }
  413. int DeployApplicationRequest::getMinReadyInstances()const
  414. {
  415. return minReadyInstances_;
  416. }
  417. void DeployApplicationRequest::setMinReadyInstances(int minReadyInstances)
  418. {
  419. minReadyInstances_ = minReadyInstances;
  420. setParameter("MinReadyInstances", std::to_string(minReadyInstances));
  421. }
  422. std::string DeployApplicationRequest::getKafkaLogfileConfig()const
  423. {
  424. return kafkaLogfileConfig_;
  425. }
  426. void DeployApplicationRequest::setKafkaLogfileConfig(const std::string& kafkaLogfileConfig)
  427. {
  428. kafkaLogfileConfig_ = kafkaLogfileConfig;
  429. setParameter("KafkaLogfileConfig", kafkaLogfileConfig);
  430. }
  431. std::string DeployApplicationRequest::getAcrInstanceId()const
  432. {
  433. return acrInstanceId_;
  434. }
  435. void DeployApplicationRequest::setAcrInstanceId(const std::string& acrInstanceId)
  436. {
  437. acrInstanceId_ = acrInstanceId;
  438. setBodyParameter("AcrInstanceId", acrInstanceId);
  439. }
  440. std::string DeployApplicationRequest::getAppId()const
  441. {
  442. return appId_;
  443. }
  444. void DeployApplicationRequest::setAppId(const std::string& appId)
  445. {
  446. appId_ = appId;
  447. setParameter("AppId", appId);
  448. }
  449. std::string DeployApplicationRequest::getImageUrl()const
  450. {
  451. return imageUrl_;
  452. }
  453. void DeployApplicationRequest::setImageUrl(const std::string& imageUrl)
  454. {
  455. imageUrl_ = imageUrl;
  456. setParameter("ImageUrl", imageUrl);
  457. }
  458. std::string DeployApplicationRequest::getPhp()const
  459. {
  460. return php_;
  461. }
  462. void DeployApplicationRequest::setPhp(const std::string& php)
  463. {
  464. php_ = php;
  465. setBodyParameter("Php", php);
  466. }
  467. std::string DeployApplicationRequest::getPhpConfigLocation()const
  468. {
  469. return phpConfigLocation_;
  470. }
  471. void DeployApplicationRequest::setPhpConfigLocation(const std::string& phpConfigLocation)
  472. {
  473. phpConfigLocation_ = phpConfigLocation;
  474. setParameter("PhpConfigLocation", phpConfigLocation);
  475. }