| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500 |
- /*
- * 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/ehpc/model/CreateClusterRequest.h>
- using AlibabaCloud::EHPC::Model::CreateClusterRequest;
- CreateClusterRequest::CreateClusterRequest() :
- RpcServiceRequest("ehpc", "2018-04-12", "CreateCluster")
- {}
- CreateClusterRequest::~CreateClusterRequest()
- {}
- std::string CreateClusterRequest::getSccClusterId()const
- {
- return sccClusterId_;
- }
- void CreateClusterRequest::setSccClusterId(const std::string& sccClusterId)
- {
- sccClusterId_ = sccClusterId;
- setParameter("SccClusterId", sccClusterId);
- }
- std::string CreateClusterRequest::getImageId()const
- {
- return imageId_;
- }
- void CreateClusterRequest::setImageId(const std::string& imageId)
- {
- imageId_ = imageId;
- setParameter("ImageId", imageId);
- }
- std::string CreateClusterRequest::getEcsOrderManagerInstanceType()const
- {
- return ecsOrderManagerInstanceType_;
- }
- void CreateClusterRequest::setEcsOrderManagerInstanceType(const std::string& ecsOrderManagerInstanceType)
- {
- ecsOrderManagerInstanceType_ = ecsOrderManagerInstanceType;
- setParameter("EcsOrderManagerInstanceType", ecsOrderManagerInstanceType);
- }
- std::string CreateClusterRequest::getEhpcVersion()const
- {
- return ehpcVersion_;
- }
- void CreateClusterRequest::setEhpcVersion(const std::string& ehpcVersion)
- {
- ehpcVersion_ = ehpcVersion;
- setParameter("EhpcVersion", ehpcVersion);
- }
- std::string CreateClusterRequest::getAccountType()const
- {
- return accountType_;
- }
- void CreateClusterRequest::setAccountType(const std::string& accountType)
- {
- accountType_ = accountType;
- setParameter("AccountType", accountType);
- }
- std::string CreateClusterRequest::getSecurityGroupId()const
- {
- return securityGroupId_;
- }
- void CreateClusterRequest::setSecurityGroupId(const std::string& securityGroupId)
- {
- securityGroupId_ = securityGroupId;
- setParameter("SecurityGroupId", securityGroupId);
- }
- std::string CreateClusterRequest::getDescription()const
- {
- return description_;
- }
- void CreateClusterRequest::setDescription(const std::string& description)
- {
- description_ = description;
- setParameter("Description", description);
- }
- std::string CreateClusterRequest::getKeyPairName()const
- {
- return keyPairName_;
- }
- void CreateClusterRequest::setKeyPairName(const std::string& keyPairName)
- {
- keyPairName_ = keyPairName;
- setParameter("KeyPairName", keyPairName);
- }
- std::string CreateClusterRequest::getSecurityGroupName()const
- {
- return securityGroupName_;
- }
- void CreateClusterRequest::setSecurityGroupName(const std::string& securityGroupName)
- {
- securityGroupName_ = securityGroupName;
- setParameter("SecurityGroupName", securityGroupName);
- }
- std::string CreateClusterRequest::getEcsOrderComputeInstanceType()const
- {
- return ecsOrderComputeInstanceType_;
- }
- void CreateClusterRequest::setEcsOrderComputeInstanceType(const std::string& ecsOrderComputeInstanceType)
- {
- ecsOrderComputeInstanceType_ = ecsOrderComputeInstanceType;
- setParameter("EcsOrderComputeInstanceType", ecsOrderComputeInstanceType);
- }
- std::string CreateClusterRequest::getJobQueue()const
- {
- return jobQueue_;
- }
- void CreateClusterRequest::setJobQueue(const std::string& jobQueue)
- {
- jobQueue_ = jobQueue;
- setParameter("JobQueue", jobQueue);
- }
- std::string CreateClusterRequest::getAccessKeyId()const
- {
- return accessKeyId_;
- }
- void CreateClusterRequest::setAccessKeyId(const std::string& accessKeyId)
- {
- accessKeyId_ = accessKeyId;
- setParameter("AccessKeyId", accessKeyId);
- }
- std::string CreateClusterRequest::getImageOwnerAlias()const
- {
- return imageOwnerAlias_;
- }
- void CreateClusterRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
- {
- imageOwnerAlias_ = imageOwnerAlias;
- setParameter("ImageOwnerAlias", imageOwnerAlias);
- }
- std::string CreateClusterRequest::getVolumeType()const
- {
- return volumeType_;
- }
- void CreateClusterRequest::setVolumeType(const std::string& volumeType)
- {
- volumeType_ = volumeType;
- setParameter("VolumeType", volumeType);
- }
- std::string CreateClusterRequest::getDeployMode()const
- {
- return deployMode_;
- }
- void CreateClusterRequest::setDeployMode(const std::string& deployMode)
- {
- deployMode_ = deployMode;
- setParameter("DeployMode", deployMode);
- }
- int CreateClusterRequest::getEcsOrderManagerCount()const
- {
- return ecsOrderManagerCount_;
- }
- void CreateClusterRequest::setEcsOrderManagerCount(int ecsOrderManagerCount)
- {
- ecsOrderManagerCount_ = ecsOrderManagerCount;
- setParameter("EcsOrderManagerCount", std::to_string(ecsOrderManagerCount));
- }
- std::string CreateClusterRequest::getPassword()const
- {
- return password_;
- }
- void CreateClusterRequest::setPassword(const std::string& password)
- {
- password_ = password;
- setParameter("Password", password);
- }
- int CreateClusterRequest::getEcsOrderLoginCount()const
- {
- return ecsOrderLoginCount_;
- }
- void CreateClusterRequest::setEcsOrderLoginCount(int ecsOrderLoginCount)
- {
- ecsOrderLoginCount_ = ecsOrderLoginCount;
- setParameter("EcsOrderLoginCount", std::to_string(ecsOrderLoginCount));
- }
- std::string CreateClusterRequest::getComputeSpotPriceLimit()const
- {
- return computeSpotPriceLimit_;
- }
- void CreateClusterRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit)
- {
- computeSpotPriceLimit_ = computeSpotPriceLimit;
- setParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
- }
- int CreateClusterRequest::getAutoRenewPeriod()const
- {
- return autoRenewPeriod_;
- }
- void CreateClusterRequest::setAutoRenewPeriod(int autoRenewPeriod)
- {
- autoRenewPeriod_ = autoRenewPeriod;
- setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
- }
- int CreateClusterRequest::getPeriod()const
- {
- return period_;
- }
- void CreateClusterRequest::setPeriod(int period)
- {
- period_ = period;
- setParameter("Period", std::to_string(period));
- }
- std::string CreateClusterRequest::getVolumeProtocol()const
- {
- return volumeProtocol_;
- }
- void CreateClusterRequest::setVolumeProtocol(const std::string& volumeProtocol)
- {
- volumeProtocol_ = volumeProtocol;
- setParameter("VolumeProtocol", volumeProtocol);
- }
- std::string CreateClusterRequest::getClientVersion()const
- {
- return clientVersion_;
- }
- void CreateClusterRequest::setClientVersion(const std::string& clientVersion)
- {
- clientVersion_ = clientVersion;
- setParameter("ClientVersion", clientVersion);
- }
- std::string CreateClusterRequest::getOsTag()const
- {
- return osTag_;
- }
- void CreateClusterRequest::setOsTag(const std::string& osTag)
- {
- osTag_ = osTag;
- setParameter("OsTag", osTag);
- }
- std::string CreateClusterRequest::getRemoteDirectory()const
- {
- return remoteDirectory_;
- }
- void CreateClusterRequest::setRemoteDirectory(const std::string& remoteDirectory)
- {
- remoteDirectory_ = remoteDirectory;
- setParameter("RemoteDirectory", remoteDirectory);
- }
- int CreateClusterRequest::getEcsOrderComputeCount()const
- {
- return ecsOrderComputeCount_;
- }
- void CreateClusterRequest::setEcsOrderComputeCount(int ecsOrderComputeCount)
- {
- ecsOrderComputeCount_ = ecsOrderComputeCount;
- setParameter("EcsOrderComputeCount", std::to_string(ecsOrderComputeCount));
- }
- std::string CreateClusterRequest::getComputeSpotStrategy()const
- {
- return computeSpotStrategy_;
- }
- void CreateClusterRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy)
- {
- computeSpotStrategy_ = computeSpotStrategy;
- setParameter("ComputeSpotStrategy", computeSpotStrategy);
- }
- std::vector<CreateClusterRequest::PostInstallScript> CreateClusterRequest::getPostInstallScript()const
- {
- return postInstallScript_;
- }
- void CreateClusterRequest::setPostInstallScript(const std::vector<PostInstallScript>& postInstallScript)
- {
- postInstallScript_ = postInstallScript;
- int i = 0;
- for(int i = 0; i!= postInstallScript.size(); i++) {
- auto obj = postInstallScript.at(i);
- std::string str ="PostInstallScript."+ std::to_string(i);
- setParameter(str + ".Args", obj.args);
- setParameter(str + ".Url", obj.url);
- }
- }
- std::string CreateClusterRequest::getVSwitchId()const
- {
- return vSwitchId_;
- }
- void CreateClusterRequest::setVSwitchId(const std::string& vSwitchId)
- {
- vSwitchId_ = vSwitchId;
- setParameter("VSwitchId", vSwitchId);
- }
- std::string CreateClusterRequest::getPeriodUnit()const
- {
- return periodUnit_;
- }
- void CreateClusterRequest::setPeriodUnit(const std::string& periodUnit)
- {
- periodUnit_ = periodUnit;
- setParameter("PeriodUnit", periodUnit);
- }
- std::vector<CreateClusterRequest::Application> CreateClusterRequest::getApplication()const
- {
- return application_;
- }
- void CreateClusterRequest::setApplication(const std::vector<Application>& application)
- {
- application_ = application;
- int i = 0;
- for(int i = 0; i!= application.size(); i++) {
- auto obj = application.at(i);
- std::string str ="Application."+ std::to_string(i);
- setParameter(str + ".Tag", obj.tag);
- }
- }
- std::string CreateClusterRequest::getAutoRenew()const
- {
- return autoRenew_;
- }
- void CreateClusterRequest::setAutoRenew(const std::string& autoRenew)
- {
- autoRenew_ = autoRenew;
- setParameter("AutoRenew", autoRenew);
- }
- std::string CreateClusterRequest::getEcsChargeType()const
- {
- return ecsChargeType_;
- }
- void CreateClusterRequest::setEcsChargeType(const std::string& ecsChargeType)
- {
- ecsChargeType_ = ecsChargeType;
- setParameter("EcsChargeType", ecsChargeType);
- }
- std::string CreateClusterRequest::getInputFileUrl()const
- {
- return inputFileUrl_;
- }
- void CreateClusterRequest::setInputFileUrl(const std::string& inputFileUrl)
- {
- inputFileUrl_ = inputFileUrl;
- setParameter("InputFileUrl", inputFileUrl);
- }
- std::string CreateClusterRequest::getVpcId()const
- {
- return vpcId_;
- }
- void CreateClusterRequest::setVpcId(const std::string& vpcId)
- {
- vpcId_ = vpcId;
- setParameter("VpcId", vpcId);
- }
- bool CreateClusterRequest::getHaEnable()const
- {
- return haEnable_;
- }
- void CreateClusterRequest::setHaEnable(bool haEnable)
- {
- haEnable_ = haEnable;
- setParameter("HaEnable", std::to_string(haEnable));
- }
- std::string CreateClusterRequest::getName()const
- {
- return name_;
- }
- void CreateClusterRequest::setName(const std::string& name)
- {
- name_ = name;
- setParameter("Name", name);
- }
- std::string CreateClusterRequest::getSchedulerType()const
- {
- return schedulerType_;
- }
- void CreateClusterRequest::setSchedulerType(const std::string& schedulerType)
- {
- schedulerType_ = schedulerType;
- setParameter("SchedulerType", schedulerType);
- }
- std::string CreateClusterRequest::getVolumeId()const
- {
- return volumeId_;
- }
- void CreateClusterRequest::setVolumeId(const std::string& volumeId)
- {
- volumeId_ = volumeId;
- setParameter("VolumeId", volumeId);
- }
- std::string CreateClusterRequest::getVolumeMountpoint()const
- {
- return volumeMountpoint_;
- }
- void CreateClusterRequest::setVolumeMountpoint(const std::string& volumeMountpoint)
- {
- volumeMountpoint_ = volumeMountpoint;
- setParameter("VolumeMountpoint", volumeMountpoint);
- }
- std::string CreateClusterRequest::getEcsOrderLoginInstanceType()const
- {
- return ecsOrderLoginInstanceType_;
- }
- void CreateClusterRequest::setEcsOrderLoginInstanceType(const std::string& ecsOrderLoginInstanceType)
- {
- ecsOrderLoginInstanceType_ = ecsOrderLoginInstanceType;
- setParameter("EcsOrderLoginInstanceType", ecsOrderLoginInstanceType);
- }
- std::string CreateClusterRequest::getZoneId()const
- {
- return zoneId_;
- }
- void CreateClusterRequest::setZoneId(const std::string& zoneId)
- {
- zoneId_ = zoneId;
- setParameter("ZoneId", zoneId);
- }
|