| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415 |
- /*
- * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #include <alibabacloud/sae/model/DeployApplicationRequest.h>
- using AlibabaCloud::Sae::Model::DeployApplicationRequest;
- DeployApplicationRequest::DeployApplicationRequest() :
- RoaServiceRequest("sae", "2019-05-06")
- {
- setResourcePath("/pop/v1/sam/app/deployApplication");
- setMethod(HttpRequest::Method::Post);
- }
- DeployApplicationRequest::~DeployApplicationRequest()
- {}
- std::string DeployApplicationRequest::getNasId()const
- {
- return nasId_;
- }
- void DeployApplicationRequest::setNasId(const std::string& nasId)
- {
- nasId_ = nasId;
- setParameter("NasId", nasId);
- }
- std::string DeployApplicationRequest::getWebContainer()const
- {
- return webContainer_;
- }
- void DeployApplicationRequest::setWebContainer(const std::string& webContainer)
- {
- webContainer_ = webContainer;
- setParameter("WebContainer", webContainer);
- }
- std::string DeployApplicationRequest::getJarStartArgs()const
- {
- return jarStartArgs_;
- }
- void DeployApplicationRequest::setJarStartArgs(const std::string& jarStartArgs)
- {
- jarStartArgs_ = jarStartArgs;
- setParameter("JarStartArgs", jarStartArgs);
- }
- std::string DeployApplicationRequest::getEnableAhas()const
- {
- return enableAhas_;
- }
- void DeployApplicationRequest::setEnableAhas(const std::string& enableAhas)
- {
- enableAhas_ = enableAhas;
- setParameter("EnableAhas", enableAhas);
- }
- std::string DeployApplicationRequest::getSlsConfigs()const
- {
- return slsConfigs_;
- }
- void DeployApplicationRequest::setSlsConfigs(const std::string& slsConfigs)
- {
- slsConfigs_ = slsConfigs;
- setParameter("SlsConfigs", slsConfigs);
- }
- std::string DeployApplicationRequest::getCommandArgs()const
- {
- return commandArgs_;
- }
- void DeployApplicationRequest::setCommandArgs(const std::string& commandArgs)
- {
- commandArgs_ = commandArgs;
- setParameter("CommandArgs", commandArgs);
- }
- std::string DeployApplicationRequest::getReadiness()const
- {
- return readiness_;
- }
- void DeployApplicationRequest::setReadiness(const std::string& readiness)
- {
- readiness_ = readiness;
- setParameter("Readiness", readiness);
- }
- std::string DeployApplicationRequest::getTimezone()const
- {
- return timezone_;
- }
- void DeployApplicationRequest::setTimezone(const std::string& timezone)
- {
- timezone_ = timezone;
- setParameter("Timezone", timezone);
- }
- std::string DeployApplicationRequest::getMountHost()const
- {
- return mountHost_;
- }
- void DeployApplicationRequest::setMountHost(const std::string& mountHost)
- {
- mountHost_ = mountHost;
- setParameter("MountHost", mountHost);
- }
- int DeployApplicationRequest::getBatchWaitTime()const
- {
- return batchWaitTime_;
- }
- void DeployApplicationRequest::setBatchWaitTime(int batchWaitTime)
- {
- batchWaitTime_ = batchWaitTime;
- setParameter("BatchWaitTime", std::to_string(batchWaitTime));
- }
- std::string DeployApplicationRequest::getLiveness()const
- {
- return liveness_;
- }
- void DeployApplicationRequest::setLiveness(const std::string& liveness)
- {
- liveness_ = liveness;
- setParameter("Liveness", liveness);
- }
- std::string DeployApplicationRequest::getEnvs()const
- {
- return envs_;
- }
- void DeployApplicationRequest::setEnvs(const std::string& envs)
- {
- envs_ = envs;
- setParameter("Envs", envs);
- }
- std::string DeployApplicationRequest::getPhpArmsConfigLocation()const
- {
- return phpArmsConfigLocation_;
- }
- void DeployApplicationRequest::setPhpArmsConfigLocation(const std::string& phpArmsConfigLocation)
- {
- phpArmsConfigLocation_ = phpArmsConfigLocation;
- setParameter("PhpArmsConfigLocation", phpArmsConfigLocation);
- }
- std::string DeployApplicationRequest::getPackageVersion()const
- {
- return packageVersion_;
- }
- void DeployApplicationRequest::setPackageVersion(const std::string& packageVersion)
- {
- packageVersion_ = packageVersion;
- setParameter("PackageVersion", packageVersion);
- }
- std::string DeployApplicationRequest::getTomcatConfig()const
- {
- return tomcatConfig_;
- }
- void DeployApplicationRequest::setTomcatConfig(const std::string& tomcatConfig)
- {
- tomcatConfig_ = tomcatConfig;
- setParameter("TomcatConfig", tomcatConfig);
- }
- std::string DeployApplicationRequest::getCustomHostAlias()const
- {
- return customHostAlias_;
- }
- void DeployApplicationRequest::setCustomHostAlias(const std::string& customHostAlias)
- {
- customHostAlias_ = customHostAlias;
- setParameter("CustomHostAlias", customHostAlias);
- }
- std::string DeployApplicationRequest::getWarStartOptions()const
- {
- return warStartOptions_;
- }
- void DeployApplicationRequest::setWarStartOptions(const std::string& warStartOptions)
- {
- warStartOptions_ = warStartOptions;
- setParameter("WarStartOptions", warStartOptions);
- }
- std::string DeployApplicationRequest::getJarStartOptions()const
- {
- return jarStartOptions_;
- }
- void DeployApplicationRequest::setJarStartOptions(const std::string& jarStartOptions)
- {
- jarStartOptions_ = jarStartOptions;
- setParameter("JarStartOptions", jarStartOptions);
- }
- std::string DeployApplicationRequest::getEdasContainerVersion()const
- {
- return edasContainerVersion_;
- }
- void DeployApplicationRequest::setEdasContainerVersion(const std::string& edasContainerVersion)
- {
- edasContainerVersion_ = edasContainerVersion;
- setParameter("EdasContainerVersion", edasContainerVersion);
- }
- std::string DeployApplicationRequest::getPackageUrl()const
- {
- return packageUrl_;
- }
- void DeployApplicationRequest::setPackageUrl(const std::string& packageUrl)
- {
- packageUrl_ = packageUrl;
- setParameter("PackageUrl", packageUrl);
- }
- int DeployApplicationRequest::getTerminationGracePeriodSeconds()const
- {
- return terminationGracePeriodSeconds_;
- }
- void DeployApplicationRequest::setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds)
- {
- terminationGracePeriodSeconds_ = terminationGracePeriodSeconds;
- setParameter("TerminationGracePeriodSeconds", std::to_string(terminationGracePeriodSeconds));
- }
- std::string DeployApplicationRequest::getConfigMapMountDesc()const
- {
- return configMapMountDesc_;
- }
- void DeployApplicationRequest::setConfigMapMountDesc(const std::string& configMapMountDesc)
- {
- configMapMountDesc_ = configMapMountDesc;
- setBodyParameter("ConfigMapMountDesc", configMapMountDesc);
- }
- std::string DeployApplicationRequest::getPhpConfig()const
- {
- return phpConfig_;
- }
- void DeployApplicationRequest::setPhpConfig(const std::string& phpConfig)
- {
- phpConfig_ = phpConfig;
- setBodyParameter("PhpConfig", phpConfig);
- }
- std::string DeployApplicationRequest::getPreStop()const
- {
- return preStop_;
- }
- void DeployApplicationRequest::setPreStop(const std::string& preStop)
- {
- preStop_ = preStop;
- setParameter("PreStop", preStop);
- }
- std::string DeployApplicationRequest::getCommand()const
- {
- return command_;
- }
- void DeployApplicationRequest::setCommand(const std::string& command)
- {
- command_ = command;
- setParameter("Command", command);
- }
- std::string DeployApplicationRequest::getUpdateStrategy()const
- {
- return updateStrategy_;
- }
- void DeployApplicationRequest::setUpdateStrategy(const std::string& updateStrategy)
- {
- updateStrategy_ = updateStrategy;
- setParameter("UpdateStrategy", updateStrategy);
- }
- std::string DeployApplicationRequest::getMountDesc()const
- {
- return mountDesc_;
- }
- void DeployApplicationRequest::setMountDesc(const std::string& mountDesc)
- {
- mountDesc_ = mountDesc;
- setParameter("MountDesc", mountDesc);
- }
- std::string DeployApplicationRequest::getJdk()const
- {
- return jdk_;
- }
- void DeployApplicationRequest::setJdk(const std::string& jdk)
- {
- jdk_ = jdk;
- setParameter("Jdk", jdk);
- }
- int DeployApplicationRequest::getMinReadyInstances()const
- {
- return minReadyInstances_;
- }
- void DeployApplicationRequest::setMinReadyInstances(int minReadyInstances)
- {
- minReadyInstances_ = minReadyInstances;
- setParameter("MinReadyInstances", std::to_string(minReadyInstances));
- }
- std::string DeployApplicationRequest::getChangeOrderDesc()const
- {
- return changeOrderDesc_;
- }
- void DeployApplicationRequest::setChangeOrderDesc(const std::string& changeOrderDesc)
- {
- changeOrderDesc_ = changeOrderDesc;
- setParameter("ChangeOrderDesc", changeOrderDesc);
- }
- std::string DeployApplicationRequest::getAppId()const
- {
- return appId_;
- }
- void DeployApplicationRequest::setAppId(const std::string& appId)
- {
- appId_ = appId;
- setParameter("AppId", appId);
- }
- std::string DeployApplicationRequest::getImageUrl()const
- {
- return imageUrl_;
- }
- void DeployApplicationRequest::setImageUrl(const std::string& imageUrl)
- {
- imageUrl_ = imageUrl;
- setParameter("ImageUrl", imageUrl);
- }
- bool DeployApplicationRequest::getAutoEnableApplicationScalingRule()const
- {
- return autoEnableApplicationScalingRule_;
- }
- void DeployApplicationRequest::setAutoEnableApplicationScalingRule(bool autoEnableApplicationScalingRule)
- {
- autoEnableApplicationScalingRule_ = autoEnableApplicationScalingRule;
- setParameter("AutoEnableApplicationScalingRule", autoEnableApplicationScalingRule ? "true" : "false");
- }
- std::string DeployApplicationRequest::getPhpConfigLocation()const
- {
- return phpConfigLocation_;
- }
- void DeployApplicationRequest::setPhpConfigLocation(const std::string& phpConfigLocation)
- {
- phpConfigLocation_ = phpConfigLocation;
- setParameter("PhpConfigLocation", phpConfigLocation);
- }
- std::string DeployApplicationRequest::getPostStart()const
- {
- return postStart_;
- }
- void DeployApplicationRequest::setPostStart(const std::string& postStart)
- {
- postStart_ = postStart;
- setParameter("PostStart", postStart);
- }
|