|
|
@@ -27,28 +27,6 @@ RunInstancesRequest::RunInstancesRequest() :
|
|
|
RunInstancesRequest::~RunInstancesRequest()
|
|
|
{}
|
|
|
|
|
|
-std::string RunInstancesRequest::getLaunchTemplateName()const
|
|
|
-{
|
|
|
- return launchTemplateName_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setLaunchTemplateName(const std::string& launchTemplateName)
|
|
|
-{
|
|
|
- launchTemplateName_ = launchTemplateName;
|
|
|
- setParameter("LaunchTemplateName", launchTemplateName);
|
|
|
-}
|
|
|
-
|
|
|
-long RunInstancesRequest::getResourceOwnerId()const
|
|
|
-{
|
|
|
- return resourceOwnerId_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setResourceOwnerId(long resourceOwnerId)
|
|
|
-{
|
|
|
- resourceOwnerId_ = resourceOwnerId;
|
|
|
- setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
|
-}
|
|
|
-
|
|
|
bool RunInstancesRequest::getUniqueSuffix()const
|
|
|
{
|
|
|
return uniqueSuffix_;
|
|
|
@@ -60,28 +38,6 @@ void RunInstancesRequest::setUniqueSuffix(bool uniqueSuffix)
|
|
|
setParameter("UniqueSuffix", uniqueSuffix ? "true" : "false");
|
|
|
}
|
|
|
|
|
|
-std::string RunInstancesRequest::getHpcClusterId()const
|
|
|
-{
|
|
|
- return hpcClusterId_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setHpcClusterId(const std::string& hpcClusterId)
|
|
|
-{
|
|
|
- hpcClusterId_ = hpcClusterId;
|
|
|
- setParameter("HpcClusterId", hpcClusterId);
|
|
|
-}
|
|
|
-
|
|
|
-int RunInstancesRequest::getHttpPutResponseHopLimit()const
|
|
|
-{
|
|
|
- return httpPutResponseHopLimit_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit)
|
|
|
-{
|
|
|
- httpPutResponseHopLimit_ = httpPutResponseHopLimit;
|
|
|
- setParameter("HttpPutResponseHopLimit", std::to_string(httpPutResponseHopLimit));
|
|
|
-}
|
|
|
-
|
|
|
std::string RunInstancesRequest::getSecurityEnhancementStrategy()const
|
|
|
{
|
|
|
return securityEnhancementStrategy_;
|
|
|
@@ -93,17 +49,6 @@ void RunInstancesRequest::setSecurityEnhancementStrategy(const std::string& secu
|
|
|
setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy);
|
|
|
}
|
|
|
|
|
|
-std::string RunInstancesRequest::getKeyPairName()const
|
|
|
-{
|
|
|
- return keyPairName_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setKeyPairName(const std::string& keyPairName)
|
|
|
-{
|
|
|
- keyPairName_ = keyPairName;
|
|
|
- setParameter("KeyPairName", keyPairName);
|
|
|
-}
|
|
|
-
|
|
|
int RunInstancesRequest::getMinAmount()const
|
|
|
{
|
|
|
return minAmount_;
|
|
|
@@ -115,17 +60,6 @@ void RunInstancesRequest::setMinAmount(int minAmount)
|
|
|
setParameter("MinAmount", std::to_string(minAmount));
|
|
|
}
|
|
|
|
|
|
-float RunInstancesRequest::getSpotPriceLimit()const
|
|
|
-{
|
|
|
- return spotPriceLimit_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setSpotPriceLimit(float spotPriceLimit)
|
|
|
-{
|
|
|
- spotPriceLimit_ = spotPriceLimit;
|
|
|
- setParameter("SpotPriceLimit", std::to_string(spotPriceLimit));
|
|
|
-}
|
|
|
-
|
|
|
bool RunInstancesRequest::getDeletionProtection()const
|
|
|
{
|
|
|
return deletionProtection_;
|
|
|
@@ -181,33 +115,6 @@ void RunInstancesRequest::setDeploymentSetGroupNo(int deploymentSetGroupNo)
|
|
|
setParameter("DeploymentSetGroupNo", std::to_string(deploymentSetGroupNo));
|
|
|
}
|
|
|
|
|
|
-int RunInstancesRequest::getStorageSetPartitionNumber()const
|
|
|
-{
|
|
|
- return storageSetPartitionNumber_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber)
|
|
|
-{
|
|
|
- storageSetPartitionNumber_ = storageSetPartitionNumber;
|
|
|
- setParameter("StorageSetPartitionNumber", std::to_string(storageSetPartitionNumber));
|
|
|
-}
|
|
|
-
|
|
|
-std::vector<RunInstancesRequest::Tag> RunInstancesRequest::getTag()const
|
|
|
-{
|
|
|
- return tag_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setTag(const std::vector<Tag>& tag)
|
|
|
-{
|
|
|
- tag_ = tag;
|
|
|
- for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
|
|
- auto tagObj = tag.at(dep1);
|
|
|
- std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
|
|
- setParameter(tagObjStr + ".Key", tagObj.key);
|
|
|
- setParameter(tagObjStr + ".Value", tagObj.value);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
std::string RunInstancesRequest::getSystemDiskAutoSnapshotPolicyId()const
|
|
|
{
|
|
|
return systemDiskAutoSnapshotPolicyId_;
|
|
|
@@ -219,17 +126,6 @@ void RunInstancesRequest::setSystemDiskAutoSnapshotPolicyId(const std::string& s
|
|
|
setParameter("SystemDiskAutoSnapshotPolicyId", systemDiskAutoSnapshotPolicyId);
|
|
|
}
|
|
|
|
|
|
-int RunInstancesRequest::getAutoRenewPeriod()const
|
|
|
-{
|
|
|
- return autoRenewPeriod_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setAutoRenewPeriod(int autoRenewPeriod)
|
|
|
-{
|
|
|
- autoRenewPeriod_ = autoRenewPeriod;
|
|
|
- setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
|
|
|
-}
|
|
|
-
|
|
|
int RunInstancesRequest::getCpuOptionsCore()const
|
|
|
{
|
|
|
return cpuOptionsCore_;
|
|
|
@@ -263,48 +159,413 @@ void RunInstancesRequest::setDryRun(bool dryRun)
|
|
|
setParameter("DryRun", dryRun ? "true" : "false");
|
|
|
}
|
|
|
|
|
|
-std::string RunInstancesRequest::getLaunchTemplateId()const
|
|
|
+std::string RunInstancesRequest::getCpuOptionsNuma()const
|
|
|
{
|
|
|
- return launchTemplateId_;
|
|
|
+ return cpuOptionsNuma_;
|
|
|
}
|
|
|
|
|
|
-void RunInstancesRequest::setLaunchTemplateId(const std::string& launchTemplateId)
|
|
|
+void RunInstancesRequest::setCpuOptionsNuma(const std::string& cpuOptionsNuma)
|
|
|
{
|
|
|
- launchTemplateId_ = launchTemplateId;
|
|
|
- setParameter("LaunchTemplateId", launchTemplateId);
|
|
|
+ cpuOptionsNuma_ = cpuOptionsNuma;
|
|
|
+ setParameter("CpuOptionsNuma", cpuOptionsNuma);
|
|
|
}
|
|
|
|
|
|
-int RunInstancesRequest::getIpv6AddressCount()const
|
|
|
+long RunInstancesRequest::getOwnerId()const
|
|
|
{
|
|
|
- return ipv6AddressCount_;
|
|
|
+ return ownerId_;
|
|
|
}
|
|
|
|
|
|
-void RunInstancesRequest::setIpv6AddressCount(int ipv6AddressCount)
|
|
|
+void RunInstancesRequest::setOwnerId(long ownerId)
|
|
|
{
|
|
|
- ipv6AddressCount_ = ipv6AddressCount;
|
|
|
- setParameter("Ipv6AddressCount", std::to_string(ipv6AddressCount));
|
|
|
+ ownerId_ = ownerId;
|
|
|
+ setParameter("OwnerId", std::to_string(ownerId));
|
|
|
}
|
|
|
|
|
|
-std::string RunInstancesRequest::getCpuOptionsNuma()const
|
|
|
+std::string RunInstancesRequest::getSpotStrategy()const
|
|
|
{
|
|
|
- return cpuOptionsNuma_;
|
|
|
+ return spotStrategy_;
|
|
|
}
|
|
|
|
|
|
-void RunInstancesRequest::setCpuOptionsNuma(const std::string& cpuOptionsNuma)
|
|
|
+void RunInstancesRequest::setSpotStrategy(const std::string& spotStrategy)
|
|
|
{
|
|
|
- cpuOptionsNuma_ = cpuOptionsNuma;
|
|
|
- setParameter("CpuOptionsNuma", cpuOptionsNuma);
|
|
|
+ spotStrategy_ = spotStrategy;
|
|
|
+ setParameter("SpotStrategy", spotStrategy);
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getPrivateIpAddress()const
|
|
|
+{
|
|
|
+ return privateIpAddress_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setPrivateIpAddress(const std::string& privateIpAddress)
|
|
|
+{
|
|
|
+ privateIpAddress_ = privateIpAddress;
|
|
|
+ setParameter("PrivateIpAddress", privateIpAddress);
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getPeriodUnit()const
|
|
|
+{
|
|
|
+ return periodUnit_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setPeriodUnit(const std::string& periodUnit)
|
|
|
+{
|
|
|
+ periodUnit_ = periodUnit;
|
|
|
+ setParameter("PeriodUnit", periodUnit);
|
|
|
+}
|
|
|
+
|
|
|
+bool RunInstancesRequest::getAutoRenew()const
|
|
|
+{
|
|
|
+ return autoRenew_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setAutoRenew(bool autoRenew)
|
|
|
+{
|
|
|
+ autoRenew_ = autoRenew;
|
|
|
+ setParameter("AutoRenew", autoRenew ? "true" : "false");
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getInternetChargeType()const
|
|
|
+{
|
|
|
+ return internetChargeType_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setInternetChargeType(const std::string& internetChargeType)
|
|
|
+{
|
|
|
+ internetChargeType_ = internetChargeType;
|
|
|
+ setParameter("InternetChargeType", internetChargeType);
|
|
|
+}
|
|
|
+
|
|
|
+int RunInstancesRequest::getInternetMaxBandwidthIn()const
|
|
|
+{
|
|
|
+ return internetMaxBandwidthIn_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn)
|
|
|
+{
|
|
|
+ internetMaxBandwidthIn_ = internetMaxBandwidthIn;
|
|
|
+ setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn));
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getAffinity()const
|
|
|
+{
|
|
|
+ return affinity_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setAffinity(const std::string& affinity)
|
|
|
+{
|
|
|
+ affinity_ = affinity;
|
|
|
+ setParameter("Affinity", affinity);
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getImageId()const
|
|
|
+{
|
|
|
+ return imageId_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setImageId(const std::string& imageId)
|
|
|
+{
|
|
|
+ imageId_ = imageId;
|
|
|
+ setParameter("ImageId", imageId);
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getSpotInterruptionBehavior()const
|
|
|
+{
|
|
|
+ return spotInterruptionBehavior_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setSpotInterruptionBehavior(const std::string& spotInterruptionBehavior)
|
|
|
+{
|
|
|
+ spotInterruptionBehavior_ = spotInterruptionBehavior;
|
|
|
+ setParameter("SpotInterruptionBehavior", spotInterruptionBehavior);
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getIoOptimized()const
|
|
|
+{
|
|
|
+ return ioOptimized_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setIoOptimized(const std::string& ioOptimized)
|
|
|
+{
|
|
|
+ ioOptimized_ = ioOptimized;
|
|
|
+ setParameter("IoOptimized", ioOptimized);
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getSecurityGroupId()const
|
|
|
+{
|
|
|
+ return securityGroupId_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setSecurityGroupId(const std::string& securityGroupId)
|
|
|
+{
|
|
|
+ securityGroupId_ = securityGroupId;
|
|
|
+ setParameter("SecurityGroupId", securityGroupId);
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getSystemDiskPerformanceLevel()const
|
|
|
+{
|
|
|
+ return systemDiskPerformanceLevel_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel)
|
|
|
+{
|
|
|
+ systemDiskPerformanceLevel_ = systemDiskPerformanceLevel;
|
|
|
+ setParameter("SystemDiskPerformanceLevel", systemDiskPerformanceLevel);
|
|
|
+}
|
|
|
+
|
|
|
+bool RunInstancesRequest::getPasswordInherit()const
|
|
|
+{
|
|
|
+ return passwordInherit_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setPasswordInherit(bool passwordInherit)
|
|
|
+{
|
|
|
+ passwordInherit_ = passwordInherit;
|
|
|
+ setParameter("PasswordInherit", passwordInherit ? "true" : "false");
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getInstanceType()const
|
|
|
+{
|
|
|
+ return instanceType_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setInstanceType(const std::string& instanceType)
|
|
|
+{
|
|
|
+ instanceType_ = instanceType;
|
|
|
+ setParameter("InstanceType", instanceType);
|
|
|
+}
|
|
|
+
|
|
|
+bool RunInstancesRequest::getHibernationConfigured()const
|
|
|
+{
|
|
|
+ return hibernationConfigured_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setHibernationConfigured(bool hibernationConfigured)
|
|
|
+{
|
|
|
+ hibernationConfigured_ = hibernationConfigured;
|
|
|
+ setParameter("HibernationConfigured", hibernationConfigured ? "true" : "false");
|
|
|
+}
|
|
|
+
|
|
|
+std::vector<RunInstancesRequest::Arn> RunInstancesRequest::getArn()const
|
|
|
+{
|
|
|
+ return arn_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setArn(const std::vector<Arn>& arn)
|
|
|
+{
|
|
|
+ arn_ = arn;
|
|
|
+ for(int dep1 = 0; dep1!= arn.size(); dep1++) {
|
|
|
+ auto arnObj = arn.at(dep1);
|
|
|
+ std::string arnObjStr = "Arn." + std::to_string(dep1 + 1);
|
|
|
+ setParameter(arnObjStr + ".AssumeRoleFor", std::to_string(arnObj.assumeRoleFor));
|
|
|
+ setParameter(arnObjStr + ".Rolearn", arnObj.rolearn);
|
|
|
+ setParameter(arnObjStr + ".RoleType", arnObj.roleType);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getResourceOwnerAccount()const
|
|
|
+{
|
|
|
+ return resourceOwnerAccount_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
|
+{
|
|
|
+ resourceOwnerAccount_ = resourceOwnerAccount;
|
|
|
+ setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getSystemDiskDiskName()const
|
|
|
+{
|
|
|
+ return systemDiskDiskName_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setSystemDiskDiskName(const std::string& systemDiskDiskName)
|
|
|
+{
|
|
|
+ systemDiskDiskName_ = systemDiskDiskName;
|
|
|
+ setParameter("SystemDiskDiskName", systemDiskDiskName);
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getDedicatedHostId()const
|
|
|
+{
|
|
|
+ return dedicatedHostId_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setDedicatedHostId(const std::string& dedicatedHostId)
|
|
|
+{
|
|
|
+ dedicatedHostId_ = dedicatedHostId;
|
|
|
+ setParameter("DedicatedHostId", dedicatedHostId);
|
|
|
+}
|
|
|
+
|
|
|
+std::vector<std::string> RunInstancesRequest::getSecurityGroupIds()const
|
|
|
+{
|
|
|
+ return securityGroupIds_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setSecurityGroupIds(const std::vector<std::string>& securityGroupIds)
|
|
|
+{
|
|
|
+ securityGroupIds_ = securityGroupIds;
|
|
|
+ for(int dep1 = 0; dep1!= securityGroupIds.size(); dep1++) {
|
|
|
+ setParameter("SecurityGroupIds."+ std::to_string(dep1), securityGroupIds.at(dep1));
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+int RunInstancesRequest::getSpotDuration()const
|
|
|
+{
|
|
|
+ return spotDuration_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setSpotDuration(int spotDuration)
|
|
|
+{
|
|
|
+ spotDuration_ = spotDuration;
|
|
|
+ setParameter("SpotDuration", std::to_string(spotDuration));
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getSystemDiskSize()const
|
|
|
+{
|
|
|
+ return systemDiskSize_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setSystemDiskSize(const std::string& systemDiskSize)
|
|
|
+{
|
|
|
+ systemDiskSize_ = systemDiskSize;
|
|
|
+ setParameter("SystemDiskSize", systemDiskSize);
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getImageFamily()const
|
|
|
+{
|
|
|
+ return imageFamily_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setImageFamily(const std::string& imageFamily)
|
|
|
+{
|
|
|
+ imageFamily_ = imageFamily;
|
|
|
+ setParameter("ImageFamily", imageFamily);
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getLaunchTemplateName()const
|
|
|
+{
|
|
|
+ return launchTemplateName_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setLaunchTemplateName(const std::string& launchTemplateName)
|
|
|
+{
|
|
|
+ launchTemplateName_ = launchTemplateName;
|
|
|
+ setParameter("LaunchTemplateName", launchTemplateName);
|
|
|
+}
|
|
|
+
|
|
|
+long RunInstancesRequest::getResourceOwnerId()const
|
|
|
+{
|
|
|
+ return resourceOwnerId_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setResourceOwnerId(long resourceOwnerId)
|
|
|
+{
|
|
|
+ resourceOwnerId_ = resourceOwnerId;
|
|
|
+ setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getHpcClusterId()const
|
|
|
+{
|
|
|
+ return hpcClusterId_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setHpcClusterId(const std::string& hpcClusterId)
|
|
|
+{
|
|
|
+ hpcClusterId_ = hpcClusterId;
|
|
|
+ setParameter("HpcClusterId", hpcClusterId);
|
|
|
+}
|
|
|
+
|
|
|
+int RunInstancesRequest::getHttpPutResponseHopLimit()const
|
|
|
+{
|
|
|
+ return httpPutResponseHopLimit_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit)
|
|
|
+{
|
|
|
+ httpPutResponseHopLimit_ = httpPutResponseHopLimit;
|
|
|
+ setParameter("HttpPutResponseHopLimit", std::to_string(httpPutResponseHopLimit));
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getKeyPairName()const
|
|
|
+{
|
|
|
+ return keyPairName_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setKeyPairName(const std::string& keyPairName)
|
|
|
+{
|
|
|
+ keyPairName_ = keyPairName;
|
|
|
+ setParameter("KeyPairName", keyPairName);
|
|
|
+}
|
|
|
+
|
|
|
+float RunInstancesRequest::getSpotPriceLimit()const
|
|
|
+{
|
|
|
+ return spotPriceLimit_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setSpotPriceLimit(float spotPriceLimit)
|
|
|
+{
|
|
|
+ spotPriceLimit_ = spotPriceLimit;
|
|
|
+ setParameter("SpotPriceLimit", std::to_string(spotPriceLimit));
|
|
|
+}
|
|
|
+
|
|
|
+int RunInstancesRequest::getStorageSetPartitionNumber()const
|
|
|
+{
|
|
|
+ return storageSetPartitionNumber_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber)
|
|
|
+{
|
|
|
+ storageSetPartitionNumber_ = storageSetPartitionNumber;
|
|
|
+ setParameter("StorageSetPartitionNumber", std::to_string(storageSetPartitionNumber));
|
|
|
+}
|
|
|
+
|
|
|
+std::vector<RunInstancesRequest::Tag> RunInstancesRequest::getTag()const
|
|
|
+{
|
|
|
+ return tag_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setTag(const std::vector<Tag>& tag)
|
|
|
+{
|
|
|
+ tag_ = tag;
|
|
|
+ for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
|
|
+ auto tagObj = tag.at(dep1);
|
|
|
+ std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
|
|
+ setParameter(tagObjStr + ".Key", tagObj.key);
|
|
|
+ setParameter(tagObjStr + ".Value", tagObj.value);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+int RunInstancesRequest::getAutoRenewPeriod()const
|
|
|
+{
|
|
|
+ return autoRenewPeriod_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setAutoRenewPeriod(int autoRenewPeriod)
|
|
|
+{
|
|
|
+ autoRenewPeriod_ = autoRenewPeriod;
|
|
|
+ setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
|
|
|
+}
|
|
|
+
|
|
|
+std::string RunInstancesRequest::getLaunchTemplateId()const
|
|
|
+{
|
|
|
+ return launchTemplateId_;
|
|
|
+}
|
|
|
+
|
|
|
+void RunInstancesRequest::setLaunchTemplateId(const std::string& launchTemplateId)
|
|
|
+{
|
|
|
+ launchTemplateId_ = launchTemplateId;
|
|
|
+ setParameter("LaunchTemplateId", launchTemplateId);
|
|
|
}
|
|
|
|
|
|
-long RunInstancesRequest::getOwnerId()const
|
|
|
+int RunInstancesRequest::getIpv6AddressCount()const
|
|
|
{
|
|
|
- return ownerId_;
|
|
|
+ return ipv6AddressCount_;
|
|
|
}
|
|
|
|
|
|
-void RunInstancesRequest::setOwnerId(long ownerId)
|
|
|
+void RunInstancesRequest::setIpv6AddressCount(int ipv6AddressCount)
|
|
|
{
|
|
|
- ownerId_ = ownerId;
|
|
|
- setParameter("OwnerId", std::to_string(ownerId));
|
|
|
+ ipv6AddressCount_ = ipv6AddressCount;
|
|
|
+ setParameter("Ipv6AddressCount", std::to_string(ipv6AddressCount));
|
|
|
}
|
|
|
|
|
|
std::string RunInstancesRequest::getCapacityReservationPreference()const
|
|
|
@@ -329,39 +590,6 @@ void RunInstancesRequest::setVSwitchId(const std::string& vSwitchId)
|
|
|
setParameter("VSwitchId", vSwitchId);
|
|
|
}
|
|
|
|
|
|
-std::string RunInstancesRequest::getSpotStrategy()const
|
|
|
-{
|
|
|
- return spotStrategy_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setSpotStrategy(const std::string& spotStrategy)
|
|
|
-{
|
|
|
- spotStrategy_ = spotStrategy;
|
|
|
- setParameter("SpotStrategy", spotStrategy);
|
|
|
-}
|
|
|
-
|
|
|
-std::string RunInstancesRequest::getPrivateIpAddress()const
|
|
|
-{
|
|
|
- return privateIpAddress_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setPrivateIpAddress(const std::string& privateIpAddress)
|
|
|
-{
|
|
|
- privateIpAddress_ = privateIpAddress;
|
|
|
- setParameter("PrivateIpAddress", privateIpAddress);
|
|
|
-}
|
|
|
-
|
|
|
-std::string RunInstancesRequest::getPeriodUnit()const
|
|
|
-{
|
|
|
- return periodUnit_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setPeriodUnit(const std::string& periodUnit)
|
|
|
-{
|
|
|
- periodUnit_ = periodUnit;
|
|
|
- setParameter("PeriodUnit", periodUnit);
|
|
|
-}
|
|
|
-
|
|
|
std::string RunInstancesRequest::getInstanceName()const
|
|
|
{
|
|
|
return instanceName_;
|
|
|
@@ -373,28 +601,6 @@ void RunInstancesRequest::setInstanceName(const std::string& instanceName)
|
|
|
setParameter("InstanceName", instanceName);
|
|
|
}
|
|
|
|
|
|
-bool RunInstancesRequest::getAutoRenew()const
|
|
|
-{
|
|
|
- return autoRenew_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setAutoRenew(bool autoRenew)
|
|
|
-{
|
|
|
- autoRenew_ = autoRenew;
|
|
|
- setParameter("AutoRenew", autoRenew ? "true" : "false");
|
|
|
-}
|
|
|
-
|
|
|
-std::string RunInstancesRequest::getInternetChargeType()const
|
|
|
-{
|
|
|
- return internetChargeType_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setInternetChargeType(const std::string& internetChargeType)
|
|
|
-{
|
|
|
- internetChargeType_ = internetChargeType;
|
|
|
- setParameter("InternetChargeType", internetChargeType);
|
|
|
-}
|
|
|
-
|
|
|
std::string RunInstancesRequest::getZoneId()const
|
|
|
{
|
|
|
return zoneId_;
|
|
|
@@ -419,50 +625,6 @@ void RunInstancesRequest::setIpv6Address(const std::vector<std::string>& ipv6Add
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-int RunInstancesRequest::getInternetMaxBandwidthIn()const
|
|
|
-{
|
|
|
- return internetMaxBandwidthIn_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn)
|
|
|
-{
|
|
|
- internetMaxBandwidthIn_ = internetMaxBandwidthIn;
|
|
|
- setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn));
|
|
|
-}
|
|
|
-
|
|
|
-std::string RunInstancesRequest::getAffinity()const
|
|
|
-{
|
|
|
- return affinity_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setAffinity(const std::string& affinity)
|
|
|
-{
|
|
|
- affinity_ = affinity;
|
|
|
- setParameter("Affinity", affinity);
|
|
|
-}
|
|
|
-
|
|
|
-std::string RunInstancesRequest::getImageId()const
|
|
|
-{
|
|
|
- return imageId_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setImageId(const std::string& imageId)
|
|
|
-{
|
|
|
- imageId_ = imageId;
|
|
|
- setParameter("ImageId", imageId);
|
|
|
-}
|
|
|
-
|
|
|
-std::string RunInstancesRequest::getSpotInterruptionBehavior()const
|
|
|
-{
|
|
|
- return spotInterruptionBehavior_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setSpotInterruptionBehavior(const std::string& spotInterruptionBehavior)
|
|
|
-{
|
|
|
- spotInterruptionBehavior_ = spotInterruptionBehavior;
|
|
|
- setParameter("SpotInterruptionBehavior", spotInterruptionBehavior);
|
|
|
-}
|
|
|
-
|
|
|
std::string RunInstancesRequest::getClientToken()const
|
|
|
{
|
|
|
return clientToken_;
|
|
|
@@ -474,28 +636,6 @@ void RunInstancesRequest::setClientToken(const std::string& clientToken)
|
|
|
setParameter("ClientToken", clientToken);
|
|
|
}
|
|
|
|
|
|
-std::string RunInstancesRequest::getIoOptimized()const
|
|
|
-{
|
|
|
- return ioOptimized_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setIoOptimized(const std::string& ioOptimized)
|
|
|
-{
|
|
|
- ioOptimized_ = ioOptimized;
|
|
|
- setParameter("IoOptimized", ioOptimized);
|
|
|
-}
|
|
|
-
|
|
|
-std::string RunInstancesRequest::getSecurityGroupId()const
|
|
|
-{
|
|
|
- return securityGroupId_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setSecurityGroupId(const std::string& securityGroupId)
|
|
|
-{
|
|
|
- securityGroupId_ = securityGroupId;
|
|
|
- setParameter("SecurityGroupId", securityGroupId);
|
|
|
-}
|
|
|
-
|
|
|
int RunInstancesRequest::getInternetMaxBandwidthOut()const
|
|
|
{
|
|
|
return internetMaxBandwidthOut_;
|
|
|
@@ -551,17 +691,6 @@ void RunInstancesRequest::setCapacityReservationId(const std::string& capacityRe
|
|
|
setParameter("CapacityReservationId", capacityReservationId);
|
|
|
}
|
|
|
|
|
|
-std::string RunInstancesRequest::getSystemDiskPerformanceLevel()const
|
|
|
-{
|
|
|
- return systemDiskPerformanceLevel_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel)
|
|
|
-{
|
|
|
- systemDiskPerformanceLevel_ = systemDiskPerformanceLevel;
|
|
|
- setParameter("SystemDiskPerformanceLevel", systemDiskPerformanceLevel);
|
|
|
-}
|
|
|
-
|
|
|
std::string RunInstancesRequest::getUserData()const
|
|
|
{
|
|
|
return userData_;
|
|
|
@@ -573,17 +702,6 @@ void RunInstancesRequest::setUserData(const std::string& userData)
|
|
|
setParameter("UserData", userData);
|
|
|
}
|
|
|
|
|
|
-bool RunInstancesRequest::getPasswordInherit()const
|
|
|
-{
|
|
|
- return passwordInherit_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setPasswordInherit(bool passwordInherit)
|
|
|
-{
|
|
|
- passwordInherit_ = passwordInherit;
|
|
|
- setParameter("PasswordInherit", passwordInherit ? "true" : "false");
|
|
|
-}
|
|
|
-
|
|
|
std::string RunInstancesRequest::getRegionId()const
|
|
|
{
|
|
|
return regionId_;
|
|
|
@@ -606,28 +724,6 @@ void RunInstancesRequest::setHttpEndpoint(const std::string& httpEndpoint)
|
|
|
setParameter("HttpEndpoint", httpEndpoint);
|
|
|
}
|
|
|
|
|
|
-std::string RunInstancesRequest::getInstanceType()const
|
|
|
-{
|
|
|
- return instanceType_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setInstanceType(const std::string& instanceType)
|
|
|
-{
|
|
|
- instanceType_ = instanceType;
|
|
|
- setParameter("InstanceType", instanceType);
|
|
|
-}
|
|
|
-
|
|
|
-bool RunInstancesRequest::getHibernationConfigured()const
|
|
|
-{
|
|
|
- return hibernationConfigured_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setHibernationConfigured(bool hibernationConfigured)
|
|
|
-{
|
|
|
- hibernationConfigured_ = hibernationConfigured;
|
|
|
- setParameter("HibernationConfigured", hibernationConfigured ? "true" : "false");
|
|
|
-}
|
|
|
-
|
|
|
std::string RunInstancesRequest::getInstanceChargeType()const
|
|
|
{
|
|
|
return instanceChargeType_;
|
|
|
@@ -683,17 +779,6 @@ void RunInstancesRequest::setAmount(int amount)
|
|
|
setParameter("Amount", std::to_string(amount));
|
|
|
}
|
|
|
|
|
|
-std::string RunInstancesRequest::getResourceOwnerAccount()const
|
|
|
-{
|
|
|
- return resourceOwnerAccount_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
|
-{
|
|
|
- resourceOwnerAccount_ = resourceOwnerAccount;
|
|
|
- setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
|
-}
|
|
|
-
|
|
|
std::string RunInstancesRequest::getOwnerAccount()const
|
|
|
{
|
|
|
return ownerAccount_;
|
|
|
@@ -716,17 +801,6 @@ void RunInstancesRequest::setTenancy(const std::string& tenancy)
|
|
|
setParameter("Tenancy", tenancy);
|
|
|
}
|
|
|
|
|
|
-std::string RunInstancesRequest::getSystemDiskDiskName()const
|
|
|
-{
|
|
|
- return systemDiskDiskName_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setSystemDiskDiskName(const std::string& systemDiskDiskName)
|
|
|
-{
|
|
|
- systemDiskDiskName_ = systemDiskDiskName;
|
|
|
- setParameter("SystemDiskDiskName", systemDiskDiskName);
|
|
|
-}
|
|
|
-
|
|
|
std::string RunInstancesRequest::getRamRoleName()const
|
|
|
{
|
|
|
return ramRoleName_;
|
|
|
@@ -749,17 +823,6 @@ void RunInstancesRequest::setAutoReleaseTime(const std::string& autoReleaseTime)
|
|
|
setParameter("AutoReleaseTime", autoReleaseTime);
|
|
|
}
|
|
|
|
|
|
-std::string RunInstancesRequest::getDedicatedHostId()const
|
|
|
-{
|
|
|
- return dedicatedHostId_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setDedicatedHostId(const std::string& dedicatedHostId)
|
|
|
-{
|
|
|
- dedicatedHostId_ = dedicatedHostId;
|
|
|
- setParameter("DedicatedHostId", dedicatedHostId);
|
|
|
-}
|
|
|
-
|
|
|
std::string RunInstancesRequest::getCreditSpecification()const
|
|
|
{
|
|
|
return creditSpecification_;
|
|
|
@@ -771,30 +834,6 @@ void RunInstancesRequest::setCreditSpecification(const std::string& creditSpecif
|
|
|
setParameter("CreditSpecification", creditSpecification);
|
|
|
}
|
|
|
|
|
|
-std::vector<std::string> RunInstancesRequest::getSecurityGroupIds()const
|
|
|
-{
|
|
|
- return securityGroupIds_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setSecurityGroupIds(const std::vector<std::string>& securityGroupIds)
|
|
|
-{
|
|
|
- securityGroupIds_ = securityGroupIds;
|
|
|
- for(int dep1 = 0; dep1!= securityGroupIds.size(); dep1++) {
|
|
|
- setParameter("SecurityGroupIds."+ std::to_string(dep1), securityGroupIds.at(dep1));
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-int RunInstancesRequest::getSpotDuration()const
|
|
|
-{
|
|
|
- return spotDuration_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setSpotDuration(int spotDuration)
|
|
|
-{
|
|
|
- spotDuration_ = spotDuration;
|
|
|
- setParameter("SpotDuration", std::to_string(spotDuration));
|
|
|
-}
|
|
|
-
|
|
|
std::vector<RunInstancesRequest::DataDisk> RunInstancesRequest::getDataDisk()const
|
|
|
{
|
|
|
return dataDisk_;
|
|
|
@@ -843,28 +882,6 @@ void RunInstancesRequest::setStorageSetId(const std::string& storageSetId)
|
|
|
setParameter("StorageSetId", storageSetId);
|
|
|
}
|
|
|
|
|
|
-std::string RunInstancesRequest::getSystemDiskSize()const
|
|
|
-{
|
|
|
- return systemDiskSize_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setSystemDiskSize(const std::string& systemDiskSize)
|
|
|
-{
|
|
|
- systemDiskSize_ = systemDiskSize;
|
|
|
- setParameter("SystemDiskSize", systemDiskSize);
|
|
|
-}
|
|
|
-
|
|
|
-std::string RunInstancesRequest::getImageFamily()const
|
|
|
-{
|
|
|
- return imageFamily_;
|
|
|
-}
|
|
|
-
|
|
|
-void RunInstancesRequest::setImageFamily(const std::string& imageFamily)
|
|
|
-{
|
|
|
- imageFamily_ = imageFamily;
|
|
|
- setParameter("ImageFamily", imageFamily);
|
|
|
-}
|
|
|
-
|
|
|
std::string RunInstancesRequest::getHttpTokens()const
|
|
|
{
|
|
|
return httpTokens_;
|