| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- /*
- * 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/AddNodesRequest.h>
- using AlibabaCloud::EHPC::Model::AddNodesRequest;
- AddNodesRequest::AddNodesRequest() :
- RpcServiceRequest("ehpc", "2018-04-12", "AddNodes")
- {}
- AddNodesRequest::~AddNodesRequest()
- {}
- int AddNodesRequest::getAutoRenewPeriod()const
- {
- return autoRenewPeriod_;
- }
- void AddNodesRequest::setAutoRenewPeriod(int autoRenewPeriod)
- {
- autoRenewPeriod_ = autoRenewPeriod;
- setCoreParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
- }
- int AddNodesRequest::getPeriod()const
- {
- return period_;
- }
- void AddNodesRequest::setPeriod(int period)
- {
- period_ = period;
- setCoreParameter("Period", std::to_string(period));
- }
- std::string AddNodesRequest::getImageId()const
- {
- return imageId_;
- }
- void AddNodesRequest::setImageId(const std::string& imageId)
- {
- imageId_ = imageId;
- setCoreParameter("ImageId", imageId);
- }
- int AddNodesRequest::getCount()const
- {
- return count_;
- }
- void AddNodesRequest::setCount(int count)
- {
- count_ = count;
- setCoreParameter("Count", std::to_string(count));
- }
- std::string AddNodesRequest::getClusterId()const
- {
- return clusterId_;
- }
- void AddNodesRequest::setClusterId(const std::string& clusterId)
- {
- clusterId_ = clusterId;
- setCoreParameter("ClusterId", clusterId);
- }
- std::string AddNodesRequest::getComputeSpotStrategy()const
- {
- return computeSpotStrategy_;
- }
- void AddNodesRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy)
- {
- computeSpotStrategy_ = computeSpotStrategy;
- setCoreParameter("ComputeSpotStrategy", computeSpotStrategy);
- }
- std::string AddNodesRequest::getJobQueue()const
- {
- return jobQueue_;
- }
- void AddNodesRequest::setJobQueue(const std::string& jobQueue)
- {
- jobQueue_ = jobQueue;
- setCoreParameter("JobQueue", jobQueue);
- }
- std::string AddNodesRequest::getAccessKeyId()const
- {
- return accessKeyId_;
- }
- void AddNodesRequest::setAccessKeyId(const std::string& accessKeyId)
- {
- accessKeyId_ = accessKeyId;
- setCoreParameter("AccessKeyId", accessKeyId);
- }
- std::string AddNodesRequest::getImageOwnerAlias()const
- {
- return imageOwnerAlias_;
- }
- void AddNodesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
- {
- imageOwnerAlias_ = imageOwnerAlias;
- setCoreParameter("ImageOwnerAlias", imageOwnerAlias);
- }
- std::string AddNodesRequest::getVSwitchId()const
- {
- return vSwitchId_;
- }
- void AddNodesRequest::setVSwitchId(const std::string& vSwitchId)
- {
- vSwitchId_ = vSwitchId;
- setCoreParameter("VSwitchId", vSwitchId);
- }
- std::string AddNodesRequest::getPeriodUnit()const
- {
- return periodUnit_;
- }
- void AddNodesRequest::setPeriodUnit(const std::string& periodUnit)
- {
- periodUnit_ = periodUnit;
- setCoreParameter("PeriodUnit", periodUnit);
- }
- std::string AddNodesRequest::getAutoRenew()const
- {
- return autoRenew_;
- }
- void AddNodesRequest::setAutoRenew(const std::string& autoRenew)
- {
- autoRenew_ = autoRenew;
- setCoreParameter("AutoRenew", autoRenew);
- }
- std::string AddNodesRequest::getEcsChargeType()const
- {
- return ecsChargeType_;
- }
- void AddNodesRequest::setEcsChargeType(const std::string& ecsChargeType)
- {
- ecsChargeType_ = ecsChargeType;
- setCoreParameter("EcsChargeType", ecsChargeType);
- }
- std::string AddNodesRequest::getCreateMode()const
- {
- return createMode_;
- }
- void AddNodesRequest::setCreateMode(const std::string& createMode)
- {
- createMode_ = createMode;
- setCoreParameter("CreateMode", createMode);
- }
- int AddNodesRequest::getSystemDiskSize()const
- {
- return systemDiskSize_;
- }
- void AddNodesRequest::setSystemDiskSize(int systemDiskSize)
- {
- systemDiskSize_ = systemDiskSize;
- setCoreParameter("SystemDiskSize", std::to_string(systemDiskSize));
- }
- std::string AddNodesRequest::getInstanceType()const
- {
- return instanceType_;
- }
- void AddNodesRequest::setInstanceType(const std::string& instanceType)
- {
- instanceType_ = instanceType;
- setCoreParameter("InstanceType", instanceType);
- }
- std::string AddNodesRequest::getZoneId()const
- {
- return zoneId_;
- }
- void AddNodesRequest::setZoneId(const std::string& zoneId)
- {
- zoneId_ = zoneId;
- setCoreParameter("ZoneId", zoneId);
- }
- std::string AddNodesRequest::getComputeSpotPriceLimit()const
- {
- return computeSpotPriceLimit_;
- }
- void AddNodesRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit)
- {
- computeSpotPriceLimit_ = computeSpotPriceLimit;
- setCoreParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
- }
|