Supported InstanceMaintenanceAtrributes for maintening the attributes of instances.

This commit is contained in:
sdk-team
2020-01-13 14:02:22 +08:00
parent 48c29d703a
commit c4b8a5b9de
27 changed files with 690 additions and 982 deletions

View File

@@ -1527,42 +1527,6 @@ EcsClient::CreateLaunchTemplateVersionOutcomeCallable EcsClient::createLaunchTem
return task->get_future();
}
EcsClient::CreateMaintenancePropertyOutcome EcsClient::createMaintenanceProperty(const CreateMaintenancePropertyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateMaintenancePropertyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateMaintenancePropertyOutcome(CreateMaintenancePropertyResult(outcome.result()));
else
return CreateMaintenancePropertyOutcome(outcome.error());
}
void EcsClient::createMaintenancePropertyAsync(const CreateMaintenancePropertyRequest& request, const CreateMaintenancePropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createMaintenanceProperty(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::CreateMaintenancePropertyOutcomeCallable EcsClient::createMaintenancePropertyCallable(const CreateMaintenancePropertyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateMaintenancePropertyOutcome()>>(
[this, request]()
{
return this->createMaintenanceProperty(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::CreateNatGatewayOutcome EcsClient::createNatGateway(const CreateNatGatewayRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2643,42 +2607,6 @@ EcsClient::DeleteLaunchTemplateVersionOutcomeCallable EcsClient::deleteLaunchTem
return task->get_future();
}
EcsClient::DeleteMaintenancePropertyOutcome EcsClient::deleteMaintenanceProperty(const DeleteMaintenancePropertyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteMaintenancePropertyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteMaintenancePropertyOutcome(DeleteMaintenancePropertyResult(outcome.result()));
else
return DeleteMaintenancePropertyOutcome(outcome.error());
}
void EcsClient::deleteMaintenancePropertyAsync(const DeleteMaintenancePropertyRequest& request, const DeleteMaintenancePropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteMaintenanceProperty(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DeleteMaintenancePropertyOutcomeCallable EcsClient::deleteMaintenancePropertyCallable(const DeleteMaintenancePropertyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteMaintenancePropertyOutcome()>>(
[this, request]()
{
return this->deleteMaintenanceProperty(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DeleteNatGatewayOutcome EcsClient::deleteNatGateway(const DeleteNatGatewayRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4299,6 +4227,42 @@ EcsClient::DescribeInstanceHistoryEventsOutcomeCallable EcsClient::describeInsta
return task->get_future();
}
EcsClient::DescribeInstanceMaintenanceAttributesOutcome EcsClient::describeInstanceMaintenanceAttributes(const DescribeInstanceMaintenanceAttributesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeInstanceMaintenanceAttributesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeInstanceMaintenanceAttributesOutcome(DescribeInstanceMaintenanceAttributesResult(outcome.result()));
else
return DescribeInstanceMaintenanceAttributesOutcome(outcome.error());
}
void EcsClient::describeInstanceMaintenanceAttributesAsync(const DescribeInstanceMaintenanceAttributesRequest& request, const DescribeInstanceMaintenanceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeInstanceMaintenanceAttributes(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DescribeInstanceMaintenanceAttributesOutcomeCallable EcsClient::describeInstanceMaintenanceAttributesCallable(const DescribeInstanceMaintenanceAttributesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeInstanceMaintenanceAttributesOutcome()>>(
[this, request]()
{
return this->describeInstanceMaintenanceAttributes(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DescribeInstanceMonitorDataOutcome EcsClient::describeInstanceMonitorData(const DescribeInstanceMonitorDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4875,42 +4839,6 @@ EcsClient::DescribeLimitationOutcomeCallable EcsClient::describeLimitationCallab
return task->get_future();
}
EcsClient::DescribeMaintenancePropertyOutcome EcsClient::describeMaintenanceProperty(const DescribeMaintenancePropertyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeMaintenancePropertyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeMaintenancePropertyOutcome(DescribeMaintenancePropertyResult(outcome.result()));
else
return DescribeMaintenancePropertyOutcome(outcome.error());
}
void EcsClient::describeMaintenancePropertyAsync(const DescribeMaintenancePropertyRequest& request, const DescribeMaintenancePropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeMaintenanceProperty(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DescribeMaintenancePropertyOutcomeCallable EcsClient::describeMaintenancePropertyCallable(const DescribeMaintenancePropertyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeMaintenancePropertyOutcome()>>(
[this, request]()
{
return this->describeMaintenanceProperty(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DescribeNatGatewaysOutcome EcsClient::describeNatGateways(const DescribeNatGatewaysRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7899,6 +7827,42 @@ EcsClient::ModifyInstanceDeploymentOutcomeCallable EcsClient::modifyInstanceDepl
return task->get_future();
}
EcsClient::ModifyInstanceMaintenanceAttributesOutcome EcsClient::modifyInstanceMaintenanceAttributes(const ModifyInstanceMaintenanceAttributesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyInstanceMaintenanceAttributesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyInstanceMaintenanceAttributesOutcome(ModifyInstanceMaintenanceAttributesResult(outcome.result()));
else
return ModifyInstanceMaintenanceAttributesOutcome(outcome.error());
}
void EcsClient::modifyInstanceMaintenanceAttributesAsync(const ModifyInstanceMaintenanceAttributesRequest& request, const ModifyInstanceMaintenanceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyInstanceMaintenanceAttributes(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::ModifyInstanceMaintenanceAttributesOutcomeCallable EcsClient::modifyInstanceMaintenanceAttributesCallable(const ModifyInstanceMaintenanceAttributesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyInstanceMaintenanceAttributesOutcome()>>(
[this, request]()
{
return this->modifyInstanceMaintenanceAttributes(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::ModifyInstanceNetworkSpecOutcome EcsClient::modifyInstanceNetworkSpec(const ModifyInstanceNetworkSpecRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -8079,42 +8043,6 @@ EcsClient::ModifyLaunchTemplateDefaultVersionOutcomeCallable EcsClient::modifyLa
return task->get_future();
}
EcsClient::ModifyMaintenancePropertyOutcome EcsClient::modifyMaintenanceProperty(const ModifyMaintenancePropertyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyMaintenancePropertyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyMaintenancePropertyOutcome(ModifyMaintenancePropertyResult(outcome.result()));
else
return ModifyMaintenancePropertyOutcome(outcome.error());
}
void EcsClient::modifyMaintenancePropertyAsync(const ModifyMaintenancePropertyRequest& request, const ModifyMaintenancePropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyMaintenanceProperty(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::ModifyMaintenancePropertyOutcomeCallable EcsClient::modifyMaintenancePropertyCallable(const ModifyMaintenancePropertyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyMaintenancePropertyOutcome()>>(
[this, request]()
{
return this->modifyMaintenanceProperty(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::ModifyNetworkInterfaceAttributeOutcome EcsClient::modifyNetworkInterfaceAttribute(const ModifyNetworkInterfaceAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -8943,6 +8871,42 @@ EcsClient::RecoverVirtualBorderRouterOutcomeCallable EcsClient::recoverVirtualBo
return task->get_future();
}
EcsClient::RedeployDedicatedHostOutcome EcsClient::redeployDedicatedHost(const RedeployDedicatedHostRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RedeployDedicatedHostOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RedeployDedicatedHostOutcome(RedeployDedicatedHostResult(outcome.result()));
else
return RedeployDedicatedHostOutcome(outcome.error());
}
void EcsClient::redeployDedicatedHostAsync(const RedeployDedicatedHostRequest& request, const RedeployDedicatedHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, redeployDedicatedHost(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::RedeployDedicatedHostOutcomeCallable EcsClient::redeployDedicatedHostCallable(const RedeployDedicatedHostRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RedeployDedicatedHostOutcome()>>(
[this, request]()
{
return this->redeployDedicatedHost(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::RedeployInstanceOutcome EcsClient::redeployInstance(const RedeployInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -1,130 +0,0 @@
/*
* 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/CreateMaintenancePropertyRequest.h>
using AlibabaCloud::Ecs::Model::CreateMaintenancePropertyRequest;
CreateMaintenancePropertyRequest::CreateMaintenancePropertyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateMaintenanceProperty")
{
setMethod(HttpRequest::Method::Post);
}
CreateMaintenancePropertyRequest::~CreateMaintenancePropertyRequest()
{}
long CreateMaintenancePropertyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateMaintenancePropertyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateMaintenancePropertyRequest::getStartTime()const
{
return startTime_;
}
void CreateMaintenancePropertyRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string CreateMaintenancePropertyRequest::getRegionId()const
{
return regionId_;
}
void CreateMaintenancePropertyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string CreateMaintenancePropertyRequest::getActionOnMaintenance()const
{
return actionOnMaintenance_;
}
void CreateMaintenancePropertyRequest::setActionOnMaintenance(const std::string& actionOnMaintenance)
{
actionOnMaintenance_ = actionOnMaintenance;
setCoreParameter("ActionOnMaintenance", actionOnMaintenance);
}
std::string CreateMaintenancePropertyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateMaintenancePropertyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateMaintenancePropertyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateMaintenancePropertyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string CreateMaintenancePropertyRequest::getEndTime()const
{
return endTime_;
}
void CreateMaintenancePropertyRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
long CreateMaintenancePropertyRequest::getOwnerId()const
{
return ownerId_;
}
void CreateMaintenancePropertyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::vector<std::string> CreateMaintenancePropertyRequest::getInstanceId()const
{
return instanceId_;
}
void CreateMaintenancePropertyRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
setCoreParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
}
}

View File

@@ -71,6 +71,17 @@ void CreateNetworkInterfaceRequest::setDescription(const std::string& descriptio
setCoreParameter("Description", description);
}
int CreateNetworkInterfaceRequest::getSecondaryPrivateIpAddressCount()const
{
return secondaryPrivateIpAddressCount_;
}
void CreateNetworkInterfaceRequest::setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount)
{
secondaryPrivateIpAddressCount_ = secondaryPrivateIpAddressCount;
setCoreParameter("SecondaryPrivateIpAddressCount", std::to_string(secondaryPrivateIpAddressCount));
}
std::string CreateNetworkInterfaceRequest::getBusinessType()const
{
return businessType_;
@@ -199,6 +210,19 @@ void CreateNetworkInterfaceRequest::setVSwitchId(const std::string& vSwitchId)
setCoreParameter("VSwitchId", vSwitchId);
}
std::vector<std::string> CreateNetworkInterfaceRequest::getPrivateIpAddress()const
{
return privateIpAddress_;
}
void CreateNetworkInterfaceRequest::setPrivateIpAddress(const std::vector<std::string>& privateIpAddress)
{
privateIpAddress_ = privateIpAddress;
for(int dep1 = 0; dep1!= privateIpAddress.size(); dep1++) {
setCoreParameter("PrivateIpAddress."+ std::to_string(dep1), privateIpAddress.at(dep1));
}
}
std::string CreateNetworkInterfaceRequest::getPrimaryIpAddress()const
{
return primaryIpAddress_;

View File

@@ -1,97 +0,0 @@
/*
* 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/DeleteMaintenancePropertyRequest.h>
using AlibabaCloud::Ecs::Model::DeleteMaintenancePropertyRequest;
DeleteMaintenancePropertyRequest::DeleteMaintenancePropertyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteMaintenanceProperty")
{
setMethod(HttpRequest::Method::Post);
}
DeleteMaintenancePropertyRequest::~DeleteMaintenancePropertyRequest()
{}
long DeleteMaintenancePropertyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteMaintenancePropertyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteMaintenancePropertyRequest::getRegionId()const
{
return regionId_;
}
void DeleteMaintenancePropertyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DeleteMaintenancePropertyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteMaintenancePropertyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteMaintenancePropertyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteMaintenancePropertyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DeleteMaintenancePropertyRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMaintenancePropertyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::vector<std::string> DeleteMaintenancePropertyRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteMaintenancePropertyRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
setCoreParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
}
}

View File

@@ -1,44 +0,0 @@
/*
* 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/DeleteMaintenancePropertyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
DeleteMaintenancePropertyResult::DeleteMaintenancePropertyResult() :
ServiceResult()
{}
DeleteMaintenancePropertyResult::DeleteMaintenancePropertyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMaintenancePropertyResult::~DeleteMaintenancePropertyResult()
{}
void DeleteMaintenancePropertyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,119 @@
/*
* 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/DescribeInstanceMaintenanceAttributesRequest.h>
using AlibabaCloud::Ecs::Model::DescribeInstanceMaintenanceAttributesRequest;
DescribeInstanceMaintenanceAttributesRequest::DescribeInstanceMaintenanceAttributesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceMaintenanceAttributes")
{
setMethod(HttpRequest::Method::Post);
}
DescribeInstanceMaintenanceAttributesRequest::~DescribeInstanceMaintenanceAttributesRequest()
{}
long DescribeInstanceMaintenanceAttributesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeInstanceMaintenanceAttributesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long DescribeInstanceMaintenanceAttributesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeInstanceMaintenanceAttributesRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeInstanceMaintenanceAttributesRequest::getRegionId()const
{
return regionId_;
}
void DescribeInstanceMaintenanceAttributesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
long DescribeInstanceMaintenanceAttributesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeInstanceMaintenanceAttributesRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeInstanceMaintenanceAttributesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeInstanceMaintenanceAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeInstanceMaintenanceAttributesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeInstanceMaintenanceAttributesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DescribeInstanceMaintenanceAttributesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeInstanceMaintenanceAttributesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::vector<std::string> DescribeInstanceMaintenanceAttributesRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeInstanceMaintenanceAttributesRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
setCoreParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
}
}

View File

@@ -0,0 +1,96 @@
/*
* 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/DescribeInstanceMaintenanceAttributesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
DescribeInstanceMaintenanceAttributesResult::DescribeInstanceMaintenanceAttributesResult() :
ServiceResult()
{}
DescribeInstanceMaintenanceAttributesResult::DescribeInstanceMaintenanceAttributesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInstanceMaintenanceAttributesResult::~DescribeInstanceMaintenanceAttributesResult()
{}
void DescribeInstanceMaintenanceAttributesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMaintenanceAttributesNode = value["MaintenanceAttributes"]["MaintenanceAttribute"];
for (auto valueMaintenanceAttributesMaintenanceAttribute : allMaintenanceAttributesNode)
{
MaintenanceAttribute maintenanceAttributesObject;
if(!valueMaintenanceAttributesMaintenanceAttribute["InstanceId"].isNull())
maintenanceAttributesObject.instanceId = valueMaintenanceAttributesMaintenanceAttribute["InstanceId"].asString();
auto allMaintenanceWindowsNode = allMaintenanceAttributesNode["MaintenanceWindows"]["MaintenanceWindow"];
for (auto allMaintenanceAttributesNodeMaintenanceWindowsMaintenanceWindow : allMaintenanceWindowsNode)
{
MaintenanceAttribute::MaintenanceWindow maintenanceWindowsObject;
if(!allMaintenanceAttributesNodeMaintenanceWindowsMaintenanceWindow["StartTime"].isNull())
maintenanceWindowsObject.startTime = allMaintenanceAttributesNodeMaintenanceWindowsMaintenanceWindow["StartTime"].asString();
if(!allMaintenanceAttributesNodeMaintenanceWindowsMaintenanceWindow["EndTime"].isNull())
maintenanceWindowsObject.endTime = allMaintenanceAttributesNodeMaintenanceWindowsMaintenanceWindow["EndTime"].asString();
maintenanceAttributesObject.maintenanceWindows.push_back(maintenanceWindowsObject);
}
auto actionOnMaintenanceNode = value["ActionOnMaintenance"];
if(!actionOnMaintenanceNode["Value"].isNull())
maintenanceAttributesObject.actionOnMaintenance.value = actionOnMaintenanceNode["Value"].asString();
if(!actionOnMaintenanceNode["DefaultValue"].isNull())
maintenanceAttributesObject.actionOnMaintenance.defaultValue = actionOnMaintenanceNode["DefaultValue"].asString();
auto allSupportedValues = actionOnMaintenanceNode["SupportedValues"]["SupportedValue"];
for (auto value : allSupportedValues)
maintenanceAttributesObject.actionOnMaintenance.supportedValues.push_back(value.asString());
maintenanceAttributes_.push_back(maintenanceAttributesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeInstanceMaintenanceAttributesResult::getTotalCount()const
{
return totalCount_;
}
int DescribeInstanceMaintenanceAttributesResult::getPageSize()const
{
return pageSize_;
}
int DescribeInstanceMaintenanceAttributesResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeInstanceMaintenanceAttributesResult::MaintenanceAttribute> DescribeInstanceMaintenanceAttributesResult::getMaintenanceAttributes()const
{
return maintenanceAttributes_;
}

View File

@@ -1,119 +0,0 @@
/*
* 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/DescribeMaintenancePropertyRequest.h>
using AlibabaCloud::Ecs::Model::DescribeMaintenancePropertyRequest;
DescribeMaintenancePropertyRequest::DescribeMaintenancePropertyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DescribeMaintenanceProperty")
{
setMethod(HttpRequest::Method::Post);
}
DescribeMaintenancePropertyRequest::~DescribeMaintenancePropertyRequest()
{}
long DescribeMaintenancePropertyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeMaintenancePropertyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long DescribeMaintenancePropertyRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeMaintenancePropertyRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeMaintenancePropertyRequest::getRegionId()const
{
return regionId_;
}
void DescribeMaintenancePropertyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
long DescribeMaintenancePropertyRequest::getPageSize()const
{
return pageSize_;
}
void DescribeMaintenancePropertyRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeMaintenancePropertyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeMaintenancePropertyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeMaintenancePropertyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeMaintenancePropertyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DescribeMaintenancePropertyRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeMaintenancePropertyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::vector<std::string> DescribeMaintenancePropertyRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeMaintenancePropertyRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
setCoreParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
}
}

View File

@@ -1,84 +0,0 @@
/*
* 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/DescribeMaintenancePropertyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
DescribeMaintenancePropertyResult::DescribeMaintenancePropertyResult() :
ServiceResult()
{}
DescribeMaintenancePropertyResult::DescribeMaintenancePropertyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeMaintenancePropertyResult::~DescribeMaintenancePropertyResult()
{}
void DescribeMaintenancePropertyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMaintenancePropertySetNode = value["MaintenancePropertySet"]["MaintenanceProperty"];
for (auto valueMaintenancePropertySetMaintenanceProperty : allMaintenancePropertySetNode)
{
MaintenanceProperty maintenancePropertySetObject;
if(!valueMaintenancePropertySetMaintenanceProperty["InstanceId"].isNull())
maintenancePropertySetObject.instanceId = valueMaintenancePropertySetMaintenanceProperty["InstanceId"].asString();
if(!valueMaintenancePropertySetMaintenanceProperty["StartTime"].isNull())
maintenancePropertySetObject.startTime = valueMaintenancePropertySetMaintenanceProperty["StartTime"].asString();
if(!valueMaintenancePropertySetMaintenanceProperty["EndTime"].isNull())
maintenancePropertySetObject.endTime = valueMaintenancePropertySetMaintenanceProperty["EndTime"].asString();
if(!valueMaintenancePropertySetMaintenanceProperty["ActionOnMaintenance"].isNull())
maintenancePropertySetObject.actionOnMaintenance = valueMaintenancePropertySetMaintenanceProperty["ActionOnMaintenance"].asString();
maintenancePropertySet_.push_back(maintenancePropertySetObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeMaintenancePropertyResult::getTotalCount()const
{
return totalCount_;
}
int DescribeMaintenancePropertyResult::getPageSize()const
{
return pageSize_;
}
int DescribeMaintenancePropertyResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeMaintenancePropertyResult::MaintenanceProperty> DescribeMaintenancePropertyResult::getMaintenancePropertySet()const
{
return maintenancePropertySet_;
}

View File

@@ -0,0 +1,124 @@
/*
* 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/ModifyInstanceMaintenanceAttributesRequest.h>
using AlibabaCloud::Ecs::Model::ModifyInstanceMaintenanceAttributesRequest;
ModifyInstanceMaintenanceAttributesRequest::ModifyInstanceMaintenanceAttributesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceMaintenanceAttributes")
{
setMethod(HttpRequest::Method::Post);
}
ModifyInstanceMaintenanceAttributesRequest::~ModifyInstanceMaintenanceAttributesRequest()
{}
long ModifyInstanceMaintenanceAttributesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ModifyInstanceMaintenanceAttributesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::vector<ModifyInstanceMaintenanceAttributesRequest::MaintenanceWindow> ModifyInstanceMaintenanceAttributesRequest::getMaintenanceWindow()const
{
return maintenanceWindow_;
}
void ModifyInstanceMaintenanceAttributesRequest::setMaintenanceWindow(const std::vector<MaintenanceWindow>& maintenanceWindow)
{
maintenanceWindow_ = maintenanceWindow;
for(int dep1 = 0; dep1!= maintenanceWindow.size(); dep1++) {
auto maintenanceWindowObj = maintenanceWindow.at(dep1);
std::string maintenanceWindowObjStr = "MaintenanceWindow." + std::to_string(dep1);
setCoreParameter(maintenanceWindowObjStr + ".StartTime", maintenanceWindowObj.startTime);
setCoreParameter(maintenanceWindowObjStr + ".EndTime", maintenanceWindowObj.endTime);
}
}
std::string ModifyInstanceMaintenanceAttributesRequest::getRegionId()const
{
return regionId_;
}
void ModifyInstanceMaintenanceAttributesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string ModifyInstanceMaintenanceAttributesRequest::getActionOnMaintenance()const
{
return actionOnMaintenance_;
}
void ModifyInstanceMaintenanceAttributesRequest::setActionOnMaintenance(const std::string& actionOnMaintenance)
{
actionOnMaintenance_ = actionOnMaintenance;
setCoreParameter("ActionOnMaintenance", actionOnMaintenance);
}
std::string ModifyInstanceMaintenanceAttributesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ModifyInstanceMaintenanceAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ModifyInstanceMaintenanceAttributesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ModifyInstanceMaintenanceAttributesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long ModifyInstanceMaintenanceAttributesRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyInstanceMaintenanceAttributesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::vector<std::string> ModifyInstanceMaintenanceAttributesRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyInstanceMaintenanceAttributesRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
setCoreParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
}
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/ecs/model/CreateMaintenancePropertyResult.h>
#include <alibabacloud/ecs/model/ModifyInstanceMaintenanceAttributesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateMaintenancePropertyResult::CreateMaintenancePropertyResult() :
ModifyInstanceMaintenanceAttributesResult::ModifyInstanceMaintenanceAttributesResult() :
ServiceResult()
{}
CreateMaintenancePropertyResult::CreateMaintenancePropertyResult(const std::string &payload) :
ModifyInstanceMaintenanceAttributesResult::ModifyInstanceMaintenanceAttributesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateMaintenancePropertyResult::~CreateMaintenancePropertyResult()
ModifyInstanceMaintenanceAttributesResult::~ModifyInstanceMaintenanceAttributesResult()
{}
void CreateMaintenancePropertyResult::parse(const std::string &payload)
void ModifyInstanceMaintenanceAttributesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

View File

@@ -1,130 +0,0 @@
/*
* 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/ModifyMaintenancePropertyRequest.h>
using AlibabaCloud::Ecs::Model::ModifyMaintenancePropertyRequest;
ModifyMaintenancePropertyRequest::ModifyMaintenancePropertyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ModifyMaintenanceProperty")
{
setMethod(HttpRequest::Method::Post);
}
ModifyMaintenancePropertyRequest::~ModifyMaintenancePropertyRequest()
{}
long ModifyMaintenancePropertyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ModifyMaintenancePropertyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifyMaintenancePropertyRequest::getStartTime()const
{
return startTime_;
}
void ModifyMaintenancePropertyRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string ModifyMaintenancePropertyRequest::getRegionId()const
{
return regionId_;
}
void ModifyMaintenancePropertyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string ModifyMaintenancePropertyRequest::getActionOnMaintenance()const
{
return actionOnMaintenance_;
}
void ModifyMaintenancePropertyRequest::setActionOnMaintenance(const std::string& actionOnMaintenance)
{
actionOnMaintenance_ = actionOnMaintenance;
setCoreParameter("ActionOnMaintenance", actionOnMaintenance);
}
std::string ModifyMaintenancePropertyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ModifyMaintenancePropertyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ModifyMaintenancePropertyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ModifyMaintenancePropertyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string ModifyMaintenancePropertyRequest::getEndTime()const
{
return endTime_;
}
void ModifyMaintenancePropertyRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
long ModifyMaintenancePropertyRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyMaintenancePropertyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::vector<std::string> ModifyMaintenancePropertyRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyMaintenancePropertyRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
setCoreParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
}
}

View File

@@ -0,0 +1,95 @@
/*
* 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/RedeployDedicatedHostRequest.h>
using AlibabaCloud::Ecs::Model::RedeployDedicatedHostRequest;
RedeployDedicatedHostRequest::RedeployDedicatedHostRequest() :
RpcServiceRequest("ecs", "2014-05-26", "RedeployDedicatedHost")
{
setMethod(HttpRequest::Method::Post);
}
RedeployDedicatedHostRequest::~RedeployDedicatedHostRequest()
{}
long RedeployDedicatedHostRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void RedeployDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string RedeployDedicatedHostRequest::getRegionId()const
{
return regionId_;
}
void RedeployDedicatedHostRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string RedeployDedicatedHostRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void RedeployDedicatedHostRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string RedeployDedicatedHostRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void RedeployDedicatedHostRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string RedeployDedicatedHostRequest::getDedicatedHostId()const
{
return dedicatedHostId_;
}
void RedeployDedicatedHostRequest::setDedicatedHostId(const std::string& dedicatedHostId)
{
dedicatedHostId_ = dedicatedHostId;
setCoreParameter("DedicatedHostId", dedicatedHostId);
}
long RedeployDedicatedHostRequest::getOwnerId()const
{
return ownerId_;
}
void RedeployDedicatedHostRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/ecs/model/ModifyMaintenancePropertyResult.h>
#include <alibabacloud/ecs/model/RedeployDedicatedHostResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ModifyMaintenancePropertyResult::ModifyMaintenancePropertyResult() :
RedeployDedicatedHostResult::RedeployDedicatedHostResult() :
ServiceResult()
{}
ModifyMaintenancePropertyResult::ModifyMaintenancePropertyResult(const std::string &payload) :
RedeployDedicatedHostResult::RedeployDedicatedHostResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyMaintenancePropertyResult::~ModifyMaintenancePropertyResult()
RedeployDedicatedHostResult::~RedeployDedicatedHostResult()
{}
void ModifyMaintenancePropertyResult::parse(const std::string &payload)
void RedeployDedicatedHostResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;