Generated 2014-05-26 for Ecs.
This commit is contained in:
@@ -7683,6 +7683,42 @@ EcsClient::ModifyBandwidthPackageSpecOutcomeCallable EcsClient::modifyBandwidthP
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ModifyCapacityReservationOutcome EcsClient::modifyCapacityReservation(const ModifyCapacityReservationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyCapacityReservationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyCapacityReservationOutcome(ModifyCapacityReservationResult(outcome.result()));
|
||||
else
|
||||
return ModifyCapacityReservationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::modifyCapacityReservationAsync(const ModifyCapacityReservationRequest& request, const ModifyCapacityReservationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyCapacityReservation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::ModifyCapacityReservationOutcomeCallable EcsClient::modifyCapacityReservationCallable(const ModifyCapacityReservationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyCapacityReservationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyCapacityReservation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ModifyCommandOutcome EcsClient::modifyCommand(const ModifyCommandRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8115,6 +8151,42 @@ EcsClient::ModifyEipAddressAttributeOutcomeCallable EcsClient::modifyEipAddressA
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ModifyElasticityAssuranceOutcome EcsClient::modifyElasticityAssurance(const ModifyElasticityAssuranceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyElasticityAssuranceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyElasticityAssuranceOutcome(ModifyElasticityAssuranceResult(outcome.result()));
|
||||
else
|
||||
return ModifyElasticityAssuranceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::modifyElasticityAssuranceAsync(const ModifyElasticityAssuranceRequest& request, const ModifyElasticityAssuranceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyElasticityAssurance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::ModifyElasticityAssuranceOutcomeCallable EcsClient::modifyElasticityAssuranceCallable(const ModifyElasticityAssuranceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyElasticityAssuranceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyElasticityAssurance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ModifyForwardEntryOutcome EcsClient::modifyForwardEntry(const ModifyForwardEntryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -49,6 +49,17 @@ void AttachInstanceRamRoleRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AttachInstanceRamRoleRequest::getPolicy()const
|
||||
{
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void AttachInstanceRamRoleRequest::setPolicy(const std::string& policy)
|
||||
{
|
||||
policy_ = policy;
|
||||
setParameter("Policy", policy);
|
||||
}
|
||||
|
||||
std::string AttachInstanceRamRoleRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
|
||||
@@ -43,6 +43,8 @@ void CreateInstanceResult::parse(const std::string &payload)
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["TradePrice"].isNull())
|
||||
tradePrice_ = std::stof(value["TradePrice"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -56,3 +58,8 @@ float CreateInstanceResult::getTradePrice()const
|
||||
return tradePrice_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -224,6 +224,17 @@ void CreateLaunchTemplateRequest::setSpotStrategy(const std::string& spotStrateg
|
||||
setParameter("SpotStrategy", spotStrategy);
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateRequest::getPrivateIpAddress()const
|
||||
{
|
||||
return privateIpAddress_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateRequest::setPrivateIpAddress(const std::string& privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setParameter("PrivateIpAddress", privateIpAddress);
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
@@ -279,6 +290,17 @@ void CreateLaunchTemplateRequest::setVersionDescription(const std::string& versi
|
||||
setParameter("VersionDescription", versionDescription);
|
||||
}
|
||||
|
||||
bool CreateLaunchTemplateRequest::getSystemDiskDeleteWithInstance()const
|
||||
{
|
||||
return systemDiskDeleteWithInstance_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateRequest::setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance)
|
||||
{
|
||||
systemDiskDeleteWithInstance_ = systemDiskDeleteWithInstance;
|
||||
setParameter("SystemDiskDeleteWithInstance", systemDiskDeleteWithInstance ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateRequest::getImageId()const
|
||||
{
|
||||
return imageId_;
|
||||
@@ -345,6 +367,17 @@ void CreateLaunchTemplateRequest::setSystemDiskCategory(const std::string& syste
|
||||
setParameter("SystemDiskCategory", systemDiskCategory);
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateRequest::getSystemDiskPerformanceLevel()const
|
||||
{
|
||||
return systemDiskPerformanceLevel_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateRequest::setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel)
|
||||
{
|
||||
systemDiskPerformanceLevel_ = systemDiskPerformanceLevel;
|
||||
setParameter("SystemDiskPerformanceLevel", systemDiskPerformanceLevel);
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateRequest::getUserData()const
|
||||
{
|
||||
return userData_;
|
||||
@@ -427,6 +460,9 @@ void CreateLaunchTemplateRequest::setNetworkInterface(const std::vector<NetworkI
|
||||
setParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId);
|
||||
setParameter(networkInterfaceObjStr + ".NetworkInterfaceName", networkInterfaceObj.networkInterfaceName);
|
||||
setParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description);
|
||||
for(int dep2 = 0; dep2!= networkInterfaceObj.securityGroupIds.size(); dep2++) {
|
||||
setParameter(networkInterfaceObjStr + ".SecurityGroupIds."+ std::to_string(dep2), networkInterfaceObj.securityGroupIds.at(dep2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -496,6 +532,19 @@ void CreateLaunchTemplateRequest::setSpotDuration(int spotDuration)
|
||||
setParameter("SpotDuration", std::to_string(spotDuration));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateLaunchTemplateRequest::getSecurityGroupIds()const
|
||||
{
|
||||
return securityGroupIds_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateRequest::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));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<CreateLaunchTemplateRequest::DataDisk> CreateLaunchTemplateRequest::getDataDisk()const
|
||||
{
|
||||
return dataDisk_;
|
||||
@@ -515,6 +564,7 @@ void CreateLaunchTemplateRequest::setDataDisk(const std::vector<DataDisk>& dataD
|
||||
setParameter(dataDiskObjStr + ".Description", dataDiskObj.description);
|
||||
setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false");
|
||||
setParameter(dataDiskObjStr + ".Device", dataDiskObj.device);
|
||||
setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -208,6 +208,17 @@ void CreateLaunchTemplateVersionRequest::setSpotStrategy(const std::string& spot
|
||||
setParameter("SpotStrategy", spotStrategy);
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateVersionRequest::getPrivateIpAddress()const
|
||||
{
|
||||
return privateIpAddress_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateVersionRequest::setPrivateIpAddress(const std::string& privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setParameter("PrivateIpAddress", privateIpAddress);
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateVersionRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
@@ -263,6 +274,17 @@ void CreateLaunchTemplateVersionRequest::setVersionDescription(const std::string
|
||||
setParameter("VersionDescription", versionDescription);
|
||||
}
|
||||
|
||||
bool CreateLaunchTemplateVersionRequest::getSystemDiskDeleteWithInstance()const
|
||||
{
|
||||
return systemDiskDeleteWithInstance_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateVersionRequest::setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance)
|
||||
{
|
||||
systemDiskDeleteWithInstance_ = systemDiskDeleteWithInstance;
|
||||
setParameter("SystemDiskDeleteWithInstance", systemDiskDeleteWithInstance ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateVersionRequest::getImageId()const
|
||||
{
|
||||
return imageId_;
|
||||
@@ -329,6 +351,17 @@ void CreateLaunchTemplateVersionRequest::setSystemDiskCategory(const std::string
|
||||
setParameter("SystemDiskCategory", systemDiskCategory);
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateVersionRequest::getSystemDiskPerformanceLevel()const
|
||||
{
|
||||
return systemDiskPerformanceLevel_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateVersionRequest::setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel)
|
||||
{
|
||||
systemDiskPerformanceLevel_ = systemDiskPerformanceLevel;
|
||||
setParameter("SystemDiskPerformanceLevel", systemDiskPerformanceLevel);
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateVersionRequest::getUserData()const
|
||||
{
|
||||
return userData_;
|
||||
@@ -411,6 +444,9 @@ void CreateLaunchTemplateVersionRequest::setNetworkInterface(const std::vector<N
|
||||
setParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId);
|
||||
setParameter(networkInterfaceObjStr + ".NetworkInterfaceName", networkInterfaceObj.networkInterfaceName);
|
||||
setParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description);
|
||||
for(int dep2 = 0; dep2!= networkInterfaceObj.securityGroupIds.size(); dep2++) {
|
||||
setParameter(networkInterfaceObjStr + ".SecurityGroupIds."+ std::to_string(dep2), networkInterfaceObj.securityGroupIds.at(dep2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -480,6 +516,19 @@ void CreateLaunchTemplateVersionRequest::setSpotDuration(int spotDuration)
|
||||
setParameter("SpotDuration", std::to_string(spotDuration));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateLaunchTemplateVersionRequest::getSecurityGroupIds()const
|
||||
{
|
||||
return securityGroupIds_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateVersionRequest::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));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<CreateLaunchTemplateVersionRequest::DataDisk> CreateLaunchTemplateVersionRequest::getDataDisk()const
|
||||
{
|
||||
return dataDisk_;
|
||||
@@ -499,6 +548,7 @@ void CreateLaunchTemplateVersionRequest::setDataDisk(const std::vector<DataDisk>
|
||||
setParameter(dataDiskObjStr + ".Description", dataDiskObj.description);
|
||||
setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false");
|
||||
setParameter(dataDiskObjStr + ".Device", dataDiskObj.device);
|
||||
setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -96,6 +96,10 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
|
||||
launchTemplateVersionSetsObject.launchTemplateData.systemDiskDescription = launchTemplateDataNode["SystemDisk.Description"].asString();
|
||||
if(!launchTemplateDataNode["SystemDisk.Iops"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.systemDiskIops = std::stoi(launchTemplateDataNode["SystemDisk.Iops"].asString());
|
||||
if(!launchTemplateDataNode["SystemDisk.PerformanceLevel"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.systemDiskPerformanceLevel = launchTemplateDataNode["SystemDisk.PerformanceLevel"].asString();
|
||||
if(!launchTemplateDataNode["SystemDisk.DeleteWithInstance"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.systemDiskDeleteWithInstance = launchTemplateDataNode["SystemDisk.DeleteWithInstance"].asString() == "true";
|
||||
if(!launchTemplateDataNode["IoOptimized"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.ioOptimized = launchTemplateDataNode["IoOptimized"].asString();
|
||||
if(!launchTemplateDataNode["InstanceChargeType"].isNull())
|
||||
@@ -126,6 +130,8 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
|
||||
launchTemplateVersionSetsObject.launchTemplateData.resourceGroupId = launchTemplateDataNode["ResourceGroupId"].asString();
|
||||
if(!launchTemplateDataNode["SecurityEnhancementStrategy"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.securityEnhancementStrategy = launchTemplateDataNode["SecurityEnhancementStrategy"].asString();
|
||||
if(!launchTemplateDataNode["PrivateIpAddress"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.privateIpAddress = launchTemplateDataNode["PrivateIpAddress"].asString();
|
||||
auto allDataDisksNode = launchTemplateDataNode["DataDisks"]["DataDisk"];
|
||||
for (auto launchTemplateDataNodeDataDisksDataDisk : allDataDisksNode)
|
||||
{
|
||||
@@ -146,6 +152,8 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
|
||||
dataDiskObject.deleteWithInstance = launchTemplateDataNodeDataDisksDataDisk["DeleteWithInstance"].asString() == "true";
|
||||
if(!launchTemplateDataNodeDataDisksDataDisk["Device"].isNull())
|
||||
dataDiskObject.device = launchTemplateDataNodeDataDisksDataDisk["Device"].asString();
|
||||
if(!launchTemplateDataNodeDataDisksDataDisk["PerformanceLevel"].isNull())
|
||||
dataDiskObject.performanceLevel = launchTemplateDataNodeDataDisksDataDisk["PerformanceLevel"].asString();
|
||||
launchTemplateVersionSetsObject.launchTemplateData.dataDisks.push_back(dataDiskObject);
|
||||
}
|
||||
auto allNetworkInterfacesNode = launchTemplateDataNode["NetworkInterfaces"]["NetworkInterface"];
|
||||
@@ -162,6 +170,9 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
|
||||
networkInterfaceObject.networkInterfaceName = launchTemplateDataNodeNetworkInterfacesNetworkInterface["NetworkInterfaceName"].asString();
|
||||
if(!launchTemplateDataNodeNetworkInterfacesNetworkInterface["Description"].isNull())
|
||||
networkInterfaceObject.description = launchTemplateDataNodeNetworkInterfacesNetworkInterface["Description"].asString();
|
||||
auto allSecurityGroupIds1 = value["SecurityGroupIds"]["SecurityGroupId"];
|
||||
for (auto value : allSecurityGroupIds1)
|
||||
networkInterfaceObject.securityGroupIds1.push_back(value.asString());
|
||||
launchTemplateVersionSetsObject.launchTemplateData.networkInterfaces.push_back(networkInterfaceObject);
|
||||
}
|
||||
auto allTagsNode = launchTemplateDataNode["Tags"]["InstanceTag"];
|
||||
@@ -174,6 +185,9 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
|
||||
instanceTagObject.value = launchTemplateDataNodeTagsInstanceTag["Value"].asString();
|
||||
launchTemplateVersionSetsObject.launchTemplateData.tags.push_back(instanceTagObject);
|
||||
}
|
||||
auto allSecurityGroupIds = launchTemplateDataNode["SecurityGroupIds"]["SecurityGroupId"];
|
||||
for (auto value : allSecurityGroupIds)
|
||||
launchTemplateVersionSetsObject.launchTemplateData.securityGroupIds.push_back(value.asString());
|
||||
launchTemplateVersionSets_.push_back(launchTemplateVersionSetsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
183
ecs/src/model/ModifyCapacityReservationRequest.cc
Normal file
183
ecs/src/model/ModifyCapacityReservationRequest.cc
Normal file
@@ -0,0 +1,183 @@
|
||||
/*
|
||||
* 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/ecs/model/ModifyCapacityReservationRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ModifyCapacityReservationRequest;
|
||||
|
||||
ModifyCapacityReservationRequest::ModifyCapacityReservationRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "ModifyCapacityReservation")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyCapacityReservationRequest::~ModifyCapacityReservationRequest()
|
||||
{}
|
||||
|
||||
long ModifyCapacityReservationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyCapacityReservationRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string ModifyCapacityReservationRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ModifyCapacityReservationRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string ModifyCapacityReservationRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyCapacityReservationRequest::getPrivatePoolOptionsId()const
|
||||
{
|
||||
return privatePoolOptionsId_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setPrivatePoolOptionsId(const std::string& privatePoolOptionsId)
|
||||
{
|
||||
privatePoolOptionsId_ = privatePoolOptionsId;
|
||||
setParameter("PrivatePoolOptionsId", privatePoolOptionsId);
|
||||
}
|
||||
|
||||
std::string ModifyCapacityReservationRequest::getEndTimeType()const
|
||||
{
|
||||
return endTimeType_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setEndTimeType(const std::string& endTimeType)
|
||||
{
|
||||
endTimeType_ = endTimeType;
|
||||
setParameter("EndTimeType", endTimeType);
|
||||
}
|
||||
|
||||
std::string ModifyCapacityReservationRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyCapacityReservationRequest::getPrivatePoolOptionsName()const
|
||||
{
|
||||
return privatePoolOptionsName_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setPrivatePoolOptionsName(const std::string& privatePoolOptionsName)
|
||||
{
|
||||
privatePoolOptionsName_ = privatePoolOptionsName;
|
||||
setParameter("PrivatePoolOptionsName", privatePoolOptionsName);
|
||||
}
|
||||
|
||||
std::string ModifyCapacityReservationRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyCapacityReservationRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long ModifyCapacityReservationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyCapacityReservationRequest::getPackageType()const
|
||||
{
|
||||
return packageType_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setPackageType(const std::string& packageType)
|
||||
{
|
||||
packageType_ = packageType;
|
||||
setParameter("PackageType", packageType);
|
||||
}
|
||||
|
||||
int ModifyCapacityReservationRequest::getInstanceAmount()const
|
||||
{
|
||||
return instanceAmount_;
|
||||
}
|
||||
|
||||
void ModifyCapacityReservationRequest::setInstanceAmount(int instanceAmount)
|
||||
{
|
||||
instanceAmount_ = instanceAmount;
|
||||
setParameter("InstanceAmount", std::to_string(instanceAmount));
|
||||
}
|
||||
|
||||
44
ecs/src/model/ModifyCapacityReservationResult.cc
Normal file
44
ecs/src/model/ModifyCapacityReservationResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/ecs/model/ModifyCapacityReservationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
ModifyCapacityReservationResult::ModifyCapacityReservationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyCapacityReservationResult::ModifyCapacityReservationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyCapacityReservationResult::~ModifyCapacityReservationResult()
|
||||
{}
|
||||
|
||||
void ModifyCapacityReservationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
128
ecs/src/model/ModifyElasticityAssuranceRequest.cc
Normal file
128
ecs/src/model/ModifyElasticityAssuranceRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/ecs/model/ModifyElasticityAssuranceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ModifyElasticityAssuranceRequest;
|
||||
|
||||
ModifyElasticityAssuranceRequest::ModifyElasticityAssuranceRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "ModifyElasticityAssurance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyElasticityAssuranceRequest::~ModifyElasticityAssuranceRequest()
|
||||
{}
|
||||
|
||||
long ModifyElasticityAssuranceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyElasticityAssuranceRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ModifyElasticityAssuranceRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string ModifyElasticityAssuranceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyElasticityAssuranceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyElasticityAssuranceRequest::getPrivatePoolOptionsId()const
|
||||
{
|
||||
return privatePoolOptionsId_;
|
||||
}
|
||||
|
||||
void ModifyElasticityAssuranceRequest::setPrivatePoolOptionsId(const std::string& privatePoolOptionsId)
|
||||
{
|
||||
privatePoolOptionsId_ = privatePoolOptionsId;
|
||||
setParameter("PrivatePoolOptionsId", privatePoolOptionsId);
|
||||
}
|
||||
|
||||
std::string ModifyElasticityAssuranceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyElasticityAssuranceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyElasticityAssuranceRequest::getPrivatePoolOptionsName()const
|
||||
{
|
||||
return privatePoolOptionsName_;
|
||||
}
|
||||
|
||||
void ModifyElasticityAssuranceRequest::setPrivatePoolOptionsName(const std::string& privatePoolOptionsName)
|
||||
{
|
||||
privatePoolOptionsName_ = privatePoolOptionsName;
|
||||
setParameter("PrivatePoolOptionsName", privatePoolOptionsName);
|
||||
}
|
||||
|
||||
std::string ModifyElasticityAssuranceRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyElasticityAssuranceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyElasticityAssuranceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyElasticityAssuranceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyElasticityAssuranceRequest::getPackageType()const
|
||||
{
|
||||
return packageType_;
|
||||
}
|
||||
|
||||
void ModifyElasticityAssuranceRequest::setPackageType(const std::string& packageType)
|
||||
{
|
||||
packageType_ = packageType;
|
||||
setParameter("PackageType", packageType);
|
||||
}
|
||||
|
||||
44
ecs/src/model/ModifyElasticityAssuranceResult.cc
Normal file
44
ecs/src/model/ModifyElasticityAssuranceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/ecs/model/ModifyElasticityAssuranceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
ModifyElasticityAssuranceResult::ModifyElasticityAssuranceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyElasticityAssuranceResult::ModifyElasticityAssuranceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyElasticityAssuranceResult::~ModifyElasticityAssuranceResult()
|
||||
{}
|
||||
|
||||
void ModifyElasticityAssuranceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -39,6 +39,13 @@ void RenewInstanceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RenewInstanceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user