Adjust ecs openapi endpoint.

This commit is contained in:
sdk-team
2021-10-08 09:51:03 +00:00
parent 59616fc161
commit 34093b78ef
821 changed files with 47471 additions and 58187 deletions

View File

@@ -1,106 +1,90 @@
/*
* 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/AcceptInquiredSystemEventRequest.h>
using AlibabaCloud::Ecs::Model::AcceptInquiredSystemEventRequest;
AcceptInquiredSystemEventRequest::AcceptInquiredSystemEventRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AcceptInquiredSystemEvent")
{
setMethod(HttpRequest::Method::Post);
}
AcceptInquiredSystemEventRequest::~AcceptInquiredSystemEventRequest()
{}
std::string AcceptInquiredSystemEventRequest::getEventId()const
{
return eventId_;
*/
#include <alibabacloud/ecs/model/AcceptInquiredSystemEventRequest.h>
using AlibabaCloud::Ecs::Model::AcceptInquiredSystemEventRequest;
AcceptInquiredSystemEventRequest::AcceptInquiredSystemEventRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AcceptInquiredSystemEvent") {
setMethod(HttpRequest::Method::Post);
}
void AcceptInquiredSystemEventRequest::setEventId(const std::string& eventId)
{
eventId_ = eventId;
setParameter("EventId", eventId);
AcceptInquiredSystemEventRequest::~AcceptInquiredSystemEventRequest() {}
std::string AcceptInquiredSystemEventRequest::getEventId() const {
return eventId_;
}
long AcceptInquiredSystemEventRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void AcceptInquiredSystemEventRequest::setEventId(const std::string &eventId) {
eventId_ = eventId;
setParameter(std::string("EventId"), eventId);
}
void AcceptInquiredSystemEventRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long AcceptInquiredSystemEventRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AcceptInquiredSystemEventRequest::getRegionId()const
{
return regionId_;
void AcceptInquiredSystemEventRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AcceptInquiredSystemEventRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AcceptInquiredSystemEventRequest::getRegionId() const {
return regionId_;
}
std::string AcceptInquiredSystemEventRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AcceptInquiredSystemEventRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AcceptInquiredSystemEventRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AcceptInquiredSystemEventRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string AcceptInquiredSystemEventRequest::getOwnerAccount()const
{
return ownerAccount_;
void AcceptInquiredSystemEventRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AcceptInquiredSystemEventRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string AcceptInquiredSystemEventRequest::getOwnerAccount() const {
return ownerAccount_;
}
long AcceptInquiredSystemEventRequest::getOwnerId()const
{
return ownerId_;
void AcceptInquiredSystemEventRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void AcceptInquiredSystemEventRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AcceptInquiredSystemEventRequest::getOwnerId() const {
return ownerId_;
}
std::string AcceptInquiredSystemEventRequest::getChoice()const
{
return choice_;
void AcceptInquiredSystemEventRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AcceptInquiredSystemEventRequest::setChoice(const std::string& choice)
{
choice_ = choice;
setParameter("Choice", choice);
std::string AcceptInquiredSystemEventRequest::getChoice() const {
return choice_;
}
void AcceptInquiredSystemEventRequest::setChoice(const std::string &choice) {
choice_ = choice;
setParameter(std::string("Choice"), choice);
}

View File

@@ -1,84 +1,72 @@
/*
* 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/ActivateRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::ActivateRouterInterfaceRequest;
ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ActivateRouterInterface")
{
setMethod(HttpRequest::Method::Post);
}
ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest()
{}
long ActivateRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::ActivateRouterInterfaceRequest;
ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest()
: RpcServiceRequest("ecs", "2014-05-26", "ActivateRouterInterface") {
setMethod(HttpRequest::Method::Post);
}
void ActivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest() {}
long ActivateRouterInterfaceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void ActivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void ActivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long ActivateRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
void ActivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void ActivateRouterInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long ActivateRouterInterfaceRequest::getOwnerId() const {
return ownerId_;
}
std::string ActivateRouterInterfaceRequest::getRouterInterfaceId()const
{
return routerInterfaceId_;
void ActivateRouterInterfaceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void ActivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId)
{
routerInterfaceId_ = routerInterfaceId;
setParameter("RouterInterfaceId", routerInterfaceId);
std::string ActivateRouterInterfaceRequest::getRouterInterfaceId() const {
return routerInterfaceId_;
}
std::string ActivateRouterInterfaceRequest::getRegionId()const
{
return regionId_;
void ActivateRouterInterfaceRequest::setRouterInterfaceId(const std::string &routerInterfaceId) {
routerInterfaceId_ = routerInterfaceId;
setParameter(std::string("RouterInterfaceId"), routerInterfaceId);
}
void ActivateRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string ActivateRouterInterfaceRequest::getRegionId() const {
return regionId_;
}
void ActivateRouterInterfaceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -1,117 +1,99 @@
/*
* 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/AddBandwidthPackageIpsRequest.h>
using AlibabaCloud::Ecs::Model::AddBandwidthPackageIpsRequest;
AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AddBandwidthPackageIps")
{
setMethod(HttpRequest::Method::Post);
}
AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest()
{}
long AddBandwidthPackageIpsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h>
using AlibabaCloud::Ecs::Model::AddBandwidthPackageIpsRequest;
AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AddBandwidthPackageIps") {
setMethod(HttpRequest::Method::Post);
}
void AddBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest() {}
long AddBandwidthPackageIpsRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AddBandwidthPackageIpsRequest::getClientToken()const
{
return clientToken_;
void AddBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AddBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string AddBandwidthPackageIpsRequest::getClientToken() const {
return clientToken_;
}
std::string AddBandwidthPackageIpsRequest::getRegionId()const
{
return regionId_;
void AddBandwidthPackageIpsRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void AddBandwidthPackageIpsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AddBandwidthPackageIpsRequest::getRegionId() const {
return regionId_;
}
std::string AddBandwidthPackageIpsRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
void AddBandwidthPackageIpsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AddBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
std::string AddBandwidthPackageIpsRequest::getBandwidthPackageId() const {
return bandwidthPackageId_;
}
std::string AddBandwidthPackageIpsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AddBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) {
bandwidthPackageId_ = bandwidthPackageId;
setParameter(std::string("BandwidthPackageId"), bandwidthPackageId);
}
void AddBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AddBandwidthPackageIpsRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string AddBandwidthPackageIpsRequest::getOwnerAccount()const
{
return ownerAccount_;
void AddBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AddBandwidthPackageIpsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string AddBandwidthPackageIpsRequest::getOwnerAccount() const {
return ownerAccount_;
}
long AddBandwidthPackageIpsRequest::getOwnerId()const
{
return ownerId_;
void AddBandwidthPackageIpsRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void AddBandwidthPackageIpsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AddBandwidthPackageIpsRequest::getOwnerId() const {
return ownerId_;
}
std::string AddBandwidthPackageIpsRequest::getIpCount()const
{
return ipCount_;
void AddBandwidthPackageIpsRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AddBandwidthPackageIpsRequest::setIpCount(const std::string& ipCount)
{
ipCount_ = ipCount;
setParameter("IpCount", ipCount);
std::string AddBandwidthPackageIpsRequest::getIpCount() const {
return ipCount_;
}
void AddBandwidthPackageIpsRequest::setIpCount(const std::string &ipCount) {
ipCount_ = ipCount;
setParameter(std::string("IpCount"), ipCount);
}

View File

@@ -1,111 +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/AddTagsRequest.h>
using AlibabaCloud::Ecs::Model::AddTagsRequest;
AddTagsRequest::AddTagsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AddTags")
{
setMethod(HttpRequest::Method::Post);
}
AddTagsRequest::~AddTagsRequest()
{}
long AddTagsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/AddTagsRequest.h>
using AlibabaCloud::Ecs::Model::AddTagsRequest;
AddTagsRequest::AddTagsRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AddTags") {
setMethod(HttpRequest::Method::Post);
}
void AddTagsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
AddTagsRequest::~AddTagsRequest() {}
long AddTagsRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AddTagsRequest::getRegionId()const
{
return regionId_;
void AddTagsRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AddTagsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AddTagsRequest::getRegionId() const {
return regionId_;
}
std::vector<AddTagsRequest::Tag> AddTagsRequest::getTag()const
{
return tag_;
void AddTagsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AddTagsRequest::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 + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
std::vector<AddTagsRequest::Tag> AddTagsRequest::getTag() const {
return tag_;
}
std::string AddTagsRequest::getResourceId()const
{
return resourceId_;
void AddTagsRequest::setTag(const std::vector<AddTagsRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
void AddTagsRequest::setResourceId(const std::string& resourceId)
{
resourceId_ = resourceId;
setParameter("ResourceId", resourceId);
std::string AddTagsRequest::getResourceId() const {
return resourceId_;
}
std::string AddTagsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AddTagsRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
void AddTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AddTagsRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long AddTagsRequest::getOwnerId()const
{
return ownerId_;
void AddTagsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AddTagsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AddTagsRequest::getOwnerId() const {
return ownerId_;
}
std::string AddTagsRequest::getResourceType()const
{
return resourceType_;
void AddTagsRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AddTagsRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
std::string AddTagsRequest::getResourceType() const {
return resourceType_;
}
void AddTagsRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}

View File

@@ -1,320 +1,266 @@
/*
* 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/AllocateDedicatedHostsRequest.h>
using AlibabaCloud::Ecs::Model::AllocateDedicatedHostsRequest;
AllocateDedicatedHostsRequest::AllocateDedicatedHostsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AllocateDedicatedHosts")
{
setMethod(HttpRequest::Method::Post);
}
AllocateDedicatedHostsRequest::~AllocateDedicatedHostsRequest()
{}
long AllocateDedicatedHostsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/AllocateDedicatedHostsRequest.h>
using AlibabaCloud::Ecs::Model::AllocateDedicatedHostsRequest;
AllocateDedicatedHostsRequest::AllocateDedicatedHostsRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AllocateDedicatedHosts") {
setMethod(HttpRequest::Method::Post);
}
void AllocateDedicatedHostsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
AllocateDedicatedHostsRequest::~AllocateDedicatedHostsRequest() {}
long AllocateDedicatedHostsRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AllocateDedicatedHostsRequest::getClientToken()const
{
return clientToken_;
void AllocateDedicatedHostsRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AllocateDedicatedHostsRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string AllocateDedicatedHostsRequest::getClientToken() const {
return clientToken_;
}
std::string AllocateDedicatedHostsRequest::getDescription()const
{
return description_;
void AllocateDedicatedHostsRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void AllocateDedicatedHostsRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string AllocateDedicatedHostsRequest::getDescription() const {
return description_;
}
float AllocateDedicatedHostsRequest::getCpuOverCommitRatio()const
{
return cpuOverCommitRatio_;
void AllocateDedicatedHostsRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void AllocateDedicatedHostsRequest::setCpuOverCommitRatio(float cpuOverCommitRatio)
{
cpuOverCommitRatio_ = cpuOverCommitRatio;
setParameter("CpuOverCommitRatio", std::to_string(cpuOverCommitRatio));
float AllocateDedicatedHostsRequest::getCpuOverCommitRatio() const {
return cpuOverCommitRatio_;
}
std::string AllocateDedicatedHostsRequest::getResourceGroupId()const
{
return resourceGroupId_;
void AllocateDedicatedHostsRequest::setCpuOverCommitRatio(float cpuOverCommitRatio) {
cpuOverCommitRatio_ = cpuOverCommitRatio;
setParameter(std::string("CpuOverCommitRatio"), std::to_string(cpuOverCommitRatio));
}
void AllocateDedicatedHostsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string AllocateDedicatedHostsRequest::getResourceGroupId() const {
return resourceGroupId_;
}
int AllocateDedicatedHostsRequest::getMinQuantity()const
{
return minQuantity_;
void AllocateDedicatedHostsRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void AllocateDedicatedHostsRequest::setMinQuantity(int minQuantity)
{
minQuantity_ = minQuantity;
setParameter("MinQuantity", std::to_string(minQuantity));
int AllocateDedicatedHostsRequest::getMinQuantity() const {
return minQuantity_;
}
std::string AllocateDedicatedHostsRequest::getRegionId()const
{
return regionId_;
void AllocateDedicatedHostsRequest::setMinQuantity(int minQuantity) {
minQuantity_ = minQuantity;
setParameter(std::string("MinQuantity"), std::to_string(minQuantity));
}
void AllocateDedicatedHostsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AllocateDedicatedHostsRequest::getRegionId() const {
return regionId_;
}
std::string AllocateDedicatedHostsRequest::getActionOnMaintenance()const
{
return actionOnMaintenance_;
void AllocateDedicatedHostsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AllocateDedicatedHostsRequest::setActionOnMaintenance(const std::string& actionOnMaintenance)
{
actionOnMaintenance_ = actionOnMaintenance;
setParameter("ActionOnMaintenance", actionOnMaintenance);
std::string AllocateDedicatedHostsRequest::getActionOnMaintenance() const {
return actionOnMaintenance_;
}
std::string AllocateDedicatedHostsRequest::getDedicatedHostClusterId()const
{
return dedicatedHostClusterId_;
void AllocateDedicatedHostsRequest::setActionOnMaintenance(const std::string &actionOnMaintenance) {
actionOnMaintenance_ = actionOnMaintenance;
setParameter(std::string("ActionOnMaintenance"), actionOnMaintenance);
}
void AllocateDedicatedHostsRequest::setDedicatedHostClusterId(const std::string& dedicatedHostClusterId)
{
dedicatedHostClusterId_ = dedicatedHostClusterId;
setParameter("DedicatedHostClusterId", dedicatedHostClusterId);
std::string AllocateDedicatedHostsRequest::getDedicatedHostClusterId() const {
return dedicatedHostClusterId_;
}
std::vector<AllocateDedicatedHostsRequest::Tag> AllocateDedicatedHostsRequest::getTag()const
{
return tag_;
void AllocateDedicatedHostsRequest::setDedicatedHostClusterId(const std::string &dedicatedHostClusterId) {
dedicatedHostClusterId_ = dedicatedHostClusterId;
setParameter(std::string("DedicatedHostClusterId"), dedicatedHostClusterId);
}
void AllocateDedicatedHostsRequest::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::vector<AllocateDedicatedHostsRequest::Tag> AllocateDedicatedHostsRequest::getTag() const {
return tag_;
}
std::string AllocateDedicatedHostsRequest::getDedicatedHostType()const
{
return dedicatedHostType_;
void AllocateDedicatedHostsRequest::setTag(const std::vector<AllocateDedicatedHostsRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
void AllocateDedicatedHostsRequest::setDedicatedHostType(const std::string& dedicatedHostType)
{
dedicatedHostType_ = dedicatedHostType;
setParameter("DedicatedHostType", dedicatedHostType);
std::string AllocateDedicatedHostsRequest::getDedicatedHostType() const {
return dedicatedHostType_;
}
int AllocateDedicatedHostsRequest::getAutoRenewPeriod()const
{
return autoRenewPeriod_;
void AllocateDedicatedHostsRequest::setDedicatedHostType(const std::string &dedicatedHostType) {
dedicatedHostType_ = dedicatedHostType;
setParameter(std::string("DedicatedHostType"), dedicatedHostType);
}
void AllocateDedicatedHostsRequest::setAutoRenewPeriod(int autoRenewPeriod)
{
autoRenewPeriod_ = autoRenewPeriod;
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
int AllocateDedicatedHostsRequest::getAutoRenewPeriod() const {
return autoRenewPeriod_;
}
int AllocateDedicatedHostsRequest::getPeriod()const
{
return period_;
void AllocateDedicatedHostsRequest::setAutoRenewPeriod(int autoRenewPeriod) {
autoRenewPeriod_ = autoRenewPeriod;
setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod));
}
void AllocateDedicatedHostsRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
int AllocateDedicatedHostsRequest::getPeriod() const {
return period_;
}
int AllocateDedicatedHostsRequest::getQuantity()const
{
return quantity_;
void AllocateDedicatedHostsRequest::setPeriod(int period) {
period_ = period;
setParameter(std::string("Period"), std::to_string(period));
}
void AllocateDedicatedHostsRequest::setQuantity(int quantity)
{
quantity_ = quantity;
setParameter("Quantity", std::to_string(quantity));
int AllocateDedicatedHostsRequest::getQuantity() const {
return quantity_;
}
std::string AllocateDedicatedHostsRequest::getDedicatedHostName()const
{
return dedicatedHostName_;
void AllocateDedicatedHostsRequest::setQuantity(int quantity) {
quantity_ = quantity;
setParameter(std::string("Quantity"), std::to_string(quantity));
}
void AllocateDedicatedHostsRequest::setDedicatedHostName(const std::string& dedicatedHostName)
{
dedicatedHostName_ = dedicatedHostName;
setParameter("DedicatedHostName", dedicatedHostName);
std::string AllocateDedicatedHostsRequest::getDedicatedHostName() const {
return dedicatedHostName_;
}
std::string AllocateDedicatedHostsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AllocateDedicatedHostsRequest::setDedicatedHostName(const std::string &dedicatedHostName) {
dedicatedHostName_ = dedicatedHostName;
setParameter(std::string("DedicatedHostName"), dedicatedHostName);
}
void AllocateDedicatedHostsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AllocateDedicatedHostsRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string AllocateDedicatedHostsRequest::getOwnerAccount()const
{
return ownerAccount_;
void AllocateDedicatedHostsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AllocateDedicatedHostsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string AllocateDedicatedHostsRequest::getOwnerAccount() const {
return ownerAccount_;
}
std::string AllocateDedicatedHostsRequest::getAutoReleaseTime()const
{
return autoReleaseTime_;
void AllocateDedicatedHostsRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void AllocateDedicatedHostsRequest::setAutoReleaseTime(const std::string& autoReleaseTime)
{
autoReleaseTime_ = autoReleaseTime;
setParameter("AutoReleaseTime", autoReleaseTime);
std::string AllocateDedicatedHostsRequest::getAutoReleaseTime() const {
return autoReleaseTime_;
}
long AllocateDedicatedHostsRequest::getOwnerId()const
{
return ownerId_;
void AllocateDedicatedHostsRequest::setAutoReleaseTime(const std::string &autoReleaseTime) {
autoReleaseTime_ = autoReleaseTime;
setParameter(std::string("AutoReleaseTime"), autoReleaseTime);
}
void AllocateDedicatedHostsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AllocateDedicatedHostsRequest::getOwnerId() const {
return ownerId_;
}
std::string AllocateDedicatedHostsRequest::getPeriodUnit()const
{
return periodUnit_;
void AllocateDedicatedHostsRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AllocateDedicatedHostsRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setParameter("PeriodUnit", periodUnit);
std::string AllocateDedicatedHostsRequest::getPeriodUnit() const {
return periodUnit_;
}
bool AllocateDedicatedHostsRequest::getAutoRenew()const
{
return autoRenew_;
void AllocateDedicatedHostsRequest::setPeriodUnit(const std::string &periodUnit) {
periodUnit_ = periodUnit;
setParameter(std::string("PeriodUnit"), periodUnit);
}
void AllocateDedicatedHostsRequest::setAutoRenew(bool autoRenew)
{
autoRenew_ = autoRenew;
setParameter("AutoRenew", autoRenew ? "true" : "false");
bool AllocateDedicatedHostsRequest::getAutoRenew() const {
return autoRenew_;
}
int AllocateDedicatedHostsRequest::getNetworkAttributesSlbUdpTimeout()const
{
return networkAttributesSlbUdpTimeout_;
void AllocateDedicatedHostsRequest::setAutoRenew(bool autoRenew) {
autoRenew_ = autoRenew;
setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false");
}
void AllocateDedicatedHostsRequest::setNetworkAttributesSlbUdpTimeout(int networkAttributesSlbUdpTimeout)
{
networkAttributesSlbUdpTimeout_ = networkAttributesSlbUdpTimeout;
setParameter("NetworkAttributesSlbUdpTimeout", std::to_string(networkAttributesSlbUdpTimeout));
int AllocateDedicatedHostsRequest::getNetworkAttributesSlbUdpTimeout() const {
return networkAttributesSlbUdpTimeout_;
}
std::string AllocateDedicatedHostsRequest::getZoneId()const
{
return zoneId_;
void AllocateDedicatedHostsRequest::setNetworkAttributesSlbUdpTimeout(int networkAttributesSlbUdpTimeout) {
networkAttributesSlbUdpTimeout_ = networkAttributesSlbUdpTimeout;
setParameter(std::string("NetworkAttributes.SlbUdpTimeout"), std::to_string(networkAttributesSlbUdpTimeout));
}
void AllocateDedicatedHostsRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
std::string AllocateDedicatedHostsRequest::getZoneId() const {
return zoneId_;
}
std::string AllocateDedicatedHostsRequest::getAutoPlacement()const
{
return autoPlacement_;
void AllocateDedicatedHostsRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}
void AllocateDedicatedHostsRequest::setAutoPlacement(const std::string& autoPlacement)
{
autoPlacement_ = autoPlacement;
setParameter("AutoPlacement", autoPlacement);
std::string AllocateDedicatedHostsRequest::getAutoPlacement() const {
return autoPlacement_;
}
std::string AllocateDedicatedHostsRequest::getChargeType()const
{
return chargeType_;
void AllocateDedicatedHostsRequest::setAutoPlacement(const std::string &autoPlacement) {
autoPlacement_ = autoPlacement;
setParameter(std::string("AutoPlacement"), autoPlacement);
}
void AllocateDedicatedHostsRequest::setChargeType(const std::string& chargeType)
{
chargeType_ = chargeType;
setParameter("ChargeType", chargeType);
std::string AllocateDedicatedHostsRequest::getChargeType() const {
return chargeType_;
}
int AllocateDedicatedHostsRequest::getNetworkAttributesUdpTimeout()const
{
return networkAttributesUdpTimeout_;
void AllocateDedicatedHostsRequest::setChargeType(const std::string &chargeType) {
chargeType_ = chargeType;
setParameter(std::string("ChargeType"), chargeType);
}
void AllocateDedicatedHostsRequest::setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout)
{
networkAttributesUdpTimeout_ = networkAttributesUdpTimeout;
setParameter("NetworkAttributesUdpTimeout", std::to_string(networkAttributesUdpTimeout));
int AllocateDedicatedHostsRequest::getNetworkAttributesUdpTimeout() const {
return networkAttributesUdpTimeout_;
}
void AllocateDedicatedHostsRequest::setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout) {
networkAttributesUdpTimeout_ = networkAttributesUdpTimeout;
setParameter(std::string("NetworkAttributes.UdpTimeout"), std::to_string(networkAttributesUdpTimeout));
}

View File

@@ -1,139 +1,117 @@
/*
* 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/AllocateEipAddressRequest.h>
using AlibabaCloud::Ecs::Model::AllocateEipAddressRequest;
AllocateEipAddressRequest::AllocateEipAddressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AllocateEipAddress")
{
setMethod(HttpRequest::Method::Post);
}
AllocateEipAddressRequest::~AllocateEipAddressRequest()
{}
long AllocateEipAddressRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/AllocateEipAddressRequest.h>
using AlibabaCloud::Ecs::Model::AllocateEipAddressRequest;
AllocateEipAddressRequest::AllocateEipAddressRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AllocateEipAddress") {
setMethod(HttpRequest::Method::Post);
}
void AllocateEipAddressRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
AllocateEipAddressRequest::~AllocateEipAddressRequest() {}
long AllocateEipAddressRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AllocateEipAddressRequest::getClientToken()const
{
return clientToken_;
void AllocateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AllocateEipAddressRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string AllocateEipAddressRequest::getClientToken() const {
return clientToken_;
}
std::string AllocateEipAddressRequest::getISP()const
{
return iSP_;
void AllocateEipAddressRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void AllocateEipAddressRequest::setISP(const std::string& iSP)
{
iSP_ = iSP;
setParameter("ISP", iSP);
std::string AllocateEipAddressRequest::getISP() const {
return iSP_;
}
std::string AllocateEipAddressRequest::getRegionId()const
{
return regionId_;
void AllocateEipAddressRequest::setISP(const std::string &iSP) {
iSP_ = iSP;
setParameter(std::string("ISP"), iSP);
}
void AllocateEipAddressRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AllocateEipAddressRequest::getRegionId() const {
return regionId_;
}
std::string AllocateEipAddressRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AllocateEipAddressRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AllocateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AllocateEipAddressRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string AllocateEipAddressRequest::getBandwidth()const
{
return bandwidth_;
void AllocateEipAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AllocateEipAddressRequest::setBandwidth(const std::string& bandwidth)
{
bandwidth_ = bandwidth;
setParameter("Bandwidth", bandwidth);
std::string AllocateEipAddressRequest::getBandwidth() const {
return bandwidth_;
}
std::string AllocateEipAddressRequest::getOwnerAccount()const
{
return ownerAccount_;
void AllocateEipAddressRequest::setBandwidth(const std::string &bandwidth) {
bandwidth_ = bandwidth;
setParameter(std::string("Bandwidth"), bandwidth);
}
void AllocateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string AllocateEipAddressRequest::getOwnerAccount() const {
return ownerAccount_;
}
long AllocateEipAddressRequest::getOwnerId()const
{
return ownerId_;
void AllocateEipAddressRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void AllocateEipAddressRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AllocateEipAddressRequest::getOwnerId() const {
return ownerId_;
}
long AllocateEipAddressRequest::getActivityId()const
{
return activityId_;
void AllocateEipAddressRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AllocateEipAddressRequest::setActivityId(long activityId)
{
activityId_ = activityId;
setParameter("ActivityId", std::to_string(activityId));
long AllocateEipAddressRequest::getActivityId() const {
return activityId_;
}
std::string AllocateEipAddressRequest::getInternetChargeType()const
{
return internetChargeType_;
void AllocateEipAddressRequest::setActivityId(long activityId) {
activityId_ = activityId;
setParameter(std::string("ActivityId"), std::to_string(activityId));
}
void AllocateEipAddressRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
std::string AllocateEipAddressRequest::getInternetChargeType() const {
return internetChargeType_;
}
void AllocateEipAddressRequest::setInternetChargeType(const std::string &internetChargeType) {
internetChargeType_ = internetChargeType;
setParameter(std::string("InternetChargeType"), internetChargeType);
}

View File

@@ -1,106 +1,90 @@
/*
* 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/AllocatePublicIpAddressRequest.h>
using AlibabaCloud::Ecs::Model::AllocatePublicIpAddressRequest;
AllocatePublicIpAddressRequest::AllocatePublicIpAddressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AllocatePublicIpAddress")
{
setMethod(HttpRequest::Method::Post);
}
AllocatePublicIpAddressRequest::~AllocatePublicIpAddressRequest()
{}
std::string AllocatePublicIpAddressRequest::getIpAddress()const
{
return ipAddress_;
*/
#include <alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h>
using AlibabaCloud::Ecs::Model::AllocatePublicIpAddressRequest;
AllocatePublicIpAddressRequest::AllocatePublicIpAddressRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AllocatePublicIpAddress") {
setMethod(HttpRequest::Method::Post);
}
void AllocatePublicIpAddressRequest::setIpAddress(const std::string& ipAddress)
{
ipAddress_ = ipAddress;
setParameter("IpAddress", ipAddress);
AllocatePublicIpAddressRequest::~AllocatePublicIpAddressRequest() {}
std::string AllocatePublicIpAddressRequest::getIpAddress() const {
return ipAddress_;
}
long AllocatePublicIpAddressRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void AllocatePublicIpAddressRequest::setIpAddress(const std::string &ipAddress) {
ipAddress_ = ipAddress;
setParameter(std::string("IpAddress"), ipAddress);
}
void AllocatePublicIpAddressRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long AllocatePublicIpAddressRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AllocatePublicIpAddressRequest::getVlanId()const
{
return vlanId_;
void AllocatePublicIpAddressRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AllocatePublicIpAddressRequest::setVlanId(const std::string& vlanId)
{
vlanId_ = vlanId;
setParameter("VlanId", vlanId);
std::string AllocatePublicIpAddressRequest::getVlanId() const {
return vlanId_;
}
std::string AllocatePublicIpAddressRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AllocatePublicIpAddressRequest::setVlanId(const std::string &vlanId) {
vlanId_ = vlanId;
setParameter(std::string("VlanId"), vlanId);
}
void AllocatePublicIpAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AllocatePublicIpAddressRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string AllocatePublicIpAddressRequest::getOwnerAccount()const
{
return ownerAccount_;
void AllocatePublicIpAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AllocatePublicIpAddressRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string AllocatePublicIpAddressRequest::getOwnerAccount() const {
return ownerAccount_;
}
long AllocatePublicIpAddressRequest::getOwnerId()const
{
return ownerId_;
void AllocatePublicIpAddressRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void AllocatePublicIpAddressRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AllocatePublicIpAddressRequest::getOwnerId() const {
return ownerId_;
}
std::string AllocatePublicIpAddressRequest::getInstanceId()const
{
return instanceId_;
void AllocatePublicIpAddressRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AllocatePublicIpAddressRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
std::string AllocatePublicIpAddressRequest::getInstanceId() const {
return instanceId_;
}
void AllocatePublicIpAddressRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -1,95 +1,81 @@
/*
* 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/ApplyAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::ApplyAutoSnapshotPolicyRequest;
ApplyAutoSnapshotPolicyRequest::ApplyAutoSnapshotPolicyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ApplyAutoSnapshotPolicy")
{
setMethod(HttpRequest::Method::Post);
}
ApplyAutoSnapshotPolicyRequest::~ApplyAutoSnapshotPolicyRequest()
{}
long ApplyAutoSnapshotPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::ApplyAutoSnapshotPolicyRequest;
ApplyAutoSnapshotPolicyRequest::ApplyAutoSnapshotPolicyRequest()
: RpcServiceRequest("ecs", "2014-05-26", "ApplyAutoSnapshotPolicy") {
setMethod(HttpRequest::Method::Post);
}
void ApplyAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
ApplyAutoSnapshotPolicyRequest::~ApplyAutoSnapshotPolicyRequest() {}
long ApplyAutoSnapshotPolicyRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string ApplyAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId()const
{
return autoSnapshotPolicyId_;
void ApplyAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void ApplyAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId)
{
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId);
std::string ApplyAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId() const {
return autoSnapshotPolicyId_;
}
std::string ApplyAutoSnapshotPolicyRequest::getRegionId()const
{
return regionId_;
void ApplyAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId) {
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
setParameter(std::string("autoSnapshotPolicyId"), autoSnapshotPolicyId);
}
void ApplyAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string ApplyAutoSnapshotPolicyRequest::getRegionId() const {
return regionId_;
}
std::string ApplyAutoSnapshotPolicyRequest::getDiskIds()const
{
return diskIds_;
void ApplyAutoSnapshotPolicyRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("regionId"), regionId);
}
void ApplyAutoSnapshotPolicyRequest::setDiskIds(const std::string& diskIds)
{
diskIds_ = diskIds;
setParameter("DiskIds", diskIds);
std::string ApplyAutoSnapshotPolicyRequest::getDiskIds() const {
return diskIds_;
}
std::string ApplyAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void ApplyAutoSnapshotPolicyRequest::setDiskIds(const std::string &diskIds) {
diskIds_ = diskIds;
setParameter(std::string("diskIds"), diskIds);
}
void ApplyAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string ApplyAutoSnapshotPolicyRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long ApplyAutoSnapshotPolicyRequest::getOwnerId()const
{
return ownerId_;
void ApplyAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void ApplyAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long ApplyAutoSnapshotPolicyRequest::getOwnerId() const {
return ownerId_;
}
void ApplyAutoSnapshotPolicyRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,119 +1,98 @@
/*
* 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/AssignIpv6AddressesRequest.h>
using AlibabaCloud::Ecs::Model::AssignIpv6AddressesRequest;
AssignIpv6AddressesRequest::AssignIpv6AddressesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssignIpv6Addresses")
{
setMethod(HttpRequest::Method::Post);
}
AssignIpv6AddressesRequest::~AssignIpv6AddressesRequest()
{}
long AssignIpv6AddressesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/AssignIpv6AddressesRequest.h>
using AlibabaCloud::Ecs::Model::AssignIpv6AddressesRequest;
AssignIpv6AddressesRequest::AssignIpv6AddressesRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AssignIpv6Addresses") {
setMethod(HttpRequest::Method::Post);
}
void AssignIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
AssignIpv6AddressesRequest::~AssignIpv6AddressesRequest() {}
long AssignIpv6AddressesRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AssignIpv6AddressesRequest::getRegionId()const
{
return regionId_;
void AssignIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AssignIpv6AddressesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AssignIpv6AddressesRequest::getRegionId() const {
return regionId_;
}
std::string AssignIpv6AddressesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AssignIpv6AddressesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AssignIpv6AddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AssignIpv6AddressesRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
int AssignIpv6AddressesRequest::getIpv6AddressCount()const
{
return ipv6AddressCount_;
void AssignIpv6AddressesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AssignIpv6AddressesRequest::setIpv6AddressCount(int ipv6AddressCount)
{
ipv6AddressCount_ = ipv6AddressCount;
setParameter("Ipv6AddressCount", std::to_string(ipv6AddressCount));
int AssignIpv6AddressesRequest::getIpv6AddressCount() const {
return ipv6AddressCount_;
}
std::string AssignIpv6AddressesRequest::getOwnerAccount()const
{
return ownerAccount_;
void AssignIpv6AddressesRequest::setIpv6AddressCount(int ipv6AddressCount) {
ipv6AddressCount_ = ipv6AddressCount;
setParameter(std::string("Ipv6AddressCount"), std::to_string(ipv6AddressCount));
}
void AssignIpv6AddressesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string AssignIpv6AddressesRequest::getOwnerAccount() const {
return ownerAccount_;
}
long AssignIpv6AddressesRequest::getOwnerId()const
{
return ownerId_;
void AssignIpv6AddressesRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void AssignIpv6AddressesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AssignIpv6AddressesRequest::getOwnerId() const {
return ownerId_;
}
std::string AssignIpv6AddressesRequest::getNetworkInterfaceId()const
{
return networkInterfaceId_;
void AssignIpv6AddressesRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AssignIpv6AddressesRequest::setNetworkInterfaceId(const std::string& networkInterfaceId)
{
networkInterfaceId_ = networkInterfaceId;
setParameter("NetworkInterfaceId", networkInterfaceId);
std::string AssignIpv6AddressesRequest::getNetworkInterfaceId() const {
return networkInterfaceId_;
}
std::vector<std::string> AssignIpv6AddressesRequest::getIpv6Address()const
{
return ipv6Address_;
void AssignIpv6AddressesRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
networkInterfaceId_ = networkInterfaceId;
setParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
}
void AssignIpv6AddressesRequest::setIpv6Address(const std::vector<std::string>& ipv6Address)
{
ipv6Address_ = ipv6Address;
for(int dep1 = 0; dep1!= ipv6Address.size(); dep1++) {
setParameter("Ipv6Address."+ std::to_string(dep1), ipv6Address.at(dep1));
}
std::vector<std::string> AssignIpv6AddressesRequest::getIpv6Address() const {
return ipv6Address_;
}
void AssignIpv6AddressesRequest::setIpv6Address(const std::vector<std::string> &ipv6Address) {
ipv6Address_ = ipv6Address;
}

View File

@@ -1,130 +1,107 @@
/*
* 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/AssignPrivateIpAddressesRequest.h>
using AlibabaCloud::Ecs::Model::AssignPrivateIpAddressesRequest;
AssignPrivateIpAddressesRequest::AssignPrivateIpAddressesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssignPrivateIpAddresses")
{
setMethod(HttpRequest::Method::Post);
}
AssignPrivateIpAddressesRequest::~AssignPrivateIpAddressesRequest()
{}
long AssignPrivateIpAddressesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h>
using AlibabaCloud::Ecs::Model::AssignPrivateIpAddressesRequest;
AssignPrivateIpAddressesRequest::AssignPrivateIpAddressesRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AssignPrivateIpAddresses") {
setMethod(HttpRequest::Method::Post);
}
void AssignPrivateIpAddressesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
AssignPrivateIpAddressesRequest::~AssignPrivateIpAddressesRequest() {}
long AssignPrivateIpAddressesRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AssignPrivateIpAddressesRequest::getClientToken()const
{
return clientToken_;
void AssignPrivateIpAddressesRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AssignPrivateIpAddressesRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string AssignPrivateIpAddressesRequest::getClientToken() const {
return clientToken_;
}
int AssignPrivateIpAddressesRequest::getSecondaryPrivateIpAddressCount()const
{
return secondaryPrivateIpAddressCount_;
void AssignPrivateIpAddressesRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void AssignPrivateIpAddressesRequest::setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount)
{
secondaryPrivateIpAddressCount_ = secondaryPrivateIpAddressCount;
setParameter("SecondaryPrivateIpAddressCount", std::to_string(secondaryPrivateIpAddressCount));
int AssignPrivateIpAddressesRequest::getSecondaryPrivateIpAddressCount() const {
return secondaryPrivateIpAddressCount_;
}
std::string AssignPrivateIpAddressesRequest::getRegionId()const
{
return regionId_;
void AssignPrivateIpAddressesRequest::setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount) {
secondaryPrivateIpAddressCount_ = secondaryPrivateIpAddressCount;
setParameter(std::string("SecondaryPrivateIpAddressCount"), std::to_string(secondaryPrivateIpAddressCount));
}
void AssignPrivateIpAddressesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AssignPrivateIpAddressesRequest::getRegionId() const {
return regionId_;
}
std::string AssignPrivateIpAddressesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AssignPrivateIpAddressesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AssignPrivateIpAddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AssignPrivateIpAddressesRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string AssignPrivateIpAddressesRequest::getOwnerAccount()const
{
return ownerAccount_;
void AssignPrivateIpAddressesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AssignPrivateIpAddressesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string AssignPrivateIpAddressesRequest::getOwnerAccount() const {
return ownerAccount_;
}
long AssignPrivateIpAddressesRequest::getOwnerId()const
{
return ownerId_;
void AssignPrivateIpAddressesRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void AssignPrivateIpAddressesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AssignPrivateIpAddressesRequest::getOwnerId() const {
return ownerId_;
}
std::vector<std::string> AssignPrivateIpAddressesRequest::getPrivateIpAddress()const
{
return privateIpAddress_;
void AssignPrivateIpAddressesRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AssignPrivateIpAddressesRequest::setPrivateIpAddress(const std::vector<std::string>& privateIpAddress)
{
privateIpAddress_ = privateIpAddress;
for(int dep1 = 0; dep1!= privateIpAddress.size(); dep1++) {
setParameter("PrivateIpAddress."+ std::to_string(dep1), privateIpAddress.at(dep1));
}
std::vector<std::string> AssignPrivateIpAddressesRequest::getPrivateIpAddress() const {
return privateIpAddress_;
}
std::string AssignPrivateIpAddressesRequest::getNetworkInterfaceId()const
{
return networkInterfaceId_;
void AssignPrivateIpAddressesRequest::setPrivateIpAddress(const std::vector<std::string> &privateIpAddress) {
privateIpAddress_ = privateIpAddress;
}
void AssignPrivateIpAddressesRequest::setNetworkInterfaceId(const std::string& networkInterfaceId)
{
networkInterfaceId_ = networkInterfaceId;
setParameter("NetworkInterfaceId", networkInterfaceId);
std::string AssignPrivateIpAddressesRequest::getNetworkInterfaceId() const {
return networkInterfaceId_;
}
void AssignPrivateIpAddressesRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
networkInterfaceId_ = networkInterfaceId;
setParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
}

View File

@@ -1,117 +1,99 @@
/*
* 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/AssociateEipAddressRequest.h>
using AlibabaCloud::Ecs::Model::AssociateEipAddressRequest;
AssociateEipAddressRequest::AssociateEipAddressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssociateEipAddress")
{
setMethod(HttpRequest::Method::Post);
}
AssociateEipAddressRequest::~AssociateEipAddressRequest()
{}
long AssociateEipAddressRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/AssociateEipAddressRequest.h>
using AlibabaCloud::Ecs::Model::AssociateEipAddressRequest;
AssociateEipAddressRequest::AssociateEipAddressRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AssociateEipAddress") {
setMethod(HttpRequest::Method::Post);
}
void AssociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
AssociateEipAddressRequest::~AssociateEipAddressRequest() {}
long AssociateEipAddressRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AssociateEipAddressRequest::getAllocationId()const
{
return allocationId_;
void AssociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AssociateEipAddressRequest::setAllocationId(const std::string& allocationId)
{
allocationId_ = allocationId;
setParameter("AllocationId", allocationId);
std::string AssociateEipAddressRequest::getAllocationId() const {
return allocationId_;
}
std::string AssociateEipAddressRequest::getRegionId()const
{
return regionId_;
void AssociateEipAddressRequest::setAllocationId(const std::string &allocationId) {
allocationId_ = allocationId;
setParameter(std::string("AllocationId"), allocationId);
}
void AssociateEipAddressRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AssociateEipAddressRequest::getRegionId() const {
return regionId_;
}
std::string AssociateEipAddressRequest::getInstanceType()const
{
return instanceType_;
void AssociateEipAddressRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AssociateEipAddressRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
std::string AssociateEipAddressRequest::getInstanceType() const {
return instanceType_;
}
std::string AssociateEipAddressRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AssociateEipAddressRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
void AssociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AssociateEipAddressRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string AssociateEipAddressRequest::getOwnerAccount()const
{
return ownerAccount_;
void AssociateEipAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AssociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string AssociateEipAddressRequest::getOwnerAccount() const {
return ownerAccount_;
}
long AssociateEipAddressRequest::getOwnerId()const
{
return ownerId_;
void AssociateEipAddressRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void AssociateEipAddressRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AssociateEipAddressRequest::getOwnerId() const {
return ownerId_;
}
std::string AssociateEipAddressRequest::getInstanceId()const
{
return instanceId_;
void AssociateEipAddressRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AssociateEipAddressRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
std::string AssociateEipAddressRequest::getInstanceId() const {
return instanceId_;
}
void AssociateEipAddressRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -1,117 +1,99 @@
/*
* 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/AssociateHaVipRequest.h>
using AlibabaCloud::Ecs::Model::AssociateHaVipRequest;
AssociateHaVipRequest::AssociateHaVipRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssociateHaVip")
{
setMethod(HttpRequest::Method::Post);
}
AssociateHaVipRequest::~AssociateHaVipRequest()
{}
long AssociateHaVipRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/AssociateHaVipRequest.h>
using AlibabaCloud::Ecs::Model::AssociateHaVipRequest;
AssociateHaVipRequest::AssociateHaVipRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AssociateHaVip") {
setMethod(HttpRequest::Method::Post);
}
void AssociateHaVipRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
AssociateHaVipRequest::~AssociateHaVipRequest() {}
long AssociateHaVipRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AssociateHaVipRequest::getClientToken()const
{
return clientToken_;
void AssociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AssociateHaVipRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string AssociateHaVipRequest::getClientToken() const {
return clientToken_;
}
std::string AssociateHaVipRequest::getRegionId()const
{
return regionId_;
void AssociateHaVipRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void AssociateHaVipRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AssociateHaVipRequest::getRegionId() const {
return regionId_;
}
std::string AssociateHaVipRequest::getHaVipId()const
{
return haVipId_;
void AssociateHaVipRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AssociateHaVipRequest::setHaVipId(const std::string& haVipId)
{
haVipId_ = haVipId;
setParameter("HaVipId", haVipId);
std::string AssociateHaVipRequest::getHaVipId() const {
return haVipId_;
}
std::string AssociateHaVipRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AssociateHaVipRequest::setHaVipId(const std::string &haVipId) {
haVipId_ = haVipId;
setParameter(std::string("HaVipId"), haVipId);
}
void AssociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AssociateHaVipRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string AssociateHaVipRequest::getOwnerAccount()const
{
return ownerAccount_;
void AssociateHaVipRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AssociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string AssociateHaVipRequest::getOwnerAccount() const {
return ownerAccount_;
}
long AssociateHaVipRequest::getOwnerId()const
{
return ownerId_;
void AssociateHaVipRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void AssociateHaVipRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AssociateHaVipRequest::getOwnerId() const {
return ownerId_;
}
std::string AssociateHaVipRequest::getInstanceId()const
{
return instanceId_;
void AssociateHaVipRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AssociateHaVipRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
std::string AssociateHaVipRequest::getInstanceId() const {
return instanceId_;
}
void AssociateHaVipRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -1,95 +1,81 @@
/*
* 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/AttachClassicLinkVpcRequest.h>
using AlibabaCloud::Ecs::Model::AttachClassicLinkVpcRequest;
AttachClassicLinkVpcRequest::AttachClassicLinkVpcRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachClassicLinkVpc")
{
setMethod(HttpRequest::Method::Post);
}
AttachClassicLinkVpcRequest::~AttachClassicLinkVpcRequest()
{}
long AttachClassicLinkVpcRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h>
using AlibabaCloud::Ecs::Model::AttachClassicLinkVpcRequest;
AttachClassicLinkVpcRequest::AttachClassicLinkVpcRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AttachClassicLinkVpc") {
setMethod(HttpRequest::Method::Post);
}
void AttachClassicLinkVpcRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
AttachClassicLinkVpcRequest::~AttachClassicLinkVpcRequest() {}
long AttachClassicLinkVpcRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AttachClassicLinkVpcRequest::getRegionId()const
{
return regionId_;
void AttachClassicLinkVpcRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AttachClassicLinkVpcRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AttachClassicLinkVpcRequest::getRegionId() const {
return regionId_;
}
std::string AttachClassicLinkVpcRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AttachClassicLinkVpcRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AttachClassicLinkVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AttachClassicLinkVpcRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long AttachClassicLinkVpcRequest::getOwnerId()const
{
return ownerId_;
void AttachClassicLinkVpcRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AttachClassicLinkVpcRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AttachClassicLinkVpcRequest::getOwnerId() const {
return ownerId_;
}
std::string AttachClassicLinkVpcRequest::getInstanceId()const
{
return instanceId_;
void AttachClassicLinkVpcRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AttachClassicLinkVpcRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
std::string AttachClassicLinkVpcRequest::getInstanceId() const {
return instanceId_;
}
std::string AttachClassicLinkVpcRequest::getVpcId()const
{
return vpcId_;
void AttachClassicLinkVpcRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
void AttachClassicLinkVpcRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
std::string AttachClassicLinkVpcRequest::getVpcId() const {
return vpcId_;
}
void AttachClassicLinkVpcRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setParameter(std::string("VpcId"), vpcId);
}

View File

@@ -1,150 +1,126 @@
/*
* 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/AttachDiskRequest.h>
using AlibabaCloud::Ecs::Model::AttachDiskRequest;
AttachDiskRequest::AttachDiskRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachDisk")
{
setMethod(HttpRequest::Method::Post);
}
AttachDiskRequest::~AttachDiskRequest()
{}
long AttachDiskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/AttachDiskRequest.h>
using AlibabaCloud::Ecs::Model::AttachDiskRequest;
AttachDiskRequest::AttachDiskRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AttachDisk") {
setMethod(HttpRequest::Method::Post);
}
void AttachDiskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
AttachDiskRequest::~AttachDiskRequest() {}
long AttachDiskRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AttachDiskRequest::getKeyPairName()const
{
return keyPairName_;
void AttachDiskRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AttachDiskRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
std::string AttachDiskRequest::getKeyPairName() const {
return keyPairName_;
}
bool AttachDiskRequest::getBootable()const
{
return bootable_;
void AttachDiskRequest::setKeyPairName(const std::string &keyPairName) {
keyPairName_ = keyPairName;
setParameter(std::string("KeyPairName"), keyPairName);
}
void AttachDiskRequest::setBootable(bool bootable)
{
bootable_ = bootable;
setParameter("Bootable", bootable ? "true" : "false");
bool AttachDiskRequest::getBootable() const {
return bootable_;
}
std::string AttachDiskRequest::getPassword()const
{
return password_;
void AttachDiskRequest::setBootable(bool bootable) {
bootable_ = bootable;
setParameter(std::string("Bootable"), bootable ? "true" : "false");
}
void AttachDiskRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
std::string AttachDiskRequest::getPassword() const {
return password_;
}
std::string AttachDiskRequest::getDiskId()const
{
return diskId_;
void AttachDiskRequest::setPassword(const std::string &password) {
password_ = password;
setParameter(std::string("Password"), password);
}
void AttachDiskRequest::setDiskId(const std::string& diskId)
{
diskId_ = diskId;
setParameter("DiskId", diskId);
std::string AttachDiskRequest::getDiskId() const {
return diskId_;
}
bool AttachDiskRequest::getDeleteWithInstance()const
{
return deleteWithInstance_;
void AttachDiskRequest::setDiskId(const std::string &diskId) {
diskId_ = diskId;
setParameter(std::string("DiskId"), diskId);
}
void AttachDiskRequest::setDeleteWithInstance(bool deleteWithInstance)
{
deleteWithInstance_ = deleteWithInstance;
setParameter("DeleteWithInstance", deleteWithInstance ? "true" : "false");
bool AttachDiskRequest::getDeleteWithInstance() const {
return deleteWithInstance_;
}
std::string AttachDiskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AttachDiskRequest::setDeleteWithInstance(bool deleteWithInstance) {
deleteWithInstance_ = deleteWithInstance;
setParameter(std::string("DeleteWithInstance"), deleteWithInstance ? "true" : "false");
}
void AttachDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AttachDiskRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string AttachDiskRequest::getOwnerAccount()const
{
return ownerAccount_;
void AttachDiskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AttachDiskRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string AttachDiskRequest::getOwnerAccount() const {
return ownerAccount_;
}
long AttachDiskRequest::getOwnerId()const
{
return ownerId_;
void AttachDiskRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void AttachDiskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AttachDiskRequest::getOwnerId() const {
return ownerId_;
}
std::string AttachDiskRequest::getInstanceId()const
{
return instanceId_;
void AttachDiskRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AttachDiskRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
std::string AttachDiskRequest::getInstanceId() const {
return instanceId_;
}
std::string AttachDiskRequest::getDevice()const
{
return device_;
void AttachDiskRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
void AttachDiskRequest::setDevice(const std::string& device)
{
device_ = device;
setParameter("Device", device);
std::string AttachDiskRequest::getDevice() const {
return device_;
}
void AttachDiskRequest::setDevice(const std::string &device) {
device_ = device;
setParameter(std::string("Device"), device);
}

View File

@@ -1,106 +1,90 @@
/*
* 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/AttachInstanceRamRoleRequest.h>
using AlibabaCloud::Ecs::Model::AttachInstanceRamRoleRequest;
AttachInstanceRamRoleRequest::AttachInstanceRamRoleRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachInstanceRamRole")
{
setMethod(HttpRequest::Method::Post);
}
AttachInstanceRamRoleRequest::~AttachInstanceRamRoleRequest()
{}
long AttachInstanceRamRoleRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h>
using AlibabaCloud::Ecs::Model::AttachInstanceRamRoleRequest;
AttachInstanceRamRoleRequest::AttachInstanceRamRoleRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AttachInstanceRamRole") {
setMethod(HttpRequest::Method::Post);
}
void AttachInstanceRamRoleRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
AttachInstanceRamRoleRequest::~AttachInstanceRamRoleRequest() {}
long AttachInstanceRamRoleRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AttachInstanceRamRoleRequest::getRegionId()const
{
return regionId_;
void AttachInstanceRamRoleRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AttachInstanceRamRoleRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AttachInstanceRamRoleRequest::getRegionId() const {
return regionId_;
}
std::string AttachInstanceRamRoleRequest::getPolicy()const
{
return policy_;
void AttachInstanceRamRoleRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AttachInstanceRamRoleRequest::setPolicy(const std::string& policy)
{
policy_ = policy;
setParameter("Policy", policy);
std::string AttachInstanceRamRoleRequest::getPolicy() const {
return policy_;
}
std::string AttachInstanceRamRoleRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AttachInstanceRamRoleRequest::setPolicy(const std::string &policy) {
policy_ = policy;
setParameter(std::string("Policy"), policy);
}
void AttachInstanceRamRoleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AttachInstanceRamRoleRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string AttachInstanceRamRoleRequest::getRamRoleName()const
{
return ramRoleName_;
void AttachInstanceRamRoleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AttachInstanceRamRoleRequest::setRamRoleName(const std::string& ramRoleName)
{
ramRoleName_ = ramRoleName;
setParameter("RamRoleName", ramRoleName);
std::string AttachInstanceRamRoleRequest::getRamRoleName() const {
return ramRoleName_;
}
long AttachInstanceRamRoleRequest::getOwnerId()const
{
return ownerId_;
void AttachInstanceRamRoleRequest::setRamRoleName(const std::string &ramRoleName) {
ramRoleName_ = ramRoleName;
setParameter(std::string("RamRoleName"), ramRoleName);
}
void AttachInstanceRamRoleRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AttachInstanceRamRoleRequest::getOwnerId() const {
return ownerId_;
}
std::string AttachInstanceRamRoleRequest::getInstanceIds()const
{
return instanceIds_;
void AttachInstanceRamRoleRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AttachInstanceRamRoleRequest::setInstanceIds(const std::string& instanceIds)
{
instanceIds_ = instanceIds;
setParameter("InstanceIds", instanceIds);
std::string AttachInstanceRamRoleRequest::getInstanceIds() const {
return instanceIds_;
}
void AttachInstanceRamRoleRequest::setInstanceIds(const std::string &instanceIds) {
instanceIds_ = instanceIds;
setParameter(std::string("InstanceIds"), instanceIds);
}

View File

@@ -43,22 +43,22 @@ void AttachInstanceRamRoleResult::parse(const std::string &payload)
for (auto valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult : allAttachInstanceRamRoleResultsNode)
{
Result attachInstanceRamRoleResultsObject;
if(!valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["InstanceId"].isNull())
attachInstanceRamRoleResultsObject.instanceId = valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["InstanceId"].asString();
if(!valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Success"].isNull())
attachInstanceRamRoleResultsObject.success = valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Success"].asString() == "true";
if(!valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Code"].isNull())
attachInstanceRamRoleResultsObject.code = valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Code"].asString();
if(!valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Message"].isNull())
attachInstanceRamRoleResultsObject.message = valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Message"].asString();
if(!valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["InstanceId"].isNull())
attachInstanceRamRoleResultsObject.instanceId = valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["InstanceId"].asString();
if(!valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Success"].isNull())
attachInstanceRamRoleResultsObject.success = valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Success"].asString() == "true";
attachInstanceRamRoleResults_.push_back(attachInstanceRamRoleResultsObject);
}
if(!value["RamRoleName"].isNull())
ramRoleName_ = value["RamRoleName"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["FailCount"].isNull())
failCount_ = std::stoi(value["FailCount"].asString());
if(!value["RamRoleName"].isNull())
ramRoleName_ = value["RamRoleName"].asString();
}

View File

@@ -1,95 +1,81 @@
/*
* 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/AttachKeyPairRequest.h>
using AlibabaCloud::Ecs::Model::AttachKeyPairRequest;
AttachKeyPairRequest::AttachKeyPairRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachKeyPair")
{
setMethod(HttpRequest::Method::Post);
}
AttachKeyPairRequest::~AttachKeyPairRequest()
{}
long AttachKeyPairRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/AttachKeyPairRequest.h>
using AlibabaCloud::Ecs::Model::AttachKeyPairRequest;
AttachKeyPairRequest::AttachKeyPairRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AttachKeyPair") {
setMethod(HttpRequest::Method::Post);
}
void AttachKeyPairRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
AttachKeyPairRequest::~AttachKeyPairRequest() {}
long AttachKeyPairRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AttachKeyPairRequest::getKeyPairName()const
{
return keyPairName_;
void AttachKeyPairRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AttachKeyPairRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
std::string AttachKeyPairRequest::getKeyPairName() const {
return keyPairName_;
}
std::string AttachKeyPairRequest::getRegionId()const
{
return regionId_;
void AttachKeyPairRequest::setKeyPairName(const std::string &keyPairName) {
keyPairName_ = keyPairName;
setParameter(std::string("KeyPairName"), keyPairName);
}
void AttachKeyPairRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AttachKeyPairRequest::getRegionId() const {
return regionId_;
}
std::string AttachKeyPairRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AttachKeyPairRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AttachKeyPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AttachKeyPairRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long AttachKeyPairRequest::getOwnerId()const
{
return ownerId_;
void AttachKeyPairRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AttachKeyPairRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AttachKeyPairRequest::getOwnerId() const {
return ownerId_;
}
std::string AttachKeyPairRequest::getInstanceIds()const
{
return instanceIds_;
void AttachKeyPairRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AttachKeyPairRequest::setInstanceIds(const std::string& instanceIds)
{
instanceIds_ = instanceIds;
setParameter("InstanceIds", instanceIds);
std::string AttachKeyPairRequest::getInstanceIds() const {
return instanceIds_;
}
void AttachKeyPairRequest::setInstanceIds(const std::string &instanceIds) {
instanceIds_ = instanceIds;
setParameter(std::string("InstanceIds"), instanceIds);
}

View File

@@ -43,22 +43,22 @@ void AttachKeyPairResult::parse(const std::string &payload)
for (auto valueResultsResult : allResultsNode)
{
Result resultsObject;
if(!valueResultsResult["InstanceId"].isNull())
resultsObject.instanceId = valueResultsResult["InstanceId"].asString();
if(!valueResultsResult["Success"].isNull())
resultsObject.success = valueResultsResult["Success"].asString();
if(!valueResultsResult["Code"].isNull())
resultsObject.code = valueResultsResult["Code"].asString();
if(!valueResultsResult["Message"].isNull())
resultsObject.message = valueResultsResult["Message"].asString();
if(!valueResultsResult["InstanceId"].isNull())
resultsObject.instanceId = valueResultsResult["InstanceId"].asString();
if(!valueResultsResult["Success"].isNull())
resultsObject.success = valueResultsResult["Success"].asString();
results_.push_back(resultsObject);
}
if(!value["KeyPairName"].isNull())
keyPairName_ = value["KeyPairName"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = value["TotalCount"].asString();
if(!value["FailCount"].isNull())
failCount_ = value["FailCount"].asString();
if(!value["KeyPairName"].isNull())
keyPairName_ = value["KeyPairName"].asString();
}

View File

@@ -1,128 +1,108 @@
/*
* 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/AttachNetworkInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::AttachNetworkInterfaceRequest;
AttachNetworkInterfaceRequest::AttachNetworkInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachNetworkInterface")
{
setMethod(HttpRequest::Method::Post);
}
AttachNetworkInterfaceRequest::~AttachNetworkInterfaceRequest()
{}
long AttachNetworkInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::AttachNetworkInterfaceRequest;
AttachNetworkInterfaceRequest::AttachNetworkInterfaceRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AttachNetworkInterface") {
setMethod(HttpRequest::Method::Post);
}
void AttachNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
AttachNetworkInterfaceRequest::~AttachNetworkInterfaceRequest() {}
long AttachNetworkInterfaceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AttachNetworkInterfaceRequest::getRegionId()const
{
return regionId_;
void AttachNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AttachNetworkInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AttachNetworkInterfaceRequest::getRegionId() const {
return regionId_;
}
std::string AttachNetworkInterfaceRequest::getTrunkNetworkInstanceId()const
{
return trunkNetworkInstanceId_;
void AttachNetworkInterfaceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AttachNetworkInterfaceRequest::setTrunkNetworkInstanceId(const std::string& trunkNetworkInstanceId)
{
trunkNetworkInstanceId_ = trunkNetworkInstanceId;
setParameter("TrunkNetworkInstanceId", trunkNetworkInstanceId);
std::string AttachNetworkInterfaceRequest::getTrunkNetworkInstanceId() const {
return trunkNetworkInstanceId_;
}
std::string AttachNetworkInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AttachNetworkInterfaceRequest::setTrunkNetworkInstanceId(const std::string &trunkNetworkInstanceId) {
trunkNetworkInstanceId_ = trunkNetworkInstanceId;
setParameter(std::string("TrunkNetworkInstanceId"), trunkNetworkInstanceId);
}
void AttachNetworkInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AttachNetworkInterfaceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string AttachNetworkInterfaceRequest::getOwnerAccount()const
{
return ownerAccount_;
void AttachNetworkInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AttachNetworkInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string AttachNetworkInterfaceRequest::getOwnerAccount() const {
return ownerAccount_;
}
bool AttachNetworkInterfaceRequest::getWaitForNetworkConfigurationReady()const
{
return waitForNetworkConfigurationReady_;
void AttachNetworkInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void AttachNetworkInterfaceRequest::setWaitForNetworkConfigurationReady(bool waitForNetworkConfigurationReady)
{
waitForNetworkConfigurationReady_ = waitForNetworkConfigurationReady;
setParameter("WaitForNetworkConfigurationReady", waitForNetworkConfigurationReady ? "true" : "false");
bool AttachNetworkInterfaceRequest::getWaitForNetworkConfigurationReady() const {
return waitForNetworkConfigurationReady_;
}
long AttachNetworkInterfaceRequest::getOwnerId()const
{
return ownerId_;
void AttachNetworkInterfaceRequest::setWaitForNetworkConfigurationReady(bool waitForNetworkConfigurationReady) {
waitForNetworkConfigurationReady_ = waitForNetworkConfigurationReady;
setParameter(std::string("WaitForNetworkConfigurationReady"), waitForNetworkConfigurationReady ? "true" : "false");
}
void AttachNetworkInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AttachNetworkInterfaceRequest::getOwnerId() const {
return ownerId_;
}
std::string AttachNetworkInterfaceRequest::getInstanceId()const
{
return instanceId_;
void AttachNetworkInterfaceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AttachNetworkInterfaceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
std::string AttachNetworkInterfaceRequest::getInstanceId() const {
return instanceId_;
}
std::string AttachNetworkInterfaceRequest::getNetworkInterfaceId()const
{
return networkInterfaceId_;
void AttachNetworkInterfaceRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
void AttachNetworkInterfaceRequest::setNetworkInterfaceId(const std::string& networkInterfaceId)
{
networkInterfaceId_ = networkInterfaceId;
setParameter("NetworkInterfaceId", networkInterfaceId);
std::string AttachNetworkInterfaceRequest::getNetworkInterfaceId() const {
return networkInterfaceId_;
}
void AttachNetworkInterfaceRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
networkInterfaceId_ = networkInterfaceId;
setParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
}

View File

@@ -1,271 +1,225 @@
/*
* 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/AuthorizeSecurityGroupEgressRequest.h>
using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupEgressRequest;
AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroupEgress")
{
setMethod(HttpRequest::Method::Post);
}
AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest()
{}
std::string AuthorizeSecurityGroupEgressRequest::getNicType()const
{
return nicType_;
*/
#include <alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h>
using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupEgressRequest;
AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroupEgress") {
setMethod(HttpRequest::Method::Post);
}
void AuthorizeSecurityGroupEgressRequest::setNicType(const std::string& nicType)
{
nicType_ = nicType;
setParameter("NicType", nicType);
AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest() {}
std::string AuthorizeSecurityGroupEgressRequest::getNicType() const {
return nicType_;
}
long AuthorizeSecurityGroupEgressRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void AuthorizeSecurityGroupEgressRequest::setNicType(const std::string &nicType) {
nicType_ = nicType;
setParameter(std::string("NicType"), nicType);
}
void AuthorizeSecurityGroupEgressRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long AuthorizeSecurityGroupEgressRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AuthorizeSecurityGroupEgressRequest::getSourcePortRange()const
{
return sourcePortRange_;
void AuthorizeSecurityGroupEgressRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AuthorizeSecurityGroupEgressRequest::setSourcePortRange(const std::string& sourcePortRange)
{
sourcePortRange_ = sourcePortRange;
setParameter("SourcePortRange", sourcePortRange);
std::string AuthorizeSecurityGroupEgressRequest::getSourcePortRange() const {
return sourcePortRange_;
}
std::string AuthorizeSecurityGroupEgressRequest::getClientToken()const
{
return clientToken_;
void AuthorizeSecurityGroupEgressRequest::setSourcePortRange(const std::string &sourcePortRange) {
sourcePortRange_ = sourcePortRange;
setParameter(std::string("SourcePortRange"), sourcePortRange);
}
void AuthorizeSecurityGroupEgressRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string AuthorizeSecurityGroupEgressRequest::getClientToken() const {
return clientToken_;
}
std::string AuthorizeSecurityGroupEgressRequest::getDestPrefixListId()const
{
return destPrefixListId_;
void AuthorizeSecurityGroupEgressRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void AuthorizeSecurityGroupEgressRequest::setDestPrefixListId(const std::string& destPrefixListId)
{
destPrefixListId_ = destPrefixListId;
setParameter("DestPrefixListId", destPrefixListId);
std::string AuthorizeSecurityGroupEgressRequest::getDestPrefixListId() const {
return destPrefixListId_;
}
std::string AuthorizeSecurityGroupEgressRequest::getSecurityGroupId()const
{
return securityGroupId_;
void AuthorizeSecurityGroupEgressRequest::setDestPrefixListId(const std::string &destPrefixListId) {
destPrefixListId_ = destPrefixListId;
setParameter(std::string("DestPrefixListId"), destPrefixListId);
}
void AuthorizeSecurityGroupEgressRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
std::string AuthorizeSecurityGroupEgressRequest::getSecurityGroupId() const {
return securityGroupId_;
}
std::string AuthorizeSecurityGroupEgressRequest::getDescription()const
{
return description_;
void AuthorizeSecurityGroupEgressRequest::setSecurityGroupId(const std::string &securityGroupId) {
securityGroupId_ = securityGroupId;
setParameter(std::string("SecurityGroupId"), securityGroupId);
}
void AuthorizeSecurityGroupEgressRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string AuthorizeSecurityGroupEgressRequest::getDescription() const {
return description_;
}
std::string AuthorizeSecurityGroupEgressRequest::getRegionId()const
{
return regionId_;
void AuthorizeSecurityGroupEgressRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void AuthorizeSecurityGroupEgressRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AuthorizeSecurityGroupEgressRequest::getRegionId() const {
return regionId_;
}
std::string AuthorizeSecurityGroupEgressRequest::getIpv6DestCidrIp()const
{
return ipv6DestCidrIp_;
void AuthorizeSecurityGroupEgressRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AuthorizeSecurityGroupEgressRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp)
{
ipv6DestCidrIp_ = ipv6DestCidrIp;
setParameter("Ipv6DestCidrIp", ipv6DestCidrIp);
std::string AuthorizeSecurityGroupEgressRequest::getIpv6DestCidrIp() const {
return ipv6DestCidrIp_;
}
std::string AuthorizeSecurityGroupEgressRequest::getIpv6SourceCidrIp()const
{
return ipv6SourceCidrIp_;
void AuthorizeSecurityGroupEgressRequest::setIpv6DestCidrIp(const std::string &ipv6DestCidrIp) {
ipv6DestCidrIp_ = ipv6DestCidrIp;
setParameter(std::string("Ipv6DestCidrIp"), ipv6DestCidrIp);
}
void AuthorizeSecurityGroupEgressRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp)
{
ipv6SourceCidrIp_ = ipv6SourceCidrIp;
setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp);
std::string AuthorizeSecurityGroupEgressRequest::getIpv6SourceCidrIp() const {
return ipv6SourceCidrIp_;
}
std::string AuthorizeSecurityGroupEgressRequest::getPolicy()const
{
return policy_;
void AuthorizeSecurityGroupEgressRequest::setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp) {
ipv6SourceCidrIp_ = ipv6SourceCidrIp;
setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp);
}
void AuthorizeSecurityGroupEgressRequest::setPolicy(const std::string& policy)
{
policy_ = policy;
setParameter("Policy", policy);
std::string AuthorizeSecurityGroupEgressRequest::getPolicy() const {
return policy_;
}
std::string AuthorizeSecurityGroupEgressRequest::getPortRange()const
{
return portRange_;
void AuthorizeSecurityGroupEgressRequest::setPolicy(const std::string &policy) {
policy_ = policy;
setParameter(std::string("Policy"), policy);
}
void AuthorizeSecurityGroupEgressRequest::setPortRange(const std::string& portRange)
{
portRange_ = portRange;
setParameter("PortRange", portRange);
std::string AuthorizeSecurityGroupEgressRequest::getPortRange() const {
return portRange_;
}
std::string AuthorizeSecurityGroupEgressRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AuthorizeSecurityGroupEgressRequest::setPortRange(const std::string &portRange) {
portRange_ = portRange;
setParameter(std::string("PortRange"), portRange);
}
void AuthorizeSecurityGroupEgressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AuthorizeSecurityGroupEgressRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string AuthorizeSecurityGroupEgressRequest::getIpProtocol()const
{
return ipProtocol_;
void AuthorizeSecurityGroupEgressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AuthorizeSecurityGroupEgressRequest::setIpProtocol(const std::string& ipProtocol)
{
ipProtocol_ = ipProtocol;
setParameter("IpProtocol", ipProtocol);
std::string AuthorizeSecurityGroupEgressRequest::getIpProtocol() const {
return ipProtocol_;
}
std::string AuthorizeSecurityGroupEgressRequest::getOwnerAccount()const
{
return ownerAccount_;
void AuthorizeSecurityGroupEgressRequest::setIpProtocol(const std::string &ipProtocol) {
ipProtocol_ = ipProtocol;
setParameter(std::string("IpProtocol"), ipProtocol);
}
void AuthorizeSecurityGroupEgressRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string AuthorizeSecurityGroupEgressRequest::getOwnerAccount() const {
return ownerAccount_;
}
std::string AuthorizeSecurityGroupEgressRequest::getSourceCidrIp()const
{
return sourceCidrIp_;
void AuthorizeSecurityGroupEgressRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void AuthorizeSecurityGroupEgressRequest::setSourceCidrIp(const std::string& sourceCidrIp)
{
sourceCidrIp_ = sourceCidrIp;
setParameter("SourceCidrIp", sourceCidrIp);
std::string AuthorizeSecurityGroupEgressRequest::getSourceCidrIp() const {
return sourceCidrIp_;
}
std::string AuthorizeSecurityGroupEgressRequest::getDestGroupId()const
{
return destGroupId_;
void AuthorizeSecurityGroupEgressRequest::setSourceCidrIp(const std::string &sourceCidrIp) {
sourceCidrIp_ = sourceCidrIp;
setParameter(std::string("SourceCidrIp"), sourceCidrIp);
}
void AuthorizeSecurityGroupEgressRequest::setDestGroupId(const std::string& destGroupId)
{
destGroupId_ = destGroupId;
setParameter("DestGroupId", destGroupId);
std::string AuthorizeSecurityGroupEgressRequest::getDestGroupId() const {
return destGroupId_;
}
long AuthorizeSecurityGroupEgressRequest::getOwnerId()const
{
return ownerId_;
void AuthorizeSecurityGroupEgressRequest::setDestGroupId(const std::string &destGroupId) {
destGroupId_ = destGroupId;
setParameter(std::string("DestGroupId"), destGroupId);
}
void AuthorizeSecurityGroupEgressRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AuthorizeSecurityGroupEgressRequest::getOwnerId() const {
return ownerId_;
}
std::string AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerAccount()const
{
return destGroupOwnerAccount_;
void AuthorizeSecurityGroupEgressRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount)
{
destGroupOwnerAccount_ = destGroupOwnerAccount;
setParameter("DestGroupOwnerAccount", destGroupOwnerAccount);
std::string AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerAccount() const {
return destGroupOwnerAccount_;
}
std::string AuthorizeSecurityGroupEgressRequest::getPriority()const
{
return priority_;
void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount) {
destGroupOwnerAccount_ = destGroupOwnerAccount;
setParameter(std::string("DestGroupOwnerAccount"), destGroupOwnerAccount);
}
void AuthorizeSecurityGroupEgressRequest::setPriority(const std::string& priority)
{
priority_ = priority;
setParameter("Priority", priority);
std::string AuthorizeSecurityGroupEgressRequest::getPriority() const {
return priority_;
}
std::string AuthorizeSecurityGroupEgressRequest::getDestCidrIp()const
{
return destCidrIp_;
void AuthorizeSecurityGroupEgressRequest::setPriority(const std::string &priority) {
priority_ = priority;
setParameter(std::string("Priority"), priority);
}
void AuthorizeSecurityGroupEgressRequest::setDestCidrIp(const std::string& destCidrIp)
{
destCidrIp_ = destCidrIp;
setParameter("DestCidrIp", destCidrIp);
std::string AuthorizeSecurityGroupEgressRequest::getDestCidrIp() const {
return destCidrIp_;
}
long AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerId()const
{
return destGroupOwnerId_;
void AuthorizeSecurityGroupEgressRequest::setDestCidrIp(const std::string &destCidrIp) {
destCidrIp_ = destCidrIp;
setParameter(std::string("DestCidrIp"), destCidrIp);
}
void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerId(long destGroupOwnerId)
{
destGroupOwnerId_ = destGroupOwnerId;
setParameter("DestGroupOwnerId", std::to_string(destGroupOwnerId));
long AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerId() const {
return destGroupOwnerId_;
}
void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerId(long destGroupOwnerId) {
destGroupOwnerId_ = destGroupOwnerId;
setParameter(std::string("DestGroupOwnerId"), std::to_string(destGroupOwnerId));
}

View File

@@ -1,271 +1,225 @@
/*
* 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/AuthorizeSecurityGroupRequest.h>
using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupRequest;
AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroup")
{
setMethod(HttpRequest::Method::Post);
}
AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest()
{}
std::string AuthorizeSecurityGroupRequest::getNicType()const
{
return nicType_;
*/
#include <alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h>
using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupRequest;
AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest()
: RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroup") {
setMethod(HttpRequest::Method::Post);
}
void AuthorizeSecurityGroupRequest::setNicType(const std::string& nicType)
{
nicType_ = nicType;
setParameter("NicType", nicType);
AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest() {}
std::string AuthorizeSecurityGroupRequest::getNicType() const {
return nicType_;
}
long AuthorizeSecurityGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void AuthorizeSecurityGroupRequest::setNicType(const std::string &nicType) {
nicType_ = nicType;
setParameter(std::string("NicType"), nicType);
}
void AuthorizeSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long AuthorizeSecurityGroupRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string AuthorizeSecurityGroupRequest::getSourcePrefixListId()const
{
return sourcePrefixListId_;
void AuthorizeSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void AuthorizeSecurityGroupRequest::setSourcePrefixListId(const std::string& sourcePrefixListId)
{
sourcePrefixListId_ = sourcePrefixListId;
setParameter("SourcePrefixListId", sourcePrefixListId);
std::string AuthorizeSecurityGroupRequest::getSourcePrefixListId() const {
return sourcePrefixListId_;
}
std::string AuthorizeSecurityGroupRequest::getSourcePortRange()const
{
return sourcePortRange_;
void AuthorizeSecurityGroupRequest::setSourcePrefixListId(const std::string &sourcePrefixListId) {
sourcePrefixListId_ = sourcePrefixListId;
setParameter(std::string("SourcePrefixListId"), sourcePrefixListId);
}
void AuthorizeSecurityGroupRequest::setSourcePortRange(const std::string& sourcePortRange)
{
sourcePortRange_ = sourcePortRange;
setParameter("SourcePortRange", sourcePortRange);
std::string AuthorizeSecurityGroupRequest::getSourcePortRange() const {
return sourcePortRange_;
}
std::string AuthorizeSecurityGroupRequest::getClientToken()const
{
return clientToken_;
void AuthorizeSecurityGroupRequest::setSourcePortRange(const std::string &sourcePortRange) {
sourcePortRange_ = sourcePortRange;
setParameter(std::string("SourcePortRange"), sourcePortRange);
}
void AuthorizeSecurityGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string AuthorizeSecurityGroupRequest::getClientToken() const {
return clientToken_;
}
std::string AuthorizeSecurityGroupRequest::getSecurityGroupId()const
{
return securityGroupId_;
void AuthorizeSecurityGroupRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void AuthorizeSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
std::string AuthorizeSecurityGroupRequest::getSecurityGroupId() const {
return securityGroupId_;
}
std::string AuthorizeSecurityGroupRequest::getDescription()const
{
return description_;
void AuthorizeSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) {
securityGroupId_ = securityGroupId;
setParameter(std::string("SecurityGroupId"), securityGroupId);
}
void AuthorizeSecurityGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string AuthorizeSecurityGroupRequest::getDescription() const {
return description_;
}
long AuthorizeSecurityGroupRequest::getSourceGroupOwnerId()const
{
return sourceGroupOwnerId_;
void AuthorizeSecurityGroupRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void AuthorizeSecurityGroupRequest::setSourceGroupOwnerId(long sourceGroupOwnerId)
{
sourceGroupOwnerId_ = sourceGroupOwnerId;
setParameter("SourceGroupOwnerId", std::to_string(sourceGroupOwnerId));
long AuthorizeSecurityGroupRequest::getSourceGroupOwnerId() const {
return sourceGroupOwnerId_;
}
std::string AuthorizeSecurityGroupRequest::getSourceGroupOwnerAccount()const
{
return sourceGroupOwnerAccount_;
void AuthorizeSecurityGroupRequest::setSourceGroupOwnerId(long sourceGroupOwnerId) {
sourceGroupOwnerId_ = sourceGroupOwnerId;
setParameter(std::string("SourceGroupOwnerId"), std::to_string(sourceGroupOwnerId));
}
void AuthorizeSecurityGroupRequest::setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount)
{
sourceGroupOwnerAccount_ = sourceGroupOwnerAccount;
setParameter("SourceGroupOwnerAccount", sourceGroupOwnerAccount);
std::string AuthorizeSecurityGroupRequest::getSourceGroupOwnerAccount() const {
return sourceGroupOwnerAccount_;
}
std::string AuthorizeSecurityGroupRequest::getRegionId()const
{
return regionId_;
void AuthorizeSecurityGroupRequest::setSourceGroupOwnerAccount(const std::string &sourceGroupOwnerAccount) {
sourceGroupOwnerAccount_ = sourceGroupOwnerAccount;
setParameter(std::string("SourceGroupOwnerAccount"), sourceGroupOwnerAccount);
}
void AuthorizeSecurityGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string AuthorizeSecurityGroupRequest::getRegionId() const {
return regionId_;
}
std::string AuthorizeSecurityGroupRequest::getIpv6SourceCidrIp()const
{
return ipv6SourceCidrIp_;
void AuthorizeSecurityGroupRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void AuthorizeSecurityGroupRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp)
{
ipv6SourceCidrIp_ = ipv6SourceCidrIp;
setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp);
std::string AuthorizeSecurityGroupRequest::getIpv6SourceCidrIp() const {
return ipv6SourceCidrIp_;
}
std::string AuthorizeSecurityGroupRequest::getIpv6DestCidrIp()const
{
return ipv6DestCidrIp_;
void AuthorizeSecurityGroupRequest::setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp) {
ipv6SourceCidrIp_ = ipv6SourceCidrIp;
setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp);
}
void AuthorizeSecurityGroupRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp)
{
ipv6DestCidrIp_ = ipv6DestCidrIp;
setParameter("Ipv6DestCidrIp", ipv6DestCidrIp);
std::string AuthorizeSecurityGroupRequest::getIpv6DestCidrIp() const {
return ipv6DestCidrIp_;
}
std::string AuthorizeSecurityGroupRequest::getPolicy()const
{
return policy_;
void AuthorizeSecurityGroupRequest::setIpv6DestCidrIp(const std::string &ipv6DestCidrIp) {
ipv6DestCidrIp_ = ipv6DestCidrIp;
setParameter(std::string("Ipv6DestCidrIp"), ipv6DestCidrIp);
}
void AuthorizeSecurityGroupRequest::setPolicy(const std::string& policy)
{
policy_ = policy;
setParameter("Policy", policy);
std::string AuthorizeSecurityGroupRequest::getPolicy() const {
return policy_;
}
std::string AuthorizeSecurityGroupRequest::getPortRange()const
{
return portRange_;
void AuthorizeSecurityGroupRequest::setPolicy(const std::string &policy) {
policy_ = policy;
setParameter(std::string("Policy"), policy);
}
void AuthorizeSecurityGroupRequest::setPortRange(const std::string& portRange)
{
portRange_ = portRange;
setParameter("PortRange", portRange);
std::string AuthorizeSecurityGroupRequest::getPortRange() const {
return portRange_;
}
std::string AuthorizeSecurityGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void AuthorizeSecurityGroupRequest::setPortRange(const std::string &portRange) {
portRange_ = portRange;
setParameter(std::string("PortRange"), portRange);
}
void AuthorizeSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string AuthorizeSecurityGroupRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string AuthorizeSecurityGroupRequest::getIpProtocol()const
{
return ipProtocol_;
void AuthorizeSecurityGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void AuthorizeSecurityGroupRequest::setIpProtocol(const std::string& ipProtocol)
{
ipProtocol_ = ipProtocol;
setParameter("IpProtocol", ipProtocol);
std::string AuthorizeSecurityGroupRequest::getIpProtocol() const {
return ipProtocol_;
}
std::string AuthorizeSecurityGroupRequest::getOwnerAccount()const
{
return ownerAccount_;
void AuthorizeSecurityGroupRequest::setIpProtocol(const std::string &ipProtocol) {
ipProtocol_ = ipProtocol;
setParameter(std::string("IpProtocol"), ipProtocol);
}
void AuthorizeSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string AuthorizeSecurityGroupRequest::getOwnerAccount() const {
return ownerAccount_;
}
std::string AuthorizeSecurityGroupRequest::getSourceCidrIp()const
{
return sourceCidrIp_;
void AuthorizeSecurityGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void AuthorizeSecurityGroupRequest::setSourceCidrIp(const std::string& sourceCidrIp)
{
sourceCidrIp_ = sourceCidrIp;
setParameter("SourceCidrIp", sourceCidrIp);
std::string AuthorizeSecurityGroupRequest::getSourceCidrIp() const {
return sourceCidrIp_;
}
long AuthorizeSecurityGroupRequest::getOwnerId()const
{
return ownerId_;
void AuthorizeSecurityGroupRequest::setSourceCidrIp(const std::string &sourceCidrIp) {
sourceCidrIp_ = sourceCidrIp;
setParameter(std::string("SourceCidrIp"), sourceCidrIp);
}
void AuthorizeSecurityGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long AuthorizeSecurityGroupRequest::getOwnerId() const {
return ownerId_;
}
std::string AuthorizeSecurityGroupRequest::getPriority()const
{
return priority_;
void AuthorizeSecurityGroupRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void AuthorizeSecurityGroupRequest::setPriority(const std::string& priority)
{
priority_ = priority;
setParameter("Priority", priority);
std::string AuthorizeSecurityGroupRequest::getPriority() const {
return priority_;
}
std::string AuthorizeSecurityGroupRequest::getDestCidrIp()const
{
return destCidrIp_;
void AuthorizeSecurityGroupRequest::setPriority(const std::string &priority) {
priority_ = priority;
setParameter(std::string("Priority"), priority);
}
void AuthorizeSecurityGroupRequest::setDestCidrIp(const std::string& destCidrIp)
{
destCidrIp_ = destCidrIp;
setParameter("DestCidrIp", destCidrIp);
std::string AuthorizeSecurityGroupRequest::getDestCidrIp() const {
return destCidrIp_;
}
std::string AuthorizeSecurityGroupRequest::getSourceGroupId()const
{
return sourceGroupId_;
void AuthorizeSecurityGroupRequest::setDestCidrIp(const std::string &destCidrIp) {
destCidrIp_ = destCidrIp;
setParameter(std::string("DestCidrIp"), destCidrIp);
}
void AuthorizeSecurityGroupRequest::setSourceGroupId(const std::string& sourceGroupId)
{
sourceGroupId_ = sourceGroupId;
setParameter("SourceGroupId", sourceGroupId);
std::string AuthorizeSecurityGroupRequest::getSourceGroupId() const {
return sourceGroupId_;
}
void AuthorizeSecurityGroupRequest::setSourceGroupId(const std::string &sourceGroupId) {
sourceGroupId_ = sourceGroupId;
setParameter(std::string("SourceGroupId"), sourceGroupId);
}

View File

@@ -1,84 +1,72 @@
/*
* 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/CancelAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::CancelAutoSnapshotPolicyRequest;
CancelAutoSnapshotPolicyRequest::CancelAutoSnapshotPolicyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelAutoSnapshotPolicy")
{
setMethod(HttpRequest::Method::Post);
}
CancelAutoSnapshotPolicyRequest::~CancelAutoSnapshotPolicyRequest()
{}
long CancelAutoSnapshotPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::CancelAutoSnapshotPolicyRequest;
CancelAutoSnapshotPolicyRequest::CancelAutoSnapshotPolicyRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CancelAutoSnapshotPolicy") {
setMethod(HttpRequest::Method::Post);
}
void CancelAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CancelAutoSnapshotPolicyRequest::~CancelAutoSnapshotPolicyRequest() {}
long CancelAutoSnapshotPolicyRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CancelAutoSnapshotPolicyRequest::getRegionId()const
{
return regionId_;
void CancelAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CancelAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CancelAutoSnapshotPolicyRequest::getRegionId() const {
return regionId_;
}
std::string CancelAutoSnapshotPolicyRequest::getDiskIds()const
{
return diskIds_;
void CancelAutoSnapshotPolicyRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("regionId"), regionId);
}
void CancelAutoSnapshotPolicyRequest::setDiskIds(const std::string& diskIds)
{
diskIds_ = diskIds;
setParameter("DiskIds", diskIds);
std::string CancelAutoSnapshotPolicyRequest::getDiskIds() const {
return diskIds_;
}
std::string CancelAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CancelAutoSnapshotPolicyRequest::setDiskIds(const std::string &diskIds) {
diskIds_ = diskIds;
setParameter(std::string("diskIds"), diskIds);
}
void CancelAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CancelAutoSnapshotPolicyRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long CancelAutoSnapshotPolicyRequest::getOwnerId()const
{
return ownerId_;
void CancelAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CancelAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CancelAutoSnapshotPolicyRequest::getOwnerId() const {
return ownerId_;
}
void CancelAutoSnapshotPolicyRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,95 +1,81 @@
/*
* 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/CancelCopyImageRequest.h>
using AlibabaCloud::Ecs::Model::CancelCopyImageRequest;
CancelCopyImageRequest::CancelCopyImageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelCopyImage")
{
setMethod(HttpRequest::Method::Post);
}
CancelCopyImageRequest::~CancelCopyImageRequest()
{}
long CancelCopyImageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CancelCopyImageRequest.h>
using AlibabaCloud::Ecs::Model::CancelCopyImageRequest;
CancelCopyImageRequest::CancelCopyImageRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CancelCopyImage") {
setMethod(HttpRequest::Method::Post);
}
void CancelCopyImageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CancelCopyImageRequest::~CancelCopyImageRequest() {}
long CancelCopyImageRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CancelCopyImageRequest::getImageId()const
{
return imageId_;
void CancelCopyImageRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CancelCopyImageRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
std::string CancelCopyImageRequest::getImageId() const {
return imageId_;
}
std::string CancelCopyImageRequest::getRegionId()const
{
return regionId_;
void CancelCopyImageRequest::setImageId(const std::string &imageId) {
imageId_ = imageId;
setParameter(std::string("ImageId"), imageId);
}
void CancelCopyImageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CancelCopyImageRequest::getRegionId() const {
return regionId_;
}
std::string CancelCopyImageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CancelCopyImageRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CancelCopyImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CancelCopyImageRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CancelCopyImageRequest::getOwnerAccount()const
{
return ownerAccount_;
void CancelCopyImageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CancelCopyImageRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CancelCopyImageRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CancelCopyImageRequest::getOwnerId()const
{
return ownerId_;
void CancelCopyImageRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CancelCopyImageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CancelCopyImageRequest::getOwnerId() const {
return ownerId_;
}
void CancelCopyImageRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,111 +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/CancelImagePipelineExecutionRequest.h>
using AlibabaCloud::Ecs::Model::CancelImagePipelineExecutionRequest;
CancelImagePipelineExecutionRequest::CancelImagePipelineExecutionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelImagePipelineExecution")
{
setMethod(HttpRequest::Method::Post);
}
CancelImagePipelineExecutionRequest::~CancelImagePipelineExecutionRequest()
{}
long CancelImagePipelineExecutionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CancelImagePipelineExecutionRequest.h>
using AlibabaCloud::Ecs::Model::CancelImagePipelineExecutionRequest;
CancelImagePipelineExecutionRequest::CancelImagePipelineExecutionRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CancelImagePipelineExecution") {
setMethod(HttpRequest::Method::Post);
}
void CancelImagePipelineExecutionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CancelImagePipelineExecutionRequest::~CancelImagePipelineExecutionRequest() {}
long CancelImagePipelineExecutionRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CancelImagePipelineExecutionRequest::getExecutionId()const
{
return executionId_;
void CancelImagePipelineExecutionRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CancelImagePipelineExecutionRequest::setExecutionId(const std::string& executionId)
{
executionId_ = executionId;
setParameter("ExecutionId", executionId);
std::string CancelImagePipelineExecutionRequest::getExecutionId() const {
return executionId_;
}
std::string CancelImagePipelineExecutionRequest::getRegionId()const
{
return regionId_;
void CancelImagePipelineExecutionRequest::setExecutionId(const std::string &executionId) {
executionId_ = executionId;
setParameter(std::string("ExecutionId"), executionId);
}
void CancelImagePipelineExecutionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CancelImagePipelineExecutionRequest::getRegionId() const {
return regionId_;
}
std::vector<CancelImagePipelineExecutionRequest::TemplateTag> CancelImagePipelineExecutionRequest::getTemplateTag()const
{
return templateTag_;
void CancelImagePipelineExecutionRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CancelImagePipelineExecutionRequest::setTemplateTag(const std::vector<TemplateTag>& templateTag)
{
templateTag_ = templateTag;
for(int dep1 = 0; dep1!= templateTag.size(); dep1++) {
auto templateTagObj = templateTag.at(dep1);
std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1);
setParameter(templateTagObjStr + ".Key", templateTagObj.key);
setParameter(templateTagObjStr + ".Value", templateTagObj.value);
}
std::vector<CancelImagePipelineExecutionRequest::TemplateTag> CancelImagePipelineExecutionRequest::getTemplateTag() const {
return templateTag_;
}
std::string CancelImagePipelineExecutionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CancelImagePipelineExecutionRequest::setTemplateTag(const std::vector<CancelImagePipelineExecutionRequest::TemplateTag> &templateTag) {
templateTag_ = templateTag;
for(int dep1 = 0; dep1 != templateTag.size(); dep1++) {
auto templateTagObj = templateTag.at(dep1);
std::string templateTagObjStr = std::string("TemplateTag") + "." + std::to_string(dep1 + 1);
setParameter(templateTagObjStr + ".Key", templateTagObj.key);
setParameter(templateTagObjStr + ".Value", templateTagObj.value);
}
}
void CancelImagePipelineExecutionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CancelImagePipelineExecutionRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CancelImagePipelineExecutionRequest::getOwnerAccount()const
{
return ownerAccount_;
void CancelImagePipelineExecutionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CancelImagePipelineExecutionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CancelImagePipelineExecutionRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CancelImagePipelineExecutionRequest::getOwnerId()const
{
return ownerId_;
void CancelImagePipelineExecutionRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CancelImagePipelineExecutionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CancelImagePipelineExecutionRequest::getOwnerId() const {
return ownerId_;
}
void CancelImagePipelineExecutionRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,117 +1,99 @@
/*
* 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/CancelPhysicalConnectionRequest.h>
using AlibabaCloud::Ecs::Model::CancelPhysicalConnectionRequest;
CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelPhysicalConnection")
{
setMethod(HttpRequest::Method::Post);
}
CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest()
{}
long CancelPhysicalConnectionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h>
using AlibabaCloud::Ecs::Model::CancelPhysicalConnectionRequest;
CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CancelPhysicalConnection") {
setMethod(HttpRequest::Method::Post);
}
void CancelPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest() {}
long CancelPhysicalConnectionRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CancelPhysicalConnectionRequest::getClientToken()const
{
return clientToken_;
void CancelPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CancelPhysicalConnectionRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CancelPhysicalConnectionRequest::getClientToken() const {
return clientToken_;
}
std::string CancelPhysicalConnectionRequest::getRegionId()const
{
return regionId_;
void CancelPhysicalConnectionRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CancelPhysicalConnectionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CancelPhysicalConnectionRequest::getRegionId() const {
return regionId_;
}
std::string CancelPhysicalConnectionRequest::getUserCidr()const
{
return userCidr_;
void CancelPhysicalConnectionRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CancelPhysicalConnectionRequest::setUserCidr(const std::string& userCidr)
{
userCidr_ = userCidr;
setParameter("UserCidr", userCidr);
std::string CancelPhysicalConnectionRequest::getUserCidr() const {
return userCidr_;
}
std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CancelPhysicalConnectionRequest::setUserCidr(const std::string &userCidr) {
userCidr_ = userCidr;
setParameter(std::string("UserCidr"), userCidr);
}
void CancelPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CancelPhysicalConnectionRequest::getOwnerAccount()const
{
return ownerAccount_;
void CancelPhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CancelPhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CancelPhysicalConnectionRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CancelPhysicalConnectionRequest::getOwnerId()const
{
return ownerId_;
void CancelPhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CancelPhysicalConnectionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CancelPhysicalConnectionRequest::getOwnerId() const {
return ownerId_;
}
std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId()const
{
return physicalConnectionId_;
void CancelPhysicalConnectionRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CancelPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId)
{
physicalConnectionId_ = physicalConnectionId;
setParameter("PhysicalConnectionId", physicalConnectionId);
std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId() const {
return physicalConnectionId_;
}
void CancelPhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) {
physicalConnectionId_ = physicalConnectionId;
setParameter(std::string("PhysicalConnectionId"), physicalConnectionId);
}

View File

@@ -1,97 +1,80 @@
/*
* 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/CancelSimulatedSystemEventsRequest.h>
using AlibabaCloud::Ecs::Model::CancelSimulatedSystemEventsRequest;
CancelSimulatedSystemEventsRequest::CancelSimulatedSystemEventsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelSimulatedSystemEvents")
{
setMethod(HttpRequest::Method::Post);
}
CancelSimulatedSystemEventsRequest::~CancelSimulatedSystemEventsRequest()
{}
std::vector<std::string> CancelSimulatedSystemEventsRequest::getEventId()const
{
return eventId_;
*/
#include <alibabacloud/ecs/model/CancelSimulatedSystemEventsRequest.h>
using AlibabaCloud::Ecs::Model::CancelSimulatedSystemEventsRequest;
CancelSimulatedSystemEventsRequest::CancelSimulatedSystemEventsRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CancelSimulatedSystemEvents") {
setMethod(HttpRequest::Method::Post);
}
void CancelSimulatedSystemEventsRequest::setEventId(const std::vector<std::string>& eventId)
{
eventId_ = eventId;
for(int dep1 = 0; dep1!= eventId.size(); dep1++) {
setParameter("EventId."+ std::to_string(dep1), eventId.at(dep1));
}
CancelSimulatedSystemEventsRequest::~CancelSimulatedSystemEventsRequest() {}
std::vector<std::string> CancelSimulatedSystemEventsRequest::getEventId() const {
return eventId_;
}
long CancelSimulatedSystemEventsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void CancelSimulatedSystemEventsRequest::setEventId(const std::vector<std::string> &eventId) {
eventId_ = eventId;
}
void CancelSimulatedSystemEventsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long CancelSimulatedSystemEventsRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CancelSimulatedSystemEventsRequest::getRegionId()const
{
return regionId_;
void CancelSimulatedSystemEventsRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CancelSimulatedSystemEventsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CancelSimulatedSystemEventsRequest::getRegionId() const {
return regionId_;
}
std::string CancelSimulatedSystemEventsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CancelSimulatedSystemEventsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CancelSimulatedSystemEventsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CancelSimulatedSystemEventsRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CancelSimulatedSystemEventsRequest::getOwnerAccount()const
{
return ownerAccount_;
void CancelSimulatedSystemEventsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CancelSimulatedSystemEventsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CancelSimulatedSystemEventsRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CancelSimulatedSystemEventsRequest::getOwnerId()const
{
return ownerId_;
void CancelSimulatedSystemEventsRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CancelSimulatedSystemEventsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CancelSimulatedSystemEventsRequest::getOwnerId() const {
return ownerId_;
}
void CancelSimulatedSystemEventsRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,84 +1,72 @@
/*
* 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/CancelTaskRequest.h>
using AlibabaCloud::Ecs::Model::CancelTaskRequest;
CancelTaskRequest::CancelTaskRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelTask")
{
setMethod(HttpRequest::Method::Post);
}
CancelTaskRequest::~CancelTaskRequest()
{}
long CancelTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CancelTaskRequest.h>
using AlibabaCloud::Ecs::Model::CancelTaskRequest;
CancelTaskRequest::CancelTaskRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CancelTask") {
setMethod(HttpRequest::Method::Post);
}
void CancelTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CancelTaskRequest::~CancelTaskRequest() {}
long CancelTaskRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CancelTaskRequest::getRegionId()const
{
return regionId_;
void CancelTaskRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CancelTaskRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CancelTaskRequest::getRegionId() const {
return regionId_;
}
std::string CancelTaskRequest::getTaskId()const
{
return taskId_;
void CancelTaskRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CancelTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
std::string CancelTaskRequest::getTaskId() const {
return taskId_;
}
std::string CancelTaskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CancelTaskRequest::setTaskId(const std::string &taskId) {
taskId_ = taskId;
setParameter(std::string("TaskId"), taskId);
}
void CancelTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CancelTaskRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long CancelTaskRequest::getOwnerId()const
{
return ownerId_;
void CancelTaskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CancelTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CancelTaskRequest::getOwnerId() const {
return ownerId_;
}
void CancelTaskRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,84 +1,72 @@
/*
* 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/ConnectRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::ConnectRouterInterfaceRequest;
ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ConnectRouterInterface")
{
setMethod(HttpRequest::Method::Post);
}
ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest()
{}
long ConnectRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::ConnectRouterInterfaceRequest;
ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest()
: RpcServiceRequest("ecs", "2014-05-26", "ConnectRouterInterface") {
setMethod(HttpRequest::Method::Post);
}
void ConnectRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest() {}
long ConnectRouterInterfaceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void ConnectRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void ConnectRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long ConnectRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
void ConnectRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void ConnectRouterInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long ConnectRouterInterfaceRequest::getOwnerId() const {
return ownerId_;
}
std::string ConnectRouterInterfaceRequest::getRouterInterfaceId()const
{
return routerInterfaceId_;
void ConnectRouterInterfaceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void ConnectRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId)
{
routerInterfaceId_ = routerInterfaceId;
setParameter("RouterInterfaceId", routerInterfaceId);
std::string ConnectRouterInterfaceRequest::getRouterInterfaceId() const {
return routerInterfaceId_;
}
std::string ConnectRouterInterfaceRequest::getRegionId()const
{
return regionId_;
void ConnectRouterInterfaceRequest::setRouterInterfaceId(const std::string &routerInterfaceId) {
routerInterfaceId_ = routerInterfaceId;
setParameter(std::string("RouterInterfaceId"), routerInterfaceId);
}
void ConnectRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string ConnectRouterInterfaceRequest::getRegionId() const {
return regionId_;
}
void ConnectRouterInterfaceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -1,84 +1,72 @@
/*
* 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/ConvertNatPublicIpToEipRequest.h>
using AlibabaCloud::Ecs::Model::ConvertNatPublicIpToEipRequest;
ConvertNatPublicIpToEipRequest::ConvertNatPublicIpToEipRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ConvertNatPublicIpToEip")
{
setMethod(HttpRequest::Method::Post);
}
ConvertNatPublicIpToEipRequest::~ConvertNatPublicIpToEipRequest()
{}
long ConvertNatPublicIpToEipRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h>
using AlibabaCloud::Ecs::Model::ConvertNatPublicIpToEipRequest;
ConvertNatPublicIpToEipRequest::ConvertNatPublicIpToEipRequest()
: RpcServiceRequest("ecs", "2014-05-26", "ConvertNatPublicIpToEip") {
setMethod(HttpRequest::Method::Post);
}
void ConvertNatPublicIpToEipRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
ConvertNatPublicIpToEipRequest::~ConvertNatPublicIpToEipRequest() {}
long ConvertNatPublicIpToEipRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string ConvertNatPublicIpToEipRequest::getRegionId()const
{
return regionId_;
void ConvertNatPublicIpToEipRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void ConvertNatPublicIpToEipRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string ConvertNatPublicIpToEipRequest::getRegionId() const {
return regionId_;
}
std::string ConvertNatPublicIpToEipRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void ConvertNatPublicIpToEipRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void ConvertNatPublicIpToEipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string ConvertNatPublicIpToEipRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long ConvertNatPublicIpToEipRequest::getOwnerId()const
{
return ownerId_;
void ConvertNatPublicIpToEipRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void ConvertNatPublicIpToEipRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long ConvertNatPublicIpToEipRequest::getOwnerId() const {
return ownerId_;
}
std::string ConvertNatPublicIpToEipRequest::getInstanceId()const
{
return instanceId_;
void ConvertNatPublicIpToEipRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void ConvertNatPublicIpToEipRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
std::string ConvertNatPublicIpToEipRequest::getInstanceId() const {
return instanceId_;
}
void ConvertNatPublicIpToEipRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -1,188 +1,158 @@
/*
* 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/CopyImageRequest.h>
using AlibabaCloud::Ecs::Model::CopyImageRequest;
CopyImageRequest::CopyImageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CopyImage")
{
setMethod(HttpRequest::Method::Post);
}
CopyImageRequest::~CopyImageRequest()
{}
long CopyImageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CopyImageRequest.h>
using AlibabaCloud::Ecs::Model::CopyImageRequest;
CopyImageRequest::CopyImageRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CopyImage") {
setMethod(HttpRequest::Method::Post);
}
void CopyImageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CopyImageRequest::~CopyImageRequest() {}
long CopyImageRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CopyImageRequest::getImageId()const
{
return imageId_;
void CopyImageRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CopyImageRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
std::string CopyImageRequest::getImageId() const {
return imageId_;
}
std::string CopyImageRequest::getEncryptAlgorithm()const
{
return encryptAlgorithm_;
void CopyImageRequest::setImageId(const std::string &imageId) {
imageId_ = imageId;
setParameter(std::string("ImageId"), imageId);
}
void CopyImageRequest::setEncryptAlgorithm(const std::string& encryptAlgorithm)
{
encryptAlgorithm_ = encryptAlgorithm;
setParameter("EncryptAlgorithm", encryptAlgorithm);
std::string CopyImageRequest::getEncryptAlgorithm() const {
return encryptAlgorithm_;
}
std::string CopyImageRequest::getDestinationRegionId()const
{
return destinationRegionId_;
void CopyImageRequest::setEncryptAlgorithm(const std::string &encryptAlgorithm) {
encryptAlgorithm_ = encryptAlgorithm;
setParameter(std::string("EncryptAlgorithm"), encryptAlgorithm);
}
void CopyImageRequest::setDestinationRegionId(const std::string& destinationRegionId)
{
destinationRegionId_ = destinationRegionId;
setParameter("DestinationRegionId", destinationRegionId);
std::string CopyImageRequest::getDestinationRegionId() const {
return destinationRegionId_;
}
std::string CopyImageRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CopyImageRequest::setDestinationRegionId(const std::string &destinationRegionId) {
destinationRegionId_ = destinationRegionId;
setParameter(std::string("DestinationRegionId"), destinationRegionId);
}
void CopyImageRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CopyImageRequest::getResourceGroupId() const {
return resourceGroupId_;
}
std::string CopyImageRequest::getRegionId()const
{
return regionId_;
void CopyImageRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CopyImageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CopyImageRequest::getRegionId() const {
return regionId_;
}
std::vector<CopyImageRequest::Tag> CopyImageRequest::getTag()const
{
return tag_;
void CopyImageRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CopyImageRequest::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 + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
std::vector<CopyImageRequest::Tag> CopyImageRequest::getTag() const {
return tag_;
}
std::string CopyImageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CopyImageRequest::setTag(const std::vector<CopyImageRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
void CopyImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CopyImageRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CopyImageRequest::getDestinationImageName()const
{
return destinationImageName_;
void CopyImageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CopyImageRequest::setDestinationImageName(const std::string& destinationImageName)
{
destinationImageName_ = destinationImageName;
setParameter("DestinationImageName", destinationImageName);
std::string CopyImageRequest::getDestinationImageName() const {
return destinationImageName_;
}
std::string CopyImageRequest::getOwnerAccount()const
{
return ownerAccount_;
void CopyImageRequest::setDestinationImageName(const std::string &destinationImageName) {
destinationImageName_ = destinationImageName;
setParameter(std::string("DestinationImageName"), destinationImageName);
}
void CopyImageRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CopyImageRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CopyImageRequest::getOwnerId()const
{
return ownerId_;
void CopyImageRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CopyImageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CopyImageRequest::getOwnerId() const {
return ownerId_;
}
bool CopyImageRequest::getEncrypted()const
{
return encrypted_;
void CopyImageRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CopyImageRequest::setEncrypted(bool encrypted)
{
encrypted_ = encrypted;
setParameter("Encrypted", encrypted ? "true" : "false");
bool CopyImageRequest::getEncrypted() const {
return encrypted_;
}
std::string CopyImageRequest::getKMSKeyId()const
{
return kMSKeyId_;
void CopyImageRequest::setEncrypted(bool encrypted) {
encrypted_ = encrypted;
setParameter(std::string("Encrypted"), encrypted ? "true" : "false");
}
void CopyImageRequest::setKMSKeyId(const std::string& kMSKeyId)
{
kMSKeyId_ = kMSKeyId;
setParameter("KMSKeyId", kMSKeyId);
std::string CopyImageRequest::getKMSKeyId() const {
return kMSKeyId_;
}
std::string CopyImageRequest::getDestinationDescription()const
{
return destinationDescription_;
void CopyImageRequest::setKMSKeyId(const std::string &kMSKeyId) {
kMSKeyId_ = kMSKeyId;
setParameter(std::string("KMSKeyId"), kMSKeyId);
}
void CopyImageRequest::setDestinationDescription(const std::string& destinationDescription)
{
destinationDescription_ = destinationDescription;
setParameter("DestinationDescription", destinationDescription);
std::string CopyImageRequest::getDestinationDescription() const {
return destinationDescription_;
}
void CopyImageRequest::setDestinationDescription(const std::string &destinationDescription) {
destinationDescription_ = destinationDescription;
setParameter(std::string("DestinationDescription"), destinationDescription);
}

View File

@@ -1,155 +1,131 @@
/*
* 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/CopySnapshotRequest.h>
using AlibabaCloud::Ecs::Model::CopySnapshotRequest;
CopySnapshotRequest::CopySnapshotRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CopySnapshot")
{
setMethod(HttpRequest::Method::Post);
}
CopySnapshotRequest::~CopySnapshotRequest()
{}
long CopySnapshotRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CopySnapshotRequest.h>
using AlibabaCloud::Ecs::Model::CopySnapshotRequest;
CopySnapshotRequest::CopySnapshotRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CopySnapshot") {
setMethod(HttpRequest::Method::Post);
}
void CopySnapshotRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CopySnapshotRequest::~CopySnapshotRequest() {}
long CopySnapshotRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CopySnapshotRequest::getSnapshotId()const
{
return snapshotId_;
void CopySnapshotRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CopySnapshotRequest::setSnapshotId(const std::string& snapshotId)
{
snapshotId_ = snapshotId;
setParameter("SnapshotId", snapshotId);
std::string CopySnapshotRequest::getSnapshotId() const {
return snapshotId_;
}
std::string CopySnapshotRequest::getDestinationRegionId()const
{
return destinationRegionId_;
void CopySnapshotRequest::setSnapshotId(const std::string &snapshotId) {
snapshotId_ = snapshotId;
setParameter(std::string("SnapshotId"), snapshotId);
}
void CopySnapshotRequest::setDestinationRegionId(const std::string& destinationRegionId)
{
destinationRegionId_ = destinationRegionId;
setParameter("DestinationRegionId", destinationRegionId);
std::string CopySnapshotRequest::getDestinationRegionId() const {
return destinationRegionId_;
}
std::string CopySnapshotRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CopySnapshotRequest::setDestinationRegionId(const std::string &destinationRegionId) {
destinationRegionId_ = destinationRegionId;
setParameter(std::string("DestinationRegionId"), destinationRegionId);
}
void CopySnapshotRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CopySnapshotRequest::getResourceGroupId() const {
return resourceGroupId_;
}
std::string CopySnapshotRequest::getRegionId()const
{
return regionId_;
void CopySnapshotRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CopySnapshotRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CopySnapshotRequest::getRegionId() const {
return regionId_;
}
std::vector<CopySnapshotRequest::Tag> CopySnapshotRequest::getTag()const
{
return tag_;
void CopySnapshotRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CopySnapshotRequest::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::vector<CopySnapshotRequest::Tag> CopySnapshotRequest::getTag() const {
return tag_;
}
std::string CopySnapshotRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CopySnapshotRequest::setTag(const std::vector<CopySnapshotRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
void CopySnapshotRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CopySnapshotRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long CopySnapshotRequest::getOwnerId()const
{
return ownerId_;
void CopySnapshotRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CopySnapshotRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CopySnapshotRequest::getOwnerId() const {
return ownerId_;
}
std::string CopySnapshotRequest::getDestinationSnapshotName()const
{
return destinationSnapshotName_;
void CopySnapshotRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CopySnapshotRequest::setDestinationSnapshotName(const std::string& destinationSnapshotName)
{
destinationSnapshotName_ = destinationSnapshotName;
setParameter("DestinationSnapshotName", destinationSnapshotName);
std::string CopySnapshotRequest::getDestinationSnapshotName() const {
return destinationSnapshotName_;
}
std::string CopySnapshotRequest::getDestinationSnapshotDescription()const
{
return destinationSnapshotDescription_;
void CopySnapshotRequest::setDestinationSnapshotName(const std::string &destinationSnapshotName) {
destinationSnapshotName_ = destinationSnapshotName;
setParameter(std::string("DestinationSnapshotName"), destinationSnapshotName);
}
void CopySnapshotRequest::setDestinationSnapshotDescription(const std::string& destinationSnapshotDescription)
{
destinationSnapshotDescription_ = destinationSnapshotDescription;
setParameter("DestinationSnapshotDescription", destinationSnapshotDescription);
std::string CopySnapshotRequest::getDestinationSnapshotDescription() const {
return destinationSnapshotDescription_;
}
int CopySnapshotRequest::getRetentionDays()const
{
return retentionDays_;
void CopySnapshotRequest::setDestinationSnapshotDescription(const std::string &destinationSnapshotDescription) {
destinationSnapshotDescription_ = destinationSnapshotDescription;
setParameter(std::string("DestinationSnapshotDescription"), destinationSnapshotDescription);
}
void CopySnapshotRequest::setRetentionDays(int retentionDays)
{
retentionDays_ = retentionDays;
setParameter("RetentionDays", std::to_string(retentionDays));
int CopySnapshotRequest::getRetentionDays() const {
return retentionDays_;
}
void CopySnapshotRequest::setRetentionDays(int retentionDays) {
retentionDays_ = retentionDays;
setParameter(std::string("RetentionDays"), std::to_string(retentionDays));
}

View File

@@ -1,139 +1,117 @@
/*
* 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/CreateActivationRequest.h>
using AlibabaCloud::Ecs::Model::CreateActivationRequest;
CreateActivationRequest::CreateActivationRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateActivation")
{
setMethod(HttpRequest::Method::Post);
}
CreateActivationRequest::~CreateActivationRequest()
{}
long CreateActivationRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateActivationRequest.h>
using AlibabaCloud::Ecs::Model::CreateActivationRequest;
CreateActivationRequest::CreateActivationRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateActivation") {
setMethod(HttpRequest::Method::Post);
}
void CreateActivationRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateActivationRequest::~CreateActivationRequest() {}
long CreateActivationRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateActivationRequest::getDescription()const
{
return description_;
void CreateActivationRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateActivationRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateActivationRequest::getDescription() const {
return description_;
}
std::string CreateActivationRequest::getRegionId()const
{
return regionId_;
void CreateActivationRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateActivationRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateActivationRequest::getRegionId() const {
return regionId_;
}
int CreateActivationRequest::getInstanceCount()const
{
return instanceCount_;
void CreateActivationRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateActivationRequest::setInstanceCount(int instanceCount)
{
instanceCount_ = instanceCount;
setParameter("InstanceCount", std::to_string(instanceCount));
int CreateActivationRequest::getInstanceCount() const {
return instanceCount_;
}
std::string CreateActivationRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateActivationRequest::setInstanceCount(int instanceCount) {
instanceCount_ = instanceCount;
setParameter(std::string("InstanceCount"), std::to_string(instanceCount));
}
void CreateActivationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateActivationRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateActivationRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateActivationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateActivationRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateActivationRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateActivationRequest::getOwnerId()const
{
return ownerId_;
void CreateActivationRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateActivationRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateActivationRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateActivationRequest::getInstanceName()const
{
return instanceName_;
void CreateActivationRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateActivationRequest::setInstanceName(const std::string& instanceName)
{
instanceName_ = instanceName;
setParameter("InstanceName", instanceName);
std::string CreateActivationRequest::getInstanceName() const {
return instanceName_;
}
long CreateActivationRequest::getTimeToLiveInHours()const
{
return timeToLiveInHours_;
void CreateActivationRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("InstanceName"), instanceName);
}
void CreateActivationRequest::setTimeToLiveInHours(long timeToLiveInHours)
{
timeToLiveInHours_ = timeToLiveInHours;
setParameter("TimeToLiveInHours", std::to_string(timeToLiveInHours));
long CreateActivationRequest::getTimeToLiveInHours() const {
return timeToLiveInHours_;
}
std::string CreateActivationRequest::getIpAddressRange()const
{
return ipAddressRange_;
void CreateActivationRequest::setTimeToLiveInHours(long timeToLiveInHours) {
timeToLiveInHours_ = timeToLiveInHours;
setParameter(std::string("TimeToLiveInHours"), std::to_string(timeToLiveInHours));
}
void CreateActivationRequest::setIpAddressRange(const std::string& ipAddressRange)
{
ipAddressRange_ = ipAddressRange;
setParameter("IpAddressRange", ipAddressRange);
std::string CreateActivationRequest::getIpAddressRange() const {
return ipAddressRange_;
}
void CreateActivationRequest::setIpAddressRange(const std::string &ipAddressRange) {
ipAddressRange_ = ipAddressRange;
setParameter(std::string("IpAddressRange"), ipAddressRange);
}

View File

@@ -39,10 +39,10 @@ void CreateActivationResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ActivationId"].isNull())
activationId_ = value["ActivationId"].asString();
if(!value["ActivationCode"].isNull())
activationCode_ = value["ActivationCode"].asString();
if(!value["ActivationId"].isNull())
activationId_ = value["ActivationId"].asString();
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,177 +1,149 @@
/*
* 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/CreateAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::CreateAutoSnapshotPolicyRequest;
CreateAutoSnapshotPolicyRequest::CreateAutoSnapshotPolicyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateAutoSnapshotPolicy")
{
setMethod(HttpRequest::Method::Post);
}
CreateAutoSnapshotPolicyRequest::~CreateAutoSnapshotPolicyRequest()
{}
long CreateAutoSnapshotPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::CreateAutoSnapshotPolicyRequest;
CreateAutoSnapshotPolicyRequest::CreateAutoSnapshotPolicyRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateAutoSnapshotPolicy") {
setMethod(HttpRequest::Method::Post);
}
void CreateAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateAutoSnapshotPolicyRequest::~CreateAutoSnapshotPolicyRequest() {}
long CreateAutoSnapshotPolicyRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
int CreateAutoSnapshotPolicyRequest::getCopiedSnapshotsRetentionDays()const
{
return copiedSnapshotsRetentionDays_;
void CreateAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateAutoSnapshotPolicyRequest::setCopiedSnapshotsRetentionDays(int copiedSnapshotsRetentionDays)
{
copiedSnapshotsRetentionDays_ = copiedSnapshotsRetentionDays;
setParameter("CopiedSnapshotsRetentionDays", std::to_string(copiedSnapshotsRetentionDays));
int CreateAutoSnapshotPolicyRequest::getCopiedSnapshotsRetentionDays() const {
return copiedSnapshotsRetentionDays_;
}
std::string CreateAutoSnapshotPolicyRequest::getTimePoints()const
{
return timePoints_;
void CreateAutoSnapshotPolicyRequest::setCopiedSnapshotsRetentionDays(int copiedSnapshotsRetentionDays) {
copiedSnapshotsRetentionDays_ = copiedSnapshotsRetentionDays;
setParameter(std::string("CopiedSnapshotsRetentionDays"), std::to_string(copiedSnapshotsRetentionDays));
}
void CreateAutoSnapshotPolicyRequest::setTimePoints(const std::string& timePoints)
{
timePoints_ = timePoints;
setParameter("TimePoints", timePoints);
std::string CreateAutoSnapshotPolicyRequest::getTimePoints() const {
return timePoints_;
}
std::string CreateAutoSnapshotPolicyRequest::getRepeatWeekdays()const
{
return repeatWeekdays_;
void CreateAutoSnapshotPolicyRequest::setTimePoints(const std::string &timePoints) {
timePoints_ = timePoints;
setParameter(std::string("timePoints"), timePoints);
}
void CreateAutoSnapshotPolicyRequest::setRepeatWeekdays(const std::string& repeatWeekdays)
{
repeatWeekdays_ = repeatWeekdays;
setParameter("RepeatWeekdays", repeatWeekdays);
std::string CreateAutoSnapshotPolicyRequest::getRepeatWeekdays() const {
return repeatWeekdays_;
}
std::string CreateAutoSnapshotPolicyRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CreateAutoSnapshotPolicyRequest::setRepeatWeekdays(const std::string &repeatWeekdays) {
repeatWeekdays_ = repeatWeekdays;
setParameter(std::string("repeatWeekdays"), repeatWeekdays);
}
void CreateAutoSnapshotPolicyRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CreateAutoSnapshotPolicyRequest::getResourceGroupId() const {
return resourceGroupId_;
}
std::string CreateAutoSnapshotPolicyRequest::getRegionId()const
{
return regionId_;
void CreateAutoSnapshotPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CreateAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateAutoSnapshotPolicyRequest::getRegionId() const {
return regionId_;
}
std::vector<CreateAutoSnapshotPolicyRequest::Tag> CreateAutoSnapshotPolicyRequest::getTag()const
{
return tag_;
void CreateAutoSnapshotPolicyRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("regionId"), regionId);
}
void CreateAutoSnapshotPolicyRequest::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 + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
std::vector<CreateAutoSnapshotPolicyRequest::Tag> CreateAutoSnapshotPolicyRequest::getTag() const {
return tag_;
}
bool CreateAutoSnapshotPolicyRequest::getEnableCrossRegionCopy()const
{
return enableCrossRegionCopy_;
void CreateAutoSnapshotPolicyRequest::setTag(const std::vector<CreateAutoSnapshotPolicyRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
void CreateAutoSnapshotPolicyRequest::setEnableCrossRegionCopy(bool enableCrossRegionCopy)
{
enableCrossRegionCopy_ = enableCrossRegionCopy;
setParameter("EnableCrossRegionCopy", enableCrossRegionCopy ? "true" : "false");
bool CreateAutoSnapshotPolicyRequest::getEnableCrossRegionCopy() const {
return enableCrossRegionCopy_;
}
std::string CreateAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateAutoSnapshotPolicyRequest::setEnableCrossRegionCopy(bool enableCrossRegionCopy) {
enableCrossRegionCopy_ = enableCrossRegionCopy;
setParameter(std::string("EnableCrossRegionCopy"), enableCrossRegionCopy ? "true" : "false");
}
void CreateAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateAutoSnapshotPolicyRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long CreateAutoSnapshotPolicyRequest::getOwnerId()const
{
return ownerId_;
void CreateAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateAutoSnapshotPolicyRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateAutoSnapshotPolicyRequest::getAutoSnapshotPolicyName()const
{
return autoSnapshotPolicyName_;
void CreateAutoSnapshotPolicyRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateAutoSnapshotPolicyRequest::setAutoSnapshotPolicyName(const std::string& autoSnapshotPolicyName)
{
autoSnapshotPolicyName_ = autoSnapshotPolicyName;
setParameter("AutoSnapshotPolicyName", autoSnapshotPolicyName);
std::string CreateAutoSnapshotPolicyRequest::getAutoSnapshotPolicyName() const {
return autoSnapshotPolicyName_;
}
int CreateAutoSnapshotPolicyRequest::getRetentionDays()const
{
return retentionDays_;
void CreateAutoSnapshotPolicyRequest::setAutoSnapshotPolicyName(const std::string &autoSnapshotPolicyName) {
autoSnapshotPolicyName_ = autoSnapshotPolicyName;
setParameter(std::string("autoSnapshotPolicyName"), autoSnapshotPolicyName);
}
void CreateAutoSnapshotPolicyRequest::setRetentionDays(int retentionDays)
{
retentionDays_ = retentionDays;
setParameter("RetentionDays", std::to_string(retentionDays));
int CreateAutoSnapshotPolicyRequest::getRetentionDays() const {
return retentionDays_;
}
std::string CreateAutoSnapshotPolicyRequest::getTargetCopyRegions()const
{
return targetCopyRegions_;
void CreateAutoSnapshotPolicyRequest::setRetentionDays(int retentionDays) {
retentionDays_ = retentionDays;
setParameter(std::string("retentionDays"), std::to_string(retentionDays));
}
void CreateAutoSnapshotPolicyRequest::setTargetCopyRegions(const std::string& targetCopyRegions)
{
targetCopyRegions_ = targetCopyRegions;
setParameter("TargetCopyRegions", targetCopyRegions);
std::string CreateAutoSnapshotPolicyRequest::getTargetCopyRegions() const {
return targetCopyRegions_;
}
void CreateAutoSnapshotPolicyRequest::setTargetCopyRegions(const std::string &targetCopyRegions) {
targetCopyRegions_ = targetCopyRegions;
setParameter(std::string("TargetCopyRegions"), targetCopyRegions);
}

View File

@@ -1,322 +1,265 @@
/*
* 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/CreateCapacityReservationRequest.h>
using AlibabaCloud::Ecs::Model::CreateCapacityReservationRequest;
CreateCapacityReservationRequest::CreateCapacityReservationRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateCapacityReservation")
{
setMethod(HttpRequest::Method::Post);
}
CreateCapacityReservationRequest::~CreateCapacityReservationRequest()
{}
long CreateCapacityReservationRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateCapacityReservationRequest.h>
using AlibabaCloud::Ecs::Model::CreateCapacityReservationRequest;
CreateCapacityReservationRequest::CreateCapacityReservationRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateCapacityReservation") {
setMethod(HttpRequest::Method::Post);
}
void CreateCapacityReservationRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateCapacityReservationRequest::~CreateCapacityReservationRequest() {}
long CreateCapacityReservationRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateCapacityReservationRequest::getClientToken()const
{
return clientToken_;
void CreateCapacityReservationRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateCapacityReservationRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateCapacityReservationRequest::getClientToken() const {
return clientToken_;
}
std::string CreateCapacityReservationRequest::getDescription()const
{
return description_;
void CreateCapacityReservationRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateCapacityReservationRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateCapacityReservationRequest::getDescription() const {
return description_;
}
std::string CreateCapacityReservationRequest::getStartTime()const
{
return startTime_;
void CreateCapacityReservationRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateCapacityReservationRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
std::string CreateCapacityReservationRequest::getStartTime() const {
return startTime_;
}
std::string CreateCapacityReservationRequest::getPlatform()const
{
return platform_;
void CreateCapacityReservationRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
void CreateCapacityReservationRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
std::string CreateCapacityReservationRequest::getPlatform() const {
return platform_;
}
std::string CreateCapacityReservationRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CreateCapacityReservationRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setParameter(std::string("Platform"), platform);
}
void CreateCapacityReservationRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CreateCapacityReservationRequest::getResourceGroupId() const {
return resourceGroupId_;
}
std::string CreateCapacityReservationRequest::getPrivatePoolOptionsMatchCriteria()const
{
return privatePoolOptionsMatchCriteria_;
void CreateCapacityReservationRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CreateCapacityReservationRequest::setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria)
{
privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria;
setParameter("PrivatePoolOptionsMatchCriteria", privatePoolOptionsMatchCriteria);
std::string CreateCapacityReservationRequest::getPrivatePoolOptionsMatchCriteria() const {
return privatePoolOptionsMatchCriteria_;
}
std::string CreateCapacityReservationRequest::getRegionId()const
{
return regionId_;
void CreateCapacityReservationRequest::setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria) {
privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria;
setParameter(std::string("PrivatePoolOptions.MatchCriteria"), privatePoolOptionsMatchCriteria);
}
void CreateCapacityReservationRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateCapacityReservationRequest::getRegionId() const {
return regionId_;
}
std::string CreateCapacityReservationRequest::getInstanceType()const
{
return instanceType_;
void CreateCapacityReservationRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateCapacityReservationRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
std::string CreateCapacityReservationRequest::getInstanceType() const {
return instanceType_;
}
std::vector<CreateCapacityReservationRequest::Tag> CreateCapacityReservationRequest::getTag()const
{
return tag_;
void CreateCapacityReservationRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
void CreateCapacityReservationRequest::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::vector<CreateCapacityReservationRequest::Tag> CreateCapacityReservationRequest::getTag() const {
return tag_;
}
std::string CreateCapacityReservationRequest::getInstanceChargeType()const
{
return instanceChargeType_;
void CreateCapacityReservationRequest::setTag(const std::vector<CreateCapacityReservationRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
void CreateCapacityReservationRequest::setInstanceChargeType(const std::string& instanceChargeType)
{
instanceChargeType_ = instanceChargeType;
setParameter("InstanceChargeType", instanceChargeType);
std::string CreateCapacityReservationRequest::getInstanceChargeType() const {
return instanceChargeType_;
}
int CreateCapacityReservationRequest::getEfficientStatus()const
{
return efficientStatus_;
void CreateCapacityReservationRequest::setInstanceChargeType(const std::string &instanceChargeType) {
instanceChargeType_ = instanceChargeType;
setParameter(std::string("InstanceChargeType"), instanceChargeType);
}
void CreateCapacityReservationRequest::setEfficientStatus(int efficientStatus)
{
efficientStatus_ = efficientStatus;
setParameter("EfficientStatus", std::to_string(efficientStatus));
int CreateCapacityReservationRequest::getEfficientStatus() const {
return efficientStatus_;
}
int CreateCapacityReservationRequest::getPeriod()const
{
return period_;
void CreateCapacityReservationRequest::setEfficientStatus(int efficientStatus) {
efficientStatus_ = efficientStatus;
setParameter(std::string("EfficientStatus"), std::to_string(efficientStatus));
}
void CreateCapacityReservationRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
int CreateCapacityReservationRequest::getPeriod() const {
return period_;
}
std::string CreateCapacityReservationRequest::getEndTimeType()const
{
return endTimeType_;
void CreateCapacityReservationRequest::setPeriod(int period) {
period_ = period;
setParameter(std::string("Period"), std::to_string(period));
}
void CreateCapacityReservationRequest::setEndTimeType(const std::string& endTimeType)
{
endTimeType_ = endTimeType;
setParameter("EndTimeType", endTimeType);
std::string CreateCapacityReservationRequest::getEndTimeType() const {
return endTimeType_;
}
std::string CreateCapacityReservationRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateCapacityReservationRequest::setEndTimeType(const std::string &endTimeType) {
endTimeType_ = endTimeType;
setParameter(std::string("EndTimeType"), endTimeType);
}
void CreateCapacityReservationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateCapacityReservationRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateCapacityReservationRequest::getPrivatePoolOptionsName()const
{
return privatePoolOptionsName_;
void CreateCapacityReservationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateCapacityReservationRequest::setPrivatePoolOptionsName(const std::string& privatePoolOptionsName)
{
privatePoolOptionsName_ = privatePoolOptionsName;
setParameter("PrivatePoolOptionsName", privatePoolOptionsName);
std::string CreateCapacityReservationRequest::getPrivatePoolOptionsName() const {
return privatePoolOptionsName_;
}
std::string CreateCapacityReservationRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateCapacityReservationRequest::setPrivatePoolOptionsName(const std::string &privatePoolOptionsName) {
privatePoolOptionsName_ = privatePoolOptionsName;
setParameter(std::string("PrivatePoolOptions.Name"), privatePoolOptionsName);
}
void CreateCapacityReservationRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateCapacityReservationRequest::getOwnerAccount() const {
return ownerAccount_;
}
std::string CreateCapacityReservationRequest::getEndTime()const
{
return endTime_;
void CreateCapacityReservationRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateCapacityReservationRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
std::string CreateCapacityReservationRequest::getEndTime() const {
return endTime_;
}
long CreateCapacityReservationRequest::getOwnerId()const
{
return ownerId_;
void CreateCapacityReservationRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
void CreateCapacityReservationRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateCapacityReservationRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateCapacityReservationRequest::getResourceType()const
{
return resourceType_;
void CreateCapacityReservationRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateCapacityReservationRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
std::string CreateCapacityReservationRequest::getResourceType() const {
return resourceType_;
}
std::string CreateCapacityReservationRequest::getPeriodUnit()const
{
return periodUnit_;
void CreateCapacityReservationRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
void CreateCapacityReservationRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setParameter("PeriodUnit", periodUnit);
std::string CreateCapacityReservationRequest::getPeriodUnit() const {
return periodUnit_;
}
std::string CreateCapacityReservationRequest::getTimeSlot()const
{
return timeSlot_;
void CreateCapacityReservationRequest::setPeriodUnit(const std::string &periodUnit) {
periodUnit_ = periodUnit;
setParameter(std::string("PeriodUnit"), periodUnit);
}
void CreateCapacityReservationRequest::setTimeSlot(const std::string& timeSlot)
{
timeSlot_ = timeSlot;
setParameter("TimeSlot", timeSlot);
std::string CreateCapacityReservationRequest::getTimeSlot() const {
return timeSlot_;
}
std::vector<std::string> CreateCapacityReservationRequest::getZoneId()const
{
return zoneId_;
void CreateCapacityReservationRequest::setTimeSlot(const std::string &timeSlot) {
timeSlot_ = timeSlot;
setParameter(std::string("TimeSlot"), timeSlot);
}
void CreateCapacityReservationRequest::setZoneId(const std::vector<std::string>& zoneId)
{
zoneId_ = zoneId;
for(int dep1 = 0; dep1!= zoneId.size(); dep1++) {
setParameter("ZoneId."+ std::to_string(dep1), zoneId.at(dep1));
}
std::vector<std::string> CreateCapacityReservationRequest::getZoneId() const {
return zoneId_;
}
std::string CreateCapacityReservationRequest::getChargeType()const
{
return chargeType_;
void CreateCapacityReservationRequest::setZoneId(const std::vector<std::string> &zoneId) {
zoneId_ = zoneId;
}
void CreateCapacityReservationRequest::setChargeType(const std::string& chargeType)
{
chargeType_ = chargeType;
setParameter("ChargeType", chargeType);
std::string CreateCapacityReservationRequest::getChargeType() const {
return chargeType_;
}
std::string CreateCapacityReservationRequest::getPackageType()const
{
return packageType_;
void CreateCapacityReservationRequest::setChargeType(const std::string &chargeType) {
chargeType_ = chargeType;
setParameter(std::string("ChargeType"), chargeType);
}
void CreateCapacityReservationRequest::setPackageType(const std::string& packageType)
{
packageType_ = packageType;
setParameter("PackageType", packageType);
std::string CreateCapacityReservationRequest::getPackageType() const {
return packageType_;
}
int CreateCapacityReservationRequest::getInstanceAmount()const
{
return instanceAmount_;
void CreateCapacityReservationRequest::setPackageType(const std::string &packageType) {
packageType_ = packageType;
setParameter(std::string("PackageType"), packageType);
}
void CreateCapacityReservationRequest::setInstanceAmount(int instanceAmount)
{
instanceAmount_ = instanceAmount;
setParameter("InstanceAmount", std::to_string(instanceAmount));
int CreateCapacityReservationRequest::getInstanceAmount() const {
return instanceAmount_;
}
void CreateCapacityReservationRequest::setInstanceAmount(int instanceAmount) {
instanceAmount_ = instanceAmount;
setParameter(std::string("InstanceAmount"), std::to_string(instanceAmount));
}

View File

@@ -1,161 +1,135 @@
/*
* 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/CreateCommandRequest.h>
using AlibabaCloud::Ecs::Model::CreateCommandRequest;
CreateCommandRequest::CreateCommandRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateCommand")
{
setMethod(HttpRequest::Method::Post);
}
CreateCommandRequest::~CreateCommandRequest()
{}
long CreateCommandRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateCommandRequest.h>
using AlibabaCloud::Ecs::Model::CreateCommandRequest;
CreateCommandRequest::CreateCommandRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateCommand") {
setMethod(HttpRequest::Method::Post);
}
void CreateCommandRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateCommandRequest::~CreateCommandRequest() {}
long CreateCommandRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateCommandRequest::getWorkingDir()const
{
return workingDir_;
void CreateCommandRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateCommandRequest::setWorkingDir(const std::string& workingDir)
{
workingDir_ = workingDir;
setParameter("WorkingDir", workingDir);
std::string CreateCommandRequest::getWorkingDir() const {
return workingDir_;
}
std::string CreateCommandRequest::getDescription()const
{
return description_;
void CreateCommandRequest::setWorkingDir(const std::string &workingDir) {
workingDir_ = workingDir;
setParameter(std::string("WorkingDir"), workingDir);
}
void CreateCommandRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateCommandRequest::getDescription() const {
return description_;
}
std::string CreateCommandRequest::getType()const
{
return type_;
void CreateCommandRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateCommandRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
std::string CreateCommandRequest::getType() const {
return type_;
}
std::string CreateCommandRequest::getCommandContent()const
{
return commandContent_;
void CreateCommandRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}
void CreateCommandRequest::setCommandContent(const std::string& commandContent)
{
commandContent_ = commandContent;
setParameter("CommandContent", commandContent);
std::string CreateCommandRequest::getCommandContent() const {
return commandContent_;
}
long CreateCommandRequest::getTimeout()const
{
return timeout_;
void CreateCommandRequest::setCommandContent(const std::string &commandContent) {
commandContent_ = commandContent;
setParameter(std::string("CommandContent"), commandContent);
}
void CreateCommandRequest::setTimeout(long timeout)
{
timeout_ = timeout;
setParameter("Timeout", std::to_string(timeout));
long CreateCommandRequest::getTimeout() const {
return timeout_;
}
std::string CreateCommandRequest::getRegionId()const
{
return regionId_;
void CreateCommandRequest::setTimeout(long timeout) {
timeout_ = timeout;
setParameter(std::string("Timeout"), std::to_string(timeout));
}
void CreateCommandRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateCommandRequest::getRegionId() const {
return regionId_;
}
std::string CreateCommandRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateCommandRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateCommandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateCommandRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateCommandRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateCommandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateCommandRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateCommandRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateCommandRequest::getOwnerId()const
{
return ownerId_;
void CreateCommandRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateCommandRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateCommandRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateCommandRequest::getName()const
{
return name_;
void CreateCommandRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateCommandRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string CreateCommandRequest::getName() const {
return name_;
}
bool CreateCommandRequest::getEnableParameter()const
{
return enableParameter_;
void CreateCommandRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
void CreateCommandRequest::setEnableParameter(bool enableParameter)
{
enableParameter_ = enableParameter;
setParameter("EnableParameter", enableParameter ? "true" : "false");
bool CreateCommandRequest::getEnableParameter() const {
return enableParameter_;
}
void CreateCommandRequest::setEnableParameter(bool enableParameter) {
enableParameter_ = enableParameter;
setParameter(std::string("EnableParameter"), enableParameter ? "true" : "false");
}

View File

@@ -1,194 +1,162 @@
/*
* 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/CreateDedicatedBlockStorageClusterRequest.h>
using AlibabaCloud::Ecs::Model::CreateDedicatedBlockStorageClusterRequest;
CreateDedicatedBlockStorageClusterRequest::CreateDedicatedBlockStorageClusterRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateDedicatedBlockStorageCluster")
{
setMethod(HttpRequest::Method::Post);
}
CreateDedicatedBlockStorageClusterRequest::~CreateDedicatedBlockStorageClusterRequest()
{}
long CreateDedicatedBlockStorageClusterRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterRequest.h>
using AlibabaCloud::Ecs::Model::CreateDedicatedBlockStorageClusterRequest;
CreateDedicatedBlockStorageClusterRequest::CreateDedicatedBlockStorageClusterRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateDedicatedBlockStorageCluster") {
setMethod(HttpRequest::Method::Post);
}
void CreateDedicatedBlockStorageClusterRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateDedicatedBlockStorageClusterRequest::~CreateDedicatedBlockStorageClusterRequest() {}
long CreateDedicatedBlockStorageClusterRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateDedicatedBlockStorageClusterRequest::getDedicatedBlockStorageClusterName()const
{
return dedicatedBlockStorageClusterName_;
void CreateDedicatedBlockStorageClusterRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateDedicatedBlockStorageClusterRequest::setDedicatedBlockStorageClusterName(const std::string& dedicatedBlockStorageClusterName)
{
dedicatedBlockStorageClusterName_ = dedicatedBlockStorageClusterName;
setParameter("DedicatedBlockStorageClusterName", dedicatedBlockStorageClusterName);
std::string CreateDedicatedBlockStorageClusterRequest::getDedicatedBlockStorageClusterName() const {
return dedicatedBlockStorageClusterName_;
}
std::string CreateDedicatedBlockStorageClusterRequest::getClientToken()const
{
return clientToken_;
void CreateDedicatedBlockStorageClusterRequest::setDedicatedBlockStorageClusterName(const std::string &dedicatedBlockStorageClusterName) {
dedicatedBlockStorageClusterName_ = dedicatedBlockStorageClusterName;
setParameter(std::string("DedicatedBlockStorageClusterName"), dedicatedBlockStorageClusterName);
}
void CreateDedicatedBlockStorageClusterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateDedicatedBlockStorageClusterRequest::getClientToken() const {
return clientToken_;
}
std::string CreateDedicatedBlockStorageClusterRequest::getDescription()const
{
return description_;
void CreateDedicatedBlockStorageClusterRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateDedicatedBlockStorageClusterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateDedicatedBlockStorageClusterRequest::getDescription() const {
return description_;
}
std::string CreateDedicatedBlockStorageClusterRequest::getType()const
{
return type_;
void CreateDedicatedBlockStorageClusterRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateDedicatedBlockStorageClusterRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
std::string CreateDedicatedBlockStorageClusterRequest::getType() const {
return type_;
}
int CreateDedicatedBlockStorageClusterRequest::getCapacity()const
{
return capacity_;
void CreateDedicatedBlockStorageClusterRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}
void CreateDedicatedBlockStorageClusterRequest::setCapacity(int capacity)
{
capacity_ = capacity;
setParameter("Capacity", std::to_string(capacity));
int CreateDedicatedBlockStorageClusterRequest::getCapacity() const {
return capacity_;
}
std::string CreateDedicatedBlockStorageClusterRequest::getRegionId()const
{
return regionId_;
void CreateDedicatedBlockStorageClusterRequest::setCapacity(int capacity) {
capacity_ = capacity;
setParameter(std::string("Capacity"), std::to_string(capacity));
}
void CreateDedicatedBlockStorageClusterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateDedicatedBlockStorageClusterRequest::getRegionId() const {
return regionId_;
}
int CreateDedicatedBlockStorageClusterRequest::getPeriod()const
{
return period_;
void CreateDedicatedBlockStorageClusterRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateDedicatedBlockStorageClusterRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
int CreateDedicatedBlockStorageClusterRequest::getPeriod() const {
return period_;
}
std::string CreateDedicatedBlockStorageClusterRequest::getFromApp()const
{
return fromApp_;
void CreateDedicatedBlockStorageClusterRequest::setPeriod(int period) {
period_ = period;
setParameter(std::string("Period"), std::to_string(period));
}
void CreateDedicatedBlockStorageClusterRequest::setFromApp(const std::string& fromApp)
{
fromApp_ = fromApp;
setParameter("FromApp", fromApp);
std::string CreateDedicatedBlockStorageClusterRequest::getFromApp() const {
return fromApp_;
}
std::string CreateDedicatedBlockStorageClusterRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateDedicatedBlockStorageClusterRequest::setFromApp(const std::string &fromApp) {
fromApp_ = fromApp;
setParameter(std::string("FromApp"), fromApp);
}
void CreateDedicatedBlockStorageClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateDedicatedBlockStorageClusterRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateDedicatedBlockStorageClusterRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateDedicatedBlockStorageClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateDedicatedBlockStorageClusterRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateDedicatedBlockStorageClusterRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateDedicatedBlockStorageClusterRequest::getOwnerId()const
{
return ownerId_;
void CreateDedicatedBlockStorageClusterRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateDedicatedBlockStorageClusterRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateDedicatedBlockStorageClusterRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateDedicatedBlockStorageClusterRequest::getPeriodUnit()const
{
return periodUnit_;
void CreateDedicatedBlockStorageClusterRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateDedicatedBlockStorageClusterRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setParameter("PeriodUnit", periodUnit);
std::string CreateDedicatedBlockStorageClusterRequest::getPeriodUnit() const {
return periodUnit_;
}
std::string CreateDedicatedBlockStorageClusterRequest::getZoneId()const
{
return zoneId_;
void CreateDedicatedBlockStorageClusterRequest::setPeriodUnit(const std::string &periodUnit) {
periodUnit_ = periodUnit;
setParameter(std::string("PeriodUnit"), periodUnit);
}
void CreateDedicatedBlockStorageClusterRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
std::string CreateDedicatedBlockStorageClusterRequest::getZoneId() const {
return zoneId_;
}
std::string CreateDedicatedBlockStorageClusterRequest::getCategory()const
{
return category_;
void CreateDedicatedBlockStorageClusterRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}
void CreateDedicatedBlockStorageClusterRequest::setCategory(const std::string& category)
{
category_ = category;
setParameter("Category", category);
std::string CreateDedicatedBlockStorageClusterRequest::getCategory() const {
return category_;
}
void CreateDedicatedBlockStorageClusterRequest::setCategory(const std::string &category) {
category_ = category;
setParameter(std::string("Category"), category);
}

View File

@@ -1,155 +1,131 @@
/*
* 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/CreateDedicatedHostClusterRequest.h>
using AlibabaCloud::Ecs::Model::CreateDedicatedHostClusterRequest;
CreateDedicatedHostClusterRequest::CreateDedicatedHostClusterRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateDedicatedHostCluster")
{
setMethod(HttpRequest::Method::Post);
}
CreateDedicatedHostClusterRequest::~CreateDedicatedHostClusterRequest()
{}
std::string CreateDedicatedHostClusterRequest::getDedicatedHostClusterName()const
{
return dedicatedHostClusterName_;
*/
#include <alibabacloud/ecs/model/CreateDedicatedHostClusterRequest.h>
using AlibabaCloud::Ecs::Model::CreateDedicatedHostClusterRequest;
CreateDedicatedHostClusterRequest::CreateDedicatedHostClusterRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateDedicatedHostCluster") {
setMethod(HttpRequest::Method::Post);
}
void CreateDedicatedHostClusterRequest::setDedicatedHostClusterName(const std::string& dedicatedHostClusterName)
{
dedicatedHostClusterName_ = dedicatedHostClusterName;
setParameter("DedicatedHostClusterName", dedicatedHostClusterName);
CreateDedicatedHostClusterRequest::~CreateDedicatedHostClusterRequest() {}
std::string CreateDedicatedHostClusterRequest::getDedicatedHostClusterName() const {
return dedicatedHostClusterName_;
}
long CreateDedicatedHostClusterRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void CreateDedicatedHostClusterRequest::setDedicatedHostClusterName(const std::string &dedicatedHostClusterName) {
dedicatedHostClusterName_ = dedicatedHostClusterName;
setParameter(std::string("DedicatedHostClusterName"), dedicatedHostClusterName);
}
void CreateDedicatedHostClusterRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long CreateDedicatedHostClusterRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateDedicatedHostClusterRequest::getDescription()const
{
return description_;
void CreateDedicatedHostClusterRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateDedicatedHostClusterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateDedicatedHostClusterRequest::getDescription() const {
return description_;
}
std::string CreateDedicatedHostClusterRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CreateDedicatedHostClusterRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateDedicatedHostClusterRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CreateDedicatedHostClusterRequest::getResourceGroupId() const {
return resourceGroupId_;
}
std::string CreateDedicatedHostClusterRequest::getRegionId()const
{
return regionId_;
void CreateDedicatedHostClusterRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CreateDedicatedHostClusterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateDedicatedHostClusterRequest::getRegionId() const {
return regionId_;
}
std::vector<CreateDedicatedHostClusterRequest::Tag> CreateDedicatedHostClusterRequest::getTag()const
{
return tag_;
void CreateDedicatedHostClusterRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateDedicatedHostClusterRequest::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::vector<CreateDedicatedHostClusterRequest::Tag> CreateDedicatedHostClusterRequest::getTag() const {
return tag_;
}
bool CreateDedicatedHostClusterRequest::getDryRun()const
{
return dryRun_;
void CreateDedicatedHostClusterRequest::setTag(const std::vector<CreateDedicatedHostClusterRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
void CreateDedicatedHostClusterRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
bool CreateDedicatedHostClusterRequest::getDryRun() const {
return dryRun_;
}
std::string CreateDedicatedHostClusterRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateDedicatedHostClusterRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
void CreateDedicatedHostClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateDedicatedHostClusterRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateDedicatedHostClusterRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateDedicatedHostClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateDedicatedHostClusterRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateDedicatedHostClusterRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateDedicatedHostClusterRequest::getOwnerId()const
{
return ownerId_;
void CreateDedicatedHostClusterRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateDedicatedHostClusterRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateDedicatedHostClusterRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateDedicatedHostClusterRequest::getZoneId()const
{
return zoneId_;
void CreateDedicatedHostClusterRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateDedicatedHostClusterRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
std::string CreateDedicatedHostClusterRequest::getZoneId() const {
return zoneId_;
}
void CreateDedicatedHostClusterRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}

View File

@@ -1,205 +1,171 @@
/*
* 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/CreateDemandRequest.h>
using AlibabaCloud::Ecs::Model::CreateDemandRequest;
CreateDemandRequest::CreateDemandRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateDemand")
{
setMethod(HttpRequest::Method::Post);
}
CreateDemandRequest::~CreateDemandRequest()
{}
long CreateDemandRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateDemandRequest.h>
using AlibabaCloud::Ecs::Model::CreateDemandRequest;
CreateDemandRequest::CreateDemandRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateDemand") {
setMethod(HttpRequest::Method::Post);
}
void CreateDemandRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateDemandRequest::~CreateDemandRequest() {}
long CreateDemandRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateDemandRequest::getClientToken()const
{
return clientToken_;
void CreateDemandRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateDemandRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateDemandRequest::getClientToken() const {
return clientToken_;
}
std::string CreateDemandRequest::getStartTime()const
{
return startTime_;
void CreateDemandRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateDemandRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
std::string CreateDemandRequest::getStartTime() const {
return startTime_;
}
std::string CreateDemandRequest::getDemandDescription()const
{
return demandDescription_;
void CreateDemandRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
void CreateDemandRequest::setDemandDescription(const std::string& demandDescription)
{
demandDescription_ = demandDescription;
setParameter("DemandDescription", demandDescription);
std::string CreateDemandRequest::getDemandDescription() const {
return demandDescription_;
}
std::string CreateDemandRequest::getRegionId()const
{
return regionId_;
void CreateDemandRequest::setDemandDescription(const std::string &demandDescription) {
demandDescription_ = demandDescription;
setParameter(std::string("DemandDescription"), demandDescription);
}
void CreateDemandRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateDemandRequest::getRegionId() const {
return regionId_;
}
std::string CreateDemandRequest::getInstanceType()const
{
return instanceType_;
void CreateDemandRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateDemandRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
std::string CreateDemandRequest::getInstanceType() const {
return instanceType_;
}
std::string CreateDemandRequest::getInstanceChargeType()const
{
return instanceChargeType_;
void CreateDemandRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
void CreateDemandRequest::setInstanceChargeType(const std::string& instanceChargeType)
{
instanceChargeType_ = instanceChargeType;
setParameter("InstanceChargeType", instanceChargeType);
std::string CreateDemandRequest::getInstanceChargeType() const {
return instanceChargeType_;
}
std::string CreateDemandRequest::getDemandName()const
{
return demandName_;
void CreateDemandRequest::setInstanceChargeType(const std::string &instanceChargeType) {
instanceChargeType_ = instanceChargeType;
setParameter(std::string("InstanceChargeType"), instanceChargeType);
}
void CreateDemandRequest::setDemandName(const std::string& demandName)
{
demandName_ = demandName;
setParameter("DemandName", demandName);
std::string CreateDemandRequest::getDemandName() const {
return demandName_;
}
int CreateDemandRequest::getAmount()const
{
return amount_;
void CreateDemandRequest::setDemandName(const std::string &demandName) {
demandName_ = demandName;
setParameter(std::string("DemandName"), demandName);
}
void CreateDemandRequest::setAmount(int amount)
{
amount_ = amount;
setParameter("Amount", std::to_string(amount));
int CreateDemandRequest::getAmount() const {
return amount_;
}
int CreateDemandRequest::getPeriod()const
{
return period_;
void CreateDemandRequest::setAmount(int amount) {
amount_ = amount;
setParameter(std::string("Amount"), std::to_string(amount));
}
void CreateDemandRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
int CreateDemandRequest::getPeriod() const {
return period_;
}
std::string CreateDemandRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateDemandRequest::setPeriod(int period) {
period_ = period;
setParameter(std::string("Period"), std::to_string(period));
}
void CreateDemandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateDemandRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateDemandRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateDemandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateDemandRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateDemandRequest::getOwnerAccount() const {
return ownerAccount_;
}
std::string CreateDemandRequest::getEndTime()const
{
return endTime_;
void CreateDemandRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateDemandRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
std::string CreateDemandRequest::getEndTime() const {
return endTime_;
}
long CreateDemandRequest::getOwnerId()const
{
return ownerId_;
void CreateDemandRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
void CreateDemandRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateDemandRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateDemandRequest::getPeriodUnit()const
{
return periodUnit_;
void CreateDemandRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateDemandRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setParameter("PeriodUnit", periodUnit);
std::string CreateDemandRequest::getPeriodUnit() const {
return periodUnit_;
}
std::string CreateDemandRequest::getZoneId()const
{
return zoneId_;
void CreateDemandRequest::setPeriodUnit(const std::string &periodUnit) {
periodUnit_ = periodUnit;
setParameter(std::string("PeriodUnit"), periodUnit);
}
void CreateDemandRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
std::string CreateDemandRequest::getZoneId() const {
return zoneId_;
}
void CreateDemandRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}

View File

@@ -1,172 +1,144 @@
/*
* 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/CreateDeploymentSetRequest.h>
using AlibabaCloud::Ecs::Model::CreateDeploymentSetRequest;
CreateDeploymentSetRequest::CreateDeploymentSetRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateDeploymentSet")
{
setMethod(HttpRequest::Method::Post);
}
CreateDeploymentSetRequest::~CreateDeploymentSetRequest()
{}
long CreateDeploymentSetRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateDeploymentSetRequest.h>
using AlibabaCloud::Ecs::Model::CreateDeploymentSetRequest;
CreateDeploymentSetRequest::CreateDeploymentSetRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateDeploymentSet") {
setMethod(HttpRequest::Method::Post);
}
void CreateDeploymentSetRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateDeploymentSetRequest::~CreateDeploymentSetRequest() {}
long CreateDeploymentSetRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateDeploymentSetRequest::getClientToken()const
{
return clientToken_;
void CreateDeploymentSetRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateDeploymentSetRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateDeploymentSetRequest::getClientToken() const {
return clientToken_;
}
std::string CreateDeploymentSetRequest::getDescription()const
{
return description_;
void CreateDeploymentSetRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateDeploymentSetRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateDeploymentSetRequest::getDescription() const {
return description_;
}
std::string CreateDeploymentSetRequest::getRegionId()const
{
return regionId_;
void CreateDeploymentSetRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateDeploymentSetRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateDeploymentSetRequest::getRegionId() const {
return regionId_;
}
long CreateDeploymentSetRequest::getGroupCount()const
{
return groupCount_;
void CreateDeploymentSetRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateDeploymentSetRequest::setGroupCount(long groupCount)
{
groupCount_ = groupCount;
setParameter("GroupCount", std::to_string(groupCount));
long CreateDeploymentSetRequest::getGroupCount() const {
return groupCount_;
}
std::string CreateDeploymentSetRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateDeploymentSetRequest::setGroupCount(long groupCount) {
groupCount_ = groupCount;
setParameter(std::string("GroupCount"), std::to_string(groupCount));
}
void CreateDeploymentSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateDeploymentSetRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateDeploymentSetRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateDeploymentSetRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateDeploymentSetRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateDeploymentSetRequest::getOwnerAccount() const {
return ownerAccount_;
}
std::string CreateDeploymentSetRequest::getDeploymentSetName()const
{
return deploymentSetName_;
void CreateDeploymentSetRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateDeploymentSetRequest::setDeploymentSetName(const std::string& deploymentSetName)
{
deploymentSetName_ = deploymentSetName;
setParameter("DeploymentSetName", deploymentSetName);
std::string CreateDeploymentSetRequest::getDeploymentSetName() const {
return deploymentSetName_;
}
long CreateDeploymentSetRequest::getOwnerId()const
{
return ownerId_;
void CreateDeploymentSetRequest::setDeploymentSetName(const std::string &deploymentSetName) {
deploymentSetName_ = deploymentSetName;
setParameter(std::string("DeploymentSetName"), deploymentSetName);
}
void CreateDeploymentSetRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateDeploymentSetRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateDeploymentSetRequest::getOnUnableToRedeployFailedInstance()const
{
return onUnableToRedeployFailedInstance_;
void CreateDeploymentSetRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateDeploymentSetRequest::setOnUnableToRedeployFailedInstance(const std::string& onUnableToRedeployFailedInstance)
{
onUnableToRedeployFailedInstance_ = onUnableToRedeployFailedInstance;
setParameter("OnUnableToRedeployFailedInstance", onUnableToRedeployFailedInstance);
std::string CreateDeploymentSetRequest::getOnUnableToRedeployFailedInstance() const {
return onUnableToRedeployFailedInstance_;
}
std::string CreateDeploymentSetRequest::getGranularity()const
{
return granularity_;
void CreateDeploymentSetRequest::setOnUnableToRedeployFailedInstance(const std::string &onUnableToRedeployFailedInstance) {
onUnableToRedeployFailedInstance_ = onUnableToRedeployFailedInstance;
setParameter(std::string("OnUnableToRedeployFailedInstance"), onUnableToRedeployFailedInstance);
}
void CreateDeploymentSetRequest::setGranularity(const std::string& granularity)
{
granularity_ = granularity;
setParameter("Granularity", granularity);
std::string CreateDeploymentSetRequest::getGranularity() const {
return granularity_;
}
std::string CreateDeploymentSetRequest::getDomain()const
{
return domain_;
void CreateDeploymentSetRequest::setGranularity(const std::string &granularity) {
granularity_ = granularity;
setParameter(std::string("Granularity"), granularity);
}
void CreateDeploymentSetRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
std::string CreateDeploymentSetRequest::getDomain() const {
return domain_;
}
std::string CreateDeploymentSetRequest::getStrategy()const
{
return strategy_;
void CreateDeploymentSetRequest::setDomain(const std::string &domain) {
domain_ = domain;
setParameter(std::string("Domain"), domain);
}
void CreateDeploymentSetRequest::setStrategy(const std::string& strategy)
{
strategy_ = strategy;
setParameter("Strategy", strategy);
std::string CreateDeploymentSetRequest::getStrategy() const {
return strategy_;
}
void CreateDeploymentSetRequest::setStrategy(const std::string &strategy) {
strategy_ = strategy;
setParameter(std::string("Strategy"), strategy);
}

View File

@@ -1,150 +1,126 @@
/*
* 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/CreateDiskReplicaPairRequest.h>
using AlibabaCloud::Ecs::Model::CreateDiskReplicaPairRequest;
CreateDiskReplicaPairRequest::CreateDiskReplicaPairRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateDiskReplicaPair")
{
setMethod(HttpRequest::Method::Post);
}
CreateDiskReplicaPairRequest::~CreateDiskReplicaPairRequest()
{}
long CreateDiskReplicaPairRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateDiskReplicaPairRequest.h>
using AlibabaCloud::Ecs::Model::CreateDiskReplicaPairRequest;
CreateDiskReplicaPairRequest::CreateDiskReplicaPairRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateDiskReplicaPair") {
setMethod(HttpRequest::Method::Post);
}
void CreateDiskReplicaPairRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateDiskReplicaPairRequest::~CreateDiskReplicaPairRequest() {}
long CreateDiskReplicaPairRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateDiskReplicaPairRequest::getPairName()const
{
return pairName_;
void CreateDiskReplicaPairRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateDiskReplicaPairRequest::setPairName(const std::string& pairName)
{
pairName_ = pairName;
setParameter("PairName", pairName);
std::string CreateDiskReplicaPairRequest::getPairName() const {
return pairName_;
}
std::string CreateDiskReplicaPairRequest::getDestinationRegionId()const
{
return destinationRegionId_;
void CreateDiskReplicaPairRequest::setPairName(const std::string &pairName) {
pairName_ = pairName;
setParameter(std::string("PairName"), pairName);
}
void CreateDiskReplicaPairRequest::setDestinationRegionId(const std::string& destinationRegionId)
{
destinationRegionId_ = destinationRegionId;
setParameter("DestinationRegionId", destinationRegionId);
std::string CreateDiskReplicaPairRequest::getDestinationRegionId() const {
return destinationRegionId_;
}
std::string CreateDiskReplicaPairRequest::getDescription()const
{
return description_;
void CreateDiskReplicaPairRequest::setDestinationRegionId(const std::string &destinationRegionId) {
destinationRegionId_ = destinationRegionId;
setParameter(std::string("DestinationRegionId"), destinationRegionId);
}
void CreateDiskReplicaPairRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateDiskReplicaPairRequest::getDescription() const {
return description_;
}
std::string CreateDiskReplicaPairRequest::getRegionId()const
{
return regionId_;
void CreateDiskReplicaPairRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateDiskReplicaPairRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateDiskReplicaPairRequest::getRegionId() const {
return regionId_;
}
std::string CreateDiskReplicaPairRequest::getDiskId()const
{
return diskId_;
void CreateDiskReplicaPairRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateDiskReplicaPairRequest::setDiskId(const std::string& diskId)
{
diskId_ = diskId;
setParameter("DiskId", diskId);
std::string CreateDiskReplicaPairRequest::getDiskId() const {
return diskId_;
}
int CreateDiskReplicaPairRequest::getAsyncCycle()const
{
return asyncCycle_;
void CreateDiskReplicaPairRequest::setDiskId(const std::string &diskId) {
diskId_ = diskId;
setParameter(std::string("DiskId"), diskId);
}
void CreateDiskReplicaPairRequest::setAsyncCycle(int asyncCycle)
{
asyncCycle_ = asyncCycle;
setParameter("AsyncCycle", std::to_string(asyncCycle));
int CreateDiskReplicaPairRequest::getAsyncCycle() const {
return asyncCycle_;
}
std::string CreateDiskReplicaPairRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateDiskReplicaPairRequest::setAsyncCycle(int asyncCycle) {
asyncCycle_ = asyncCycle;
setParameter(std::string("AsyncCycle"), std::to_string(asyncCycle));
}
void CreateDiskReplicaPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateDiskReplicaPairRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateDiskReplicaPairRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateDiskReplicaPairRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateDiskReplicaPairRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateDiskReplicaPairRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateDiskReplicaPairRequest::getOwnerId()const
{
return ownerId_;
void CreateDiskReplicaPairRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateDiskReplicaPairRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateDiskReplicaPairRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateDiskReplicaPairRequest::getDestinationDiskId()const
{
return destinationDiskId_;
void CreateDiskReplicaPairRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateDiskReplicaPairRequest::setDestinationDiskId(const std::string& destinationDiskId)
{
destinationDiskId_ = destinationDiskId;
setParameter("DestinationDiskId", destinationDiskId);
std::string CreateDiskReplicaPairRequest::getDestinationDiskId() const {
return destinationDiskId_;
}
void CreateDiskReplicaPairRequest::setDestinationDiskId(const std::string &destinationDiskId) {
destinationDiskId_ = destinationDiskId;
setParameter(std::string("DestinationDiskId"), destinationDiskId);
}

View File

@@ -1,315 +1,263 @@
/*
* 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/CreateDiskRequest.h>
using AlibabaCloud::Ecs::Model::CreateDiskRequest;
CreateDiskRequest::CreateDiskRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateDisk")
{
setMethod(HttpRequest::Method::Post);
}
CreateDiskRequest::~CreateDiskRequest()
{}
long CreateDiskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateDiskRequest.h>
using AlibabaCloud::Ecs::Model::CreateDiskRequest;
CreateDiskRequest::CreateDiskRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateDisk") {
setMethod(HttpRequest::Method::Post);
}
void CreateDiskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateDiskRequest::~CreateDiskRequest() {}
long CreateDiskRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateDiskRequest::getSnapshotId()const
{
return snapshotId_;
void CreateDiskRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateDiskRequest::setSnapshotId(const std::string& snapshotId)
{
snapshotId_ = snapshotId;
setParameter("SnapshotId", snapshotId);
std::string CreateDiskRequest::getSnapshotId() const {
return snapshotId_;
}
std::string CreateDiskRequest::getClientToken()const
{
return clientToken_;
void CreateDiskRequest::setSnapshotId(const std::string &snapshotId) {
snapshotId_ = snapshotId;
setParameter(std::string("SnapshotId"), snapshotId);
}
void CreateDiskRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateDiskRequest::getClientToken() const {
return clientToken_;
}
std::string CreateDiskRequest::getEncryptAlgorithm()const
{
return encryptAlgorithm_;
void CreateDiskRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateDiskRequest::setEncryptAlgorithm(const std::string& encryptAlgorithm)
{
encryptAlgorithm_ = encryptAlgorithm;
setParameter("EncryptAlgorithm", encryptAlgorithm);
std::string CreateDiskRequest::getEncryptAlgorithm() const {
return encryptAlgorithm_;
}
std::string CreateDiskRequest::getDescription()const
{
return description_;
void CreateDiskRequest::setEncryptAlgorithm(const std::string &encryptAlgorithm) {
encryptAlgorithm_ = encryptAlgorithm;
setParameter(std::string("EncryptAlgorithm"), encryptAlgorithm);
}
void CreateDiskRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateDiskRequest::getDescription() const {
return description_;
}
std::string CreateDiskRequest::getDiskName()const
{
return diskName_;
void CreateDiskRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateDiskRequest::setDiskName(const std::string& diskName)
{
diskName_ = diskName;
setParameter("DiskName", diskName);
std::string CreateDiskRequest::getDiskName() const {
return diskName_;
}
std::string CreateDiskRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CreateDiskRequest::setDiskName(const std::string &diskName) {
diskName_ = diskName;
setParameter(std::string("DiskName"), diskName);
}
void CreateDiskRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CreateDiskRequest::getResourceGroupId() const {
return resourceGroupId_;
}
std::string CreateDiskRequest::getRegionId()const
{
return regionId_;
void CreateDiskRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CreateDiskRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateDiskRequest::getRegionId() const {
return regionId_;
}
std::string CreateDiskRequest::getDiskCategory()const
{
return diskCategory_;
void CreateDiskRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateDiskRequest::setDiskCategory(const std::string& diskCategory)
{
diskCategory_ = diskCategory;
setParameter("DiskCategory", diskCategory);
std::string CreateDiskRequest::getDiskCategory() const {
return diskCategory_;
}
int CreateDiskRequest::getStorageSetPartitionNumber()const
{
return storageSetPartitionNumber_;
void CreateDiskRequest::setDiskCategory(const std::string &diskCategory) {
diskCategory_ = diskCategory;
setParameter(std::string("DiskCategory"), diskCategory);
}
void CreateDiskRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber)
{
storageSetPartitionNumber_ = storageSetPartitionNumber;
setParameter("StorageSetPartitionNumber", std::to_string(storageSetPartitionNumber));
int CreateDiskRequest::getStorageSetPartitionNumber() const {
return storageSetPartitionNumber_;
}
std::string CreateDiskRequest::getMultiAttach()const
{
return multiAttach_;
void CreateDiskRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber) {
storageSetPartitionNumber_ = storageSetPartitionNumber;
setParameter(std::string("StorageSetPartitionNumber"), std::to_string(storageSetPartitionNumber));
}
void CreateDiskRequest::setMultiAttach(const std::string& multiAttach)
{
multiAttach_ = multiAttach;
setParameter("MultiAttach", multiAttach);
std::string CreateDiskRequest::getMultiAttach() const {
return multiAttach_;
}
std::vector<CreateDiskRequest::Tag> CreateDiskRequest::getTag()const
{
return tag_;
void CreateDiskRequest::setMultiAttach(const std::string &multiAttach) {
multiAttach_ = multiAttach;
setParameter(std::string("MultiAttach"), multiAttach);
}
void CreateDiskRequest::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 + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
std::vector<CreateDiskRequest::Tag> CreateDiskRequest::getTag() const {
return tag_;
}
std::string CreateDiskRequest::getAdvancedFeatures()const
{
return advancedFeatures_;
void CreateDiskRequest::setTag(const std::vector<CreateDiskRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
void CreateDiskRequest::setAdvancedFeatures(const std::string& advancedFeatures)
{
advancedFeatures_ = advancedFeatures;
setParameter("AdvancedFeatures", advancedFeatures);
std::string CreateDiskRequest::getAdvancedFeatures() const {
return advancedFeatures_;
}
std::vector<CreateDiskRequest::Arn> CreateDiskRequest::getArn()const
{
return arn_;
void CreateDiskRequest::setAdvancedFeatures(const std::string &advancedFeatures) {
advancedFeatures_ = advancedFeatures;
setParameter(std::string("AdvancedFeatures"), advancedFeatures);
}
void CreateDiskRequest::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 + ".Rolearn", arnObj.rolearn);
setParameter(arnObjStr + ".RoleType", arnObj.roleType);
setParameter(arnObjStr + ".AssumeRoleFor", std::to_string(arnObj.assumeRoleFor));
}
std::vector<CreateDiskRequest::Arn> CreateDiskRequest::getArn() const {
return arn_;
}
std::string CreateDiskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateDiskRequest::setArn(const std::vector<CreateDiskRequest::Arn> &arn) {
arn_ = arn;
for(int dep1 = 0; dep1 != arn.size(); dep1++) {
auto arnObj = arn.at(dep1);
std::string arnObjStr = std::string("Arn") + "." + std::to_string(dep1 + 1);
setParameter(arnObjStr + ".Rolearn", arnObj.rolearn);
setParameter(arnObjStr + ".RoleType", arnObj.roleType);
setParameter(arnObjStr + ".AssumeRoleFor", std::to_string(arnObj.assumeRoleFor));
}
}
void CreateDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateDiskRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateDiskRequest::getPerformanceLevel()const
{
return performanceLevel_;
void CreateDiskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateDiskRequest::setPerformanceLevel(const std::string& performanceLevel)
{
performanceLevel_ = performanceLevel;
setParameter("PerformanceLevel", performanceLevel);
std::string CreateDiskRequest::getPerformanceLevel() const {
return performanceLevel_;
}
std::string CreateDiskRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateDiskRequest::setPerformanceLevel(const std::string &performanceLevel) {
performanceLevel_ = performanceLevel;
setParameter(std::string("PerformanceLevel"), performanceLevel);
}
void CreateDiskRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateDiskRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateDiskRequest::getOwnerId()const
{
return ownerId_;
void CreateDiskRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateDiskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateDiskRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateDiskRequest::getInstanceId()const
{
return instanceId_;
void CreateDiskRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateDiskRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
std::string CreateDiskRequest::getInstanceId() const {
return instanceId_;
}
std::string CreateDiskRequest::getStorageSetId()const
{
return storageSetId_;
void CreateDiskRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
void CreateDiskRequest::setStorageSetId(const std::string& storageSetId)
{
storageSetId_ = storageSetId;
setParameter("StorageSetId", storageSetId);
std::string CreateDiskRequest::getStorageSetId() const {
return storageSetId_;
}
int CreateDiskRequest::getSize()const
{
return size_;
void CreateDiskRequest::setStorageSetId(const std::string &storageSetId) {
storageSetId_ = storageSetId;
setParameter(std::string("StorageSetId"), storageSetId);
}
void CreateDiskRequest::setSize(int size)
{
size_ = size;
setParameter("Size", std::to_string(size));
int CreateDiskRequest::getSize() const {
return size_;
}
bool CreateDiskRequest::getEncrypted()const
{
return encrypted_;
void CreateDiskRequest::setSize(int size) {
size_ = size;
setParameter(std::string("Size"), std::to_string(size));
}
void CreateDiskRequest::setEncrypted(bool encrypted)
{
encrypted_ = encrypted;
setParameter("Encrypted", encrypted ? "true" : "false");
bool CreateDiskRequest::getEncrypted() const {
return encrypted_;
}
std::string CreateDiskRequest::getZoneId()const
{
return zoneId_;
void CreateDiskRequest::setEncrypted(bool encrypted) {
encrypted_ = encrypted;
setParameter(std::string("Encrypted"), encrypted ? "true" : "false");
}
void CreateDiskRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
std::string CreateDiskRequest::getZoneId() const {
return zoneId_;
}
std::string CreateDiskRequest::getStorageClusterId()const
{
return storageClusterId_;
void CreateDiskRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}
void CreateDiskRequest::setStorageClusterId(const std::string& storageClusterId)
{
storageClusterId_ = storageClusterId;
setParameter("StorageClusterId", storageClusterId);
std::string CreateDiskRequest::getStorageClusterId() const {
return storageClusterId_;
}
std::string CreateDiskRequest::getKMSKeyId()const
{
return kMSKeyId_;
void CreateDiskRequest::setStorageClusterId(const std::string &storageClusterId) {
storageClusterId_ = storageClusterId;
setParameter(std::string("StorageClusterId"), storageClusterId);
}
void CreateDiskRequest::setKMSKeyId(const std::string& kMSKeyId)
{
kMSKeyId_ = kMSKeyId;
setParameter("KMSKeyId", kMSKeyId);
std::string CreateDiskRequest::getKMSKeyId() const {
return kMSKeyId_;
}
void CreateDiskRequest::setKMSKeyId(const std::string &kMSKeyId) {
kMSKeyId_ = kMSKeyId;
setParameter(std::string("KMSKeyId"), kMSKeyId);
}

View File

@@ -1,302 +1,246 @@
/*
* 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/CreateElasticityAssuranceRequest.h>
using AlibabaCloud::Ecs::Model::CreateElasticityAssuranceRequest;
CreateElasticityAssuranceRequest::CreateElasticityAssuranceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateElasticityAssurance")
{
setMethod(HttpRequest::Method::Post);
}
CreateElasticityAssuranceRequest::~CreateElasticityAssuranceRequest()
{}
long CreateElasticityAssuranceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateElasticityAssuranceRequest.h>
using AlibabaCloud::Ecs::Model::CreateElasticityAssuranceRequest;
CreateElasticityAssuranceRequest::CreateElasticityAssuranceRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateElasticityAssurance") {
setMethod(HttpRequest::Method::Post);
}
void CreateElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateElasticityAssuranceRequest::~CreateElasticityAssuranceRequest() {}
long CreateElasticityAssuranceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateElasticityAssuranceRequest::getClientToken()const
{
return clientToken_;
void CreateElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateElasticityAssuranceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateElasticityAssuranceRequest::getClientToken() const {
return clientToken_;
}
std::string CreateElasticityAssuranceRequest::getDescription()const
{
return description_;
void CreateElasticityAssuranceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateElasticityAssuranceRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateElasticityAssuranceRequest::getDescription() const {
return description_;
}
std::string CreateElasticityAssuranceRequest::getStartTime()const
{
return startTime_;
void CreateElasticityAssuranceRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateElasticityAssuranceRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
std::string CreateElasticityAssuranceRequest::getStartTime() const {
return startTime_;
}
std::string CreateElasticityAssuranceRequest::getPlatform()const
{
return platform_;
void CreateElasticityAssuranceRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
void CreateElasticityAssuranceRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
std::string CreateElasticityAssuranceRequest::getPlatform() const {
return platform_;
}
std::string CreateElasticityAssuranceRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CreateElasticityAssuranceRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setParameter(std::string("Platform"), platform);
}
void CreateElasticityAssuranceRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CreateElasticityAssuranceRequest::getResourceGroupId() const {
return resourceGroupId_;
}
std::string CreateElasticityAssuranceRequest::getPrivatePoolOptionsMatchCriteria()const
{
return privatePoolOptionsMatchCriteria_;
void CreateElasticityAssuranceRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CreateElasticityAssuranceRequest::setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria)
{
privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria;
setParameter("PrivatePoolOptionsMatchCriteria", privatePoolOptionsMatchCriteria);
std::string CreateElasticityAssuranceRequest::getPrivatePoolOptionsMatchCriteria() const {
return privatePoolOptionsMatchCriteria_;
}
std::string CreateElasticityAssuranceRequest::getRegionId()const
{
return regionId_;
void CreateElasticityAssuranceRequest::setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria) {
privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria;
setParameter(std::string("PrivatePoolOptions.MatchCriteria"), privatePoolOptionsMatchCriteria);
}
void CreateElasticityAssuranceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateElasticityAssuranceRequest::getRegionId() const {
return regionId_;
}
std::vector<std::string> CreateElasticityAssuranceRequest::getInstanceType()const
{
return instanceType_;
void CreateElasticityAssuranceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateElasticityAssuranceRequest::setInstanceType(const std::vector<std::string>& instanceType)
{
instanceType_ = instanceType;
for(int dep1 = 0; dep1!= instanceType.size(); dep1++) {
setParameter("InstanceType."+ std::to_string(dep1), instanceType.at(dep1));
}
std::vector<std::string> CreateElasticityAssuranceRequest::getInstanceType() const {
return instanceType_;
}
std::vector<CreateElasticityAssuranceRequest::Tag> CreateElasticityAssuranceRequest::getTag()const
{
return tag_;
void CreateElasticityAssuranceRequest::setInstanceType(const std::vector<std::string> &instanceType) {
instanceType_ = instanceType;
}
void CreateElasticityAssuranceRequest::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::vector<CreateElasticityAssuranceRequest::Tag> CreateElasticityAssuranceRequest::getTag() const {
return tag_;
}
std::string CreateElasticityAssuranceRequest::getInstanceChargeType()const
{
return instanceChargeType_;
void CreateElasticityAssuranceRequest::setTag(const std::vector<CreateElasticityAssuranceRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
void CreateElasticityAssuranceRequest::setInstanceChargeType(const std::string& instanceChargeType)
{
instanceChargeType_ = instanceChargeType;
setParameter("InstanceChargeType", instanceChargeType);
std::string CreateElasticityAssuranceRequest::getInstanceChargeType() const {
return instanceChargeType_;
}
int CreateElasticityAssuranceRequest::getPeriod()const
{
return period_;
void CreateElasticityAssuranceRequest::setInstanceChargeType(const std::string &instanceChargeType) {
instanceChargeType_ = instanceChargeType;
setParameter(std::string("InstanceChargeType"), instanceChargeType);
}
void CreateElasticityAssuranceRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
int CreateElasticityAssuranceRequest::getPeriod() const {
return period_;
}
std::string CreateElasticityAssuranceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateElasticityAssuranceRequest::setPeriod(int period) {
period_ = period;
setParameter(std::string("Period"), std::to_string(period));
}
void CreateElasticityAssuranceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateElasticityAssuranceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateElasticityAssuranceRequest::getPrivatePoolOptionsName()const
{
return privatePoolOptionsName_;
void CreateElasticityAssuranceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateElasticityAssuranceRequest::setPrivatePoolOptionsName(const std::string& privatePoolOptionsName)
{
privatePoolOptionsName_ = privatePoolOptionsName;
setParameter("PrivatePoolOptionsName", privatePoolOptionsName);
std::string CreateElasticityAssuranceRequest::getPrivatePoolOptionsName() const {
return privatePoolOptionsName_;
}
std::string CreateElasticityAssuranceRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateElasticityAssuranceRequest::setPrivatePoolOptionsName(const std::string &privatePoolOptionsName) {
privatePoolOptionsName_ = privatePoolOptionsName;
setParameter(std::string("PrivatePoolOptions.Name"), privatePoolOptionsName);
}
void CreateElasticityAssuranceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateElasticityAssuranceRequest::getOwnerAccount() const {
return ownerAccount_;
}
std::string CreateElasticityAssuranceRequest::getAssuranceTimes()const
{
return assuranceTimes_;
void CreateElasticityAssuranceRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateElasticityAssuranceRequest::setAssuranceTimes(const std::string& assuranceTimes)
{
assuranceTimes_ = assuranceTimes;
setParameter("AssuranceTimes", assuranceTimes);
std::string CreateElasticityAssuranceRequest::getAssuranceTimes() const {
return assuranceTimes_;
}
long CreateElasticityAssuranceRequest::getOwnerId()const
{
return ownerId_;
void CreateElasticityAssuranceRequest::setAssuranceTimes(const std::string &assuranceTimes) {
assuranceTimes_ = assuranceTimes;
setParameter(std::string("AssuranceTimes"), assuranceTimes);
}
void CreateElasticityAssuranceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateElasticityAssuranceRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateElasticityAssuranceRequest::getResourceType()const
{
return resourceType_;
void CreateElasticityAssuranceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateElasticityAssuranceRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
std::string CreateElasticityAssuranceRequest::getResourceType() const {
return resourceType_;
}
int CreateElasticityAssuranceRequest::getInstanceCpuCoreCount()const
{
return instanceCpuCoreCount_;
void CreateElasticityAssuranceRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
void CreateElasticityAssuranceRequest::setInstanceCpuCoreCount(int instanceCpuCoreCount)
{
instanceCpuCoreCount_ = instanceCpuCoreCount;
setParameter("InstanceCpuCoreCount", std::to_string(instanceCpuCoreCount));
int CreateElasticityAssuranceRequest::getInstanceCpuCoreCount() const {
return instanceCpuCoreCount_;
}
std::string CreateElasticityAssuranceRequest::getPeriodUnit()const
{
return periodUnit_;
void CreateElasticityAssuranceRequest::setInstanceCpuCoreCount(int instanceCpuCoreCount) {
instanceCpuCoreCount_ = instanceCpuCoreCount;
setParameter(std::string("InstanceCpuCoreCount"), std::to_string(instanceCpuCoreCount));
}
void CreateElasticityAssuranceRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setParameter("PeriodUnit", periodUnit);
std::string CreateElasticityAssuranceRequest::getPeriodUnit() const {
return periodUnit_;
}
std::vector<std::string> CreateElasticityAssuranceRequest::getZoneId()const
{
return zoneId_;
void CreateElasticityAssuranceRequest::setPeriodUnit(const std::string &periodUnit) {
periodUnit_ = periodUnit;
setParameter(std::string("PeriodUnit"), periodUnit);
}
void CreateElasticityAssuranceRequest::setZoneId(const std::vector<std::string>& zoneId)
{
zoneId_ = zoneId;
for(int dep1 = 0; dep1!= zoneId.size(); dep1++) {
setParameter("ZoneId."+ std::to_string(dep1), zoneId.at(dep1));
}
std::vector<std::string> CreateElasticityAssuranceRequest::getZoneId() const {
return zoneId_;
}
std::string CreateElasticityAssuranceRequest::getChargeType()const
{
return chargeType_;
void CreateElasticityAssuranceRequest::setZoneId(const std::vector<std::string> &zoneId) {
zoneId_ = zoneId;
}
void CreateElasticityAssuranceRequest::setChargeType(const std::string& chargeType)
{
chargeType_ = chargeType;
setParameter("ChargeType", chargeType);
std::string CreateElasticityAssuranceRequest::getChargeType() const {
return chargeType_;
}
std::string CreateElasticityAssuranceRequest::getPackageType()const
{
return packageType_;
void CreateElasticityAssuranceRequest::setChargeType(const std::string &chargeType) {
chargeType_ = chargeType;
setParameter(std::string("ChargeType"), chargeType);
}
void CreateElasticityAssuranceRequest::setPackageType(const std::string& packageType)
{
packageType_ = packageType;
setParameter("PackageType", packageType);
std::string CreateElasticityAssuranceRequest::getPackageType() const {
return packageType_;
}
int CreateElasticityAssuranceRequest::getInstanceAmount()const
{
return instanceAmount_;
void CreateElasticityAssuranceRequest::setPackageType(const std::string &packageType) {
packageType_ = packageType;
setParameter(std::string("PackageType"), packageType);
}
void CreateElasticityAssuranceRequest::setInstanceAmount(int instanceAmount)
{
instanceAmount_ = instanceAmount;
setParameter("InstanceAmount", std::to_string(instanceAmount));
int CreateElasticityAssuranceRequest::getInstanceAmount() const {
return instanceAmount_;
}
void CreateElasticityAssuranceRequest::setInstanceAmount(int instanceAmount) {
instanceAmount_ = instanceAmount;
setParameter(std::string("InstanceAmount"), std::to_string(instanceAmount));
}

View File

@@ -1,150 +1,126 @@
/*
* 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/CreateForwardEntryRequest.h>
using AlibabaCloud::Ecs::Model::CreateForwardEntryRequest;
CreateForwardEntryRequest::CreateForwardEntryRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateForwardEntry")
{
setMethod(HttpRequest::Method::Post);
}
CreateForwardEntryRequest::~CreateForwardEntryRequest()
{}
long CreateForwardEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateForwardEntryRequest.h>
using AlibabaCloud::Ecs::Model::CreateForwardEntryRequest;
CreateForwardEntryRequest::CreateForwardEntryRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateForwardEntry") {
setMethod(HttpRequest::Method::Post);
}
void CreateForwardEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateForwardEntryRequest::~CreateForwardEntryRequest() {}
long CreateForwardEntryRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateForwardEntryRequest::getForwardTableId()const
{
return forwardTableId_;
void CreateForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateForwardEntryRequest::setForwardTableId(const std::string& forwardTableId)
{
forwardTableId_ = forwardTableId;
setParameter("ForwardTableId", forwardTableId);
std::string CreateForwardEntryRequest::getForwardTableId() const {
return forwardTableId_;
}
std::string CreateForwardEntryRequest::getInternalIp()const
{
return internalIp_;
void CreateForwardEntryRequest::setForwardTableId(const std::string &forwardTableId) {
forwardTableId_ = forwardTableId;
setParameter(std::string("ForwardTableId"), forwardTableId);
}
void CreateForwardEntryRequest::setInternalIp(const std::string& internalIp)
{
internalIp_ = internalIp;
setParameter("InternalIp", internalIp);
std::string CreateForwardEntryRequest::getInternalIp() const {
return internalIp_;
}
std::string CreateForwardEntryRequest::getRegionId()const
{
return regionId_;
void CreateForwardEntryRequest::setInternalIp(const std::string &internalIp) {
internalIp_ = internalIp;
setParameter(std::string("InternalIp"), internalIp);
}
void CreateForwardEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateForwardEntryRequest::getRegionId() const {
return regionId_;
}
std::string CreateForwardEntryRequest::getExternalIp()const
{
return externalIp_;
void CreateForwardEntryRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateForwardEntryRequest::setExternalIp(const std::string& externalIp)
{
externalIp_ = externalIp;
setParameter("ExternalIp", externalIp);
std::string CreateForwardEntryRequest::getExternalIp() const {
return externalIp_;
}
std::string CreateForwardEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateForwardEntryRequest::setExternalIp(const std::string &externalIp) {
externalIp_ = externalIp;
setParameter(std::string("ExternalIp"), externalIp);
}
void CreateForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateForwardEntryRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateForwardEntryRequest::getIpProtocol()const
{
return ipProtocol_;
void CreateForwardEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateForwardEntryRequest::setIpProtocol(const std::string& ipProtocol)
{
ipProtocol_ = ipProtocol;
setParameter("IpProtocol", ipProtocol);
std::string CreateForwardEntryRequest::getIpProtocol() const {
return ipProtocol_;
}
std::string CreateForwardEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateForwardEntryRequest::setIpProtocol(const std::string &ipProtocol) {
ipProtocol_ = ipProtocol;
setParameter(std::string("IpProtocol"), ipProtocol);
}
void CreateForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateForwardEntryRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateForwardEntryRequest::getOwnerId()const
{
return ownerId_;
void CreateForwardEntryRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateForwardEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateForwardEntryRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateForwardEntryRequest::getInternalPort()const
{
return internalPort_;
void CreateForwardEntryRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateForwardEntryRequest::setInternalPort(const std::string& internalPort)
{
internalPort_ = internalPort;
setParameter("InternalPort", internalPort);
std::string CreateForwardEntryRequest::getInternalPort() const {
return internalPort_;
}
std::string CreateForwardEntryRequest::getExternalPort()const
{
return externalPort_;
void CreateForwardEntryRequest::setInternalPort(const std::string &internalPort) {
internalPort_ = internalPort;
setParameter(std::string("InternalPort"), internalPort);
}
void CreateForwardEntryRequest::setExternalPort(const std::string& externalPort)
{
externalPort_ = externalPort;
setParameter("ExternalPort", externalPort);
std::string CreateForwardEntryRequest::getExternalPort() const {
return externalPort_;
}
void CreateForwardEntryRequest::setExternalPort(const std::string &externalPort) {
externalPort_ = externalPort;
setParameter(std::string("ExternalPort"), externalPort);
}

View File

@@ -1,128 +1,108 @@
/*
* 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/CreateHaVipRequest.h>
using AlibabaCloud::Ecs::Model::CreateHaVipRequest;
CreateHaVipRequest::CreateHaVipRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateHaVip")
{
setMethod(HttpRequest::Method::Post);
}
CreateHaVipRequest::~CreateHaVipRequest()
{}
std::string CreateHaVipRequest::getIpAddress()const
{
return ipAddress_;
*/
#include <alibabacloud/ecs/model/CreateHaVipRequest.h>
using AlibabaCloud::Ecs::Model::CreateHaVipRequest;
CreateHaVipRequest::CreateHaVipRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateHaVip") {
setMethod(HttpRequest::Method::Post);
}
void CreateHaVipRequest::setIpAddress(const std::string& ipAddress)
{
ipAddress_ = ipAddress;
setParameter("IpAddress", ipAddress);
CreateHaVipRequest::~CreateHaVipRequest() {}
std::string CreateHaVipRequest::getIpAddress() const {
return ipAddress_;
}
long CreateHaVipRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void CreateHaVipRequest::setIpAddress(const std::string &ipAddress) {
ipAddress_ = ipAddress;
setParameter(std::string("IpAddress"), ipAddress);
}
void CreateHaVipRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long CreateHaVipRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateHaVipRequest::getClientToken()const
{
return clientToken_;
void CreateHaVipRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateHaVipRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateHaVipRequest::getClientToken() const {
return clientToken_;
}
std::string CreateHaVipRequest::getDescription()const
{
return description_;
void CreateHaVipRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateHaVipRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateHaVipRequest::getDescription() const {
return description_;
}
std::string CreateHaVipRequest::getRegionId()const
{
return regionId_;
void CreateHaVipRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateHaVipRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateHaVipRequest::getRegionId() const {
return regionId_;
}
std::string CreateHaVipRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateHaVipRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateHaVipRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateHaVipRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateHaVipRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateHaVipRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateHaVipRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateHaVipRequest::getOwnerId()const
{
return ownerId_;
void CreateHaVipRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateHaVipRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateHaVipRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateHaVipRequest::getVSwitchId()const
{
return vSwitchId_;
void CreateHaVipRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateHaVipRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
std::string CreateHaVipRequest::getVSwitchId() const {
return vSwitchId_;
}
void CreateHaVipRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setParameter(std::string("VSwitchId"), vSwitchId);
}

View File

@@ -1,117 +1,99 @@
/*
* 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/CreateHpcClusterRequest.h>
using AlibabaCloud::Ecs::Model::CreateHpcClusterRequest;
CreateHpcClusterRequest::CreateHpcClusterRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateHpcCluster")
{
setMethod(HttpRequest::Method::Post);
}
CreateHpcClusterRequest::~CreateHpcClusterRequest()
{}
long CreateHpcClusterRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateHpcClusterRequest.h>
using AlibabaCloud::Ecs::Model::CreateHpcClusterRequest;
CreateHpcClusterRequest::CreateHpcClusterRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateHpcCluster") {
setMethod(HttpRequest::Method::Post);
}
void CreateHpcClusterRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateHpcClusterRequest::~CreateHpcClusterRequest() {}
long CreateHpcClusterRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateHpcClusterRequest::getClientToken()const
{
return clientToken_;
void CreateHpcClusterRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateHpcClusterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateHpcClusterRequest::getClientToken() const {
return clientToken_;
}
std::string CreateHpcClusterRequest::getDescription()const
{
return description_;
void CreateHpcClusterRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateHpcClusterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateHpcClusterRequest::getDescription() const {
return description_;
}
std::string CreateHpcClusterRequest::getRegionId()const
{
return regionId_;
void CreateHpcClusterRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateHpcClusterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateHpcClusterRequest::getRegionId() const {
return regionId_;
}
std::string CreateHpcClusterRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateHpcClusterRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateHpcClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateHpcClusterRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateHpcClusterRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateHpcClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateHpcClusterRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateHpcClusterRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateHpcClusterRequest::getOwnerId()const
{
return ownerId_;
void CreateHpcClusterRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateHpcClusterRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateHpcClusterRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateHpcClusterRequest::getName()const
{
return name_;
void CreateHpcClusterRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateHpcClusterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string CreateHpcClusterRequest::getName() const {
return name_;
}
void CreateHpcClusterRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View File

@@ -1,177 +1,149 @@
/*
* 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/CreateImageComponentRequest.h>
using AlibabaCloud::Ecs::Model::CreateImageComponentRequest;
CreateImageComponentRequest::CreateImageComponentRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateImageComponent")
{
setMethod(HttpRequest::Method::Post);
}
CreateImageComponentRequest::~CreateImageComponentRequest()
{}
long CreateImageComponentRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateImageComponentRequest.h>
using AlibabaCloud::Ecs::Model::CreateImageComponentRequest;
CreateImageComponentRequest::CreateImageComponentRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateImageComponent") {
setMethod(HttpRequest::Method::Post);
}
void CreateImageComponentRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateImageComponentRequest::~CreateImageComponentRequest() {}
long CreateImageComponentRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateImageComponentRequest::getClientToken()const
{
return clientToken_;
void CreateImageComponentRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateImageComponentRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateImageComponentRequest::getClientToken() const {
return clientToken_;
}
std::string CreateImageComponentRequest::getDescription()const
{
return description_;
void CreateImageComponentRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateImageComponentRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateImageComponentRequest::getDescription() const {
return description_;
}
std::string CreateImageComponentRequest::getSystemType()const
{
return systemType_;
void CreateImageComponentRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateImageComponentRequest::setSystemType(const std::string& systemType)
{
systemType_ = systemType;
setParameter("SystemType", systemType);
std::string CreateImageComponentRequest::getSystemType() const {
return systemType_;
}
std::string CreateImageComponentRequest::getContent()const
{
return content_;
void CreateImageComponentRequest::setSystemType(const std::string &systemType) {
systemType_ = systemType;
setParameter(std::string("SystemType"), systemType);
}
void CreateImageComponentRequest::setContent(const std::string& content)
{
content_ = content;
setParameter("Content", content);
std::string CreateImageComponentRequest::getContent() const {
return content_;
}
std::string CreateImageComponentRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CreateImageComponentRequest::setContent(const std::string &content) {
content_ = content;
setParameter(std::string("Content"), content);
}
void CreateImageComponentRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CreateImageComponentRequest::getResourceGroupId() const {
return resourceGroupId_;
}
std::string CreateImageComponentRequest::getRegionId()const
{
return regionId_;
void CreateImageComponentRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CreateImageComponentRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateImageComponentRequest::getRegionId() const {
return regionId_;
}
std::vector<CreateImageComponentRequest::Tag> CreateImageComponentRequest::getTag()const
{
return tag_;
void CreateImageComponentRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateImageComponentRequest::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::vector<CreateImageComponentRequest::Tag> CreateImageComponentRequest::getTag() const {
return tag_;
}
std::string CreateImageComponentRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateImageComponentRequest::setTag(const std::vector<CreateImageComponentRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
void CreateImageComponentRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateImageComponentRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateImageComponentRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateImageComponentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateImageComponentRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateImageComponentRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateImageComponentRequest::getOwnerId()const
{
return ownerId_;
void CreateImageComponentRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateImageComponentRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateImageComponentRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateImageComponentRequest::getComponentType()const
{
return componentType_;
void CreateImageComponentRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateImageComponentRequest::setComponentType(const std::string& componentType)
{
componentType_ = componentType;
setParameter("ComponentType", componentType);
std::string CreateImageComponentRequest::getComponentType() const {
return componentType_;
}
std::string CreateImageComponentRequest::getName()const
{
return name_;
void CreateImageComponentRequest::setComponentType(const std::string &componentType) {
componentType_ = componentType;
setParameter(std::string("ComponentType"), componentType);
}
void CreateImageComponentRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string CreateImageComponentRequest::getName() const {
return name_;
}
void CreateImageComponentRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View File

@@ -1,269 +1,219 @@
/*
* 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/CreateImagePipelineRequest.h>
using AlibabaCloud::Ecs::Model::CreateImagePipelineRequest;
CreateImagePipelineRequest::CreateImagePipelineRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateImagePipeline")
{
setMethod(HttpRequest::Method::Post);
}
CreateImagePipelineRequest::~CreateImagePipelineRequest()
{}
std::string CreateImagePipelineRequest::getBaseImageType()const
{
return baseImageType_;
*/
#include <alibabacloud/ecs/model/CreateImagePipelineRequest.h>
using AlibabaCloud::Ecs::Model::CreateImagePipelineRequest;
CreateImagePipelineRequest::CreateImagePipelineRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateImagePipeline") {
setMethod(HttpRequest::Method::Post);
}
void CreateImagePipelineRequest::setBaseImageType(const std::string& baseImageType)
{
baseImageType_ = baseImageType;
setParameter("BaseImageType", baseImageType);
CreateImagePipelineRequest::~CreateImagePipelineRequest() {}
std::string CreateImagePipelineRequest::getBaseImageType() const {
return baseImageType_;
}
long CreateImagePipelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void CreateImagePipelineRequest::setBaseImageType(const std::string &baseImageType) {
baseImageType_ = baseImageType;
setParameter(std::string("BaseImageType"), baseImageType);
}
void CreateImagePipelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long CreateImagePipelineRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateImagePipelineRequest::getClientToken()const
{
return clientToken_;
void CreateImagePipelineRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateImagePipelineRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateImagePipelineRequest::getClientToken() const {
return clientToken_;
}
std::vector<std::string> CreateImagePipelineRequest::getToRegionId()const
{
return toRegionId_;
void CreateImagePipelineRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateImagePipelineRequest::setToRegionId(const std::vector<std::string>& toRegionId)
{
toRegionId_ = toRegionId;
for(int dep1 = 0; dep1!= toRegionId.size(); dep1++) {
setParameter("ToRegionId."+ std::to_string(dep1), toRegionId.at(dep1));
}
std::vector<std::string> CreateImagePipelineRequest::getToRegionId() const {
return toRegionId_;
}
int CreateImagePipelineRequest::getInternetMaxBandwidthOut()const
{
return internetMaxBandwidthOut_;
void CreateImagePipelineRequest::setToRegionId(const std::vector<std::string> &toRegionId) {
toRegionId_ = toRegionId;
}
void CreateImagePipelineRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut)
{
internetMaxBandwidthOut_ = internetMaxBandwidthOut;
setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut));
int CreateImagePipelineRequest::getInternetMaxBandwidthOut() const {
return internetMaxBandwidthOut_;
}
std::string CreateImagePipelineRequest::getDescription()const
{
return description_;
void CreateImagePipelineRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) {
internetMaxBandwidthOut_ = internetMaxBandwidthOut;
setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut));
}
void CreateImagePipelineRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateImagePipelineRequest::getDescription() const {
return description_;
}
std::string CreateImagePipelineRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CreateImagePipelineRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateImagePipelineRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CreateImagePipelineRequest::getResourceGroupId() const {
return resourceGroupId_;
}
std::string CreateImagePipelineRequest::getRegionId()const
{
return regionId_;
void CreateImagePipelineRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CreateImagePipelineRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateImagePipelineRequest::getRegionId() const {
return regionId_;
}
std::string CreateImagePipelineRequest::getImageName()const
{
return imageName_;
void CreateImagePipelineRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateImagePipelineRequest::setImageName(const std::string& imageName)
{
imageName_ = imageName;
setParameter("ImageName", imageName);
std::string CreateImagePipelineRequest::getImageName() const {
return imageName_;
}
int CreateImagePipelineRequest::getSystemDiskSize()const
{
return systemDiskSize_;
void CreateImagePipelineRequest::setImageName(const std::string &imageName) {
imageName_ = imageName;
setParameter(std::string("ImageName"), imageName);
}
void CreateImagePipelineRequest::setSystemDiskSize(int systemDiskSize)
{
systemDiskSize_ = systemDiskSize;
setParameter("SystemDiskSize", std::to_string(systemDiskSize));
int CreateImagePipelineRequest::getSystemDiskSize() const {
return systemDiskSize_;
}
std::string CreateImagePipelineRequest::getInstanceType()const
{
return instanceType_;
void CreateImagePipelineRequest::setSystemDiskSize(int systemDiskSize) {
systemDiskSize_ = systemDiskSize;
setParameter(std::string("SystemDiskSize"), std::to_string(systemDiskSize));
}
void CreateImagePipelineRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
std::string CreateImagePipelineRequest::getInstanceType() const {
return instanceType_;
}
std::vector<CreateImagePipelineRequest::Tag> CreateImagePipelineRequest::getTag()const
{
return tag_;
void CreateImagePipelineRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
void CreateImagePipelineRequest::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::vector<CreateImagePipelineRequest::Tag> CreateImagePipelineRequest::getTag() const {
return tag_;
}
std::string CreateImagePipelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateImagePipelineRequest::setTag(const std::vector<CreateImagePipelineRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
void CreateImagePipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateImagePipelineRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateImagePipelineRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateImagePipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateImagePipelineRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateImagePipelineRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateImagePipelineRequest::getOwnerId()const
{
return ownerId_;
void CreateImagePipelineRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateImagePipelineRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateImagePipelineRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateImagePipelineRequest::getBaseImage()const
{
return baseImage_;
void CreateImagePipelineRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateImagePipelineRequest::setBaseImage(const std::string& baseImage)
{
baseImage_ = baseImage;
setParameter("BaseImage", baseImage);
std::string CreateImagePipelineRequest::getBaseImage() const {
return baseImage_;
}
std::string CreateImagePipelineRequest::getVSwitchId()const
{
return vSwitchId_;
void CreateImagePipelineRequest::setBaseImage(const std::string &baseImage) {
baseImage_ = baseImage;
setParameter(std::string("BaseImage"), baseImage);
}
void CreateImagePipelineRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
std::string CreateImagePipelineRequest::getVSwitchId() const {
return vSwitchId_;
}
std::vector<long> CreateImagePipelineRequest::getAddAccount()const
{
return addAccount_;
void CreateImagePipelineRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setParameter(std::string("VSwitchId"), vSwitchId);
}
void CreateImagePipelineRequest::setAddAccount(const std::vector<long>& addAccount)
{
addAccount_ = addAccount;
for(int dep1 = 0; dep1!= addAccount.size(); dep1++) {
setParameter("AddAccount."+ std::to_string(dep1), std::to_string(addAccount.at(dep1)));
}
std::vector<long> CreateImagePipelineRequest::getAddAccount() const {
return addAccount_;
}
bool CreateImagePipelineRequest::getDeleteInstanceOnFailure()const
{
return deleteInstanceOnFailure_;
void CreateImagePipelineRequest::setAddAccount(const std::vector<long> &addAccount) {
addAccount_ = addAccount;
}
void CreateImagePipelineRequest::setDeleteInstanceOnFailure(bool deleteInstanceOnFailure)
{
deleteInstanceOnFailure_ = deleteInstanceOnFailure;
setParameter("DeleteInstanceOnFailure", deleteInstanceOnFailure ? "true" : "false");
bool CreateImagePipelineRequest::getDeleteInstanceOnFailure() const {
return deleteInstanceOnFailure_;
}
std::string CreateImagePipelineRequest::getName()const
{
return name_;
void CreateImagePipelineRequest::setDeleteInstanceOnFailure(bool deleteInstanceOnFailure) {
deleteInstanceOnFailure_ = deleteInstanceOnFailure;
setParameter(std::string("DeleteInstanceOnFailure"), deleteInstanceOnFailure ? "true" : "false");
}
void CreateImagePipelineRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string CreateImagePipelineRequest::getName() const {
return name_;
}
std::string CreateImagePipelineRequest::getBuildContent()const
{
return buildContent_;
void CreateImagePipelineRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
void CreateImagePipelineRequest::setBuildContent(const std::string& buildContent)
{
buildContent_ = buildContent;
setParameter("BuildContent", buildContent);
std::string CreateImagePipelineRequest::getBuildContent() const {
return buildContent_;
}
void CreateImagePipelineRequest::setBuildContent(const std::string &buildContent) {
buildContent_ = buildContent;
setParameter(std::string("BuildContent"), buildContent);
}

View File

@@ -1,228 +1,192 @@
/*
* 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/CreateImageRequest.h>
using AlibabaCloud::Ecs::Model::CreateImageRequest;
CreateImageRequest::CreateImageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateImage")
{
setMethod(HttpRequest::Method::Post);
}
CreateImageRequest::~CreateImageRequest()
{}
std::vector<CreateImageRequest::DiskDeviceMapping> CreateImageRequest::getDiskDeviceMapping()const
{
return diskDeviceMapping_;
*/
#include <alibabacloud/ecs/model/CreateImageRequest.h>
using AlibabaCloud::Ecs::Model::CreateImageRequest;
CreateImageRequest::CreateImageRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateImage") {
setMethod(HttpRequest::Method::Post);
}
void CreateImageRequest::setDiskDeviceMapping(const std::vector<DiskDeviceMapping>& diskDeviceMapping)
{
diskDeviceMapping_ = diskDeviceMapping;
for(int dep1 = 0; dep1!= diskDeviceMapping.size(); dep1++) {
auto diskDeviceMappingObj = diskDeviceMapping.at(dep1);
std::string diskDeviceMappingObjStr = "DiskDeviceMapping." + std::to_string(dep1 + 1);
setParameter(diskDeviceMappingObjStr + ".SnapshotId", diskDeviceMappingObj.snapshotId);
setParameter(diskDeviceMappingObjStr + ".Size", std::to_string(diskDeviceMappingObj.size));
setParameter(diskDeviceMappingObjStr + ".DiskType", diskDeviceMappingObj.diskType);
setParameter(diskDeviceMappingObjStr + ".Device", diskDeviceMappingObj.device);
}
CreateImageRequest::~CreateImageRequest() {}
std::vector<CreateImageRequest::DiskDeviceMapping> CreateImageRequest::getDiskDeviceMapping() const {
return diskDeviceMapping_;
}
long CreateImageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void CreateImageRequest::setDiskDeviceMapping(const std::vector<CreateImageRequest::DiskDeviceMapping> &diskDeviceMapping) {
diskDeviceMapping_ = diskDeviceMapping;
for(int dep1 = 0; dep1 != diskDeviceMapping.size(); dep1++) {
auto diskDeviceMappingObj = diskDeviceMapping.at(dep1);
std::string diskDeviceMappingObjStr = std::string("DiskDeviceMapping") + "." + std::to_string(dep1 + 1);
setParameter(diskDeviceMappingObjStr + ".SnapshotId", diskDeviceMappingObj.snapshotId);
setParameter(diskDeviceMappingObjStr + ".Size", std::to_string(diskDeviceMappingObj.size));
setParameter(diskDeviceMappingObjStr + ".DiskType", diskDeviceMappingObj.diskType);
setParameter(diskDeviceMappingObjStr + ".Device", diskDeviceMappingObj.device);
}
}
void CreateImageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long CreateImageRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateImageRequest::getSnapshotId()const
{
return snapshotId_;
void CreateImageRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateImageRequest::setSnapshotId(const std::string& snapshotId)
{
snapshotId_ = snapshotId;
setParameter("SnapshotId", snapshotId);
std::string CreateImageRequest::getSnapshotId() const {
return snapshotId_;
}
std::string CreateImageRequest::getClientToken()const
{
return clientToken_;
void CreateImageRequest::setSnapshotId(const std::string &snapshotId) {
snapshotId_ = snapshotId;
setParameter(std::string("SnapshotId"), snapshotId);
}
void CreateImageRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateImageRequest::getClientToken() const {
return clientToken_;
}
std::string CreateImageRequest::getDescription()const
{
return description_;
void CreateImageRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateImageRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateImageRequest::getDescription() const {
return description_;
}
std::string CreateImageRequest::getPlatform()const
{
return platform_;
void CreateImageRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateImageRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
std::string CreateImageRequest::getPlatform() const {
return platform_;
}
std::string CreateImageRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CreateImageRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setParameter(std::string("Platform"), platform);
}
void CreateImageRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CreateImageRequest::getResourceGroupId() const {
return resourceGroupId_;
}
std::string CreateImageRequest::getRegionId()const
{
return regionId_;
void CreateImageRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CreateImageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateImageRequest::getRegionId() const {
return regionId_;
}
std::string CreateImageRequest::getImageName()const
{
return imageName_;
void CreateImageRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateImageRequest::setImageName(const std::string& imageName)
{
imageName_ = imageName;
setParameter("ImageName", imageName);
std::string CreateImageRequest::getImageName() const {
return imageName_;
}
std::vector<CreateImageRequest::Tag> CreateImageRequest::getTag()const
{
return tag_;
void CreateImageRequest::setImageName(const std::string &imageName) {
imageName_ = imageName;
setParameter(std::string("ImageName"), imageName);
}
void CreateImageRequest::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 + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
std::vector<CreateImageRequest::Tag> CreateImageRequest::getTag() const {
return tag_;
}
std::string CreateImageRequest::getArchitecture()const
{
return architecture_;
void CreateImageRequest::setTag(const std::vector<CreateImageRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
void CreateImageRequest::setArchitecture(const std::string& architecture)
{
architecture_ = architecture;
setParameter("Architecture", architecture);
std::string CreateImageRequest::getArchitecture() const {
return architecture_;
}
std::string CreateImageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateImageRequest::setArchitecture(const std::string &architecture) {
architecture_ = architecture;
setParameter(std::string("Architecture"), architecture);
}
void CreateImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateImageRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateImageRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateImageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateImageRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateImageRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateImageRequest::getOwnerId()const
{
return ownerId_;
void CreateImageRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateImageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateImageRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateImageRequest::getInstanceId()const
{
return instanceId_;
void CreateImageRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateImageRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
std::string CreateImageRequest::getInstanceId() const {
return instanceId_;
}
std::string CreateImageRequest::getImageFamily()const
{
return imageFamily_;
void CreateImageRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
void CreateImageRequest::setImageFamily(const std::string& imageFamily)
{
imageFamily_ = imageFamily;
setParameter("ImageFamily", imageFamily);
std::string CreateImageRequest::getImageFamily() const {
return imageFamily_;
}
std::string CreateImageRequest::getImageVersion()const
{
return imageVersion_;
void CreateImageRequest::setImageFamily(const std::string &imageFamily) {
imageFamily_ = imageFamily;
setParameter(std::string("ImageFamily"), imageFamily);
}
void CreateImageRequest::setImageVersion(const std::string& imageVersion)
{
imageVersion_ = imageVersion;
setParameter("ImageVersion", imageVersion);
std::string CreateImageRequest::getImageVersion() const {
return imageVersion_;
}
void CreateImageRequest::setImageVersion(const std::string &imageVersion) {
imageVersion_ = imageVersion;
setParameter(std::string("ImageVersion"), imageVersion);
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,111 +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/CreateKeyPairRequest.h>
using AlibabaCloud::Ecs::Model::CreateKeyPairRequest;
CreateKeyPairRequest::CreateKeyPairRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateKeyPair")
{
setMethod(HttpRequest::Method::Post);
}
CreateKeyPairRequest::~CreateKeyPairRequest()
{}
long CreateKeyPairRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateKeyPairRequest.h>
using AlibabaCloud::Ecs::Model::CreateKeyPairRequest;
CreateKeyPairRequest::CreateKeyPairRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateKeyPair") {
setMethod(HttpRequest::Method::Post);
}
void CreateKeyPairRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateKeyPairRequest::~CreateKeyPairRequest() {}
long CreateKeyPairRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateKeyPairRequest::getKeyPairName()const
{
return keyPairName_;
void CreateKeyPairRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateKeyPairRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
std::string CreateKeyPairRequest::getKeyPairName() const {
return keyPairName_;
}
std::string CreateKeyPairRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CreateKeyPairRequest::setKeyPairName(const std::string &keyPairName) {
keyPairName_ = keyPairName;
setParameter(std::string("KeyPairName"), keyPairName);
}
void CreateKeyPairRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CreateKeyPairRequest::getResourceGroupId() const {
return resourceGroupId_;
}
std::string CreateKeyPairRequest::getRegionId()const
{
return regionId_;
void CreateKeyPairRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CreateKeyPairRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateKeyPairRequest::getRegionId() const {
return regionId_;
}
std::vector<CreateKeyPairRequest::Tag> CreateKeyPairRequest::getTag()const
{
return tag_;
void CreateKeyPairRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateKeyPairRequest::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 + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
std::vector<CreateKeyPairRequest::Tag> CreateKeyPairRequest::getTag() const {
return tag_;
}
std::string CreateKeyPairRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateKeyPairRequest::setTag(const std::vector<CreateKeyPairRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
void CreateKeyPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateKeyPairRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long CreateKeyPairRequest::getOwnerId()const
{
return ownerId_;
void CreateKeyPairRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateKeyPairRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateKeyPairRequest::getOwnerId() const {
return ownerId_;
}
void CreateKeyPairRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -39,14 +39,14 @@ void CreateKeyPairResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["KeyPairId"].isNull())
keyPairId_ = value["KeyPairId"].asString();
if(!value["KeyPairName"].isNull())
keyPairName_ = value["KeyPairName"].asString();
if(!value["KeyPairFingerPrint"].isNull())
keyPairFingerPrint_ = value["KeyPairFingerPrint"].asString();
if(!value["PrivateKeyBody"].isNull())
privateKeyBody_ = value["PrivateKeyBody"].asString();
if(!value["KeyPairName"].isNull())
keyPairName_ = value["KeyPairName"].asString();
if(!value["KeyPairId"].isNull())
keyPairId_ = value["KeyPairId"].asString();
if(!value["KeyPairFingerPrint"].isNull())
keyPairFingerPrint_ = value["KeyPairFingerPrint"].asString();
}

View File

@@ -1,614 +1,506 @@
/*
* 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/CreateLaunchTemplateRequest.h>
using AlibabaCloud::Ecs::Model::CreateLaunchTemplateRequest;
CreateLaunchTemplateRequest::CreateLaunchTemplateRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplate")
{
setMethod(HttpRequest::Method::Post);
}
CreateLaunchTemplateRequest::~CreateLaunchTemplateRequest()
{}
std::string CreateLaunchTemplateRequest::getLaunchTemplateName()const
{
return launchTemplateName_;
*/
#include <alibabacloud/ecs/model/CreateLaunchTemplateRequest.h>
using AlibabaCloud::Ecs::Model::CreateLaunchTemplateRequest;
CreateLaunchTemplateRequest::CreateLaunchTemplateRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplate") {
setMethod(HttpRequest::Method::Post);
}
CreateLaunchTemplateRequest::~CreateLaunchTemplateRequest() {}
std::string CreateLaunchTemplateRequest::getLaunchTemplateName() const {
return launchTemplateName_;
}
void CreateLaunchTemplateRequest::setLaunchTemplateName(const std::string& launchTemplateName)
{
launchTemplateName_ = launchTemplateName;
setParameter("LaunchTemplateName", launchTemplateName);
void CreateLaunchTemplateRequest::setLaunchTemplateName(const std::string &launchTemplateName) {
launchTemplateName_ = launchTemplateName;
setParameter(std::string("LaunchTemplateName"), launchTemplateName);
}
long CreateLaunchTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
long CreateLaunchTemplateRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void CreateLaunchTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
void CreateLaunchTemplateRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string CreateLaunchTemplateRequest::getSecurityEnhancementStrategy()const
{
return securityEnhancementStrategy_;
std::string CreateLaunchTemplateRequest::getSecurityEnhancementStrategy() const {
return securityEnhancementStrategy_;
}
void CreateLaunchTemplateRequest::setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy)
{
securityEnhancementStrategy_ = securityEnhancementStrategy;
setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy);
void CreateLaunchTemplateRequest::setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy) {
securityEnhancementStrategy_ = securityEnhancementStrategy;
setParameter(std::string("SecurityEnhancementStrategy"), securityEnhancementStrategy);
}
std::string CreateLaunchTemplateRequest::getNetworkType()const
{
return networkType_;
std::string CreateLaunchTemplateRequest::getNetworkType() const {
return networkType_;
}
void CreateLaunchTemplateRequest::setNetworkType(const std::string& networkType)
{
networkType_ = networkType;
setParameter("NetworkType", networkType);
void CreateLaunchTemplateRequest::setNetworkType(const std::string &networkType) {
networkType_ = networkType;
setParameter(std::string("NetworkType"), networkType);
}
std::string CreateLaunchTemplateRequest::getKeyPairName()const
{
return keyPairName_;
std::string CreateLaunchTemplateRequest::getKeyPairName() const {
return keyPairName_;
}
void CreateLaunchTemplateRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
void CreateLaunchTemplateRequest::setKeyPairName(const std::string &keyPairName) {
keyPairName_ = keyPairName;
setParameter(std::string("KeyPairName"), keyPairName);
}
float CreateLaunchTemplateRequest::getSpotPriceLimit()const
{
return spotPriceLimit_;
float CreateLaunchTemplateRequest::getSpotPriceLimit() const {
return spotPriceLimit_;
}
void CreateLaunchTemplateRequest::setSpotPriceLimit(float spotPriceLimit)
{
spotPriceLimit_ = spotPriceLimit;
setParameter("SpotPriceLimit", std::to_string(spotPriceLimit));
void CreateLaunchTemplateRequest::setSpotPriceLimit(float spotPriceLimit) {
spotPriceLimit_ = spotPriceLimit;
setParameter(std::string("SpotPriceLimit"), std::to_string(spotPriceLimit));
}
std::string CreateLaunchTemplateRequest::getImageOwnerAlias()const
{
return imageOwnerAlias_;
std::string CreateLaunchTemplateRequest::getImageOwnerAlias() const {
return imageOwnerAlias_;
}
void CreateLaunchTemplateRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
{
imageOwnerAlias_ = imageOwnerAlias;
setParameter("ImageOwnerAlias", imageOwnerAlias);
void CreateLaunchTemplateRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) {
imageOwnerAlias_ = imageOwnerAlias;
setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias);
}
std::string CreateLaunchTemplateRequest::getResourceGroupId()const
{
return resourceGroupId_;
std::string CreateLaunchTemplateRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateLaunchTemplateRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
void CreateLaunchTemplateRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateLaunchTemplateRequest::getHostName()const
{
return hostName_;
std::string CreateLaunchTemplateRequest::getHostName() const {
return hostName_;
}
void CreateLaunchTemplateRequest::setHostName(const std::string& hostName)
{
hostName_ = hostName;
setParameter("HostName", hostName);
void CreateLaunchTemplateRequest::setHostName(const std::string &hostName) {
hostName_ = hostName;
setParameter(std::string("HostName"), hostName);
}
int CreateLaunchTemplateRequest::getSystemDiskIops()const
{
return systemDiskIops_;
int CreateLaunchTemplateRequest::getSystemDiskIops() const {
return systemDiskIops_;
}
void CreateLaunchTemplateRequest::setSystemDiskIops(int systemDiskIops)
{
systemDiskIops_ = systemDiskIops;
setParameter("SystemDiskIops", std::to_string(systemDiskIops));
void CreateLaunchTemplateRequest::setSystemDiskIops(int systemDiskIops) {
systemDiskIops_ = systemDiskIops;
setParameter(std::string("SystemDisk.Iops"), std::to_string(systemDiskIops));
}
std::vector<CreateLaunchTemplateRequest::TemplateTag> CreateLaunchTemplateRequest::getTemplateTag()const
{
return templateTag_;
std::vector<CreateLaunchTemplateRequest::TemplateTag> CreateLaunchTemplateRequest::getTemplateTag() const {
return templateTag_;
}
void CreateLaunchTemplateRequest::setTemplateTag(const std::vector<TemplateTag>& templateTag)
{
templateTag_ = templateTag;
for(int dep1 = 0; dep1!= templateTag.size(); dep1++) {
auto templateTagObj = templateTag.at(dep1);
std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1);
setParameter(templateTagObjStr + ".Key", templateTagObj.key);
setParameter(templateTagObjStr + ".Value", templateTagObj.value);
}
void CreateLaunchTemplateRequest::setTemplateTag(const std::vector<CreateLaunchTemplateRequest::TemplateTag> &templateTag) {
templateTag_ = templateTag;
for(int dep1 = 0; dep1 != templateTag.size(); dep1++) {
auto templateTagObj = templateTag.at(dep1);
std::string templateTagObjStr = std::string("TemplateTag") + "." + std::to_string(dep1 + 1);
setParameter(templateTagObjStr + ".Key", templateTagObj.key);
setParameter(templateTagObjStr + ".Value", templateTagObj.value);
}
}
std::vector<CreateLaunchTemplateRequest::Tag> CreateLaunchTemplateRequest::getTag()const
{
return tag_;
std::vector<CreateLaunchTemplateRequest::Tag> CreateLaunchTemplateRequest::getTag() const {
return tag_;
}
void CreateLaunchTemplateRequest::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);
}
void CreateLaunchTemplateRequest::setTag(const std::vector<CreateLaunchTemplateRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
int CreateLaunchTemplateRequest::getPeriod()const
{
return period_;
int CreateLaunchTemplateRequest::getPeriod() const {
return period_;
}
void CreateLaunchTemplateRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
void CreateLaunchTemplateRequest::setPeriod(int period) {
period_ = period;
setParameter(std::string("Period"), std::to_string(period));
}
std::string CreateLaunchTemplateRequest::getTemplateResourceGroupId()const
{
return templateResourceGroupId_;
std::string CreateLaunchTemplateRequest::getTemplateResourceGroupId() const {
return templateResourceGroupId_;
}
void CreateLaunchTemplateRequest::setTemplateResourceGroupId(const std::string& templateResourceGroupId)
{
templateResourceGroupId_ = templateResourceGroupId;
setParameter("TemplateResourceGroupId", templateResourceGroupId);
void CreateLaunchTemplateRequest::setTemplateResourceGroupId(const std::string &templateResourceGroupId) {
templateResourceGroupId_ = templateResourceGroupId;
setParameter(std::string("TemplateResourceGroupId"), templateResourceGroupId);
}
long CreateLaunchTemplateRequest::getOwnerId()const
{
return ownerId_;
long CreateLaunchTemplateRequest::getOwnerId() const {
return ownerId_;
}
void CreateLaunchTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
void CreateLaunchTemplateRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string CreateLaunchTemplateRequest::getVSwitchId()const
{
return vSwitchId_;
std::string CreateLaunchTemplateRequest::getVSwitchId() const {
return vSwitchId_;
}
void CreateLaunchTemplateRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
void CreateLaunchTemplateRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setParameter(std::string("VSwitchId"), vSwitchId);
}
std::string CreateLaunchTemplateRequest::getSpotStrategy()const
{
return spotStrategy_;
std::string CreateLaunchTemplateRequest::getSpotStrategy() const {
return spotStrategy_;
}
void CreateLaunchTemplateRequest::setSpotStrategy(const std::string& spotStrategy)
{
spotStrategy_ = spotStrategy;
setParameter("SpotStrategy", spotStrategy);
void CreateLaunchTemplateRequest::setSpotStrategy(const std::string &spotStrategy) {
spotStrategy_ = spotStrategy;
setParameter(std::string("SpotStrategy"), spotStrategy);
}
std::string CreateLaunchTemplateRequest::getPrivateIpAddress()const
{
return privateIpAddress_;
std::string CreateLaunchTemplateRequest::getPrivateIpAddress() const {
return privateIpAddress_;
}
void CreateLaunchTemplateRequest::setPrivateIpAddress(const std::string& privateIpAddress)
{
privateIpAddress_ = privateIpAddress;
setParameter("PrivateIpAddress", privateIpAddress);
void CreateLaunchTemplateRequest::setPrivateIpAddress(const std::string &privateIpAddress) {
privateIpAddress_ = privateIpAddress;
setParameter(std::string("PrivateIpAddress"), privateIpAddress);
}
std::string CreateLaunchTemplateRequest::getInstanceName()const
{
return instanceName_;
std::string CreateLaunchTemplateRequest::getInstanceName() const {
return instanceName_;
}
void CreateLaunchTemplateRequest::setInstanceName(const std::string& instanceName)
{
instanceName_ = instanceName;
setParameter("InstanceName", instanceName);
void CreateLaunchTemplateRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("InstanceName"), instanceName);
}
std::string CreateLaunchTemplateRequest::getInternetChargeType()const
{
return internetChargeType_;
std::string CreateLaunchTemplateRequest::getInternetChargeType() const {
return internetChargeType_;
}
void CreateLaunchTemplateRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
void CreateLaunchTemplateRequest::setInternetChargeType(const std::string &internetChargeType) {
internetChargeType_ = internetChargeType;
setParameter(std::string("InternetChargeType"), internetChargeType);
}
std::string CreateLaunchTemplateRequest::getZoneId()const
{
return zoneId_;
std::string CreateLaunchTemplateRequest::getZoneId() const {
return zoneId_;
}
void CreateLaunchTemplateRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
void CreateLaunchTemplateRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}
int CreateLaunchTemplateRequest::getInternetMaxBandwidthIn()const
{
return internetMaxBandwidthIn_;
int CreateLaunchTemplateRequest::getInternetMaxBandwidthIn() const {
return internetMaxBandwidthIn_;
}
void CreateLaunchTemplateRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn)
{
internetMaxBandwidthIn_ = internetMaxBandwidthIn;
setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn));
void CreateLaunchTemplateRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) {
internetMaxBandwidthIn_ = internetMaxBandwidthIn;
setParameter(std::string("InternetMaxBandwidthIn"), std::to_string(internetMaxBandwidthIn));
}
std::string CreateLaunchTemplateRequest::getVersionDescription()const
{
return versionDescription_;
std::string CreateLaunchTemplateRequest::getVersionDescription() const {
return versionDescription_;
}
void CreateLaunchTemplateRequest::setVersionDescription(const std::string& versionDescription)
{
versionDescription_ = versionDescription;
setParameter("VersionDescription", versionDescription);
void CreateLaunchTemplateRequest::setVersionDescription(const std::string &versionDescription) {
versionDescription_ = versionDescription;
setParameter(std::string("VersionDescription"), versionDescription);
}
bool CreateLaunchTemplateRequest::getSystemDiskDeleteWithInstance()const
{
return systemDiskDeleteWithInstance_;
bool CreateLaunchTemplateRequest::getSystemDiskDeleteWithInstance() const {
return systemDiskDeleteWithInstance_;
}
void CreateLaunchTemplateRequest::setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance)
{
systemDiskDeleteWithInstance_ = systemDiskDeleteWithInstance;
setParameter("SystemDiskDeleteWithInstance", systemDiskDeleteWithInstance ? "true" : "false");
void CreateLaunchTemplateRequest::setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance) {
systemDiskDeleteWithInstance_ = systemDiskDeleteWithInstance;
setParameter(std::string("SystemDisk.DeleteWithInstance"), systemDiskDeleteWithInstance ? "true" : "false");
}
std::string CreateLaunchTemplateRequest::getImageId()const
{
return imageId_;
std::string CreateLaunchTemplateRequest::getImageId() const {
return imageId_;
}
void CreateLaunchTemplateRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
void CreateLaunchTemplateRequest::setImageId(const std::string &imageId) {
imageId_ = imageId;
setParameter(std::string("ImageId"), imageId);
}
std::string CreateLaunchTemplateRequest::getIoOptimized()const
{
return ioOptimized_;
std::string CreateLaunchTemplateRequest::getIoOptimized() const {
return ioOptimized_;
}
void CreateLaunchTemplateRequest::setIoOptimized(const std::string& ioOptimized)
{
ioOptimized_ = ioOptimized;
setParameter("IoOptimized", ioOptimized);
void CreateLaunchTemplateRequest::setIoOptimized(const std::string &ioOptimized) {
ioOptimized_ = ioOptimized;
setParameter(std::string("IoOptimized"), ioOptimized);
}
std::string CreateLaunchTemplateRequest::getSecurityGroupId()const
{
return securityGroupId_;
std::string CreateLaunchTemplateRequest::getSecurityGroupId() const {
return securityGroupId_;
}
void CreateLaunchTemplateRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
void CreateLaunchTemplateRequest::setSecurityGroupId(const std::string &securityGroupId) {
securityGroupId_ = securityGroupId;
setParameter(std::string("SecurityGroupId"), securityGroupId);
}
int CreateLaunchTemplateRequest::getInternetMaxBandwidthOut()const
{
return internetMaxBandwidthOut_;
int CreateLaunchTemplateRequest::getInternetMaxBandwidthOut() const {
return internetMaxBandwidthOut_;
}
void CreateLaunchTemplateRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut)
{
internetMaxBandwidthOut_ = internetMaxBandwidthOut;
setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut));
void CreateLaunchTemplateRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) {
internetMaxBandwidthOut_ = internetMaxBandwidthOut;
setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut));
}
std::string CreateLaunchTemplateRequest::getDescription()const
{
return description_;
std::string CreateLaunchTemplateRequest::getDescription() const {
return description_;
}
void CreateLaunchTemplateRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
void CreateLaunchTemplateRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateLaunchTemplateRequest::getSystemDiskCategory()const
{
return systemDiskCategory_;
std::string CreateLaunchTemplateRequest::getSystemDiskCategory() const {
return systemDiskCategory_;
}
void CreateLaunchTemplateRequest::setSystemDiskCategory(const std::string& systemDiskCategory)
{
systemDiskCategory_ = systemDiskCategory;
setParameter("SystemDiskCategory", systemDiskCategory);
void CreateLaunchTemplateRequest::setSystemDiskCategory(const std::string &systemDiskCategory) {
systemDiskCategory_ = systemDiskCategory;
setParameter(std::string("SystemDisk.Category"), systemDiskCategory);
}
std::string CreateLaunchTemplateRequest::getSystemDiskPerformanceLevel()const
{
return systemDiskPerformanceLevel_;
std::string CreateLaunchTemplateRequest::getSystemDiskPerformanceLevel() const {
return systemDiskPerformanceLevel_;
}
void CreateLaunchTemplateRequest::setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel)
{
systemDiskPerformanceLevel_ = systemDiskPerformanceLevel;
setParameter("SystemDiskPerformanceLevel", systemDiskPerformanceLevel);
void CreateLaunchTemplateRequest::setSystemDiskPerformanceLevel(const std::string &systemDiskPerformanceLevel) {
systemDiskPerformanceLevel_ = systemDiskPerformanceLevel;
setParameter(std::string("SystemDisk.PerformanceLevel"), systemDiskPerformanceLevel);
}
std::string CreateLaunchTemplateRequest::getUserData()const
{
return userData_;
std::string CreateLaunchTemplateRequest::getUserData() const {
return userData_;
}
void CreateLaunchTemplateRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
void CreateLaunchTemplateRequest::setUserData(const std::string &userData) {
userData_ = userData;
setParameter(std::string("UserData"), userData);
}
bool CreateLaunchTemplateRequest::getPasswordInherit()const
{
return passwordInherit_;
bool CreateLaunchTemplateRequest::getPasswordInherit() const {
return passwordInherit_;
}
void CreateLaunchTemplateRequest::setPasswordInherit(bool passwordInherit)
{
passwordInherit_ = passwordInherit;
setParameter("PasswordInherit", passwordInherit ? "true" : "false");
void CreateLaunchTemplateRequest::setPasswordInherit(bool passwordInherit) {
passwordInherit_ = passwordInherit;
setParameter(std::string("PasswordInherit"), passwordInherit ? "true" : "false");
}
std::string CreateLaunchTemplateRequest::getRegionId()const
{
return regionId_;
std::string CreateLaunchTemplateRequest::getRegionId() const {
return regionId_;
}
void CreateLaunchTemplateRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
void CreateLaunchTemplateRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string CreateLaunchTemplateRequest::getInstanceType()const
{
return instanceType_;
std::string CreateLaunchTemplateRequest::getInstanceType() const {
return instanceType_;
}
void CreateLaunchTemplateRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
void CreateLaunchTemplateRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string CreateLaunchTemplateRequest::getInstanceChargeType()const
{
return instanceChargeType_;
std::string CreateLaunchTemplateRequest::getInstanceChargeType() const {
return instanceChargeType_;
}
void CreateLaunchTemplateRequest::setInstanceChargeType(const std::string& instanceChargeType)
{
instanceChargeType_ = instanceChargeType;
setParameter("InstanceChargeType", instanceChargeType);
void CreateLaunchTemplateRequest::setInstanceChargeType(const std::string &instanceChargeType) {
instanceChargeType_ = instanceChargeType;
setParameter(std::string("InstanceChargeType"), instanceChargeType);
}
bool CreateLaunchTemplateRequest::getEnableVmOsConfig()const
{
return enableVmOsConfig_;
bool CreateLaunchTemplateRequest::getEnableVmOsConfig() const {
return enableVmOsConfig_;
}
void CreateLaunchTemplateRequest::setEnableVmOsConfig(bool enableVmOsConfig)
{
enableVmOsConfig_ = enableVmOsConfig;
setParameter("EnableVmOsConfig", enableVmOsConfig ? "true" : "false");
void CreateLaunchTemplateRequest::setEnableVmOsConfig(bool enableVmOsConfig) {
enableVmOsConfig_ = enableVmOsConfig;
setParameter(std::string("EnableVmOsConfig"), enableVmOsConfig ? "true" : "false");
}
std::vector<CreateLaunchTemplateRequest::NetworkInterface> CreateLaunchTemplateRequest::getNetworkInterface()const
{
return networkInterface_;
std::string CreateLaunchTemplateRequest::getDeploymentSetId() const {
return deploymentSetId_;
}
void CreateLaunchTemplateRequest::setNetworkInterface(const std::vector<NetworkInterface>& networkInterface)
{
networkInterface_ = networkInterface;
for(int dep1 = 0; dep1!= networkInterface.size(); dep1++) {
auto networkInterfaceObj = networkInterface.at(dep1);
std::string networkInterfaceObjStr = "NetworkInterface." + std::to_string(dep1 + 1);
setParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress);
setParameter(networkInterfaceObjStr + ".VSwitchId", networkInterfaceObj.vSwitchId);
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));
}
}
void CreateLaunchTemplateRequest::setDeploymentSetId(const std::string &deploymentSetId) {
deploymentSetId_ = deploymentSetId;
setParameter(std::string("DeploymentSetId"), deploymentSetId);
}
std::string CreateLaunchTemplateRequest::getDeploymentSetId()const
{
return deploymentSetId_;
std::vector<CreateLaunchTemplateRequest::NetworkInterface> CreateLaunchTemplateRequest::getNetworkInterface() const {
return networkInterface_;
}
void CreateLaunchTemplateRequest::setDeploymentSetId(const std::string& deploymentSetId)
{
deploymentSetId_ = deploymentSetId;
setParameter("DeploymentSetId", deploymentSetId);
void CreateLaunchTemplateRequest::setNetworkInterface(const std::vector<CreateLaunchTemplateRequest::NetworkInterface> &networkInterface) {
networkInterface_ = networkInterface;
for(int dep1 = 0; dep1 != networkInterface.size(); dep1++) {
auto networkInterfaceObj = networkInterface.at(dep1);
std::string networkInterfaceObjStr = std::string("NetworkInterface") + "." + std::to_string(dep1 + 1);
setParameter(networkInterfaceObjStr + ".VSwitchId", networkInterfaceObj.vSwitchId);
setParameter(networkInterfaceObjStr + ".NetworkInterfaceName", networkInterfaceObj.networkInterfaceName);
setParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description);
setParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId);
setParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress);
}
}
std::string CreateLaunchTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
std::string CreateLaunchTemplateRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void CreateLaunchTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
void CreateLaunchTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string CreateLaunchTemplateRequest::getOwnerAccount()const
{
return ownerAccount_;
std::string CreateLaunchTemplateRequest::getOwnerAccount() const {
return ownerAccount_;
}
void CreateLaunchTemplateRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
void CreateLaunchTemplateRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
std::string CreateLaunchTemplateRequest::getSystemDiskDiskName()const
{
return systemDiskDiskName_;
std::string CreateLaunchTemplateRequest::getSystemDiskDiskName() const {
return systemDiskDiskName_;
}
void CreateLaunchTemplateRequest::setSystemDiskDiskName(const std::string& systemDiskDiskName)
{
systemDiskDiskName_ = systemDiskDiskName;
setParameter("SystemDiskDiskName", systemDiskDiskName);
void CreateLaunchTemplateRequest::setSystemDiskDiskName(const std::string &systemDiskDiskName) {
systemDiskDiskName_ = systemDiskDiskName;
setParameter(std::string("SystemDisk.DiskName"), systemDiskDiskName);
}
std::string CreateLaunchTemplateRequest::getRamRoleName()const
{
return ramRoleName_;
std::string CreateLaunchTemplateRequest::getRamRoleName() const {
return ramRoleName_;
}
void CreateLaunchTemplateRequest::setRamRoleName(const std::string& ramRoleName)
{
ramRoleName_ = ramRoleName;
setParameter("RamRoleName", ramRoleName);
void CreateLaunchTemplateRequest::setRamRoleName(const std::string &ramRoleName) {
ramRoleName_ = ramRoleName;
setParameter(std::string("RamRoleName"), ramRoleName);
}
std::string CreateLaunchTemplateRequest::getAutoReleaseTime()const
{
return autoReleaseTime_;
std::string CreateLaunchTemplateRequest::getAutoReleaseTime() const {
return autoReleaseTime_;
}
void CreateLaunchTemplateRequest::setAutoReleaseTime(const std::string& autoReleaseTime)
{
autoReleaseTime_ = autoReleaseTime;
setParameter("AutoReleaseTime", autoReleaseTime);
void CreateLaunchTemplateRequest::setAutoReleaseTime(const std::string &autoReleaseTime) {
autoReleaseTime_ = autoReleaseTime;
setParameter(std::string("AutoReleaseTime"), autoReleaseTime);
}
int CreateLaunchTemplateRequest::getSpotDuration()const
{
return spotDuration_;
int CreateLaunchTemplateRequest::getSpotDuration() const {
return spotDuration_;
}
void CreateLaunchTemplateRequest::setSpotDuration(int spotDuration)
{
spotDuration_ = spotDuration;
setParameter("SpotDuration", std::to_string(spotDuration));
void CreateLaunchTemplateRequest::setSpotDuration(int spotDuration) {
spotDuration_ = spotDuration;
setParameter(std::string("SpotDuration"), std::to_string(spotDuration));
}
std::vector<std::string> CreateLaunchTemplateRequest::getSecurityGroupIds()const
{
return securityGroupIds_;
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));
}
void CreateLaunchTemplateRequest::setSecurityGroupIds(const std::vector<std::string> &securityGroupIds) {
securityGroupIds_ = securityGroupIds;
}
std::vector<CreateLaunchTemplateRequest::DataDisk> CreateLaunchTemplateRequest::getDataDisk()const
{
return dataDisk_;
std::vector<CreateLaunchTemplateRequest::DataDisk> CreateLaunchTemplateRequest::getDataDisk() const {
return dataDisk_;
}
void CreateLaunchTemplateRequest::setDataDisk(const std::vector<DataDisk>& dataDisk)
{
dataDisk_ = dataDisk;
for(int dep1 = 0; dep1!= dataDisk.size(); dep1++) {
auto dataDiskObj = dataDisk.at(dep1);
std::string dataDiskObjStr = "DataDisk." + std::to_string(dep1 + 1);
setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size));
setParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId);
setParameter(dataDiskObjStr + ".Category", dataDiskObj.category);
setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted);
setParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName);
setParameter(dataDiskObjStr + ".Description", dataDiskObj.description);
setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false");
setParameter(dataDiskObjStr + ".Device", dataDiskObj.device);
setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel);
}
void CreateLaunchTemplateRequest::setDataDisk(const std::vector<CreateLaunchTemplateRequest::DataDisk> &dataDisk) {
dataDisk_ = dataDisk;
for(int dep1 = 0; dep1 != dataDisk.size(); dep1++) {
auto dataDiskObj = dataDisk.at(dep1);
std::string dataDiskObjStr = std::string("DataDisk") + "." + std::to_string(dep1 + 1);
setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel);
setParameter(dataDiskObjStr + ".Description", dataDiskObj.description);
setParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId);
setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size));
setParameter(dataDiskObjStr + ".Device", dataDiskObj.device);
setParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName);
setParameter(dataDiskObjStr + ".Category", dataDiskObj.category);
setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false");
setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted);
}
}
int CreateLaunchTemplateRequest::getSystemDiskSize()const
{
return systemDiskSize_;
int CreateLaunchTemplateRequest::getSystemDiskSize() const {
return systemDiskSize_;
}
void CreateLaunchTemplateRequest::setSystemDiskSize(int systemDiskSize)
{
systemDiskSize_ = systemDiskSize;
setParameter("SystemDiskSize", std::to_string(systemDiskSize));
void CreateLaunchTemplateRequest::setSystemDiskSize(int systemDiskSize) {
systemDiskSize_ = systemDiskSize;
setParameter(std::string("SystemDisk.Size"), std::to_string(systemDiskSize));
}
std::string CreateLaunchTemplateRequest::getVpcId()const
{
return vpcId_;
std::string CreateLaunchTemplateRequest::getVpcId() const {
return vpcId_;
}
void CreateLaunchTemplateRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
void CreateLaunchTemplateRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setParameter(std::string("VpcId"), vpcId);
}
std::string CreateLaunchTemplateRequest::getSystemDiskDescription()const
{
return systemDiskDescription_;
std::string CreateLaunchTemplateRequest::getSystemDiskDescription() const {
return systemDiskDescription_;
}
void CreateLaunchTemplateRequest::setSystemDiskDescription(const std::string& systemDiskDescription)
{
systemDiskDescription_ = systemDiskDescription;
setParameter("SystemDiskDescription", systemDiskDescription);
void CreateLaunchTemplateRequest::setSystemDiskDescription(const std::string &systemDiskDescription) {
systemDiskDescription_ = systemDiskDescription;
setParameter(std::string("SystemDisk.Description"), systemDiskDescription);
}

View File

@@ -1,598 +1,492 @@
/*
* 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/CreateLaunchTemplateVersionRequest.h>
using AlibabaCloud::Ecs::Model::CreateLaunchTemplateVersionRequest;
CreateLaunchTemplateVersionRequest::CreateLaunchTemplateVersionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplateVersion")
{
setMethod(HttpRequest::Method::Post);
}
CreateLaunchTemplateVersionRequest::~CreateLaunchTemplateVersionRequest()
{}
std::string CreateLaunchTemplateVersionRequest::getLaunchTemplateName()const
{
return launchTemplateName_;
*/
#include <alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h>
using AlibabaCloud::Ecs::Model::CreateLaunchTemplateVersionRequest;
CreateLaunchTemplateVersionRequest::CreateLaunchTemplateVersionRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplateVersion") {
setMethod(HttpRequest::Method::Post);
}
CreateLaunchTemplateVersionRequest::~CreateLaunchTemplateVersionRequest() {}
std::string CreateLaunchTemplateVersionRequest::getLaunchTemplateName() const {
return launchTemplateName_;
}
void CreateLaunchTemplateVersionRequest::setLaunchTemplateName(const std::string& launchTemplateName)
{
launchTemplateName_ = launchTemplateName;
setParameter("LaunchTemplateName", launchTemplateName);
void CreateLaunchTemplateVersionRequest::setLaunchTemplateName(const std::string &launchTemplateName) {
launchTemplateName_ = launchTemplateName;
setParameter(std::string("LaunchTemplateName"), launchTemplateName);
}
long CreateLaunchTemplateVersionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
long CreateLaunchTemplateVersionRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void CreateLaunchTemplateVersionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
void CreateLaunchTemplateVersionRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string CreateLaunchTemplateVersionRequest::getSecurityEnhancementStrategy()const
{
return securityEnhancementStrategy_;
std::string CreateLaunchTemplateVersionRequest::getSecurityEnhancementStrategy() const {
return securityEnhancementStrategy_;
}
void CreateLaunchTemplateVersionRequest::setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy)
{
securityEnhancementStrategy_ = securityEnhancementStrategy;
setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy);
void CreateLaunchTemplateVersionRequest::setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy) {
securityEnhancementStrategy_ = securityEnhancementStrategy;
setParameter(std::string("SecurityEnhancementStrategy"), securityEnhancementStrategy);
}
std::string CreateLaunchTemplateVersionRequest::getNetworkType()const
{
return networkType_;
std::string CreateLaunchTemplateVersionRequest::getNetworkType() const {
return networkType_;
}
void CreateLaunchTemplateVersionRequest::setNetworkType(const std::string& networkType)
{
networkType_ = networkType;
setParameter("NetworkType", networkType);
void CreateLaunchTemplateVersionRequest::setNetworkType(const std::string &networkType) {
networkType_ = networkType;
setParameter(std::string("NetworkType"), networkType);
}
std::string CreateLaunchTemplateVersionRequest::getKeyPairName()const
{
return keyPairName_;
std::string CreateLaunchTemplateVersionRequest::getKeyPairName() const {
return keyPairName_;
}
void CreateLaunchTemplateVersionRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
void CreateLaunchTemplateVersionRequest::setKeyPairName(const std::string &keyPairName) {
keyPairName_ = keyPairName;
setParameter(std::string("KeyPairName"), keyPairName);
}
float CreateLaunchTemplateVersionRequest::getSpotPriceLimit()const
{
return spotPriceLimit_;
float CreateLaunchTemplateVersionRequest::getSpotPriceLimit() const {
return spotPriceLimit_;
}
void CreateLaunchTemplateVersionRequest::setSpotPriceLimit(float spotPriceLimit)
{
spotPriceLimit_ = spotPriceLimit;
setParameter("SpotPriceLimit", std::to_string(spotPriceLimit));
void CreateLaunchTemplateVersionRequest::setSpotPriceLimit(float spotPriceLimit) {
spotPriceLimit_ = spotPriceLimit;
setParameter(std::string("SpotPriceLimit"), std::to_string(spotPriceLimit));
}
std::string CreateLaunchTemplateVersionRequest::getImageOwnerAlias()const
{
return imageOwnerAlias_;
std::string CreateLaunchTemplateVersionRequest::getImageOwnerAlias() const {
return imageOwnerAlias_;
}
void CreateLaunchTemplateVersionRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
{
imageOwnerAlias_ = imageOwnerAlias;
setParameter("ImageOwnerAlias", imageOwnerAlias);
void CreateLaunchTemplateVersionRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) {
imageOwnerAlias_ = imageOwnerAlias;
setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias);
}
std::string CreateLaunchTemplateVersionRequest::getResourceGroupId()const
{
return resourceGroupId_;
std::string CreateLaunchTemplateVersionRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateLaunchTemplateVersionRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
void CreateLaunchTemplateVersionRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateLaunchTemplateVersionRequest::getHostName()const
{
return hostName_;
std::string CreateLaunchTemplateVersionRequest::getHostName() const {
return hostName_;
}
void CreateLaunchTemplateVersionRequest::setHostName(const std::string& hostName)
{
hostName_ = hostName;
setParameter("HostName", hostName);
void CreateLaunchTemplateVersionRequest::setHostName(const std::string &hostName) {
hostName_ = hostName;
setParameter(std::string("HostName"), hostName);
}
int CreateLaunchTemplateVersionRequest::getSystemDiskIops()const
{
return systemDiskIops_;
int CreateLaunchTemplateVersionRequest::getSystemDiskIops() const {
return systemDiskIops_;
}
void CreateLaunchTemplateVersionRequest::setSystemDiskIops(int systemDiskIops)
{
systemDiskIops_ = systemDiskIops;
setParameter("SystemDiskIops", std::to_string(systemDiskIops));
void CreateLaunchTemplateVersionRequest::setSystemDiskIops(int systemDiskIops) {
systemDiskIops_ = systemDiskIops;
setParameter(std::string("SystemDisk.Iops"), std::to_string(systemDiskIops));
}
std::vector<CreateLaunchTemplateVersionRequest::Tag> CreateLaunchTemplateVersionRequest::getTag()const
{
return tag_;
std::vector<CreateLaunchTemplateVersionRequest::Tag> CreateLaunchTemplateVersionRequest::getTag() const {
return tag_;
}
void CreateLaunchTemplateVersionRequest::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);
}
void CreateLaunchTemplateVersionRequest::setTag(const std::vector<CreateLaunchTemplateVersionRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
int CreateLaunchTemplateVersionRequest::getPeriod()const
{
return period_;
int CreateLaunchTemplateVersionRequest::getPeriod() const {
return period_;
}
void CreateLaunchTemplateVersionRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
void CreateLaunchTemplateVersionRequest::setPeriod(int period) {
period_ = period;
setParameter(std::string("Period"), std::to_string(period));
}
std::string CreateLaunchTemplateVersionRequest::getLaunchTemplateId()const
{
return launchTemplateId_;
std::string CreateLaunchTemplateVersionRequest::getLaunchTemplateId() const {
return launchTemplateId_;
}
void CreateLaunchTemplateVersionRequest::setLaunchTemplateId(const std::string& launchTemplateId)
{
launchTemplateId_ = launchTemplateId;
setParameter("LaunchTemplateId", launchTemplateId);
void CreateLaunchTemplateVersionRequest::setLaunchTemplateId(const std::string &launchTemplateId) {
launchTemplateId_ = launchTemplateId;
setParameter(std::string("LaunchTemplateId"), launchTemplateId);
}
long CreateLaunchTemplateVersionRequest::getOwnerId()const
{
return ownerId_;
long CreateLaunchTemplateVersionRequest::getOwnerId() const {
return ownerId_;
}
void CreateLaunchTemplateVersionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
void CreateLaunchTemplateVersionRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string CreateLaunchTemplateVersionRequest::getVSwitchId()const
{
return vSwitchId_;
std::string CreateLaunchTemplateVersionRequest::getVSwitchId() const {
return vSwitchId_;
}
void CreateLaunchTemplateVersionRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
void CreateLaunchTemplateVersionRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setParameter(std::string("VSwitchId"), vSwitchId);
}
std::string CreateLaunchTemplateVersionRequest::getSpotStrategy()const
{
return spotStrategy_;
std::string CreateLaunchTemplateVersionRequest::getSpotStrategy() const {
return spotStrategy_;
}
void CreateLaunchTemplateVersionRequest::setSpotStrategy(const std::string& spotStrategy)
{
spotStrategy_ = spotStrategy;
setParameter("SpotStrategy", spotStrategy);
void CreateLaunchTemplateVersionRequest::setSpotStrategy(const std::string &spotStrategy) {
spotStrategy_ = spotStrategy;
setParameter(std::string("SpotStrategy"), spotStrategy);
}
std::string CreateLaunchTemplateVersionRequest::getPrivateIpAddress()const
{
return privateIpAddress_;
std::string CreateLaunchTemplateVersionRequest::getPrivateIpAddress() const {
return privateIpAddress_;
}
void CreateLaunchTemplateVersionRequest::setPrivateIpAddress(const std::string& privateIpAddress)
{
privateIpAddress_ = privateIpAddress;
setParameter("PrivateIpAddress", privateIpAddress);
void CreateLaunchTemplateVersionRequest::setPrivateIpAddress(const std::string &privateIpAddress) {
privateIpAddress_ = privateIpAddress;
setParameter(std::string("PrivateIpAddress"), privateIpAddress);
}
std::string CreateLaunchTemplateVersionRequest::getInstanceName()const
{
return instanceName_;
std::string CreateLaunchTemplateVersionRequest::getInstanceName() const {
return instanceName_;
}
void CreateLaunchTemplateVersionRequest::setInstanceName(const std::string& instanceName)
{
instanceName_ = instanceName;
setParameter("InstanceName", instanceName);
void CreateLaunchTemplateVersionRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("InstanceName"), instanceName);
}
std::string CreateLaunchTemplateVersionRequest::getInternetChargeType()const
{
return internetChargeType_;
std::string CreateLaunchTemplateVersionRequest::getInternetChargeType() const {
return internetChargeType_;
}
void CreateLaunchTemplateVersionRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
void CreateLaunchTemplateVersionRequest::setInternetChargeType(const std::string &internetChargeType) {
internetChargeType_ = internetChargeType;
setParameter(std::string("InternetChargeType"), internetChargeType);
}
std::string CreateLaunchTemplateVersionRequest::getZoneId()const
{
return zoneId_;
std::string CreateLaunchTemplateVersionRequest::getZoneId() const {
return zoneId_;
}
void CreateLaunchTemplateVersionRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
void CreateLaunchTemplateVersionRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}
int CreateLaunchTemplateVersionRequest::getInternetMaxBandwidthIn()const
{
return internetMaxBandwidthIn_;
int CreateLaunchTemplateVersionRequest::getInternetMaxBandwidthIn() const {
return internetMaxBandwidthIn_;
}
void CreateLaunchTemplateVersionRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn)
{
internetMaxBandwidthIn_ = internetMaxBandwidthIn;
setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn));
void CreateLaunchTemplateVersionRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) {
internetMaxBandwidthIn_ = internetMaxBandwidthIn;
setParameter(std::string("InternetMaxBandwidthIn"), std::to_string(internetMaxBandwidthIn));
}
std::string CreateLaunchTemplateVersionRequest::getVersionDescription()const
{
return versionDescription_;
std::string CreateLaunchTemplateVersionRequest::getVersionDescription() const {
return versionDescription_;
}
void CreateLaunchTemplateVersionRequest::setVersionDescription(const std::string& versionDescription)
{
versionDescription_ = versionDescription;
setParameter("VersionDescription", versionDescription);
void CreateLaunchTemplateVersionRequest::setVersionDescription(const std::string &versionDescription) {
versionDescription_ = versionDescription;
setParameter(std::string("VersionDescription"), versionDescription);
}
bool CreateLaunchTemplateVersionRequest::getSystemDiskDeleteWithInstance()const
{
return systemDiskDeleteWithInstance_;
bool CreateLaunchTemplateVersionRequest::getSystemDiskDeleteWithInstance() const {
return systemDiskDeleteWithInstance_;
}
void CreateLaunchTemplateVersionRequest::setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance)
{
systemDiskDeleteWithInstance_ = systemDiskDeleteWithInstance;
setParameter("SystemDiskDeleteWithInstance", systemDiskDeleteWithInstance ? "true" : "false");
void CreateLaunchTemplateVersionRequest::setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance) {
systemDiskDeleteWithInstance_ = systemDiskDeleteWithInstance;
setParameter(std::string("SystemDisk.DeleteWithInstance"), systemDiskDeleteWithInstance ? "true" : "false");
}
std::string CreateLaunchTemplateVersionRequest::getImageId()const
{
return imageId_;
std::string CreateLaunchTemplateVersionRequest::getImageId() const {
return imageId_;
}
void CreateLaunchTemplateVersionRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
void CreateLaunchTemplateVersionRequest::setImageId(const std::string &imageId) {
imageId_ = imageId;
setParameter(std::string("ImageId"), imageId);
}
std::string CreateLaunchTemplateVersionRequest::getIoOptimized()const
{
return ioOptimized_;
std::string CreateLaunchTemplateVersionRequest::getIoOptimized() const {
return ioOptimized_;
}
void CreateLaunchTemplateVersionRequest::setIoOptimized(const std::string& ioOptimized)
{
ioOptimized_ = ioOptimized;
setParameter("IoOptimized", ioOptimized);
void CreateLaunchTemplateVersionRequest::setIoOptimized(const std::string &ioOptimized) {
ioOptimized_ = ioOptimized;
setParameter(std::string("IoOptimized"), ioOptimized);
}
std::string CreateLaunchTemplateVersionRequest::getSecurityGroupId()const
{
return securityGroupId_;
std::string CreateLaunchTemplateVersionRequest::getSecurityGroupId() const {
return securityGroupId_;
}
void CreateLaunchTemplateVersionRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
void CreateLaunchTemplateVersionRequest::setSecurityGroupId(const std::string &securityGroupId) {
securityGroupId_ = securityGroupId;
setParameter(std::string("SecurityGroupId"), securityGroupId);
}
int CreateLaunchTemplateVersionRequest::getInternetMaxBandwidthOut()const
{
return internetMaxBandwidthOut_;
int CreateLaunchTemplateVersionRequest::getInternetMaxBandwidthOut() const {
return internetMaxBandwidthOut_;
}
void CreateLaunchTemplateVersionRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut)
{
internetMaxBandwidthOut_ = internetMaxBandwidthOut;
setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut));
void CreateLaunchTemplateVersionRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) {
internetMaxBandwidthOut_ = internetMaxBandwidthOut;
setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut));
}
std::string CreateLaunchTemplateVersionRequest::getDescription()const
{
return description_;
std::string CreateLaunchTemplateVersionRequest::getDescription() const {
return description_;
}
void CreateLaunchTemplateVersionRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
void CreateLaunchTemplateVersionRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateLaunchTemplateVersionRequest::getSystemDiskCategory()const
{
return systemDiskCategory_;
std::string CreateLaunchTemplateVersionRequest::getSystemDiskCategory() const {
return systemDiskCategory_;
}
void CreateLaunchTemplateVersionRequest::setSystemDiskCategory(const std::string& systemDiskCategory)
{
systemDiskCategory_ = systemDiskCategory;
setParameter("SystemDiskCategory", systemDiskCategory);
void CreateLaunchTemplateVersionRequest::setSystemDiskCategory(const std::string &systemDiskCategory) {
systemDiskCategory_ = systemDiskCategory;
setParameter(std::string("SystemDisk.Category"), systemDiskCategory);
}
std::string CreateLaunchTemplateVersionRequest::getSystemDiskPerformanceLevel()const
{
return systemDiskPerformanceLevel_;
std::string CreateLaunchTemplateVersionRequest::getSystemDiskPerformanceLevel() const {
return systemDiskPerformanceLevel_;
}
void CreateLaunchTemplateVersionRequest::setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel)
{
systemDiskPerformanceLevel_ = systemDiskPerformanceLevel;
setParameter("SystemDiskPerformanceLevel", systemDiskPerformanceLevel);
void CreateLaunchTemplateVersionRequest::setSystemDiskPerformanceLevel(const std::string &systemDiskPerformanceLevel) {
systemDiskPerformanceLevel_ = systemDiskPerformanceLevel;
setParameter(std::string("SystemDisk.PerformanceLevel"), systemDiskPerformanceLevel);
}
std::string CreateLaunchTemplateVersionRequest::getUserData()const
{
return userData_;
std::string CreateLaunchTemplateVersionRequest::getUserData() const {
return userData_;
}
void CreateLaunchTemplateVersionRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
void CreateLaunchTemplateVersionRequest::setUserData(const std::string &userData) {
userData_ = userData;
setParameter(std::string("UserData"), userData);
}
bool CreateLaunchTemplateVersionRequest::getPasswordInherit()const
{
return passwordInherit_;
bool CreateLaunchTemplateVersionRequest::getPasswordInherit() const {
return passwordInherit_;
}
void CreateLaunchTemplateVersionRequest::setPasswordInherit(bool passwordInherit)
{
passwordInherit_ = passwordInherit;
setParameter("PasswordInherit", passwordInherit ? "true" : "false");
void CreateLaunchTemplateVersionRequest::setPasswordInherit(bool passwordInherit) {
passwordInherit_ = passwordInherit;
setParameter(std::string("PasswordInherit"), passwordInherit ? "true" : "false");
}
std::string CreateLaunchTemplateVersionRequest::getRegionId()const
{
return regionId_;
std::string CreateLaunchTemplateVersionRequest::getRegionId() const {
return regionId_;
}
void CreateLaunchTemplateVersionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
void CreateLaunchTemplateVersionRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string CreateLaunchTemplateVersionRequest::getInstanceType()const
{
return instanceType_;
std::string CreateLaunchTemplateVersionRequest::getInstanceType() const {
return instanceType_;
}
void CreateLaunchTemplateVersionRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
void CreateLaunchTemplateVersionRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string CreateLaunchTemplateVersionRequest::getInstanceChargeType()const
{
return instanceChargeType_;
std::string CreateLaunchTemplateVersionRequest::getInstanceChargeType() const {
return instanceChargeType_;
}
void CreateLaunchTemplateVersionRequest::setInstanceChargeType(const std::string& instanceChargeType)
{
instanceChargeType_ = instanceChargeType;
setParameter("InstanceChargeType", instanceChargeType);
void CreateLaunchTemplateVersionRequest::setInstanceChargeType(const std::string &instanceChargeType) {
instanceChargeType_ = instanceChargeType;
setParameter(std::string("InstanceChargeType"), instanceChargeType);
}
bool CreateLaunchTemplateVersionRequest::getEnableVmOsConfig()const
{
return enableVmOsConfig_;
bool CreateLaunchTemplateVersionRequest::getEnableVmOsConfig() const {
return enableVmOsConfig_;
}
void CreateLaunchTemplateVersionRequest::setEnableVmOsConfig(bool enableVmOsConfig)
{
enableVmOsConfig_ = enableVmOsConfig;
setParameter("EnableVmOsConfig", enableVmOsConfig ? "true" : "false");
void CreateLaunchTemplateVersionRequest::setEnableVmOsConfig(bool enableVmOsConfig) {
enableVmOsConfig_ = enableVmOsConfig;
setParameter(std::string("EnableVmOsConfig"), enableVmOsConfig ? "true" : "false");
}
std::vector<CreateLaunchTemplateVersionRequest::NetworkInterface> CreateLaunchTemplateVersionRequest::getNetworkInterface()const
{
return networkInterface_;
std::string CreateLaunchTemplateVersionRequest::getDeploymentSetId() const {
return deploymentSetId_;
}
void CreateLaunchTemplateVersionRequest::setNetworkInterface(const std::vector<NetworkInterface>& networkInterface)
{
networkInterface_ = networkInterface;
for(int dep1 = 0; dep1!= networkInterface.size(); dep1++) {
auto networkInterfaceObj = networkInterface.at(dep1);
std::string networkInterfaceObjStr = "NetworkInterface." + std::to_string(dep1 + 1);
setParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress);
setParameter(networkInterfaceObjStr + ".VSwitchId", networkInterfaceObj.vSwitchId);
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));
}
}
void CreateLaunchTemplateVersionRequest::setDeploymentSetId(const std::string &deploymentSetId) {
deploymentSetId_ = deploymentSetId;
setParameter(std::string("DeploymentSetId"), deploymentSetId);
}
std::string CreateLaunchTemplateVersionRequest::getDeploymentSetId()const
{
return deploymentSetId_;
std::vector<CreateLaunchTemplateVersionRequest::NetworkInterface> CreateLaunchTemplateVersionRequest::getNetworkInterface() const {
return networkInterface_;
}
void CreateLaunchTemplateVersionRequest::setDeploymentSetId(const std::string& deploymentSetId)
{
deploymentSetId_ = deploymentSetId;
setParameter("DeploymentSetId", deploymentSetId);
void CreateLaunchTemplateVersionRequest::setNetworkInterface(const std::vector<CreateLaunchTemplateVersionRequest::NetworkInterface> &networkInterface) {
networkInterface_ = networkInterface;
for(int dep1 = 0; dep1 != networkInterface.size(); dep1++) {
auto networkInterfaceObj = networkInterface.at(dep1);
std::string networkInterfaceObjStr = std::string("NetworkInterface") + "." + std::to_string(dep1 + 1);
setParameter(networkInterfaceObjStr + ".VSwitchId", networkInterfaceObj.vSwitchId);
setParameter(networkInterfaceObjStr + ".NetworkInterfaceName", networkInterfaceObj.networkInterfaceName);
setParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description);
setParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId);
setParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress);
}
}
std::string CreateLaunchTemplateVersionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
std::string CreateLaunchTemplateVersionRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void CreateLaunchTemplateVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
void CreateLaunchTemplateVersionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string CreateLaunchTemplateVersionRequest::getOwnerAccount()const
{
return ownerAccount_;
std::string CreateLaunchTemplateVersionRequest::getOwnerAccount() const {
return ownerAccount_;
}
void CreateLaunchTemplateVersionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
void CreateLaunchTemplateVersionRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
std::string CreateLaunchTemplateVersionRequest::getSystemDiskDiskName()const
{
return systemDiskDiskName_;
std::string CreateLaunchTemplateVersionRequest::getSystemDiskDiskName() const {
return systemDiskDiskName_;
}
void CreateLaunchTemplateVersionRequest::setSystemDiskDiskName(const std::string& systemDiskDiskName)
{
systemDiskDiskName_ = systemDiskDiskName;
setParameter("SystemDiskDiskName", systemDiskDiskName);
void CreateLaunchTemplateVersionRequest::setSystemDiskDiskName(const std::string &systemDiskDiskName) {
systemDiskDiskName_ = systemDiskDiskName;
setParameter(std::string("SystemDisk.DiskName"), systemDiskDiskName);
}
std::string CreateLaunchTemplateVersionRequest::getRamRoleName()const
{
return ramRoleName_;
std::string CreateLaunchTemplateVersionRequest::getRamRoleName() const {
return ramRoleName_;
}
void CreateLaunchTemplateVersionRequest::setRamRoleName(const std::string& ramRoleName)
{
ramRoleName_ = ramRoleName;
setParameter("RamRoleName", ramRoleName);
void CreateLaunchTemplateVersionRequest::setRamRoleName(const std::string &ramRoleName) {
ramRoleName_ = ramRoleName;
setParameter(std::string("RamRoleName"), ramRoleName);
}
std::string CreateLaunchTemplateVersionRequest::getAutoReleaseTime()const
{
return autoReleaseTime_;
std::string CreateLaunchTemplateVersionRequest::getAutoReleaseTime() const {
return autoReleaseTime_;
}
void CreateLaunchTemplateVersionRequest::setAutoReleaseTime(const std::string& autoReleaseTime)
{
autoReleaseTime_ = autoReleaseTime;
setParameter("AutoReleaseTime", autoReleaseTime);
void CreateLaunchTemplateVersionRequest::setAutoReleaseTime(const std::string &autoReleaseTime) {
autoReleaseTime_ = autoReleaseTime;
setParameter(std::string("AutoReleaseTime"), autoReleaseTime);
}
int CreateLaunchTemplateVersionRequest::getSpotDuration()const
{
return spotDuration_;
int CreateLaunchTemplateVersionRequest::getSpotDuration() const {
return spotDuration_;
}
void CreateLaunchTemplateVersionRequest::setSpotDuration(int spotDuration)
{
spotDuration_ = spotDuration;
setParameter("SpotDuration", std::to_string(spotDuration));
void CreateLaunchTemplateVersionRequest::setSpotDuration(int spotDuration) {
spotDuration_ = spotDuration;
setParameter(std::string("SpotDuration"), std::to_string(spotDuration));
}
std::vector<std::string> CreateLaunchTemplateVersionRequest::getSecurityGroupIds()const
{
return securityGroupIds_;
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));
}
void CreateLaunchTemplateVersionRequest::setSecurityGroupIds(const std::vector<std::string> &securityGroupIds) {
securityGroupIds_ = securityGroupIds;
}
std::vector<CreateLaunchTemplateVersionRequest::DataDisk> CreateLaunchTemplateVersionRequest::getDataDisk()const
{
return dataDisk_;
std::vector<CreateLaunchTemplateVersionRequest::DataDisk> CreateLaunchTemplateVersionRequest::getDataDisk() const {
return dataDisk_;
}
void CreateLaunchTemplateVersionRequest::setDataDisk(const std::vector<DataDisk>& dataDisk)
{
dataDisk_ = dataDisk;
for(int dep1 = 0; dep1!= dataDisk.size(); dep1++) {
auto dataDiskObj = dataDisk.at(dep1);
std::string dataDiskObjStr = "DataDisk." + std::to_string(dep1 + 1);
setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size));
setParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId);
setParameter(dataDiskObjStr + ".Category", dataDiskObj.category);
setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted);
setParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName);
setParameter(dataDiskObjStr + ".Description", dataDiskObj.description);
setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false");
setParameter(dataDiskObjStr + ".Device", dataDiskObj.device);
setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel);
}
void CreateLaunchTemplateVersionRequest::setDataDisk(const std::vector<CreateLaunchTemplateVersionRequest::DataDisk> &dataDisk) {
dataDisk_ = dataDisk;
for(int dep1 = 0; dep1 != dataDisk.size(); dep1++) {
auto dataDiskObj = dataDisk.at(dep1);
std::string dataDiskObjStr = std::string("DataDisk") + "." + std::to_string(dep1 + 1);
setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel);
setParameter(dataDiskObjStr + ".Description", dataDiskObj.description);
setParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId);
setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size));
setParameter(dataDiskObjStr + ".Device", dataDiskObj.device);
setParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName);
setParameter(dataDiskObjStr + ".Category", dataDiskObj.category);
setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false");
setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted);
}
}
int CreateLaunchTemplateVersionRequest::getSystemDiskSize()const
{
return systemDiskSize_;
int CreateLaunchTemplateVersionRequest::getSystemDiskSize() const {
return systemDiskSize_;
}
void CreateLaunchTemplateVersionRequest::setSystemDiskSize(int systemDiskSize)
{
systemDiskSize_ = systemDiskSize;
setParameter("SystemDiskSize", std::to_string(systemDiskSize));
void CreateLaunchTemplateVersionRequest::setSystemDiskSize(int systemDiskSize) {
systemDiskSize_ = systemDiskSize;
setParameter(std::string("SystemDisk.Size"), std::to_string(systemDiskSize));
}
std::string CreateLaunchTemplateVersionRequest::getVpcId()const
{
return vpcId_;
std::string CreateLaunchTemplateVersionRequest::getVpcId() const {
return vpcId_;
}
void CreateLaunchTemplateVersionRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
void CreateLaunchTemplateVersionRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setParameter(std::string("VpcId"), vpcId);
}
std::string CreateLaunchTemplateVersionRequest::getSystemDiskDescription()const
{
return systemDiskDescription_;
std::string CreateLaunchTemplateVersionRequest::getSystemDiskDescription() const {
return systemDiskDescription_;
}
void CreateLaunchTemplateVersionRequest::setSystemDiskDescription(const std::string& systemDiskDescription)
{
systemDiskDescription_ = systemDiskDescription;
setParameter("SystemDiskDescription", systemDiskDescription);
void CreateLaunchTemplateVersionRequest::setSystemDiskDescription(const std::string &systemDiskDescription) {
systemDiskDescription_ = systemDiskDescription;
setParameter(std::string("SystemDisk.Description"), systemDiskDescription);
}

View File

@@ -1,145 +1,123 @@
/*
* 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/CreateNatGatewayRequest.h>
using AlibabaCloud::Ecs::Model::CreateNatGatewayRequest;
CreateNatGatewayRequest::CreateNatGatewayRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateNatGateway")
{
setMethod(HttpRequest::Method::Post);
}
CreateNatGatewayRequest::~CreateNatGatewayRequest()
{}
long CreateNatGatewayRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateNatGatewayRequest.h>
using AlibabaCloud::Ecs::Model::CreateNatGatewayRequest;
CreateNatGatewayRequest::CreateNatGatewayRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateNatGateway") {
setMethod(HttpRequest::Method::Post);
}
void CreateNatGatewayRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateNatGatewayRequest::~CreateNatGatewayRequest() {}
long CreateNatGatewayRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateNatGatewayRequest::getClientToken()const
{
return clientToken_;
void CreateNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateNatGatewayRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateNatGatewayRequest::getClientToken() const {
return clientToken_;
}
std::string CreateNatGatewayRequest::getDescription()const
{
return description_;
void CreateNatGatewayRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateNatGatewayRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateNatGatewayRequest::getDescription() const {
return description_;
}
std::string CreateNatGatewayRequest::getRegionId()const
{
return regionId_;
void CreateNatGatewayRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateNatGatewayRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateNatGatewayRequest::getRegionId() const {
return regionId_;
}
std::vector<CreateNatGatewayRequest::BandwidthPackage> CreateNatGatewayRequest::getBandwidthPackage()const
{
return bandwidthPackage_;
void CreateNatGatewayRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateNatGatewayRequest::setBandwidthPackage(const std::vector<BandwidthPackage>& bandwidthPackage)
{
bandwidthPackage_ = bandwidthPackage;
for(int dep1 = 0; dep1!= bandwidthPackage.size(); dep1++) {
auto bandwidthPackageObj = bandwidthPackage.at(dep1);
std::string bandwidthPackageObjStr = "BandwidthPackage." + std::to_string(dep1 + 1);
setParameter(bandwidthPackageObjStr + ".Bandwidth", std::to_string(bandwidthPackageObj.bandwidth));
setParameter(bandwidthPackageObjStr + ".Zone", bandwidthPackageObj.zone);
setParameter(bandwidthPackageObjStr + ".IpCount", std::to_string(bandwidthPackageObj.ipCount));
}
std::vector<CreateNatGatewayRequest::BandwidthPackage> CreateNatGatewayRequest::getBandwidthPackage() const {
return bandwidthPackage_;
}
std::string CreateNatGatewayRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateNatGatewayRequest::setBandwidthPackage(const std::vector<CreateNatGatewayRequest::BandwidthPackage> &bandwidthPackage) {
bandwidthPackage_ = bandwidthPackage;
for(int dep1 = 0; dep1 != bandwidthPackage.size(); dep1++) {
auto bandwidthPackageObj = bandwidthPackage.at(dep1);
std::string bandwidthPackageObjStr = std::string("BandwidthPackage") + "." + std::to_string(dep1 + 1);
setParameter(bandwidthPackageObjStr + ".Bandwidth", std::to_string(bandwidthPackageObj.bandwidth));
setParameter(bandwidthPackageObjStr + ".Zone", bandwidthPackageObj.zone);
setParameter(bandwidthPackageObjStr + ".IpCount", std::to_string(bandwidthPackageObj.ipCount));
}
}
void CreateNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateNatGatewayRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateNatGatewayRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateNatGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateNatGatewayRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateNatGatewayRequest::getOwnerId()const
{
return ownerId_;
void CreateNatGatewayRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateNatGatewayRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateNatGatewayRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateNatGatewayRequest::getVpcId()const
{
return vpcId_;
void CreateNatGatewayRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateNatGatewayRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
std::string CreateNatGatewayRequest::getVpcId() const {
return vpcId_;
}
std::string CreateNatGatewayRequest::getName()const
{
return name_;
void CreateNatGatewayRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setParameter(std::string("VpcId"), vpcId);
}
void CreateNatGatewayRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string CreateNatGatewayRequest::getName() const {
return name_;
}
void CreateNatGatewayRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View File

@@ -1,117 +1,99 @@
/*
* 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/CreateNetworkInterfacePermissionRequest.h>
using AlibabaCloud::Ecs::Model::CreateNetworkInterfacePermissionRequest;
CreateNetworkInterfacePermissionRequest::CreateNetworkInterfacePermissionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterfacePermission")
{
setMethod(HttpRequest::Method::Post);
}
CreateNetworkInterfacePermissionRequest::~CreateNetworkInterfacePermissionRequest()
{}
long CreateNetworkInterfacePermissionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateNetworkInterfacePermissionRequest.h>
using AlibabaCloud::Ecs::Model::CreateNetworkInterfacePermissionRequest;
CreateNetworkInterfacePermissionRequest::CreateNetworkInterfacePermissionRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterfacePermission") {
setMethod(HttpRequest::Method::Post);
}
void CreateNetworkInterfacePermissionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateNetworkInterfacePermissionRequest::~CreateNetworkInterfacePermissionRequest() {}
long CreateNetworkInterfacePermissionRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
long CreateNetworkInterfacePermissionRequest::getAccountId()const
{
return accountId_;
void CreateNetworkInterfacePermissionRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateNetworkInterfacePermissionRequest::setAccountId(long accountId)
{
accountId_ = accountId;
setParameter("AccountId", std::to_string(accountId));
long CreateNetworkInterfacePermissionRequest::getAccountId() const {
return accountId_;
}
std::string CreateNetworkInterfacePermissionRequest::getRegionId()const
{
return regionId_;
void CreateNetworkInterfacePermissionRequest::setAccountId(long accountId) {
accountId_ = accountId;
setParameter(std::string("AccountId"), std::to_string(accountId));
}
void CreateNetworkInterfacePermissionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateNetworkInterfacePermissionRequest::getRegionId() const {
return regionId_;
}
std::string CreateNetworkInterfacePermissionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateNetworkInterfacePermissionRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateNetworkInterfacePermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateNetworkInterfacePermissionRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateNetworkInterfacePermissionRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateNetworkInterfacePermissionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateNetworkInterfacePermissionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateNetworkInterfacePermissionRequest::getOwnerAccount() const {
return ownerAccount_;
}
std::string CreateNetworkInterfacePermissionRequest::getPermission()const
{
return permission_;
void CreateNetworkInterfacePermissionRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateNetworkInterfacePermissionRequest::setPermission(const std::string& permission)
{
permission_ = permission;
setParameter("Permission", permission);
std::string CreateNetworkInterfacePermissionRequest::getPermission() const {
return permission_;
}
long CreateNetworkInterfacePermissionRequest::getOwnerId()const
{
return ownerId_;
void CreateNetworkInterfacePermissionRequest::setPermission(const std::string &permission) {
permission_ = permission;
setParameter(std::string("Permission"), permission);
}
void CreateNetworkInterfacePermissionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateNetworkInterfacePermissionRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateNetworkInterfacePermissionRequest::getNetworkInterfaceId()const
{
return networkInterfaceId_;
void CreateNetworkInterfacePermissionRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateNetworkInterfacePermissionRequest::setNetworkInterfaceId(const std::string& networkInterfaceId)
{
networkInterfaceId_ = networkInterfaceId;
setParameter("NetworkInterfaceId", networkInterfaceId);
std::string CreateNetworkInterfacePermissionRequest::getNetworkInterfaceId() const {
return networkInterfaceId_;
}
void CreateNetworkInterfacePermissionRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
networkInterfaceId_ = networkInterfaceId;
setParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
}

View File

@@ -40,16 +40,16 @@ void CreateNetworkInterfacePermissionResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto networkInterfacePermissionNode = value["NetworkInterfacePermission"];
if(!networkInterfacePermissionNode["AccountId"].isNull())
networkInterfacePermission_.accountId = std::stol(networkInterfacePermissionNode["AccountId"].asString());
if(!networkInterfacePermissionNode["ServiceName"].isNull())
networkInterfacePermission_.serviceName = networkInterfacePermissionNode["ServiceName"].asString();
if(!networkInterfacePermissionNode["NetworkInterfaceId"].isNull())
networkInterfacePermission_.networkInterfaceId = networkInterfacePermissionNode["NetworkInterfaceId"].asString();
if(!networkInterfacePermissionNode["NetworkInterfacePermissionId"].isNull())
networkInterfacePermission_.networkInterfacePermissionId = networkInterfacePermissionNode["NetworkInterfacePermissionId"].asString();
if(!networkInterfacePermissionNode["Permission"].isNull())
networkInterfacePermission_.permission = networkInterfacePermissionNode["Permission"].asString();
if(!networkInterfacePermissionNode["NetworkInterfaceId"].isNull())
networkInterfacePermission_.networkInterfaceId = networkInterfacePermissionNode["NetworkInterfaceId"].asString();
if(!networkInterfacePermissionNode["AccountId"].isNull())
networkInterfacePermission_.accountId = std::stol(networkInterfacePermissionNode["AccountId"].asString());
if(!networkInterfacePermissionNode["NetworkInterfacePermissionId"].isNull())
networkInterfacePermission_.networkInterfacePermissionId = networkInterfacePermissionNode["NetworkInterfacePermissionId"].asString();
if(!networkInterfacePermissionNode["ServiceName"].isNull())
networkInterfacePermission_.serviceName = networkInterfacePermissionNode["ServiceName"].asString();
if(!networkInterfacePermissionNode["PermissionState"].isNull())
networkInterfacePermission_.permissionState = networkInterfacePermissionNode["PermissionState"].asString();

View File

@@ -1,304 +1,245 @@
/*
* 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/CreateNetworkInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::CreateNetworkInterfaceRequest;
CreateNetworkInterfaceRequest::CreateNetworkInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterface")
{
setMethod(HttpRequest::Method::Post);
}
CreateNetworkInterfaceRequest::~CreateNetworkInterfaceRequest()
{}
int CreateNetworkInterfaceRequest::getQueueNumber()const
{
return queueNumber_;
*/
#include <alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::CreateNetworkInterfaceRequest;
CreateNetworkInterfaceRequest::CreateNetworkInterfaceRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterface") {
setMethod(HttpRequest::Method::Post);
}
void CreateNetworkInterfaceRequest::setQueueNumber(int queueNumber)
{
queueNumber_ = queueNumber;
setParameter("QueueNumber", std::to_string(queueNumber));
CreateNetworkInterfaceRequest::~CreateNetworkInterfaceRequest() {}
int CreateNetworkInterfaceRequest::getQueueNumber() const {
return queueNumber_;
}
long CreateNetworkInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void CreateNetworkInterfaceRequest::setQueueNumber(int queueNumber) {
queueNumber_ = queueNumber;
setParameter(std::string("QueueNumber"), std::to_string(queueNumber));
}
void CreateNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long CreateNetworkInterfaceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateNetworkInterfaceRequest::getClientToken()const
{
return clientToken_;
void CreateNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateNetworkInterfaceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateNetworkInterfaceRequest::getClientToken() const {
return clientToken_;
}
std::string CreateNetworkInterfaceRequest::getSecurityGroupId()const
{
return securityGroupId_;
void CreateNetworkInterfaceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateNetworkInterfaceRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
std::string CreateNetworkInterfaceRequest::getSecurityGroupId() const {
return securityGroupId_;
}
std::string CreateNetworkInterfaceRequest::getDescription()const
{
return description_;
void CreateNetworkInterfaceRequest::setSecurityGroupId(const std::string &securityGroupId) {
securityGroupId_ = securityGroupId;
setParameter(std::string("SecurityGroupId"), securityGroupId);
}
void CreateNetworkInterfaceRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateNetworkInterfaceRequest::getDescription() const {
return description_;
}
int CreateNetworkInterfaceRequest::getSecondaryPrivateIpAddressCount()const
{
return secondaryPrivateIpAddressCount_;
void CreateNetworkInterfaceRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateNetworkInterfaceRequest::setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount)
{
secondaryPrivateIpAddressCount_ = secondaryPrivateIpAddressCount;
setParameter("SecondaryPrivateIpAddressCount", std::to_string(secondaryPrivateIpAddressCount));
int CreateNetworkInterfaceRequest::getSecondaryPrivateIpAddressCount() const {
return secondaryPrivateIpAddressCount_;
}
std::string CreateNetworkInterfaceRequest::getBusinessType()const
{
return businessType_;
void CreateNetworkInterfaceRequest::setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount) {
secondaryPrivateIpAddressCount_ = secondaryPrivateIpAddressCount;
setParameter(std::string("SecondaryPrivateIpAddressCount"), std::to_string(secondaryPrivateIpAddressCount));
}
void CreateNetworkInterfaceRequest::setBusinessType(const std::string& businessType)
{
businessType_ = businessType;
setParameter("BusinessType", businessType);
std::string CreateNetworkInterfaceRequest::getBusinessType() const {
return businessType_;
}
std::string CreateNetworkInterfaceRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CreateNetworkInterfaceRequest::setBusinessType(const std::string &businessType) {
businessType_ = businessType;
setParameter(std::string("BusinessType"), businessType);
}
void CreateNetworkInterfaceRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CreateNetworkInterfaceRequest::getResourceGroupId() const {
return resourceGroupId_;
}
std::string CreateNetworkInterfaceRequest::getRegionId()const
{
return regionId_;
void CreateNetworkInterfaceRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CreateNetworkInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateNetworkInterfaceRequest::getRegionId() const {
return regionId_;
}
std::string CreateNetworkInterfaceRequest::getInstanceType()const
{
return instanceType_;
void CreateNetworkInterfaceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateNetworkInterfaceRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
std::string CreateNetworkInterfaceRequest::getInstanceType() const {
return instanceType_;
}
std::vector<CreateNetworkInterfaceRequest::Tag> CreateNetworkInterfaceRequest::getTag()const
{
return tag_;
void CreateNetworkInterfaceRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
void CreateNetworkInterfaceRequest::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::vector<CreateNetworkInterfaceRequest::Tag> CreateNetworkInterfaceRequest::getTag() const {
return tag_;
}
std::string CreateNetworkInterfaceRequest::getNetworkInterfaceName()const
{
return networkInterfaceName_;
void CreateNetworkInterfaceRequest::setTag(const std::vector<CreateNetworkInterfaceRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
void CreateNetworkInterfaceRequest::setNetworkInterfaceName(const std::string& networkInterfaceName)
{
networkInterfaceName_ = networkInterfaceName;
setParameter("NetworkInterfaceName", networkInterfaceName);
std::string CreateNetworkInterfaceRequest::getNetworkInterfaceName() const {
return networkInterfaceName_;
}
bool CreateNetworkInterfaceRequest::getVisible()const
{
return visible_;
void CreateNetworkInterfaceRequest::setNetworkInterfaceName(const std::string &networkInterfaceName) {
networkInterfaceName_ = networkInterfaceName;
setParameter(std::string("NetworkInterfaceName"), networkInterfaceName);
}
void CreateNetworkInterfaceRequest::setVisible(bool visible)
{
visible_ = visible;
setParameter("Visible", visible ? "true" : "false");
bool CreateNetworkInterfaceRequest::getVisible() const {
return visible_;
}
std::string CreateNetworkInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateNetworkInterfaceRequest::setVisible(bool visible) {
visible_ = visible;
setParameter(std::string("Visible"), visible ? "true" : "false");
}
void CreateNetworkInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateNetworkInterfaceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
int CreateNetworkInterfaceRequest::getIpv6AddressCount()const
{
return ipv6AddressCount_;
void CreateNetworkInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateNetworkInterfaceRequest::setIpv6AddressCount(int ipv6AddressCount)
{
ipv6AddressCount_ = ipv6AddressCount;
setParameter("Ipv6AddressCount", std::to_string(ipv6AddressCount));
int CreateNetworkInterfaceRequest::getIpv6AddressCount() const {
return ipv6AddressCount_;
}
std::string CreateNetworkInterfaceRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateNetworkInterfaceRequest::setIpv6AddressCount(int ipv6AddressCount) {
ipv6AddressCount_ = ipv6AddressCount;
setParameter(std::string("Ipv6AddressCount"), std::to_string(ipv6AddressCount));
}
void CreateNetworkInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateNetworkInterfaceRequest::getOwnerAccount() const {
return ownerAccount_;
}
int CreateNetworkInterfaceRequest::getQueuePairNumber()const
{
return queuePairNumber_;
void CreateNetworkInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateNetworkInterfaceRequest::setQueuePairNumber(int queuePairNumber)
{
queuePairNumber_ = queuePairNumber;
setParameter("QueuePairNumber", std::to_string(queuePairNumber));
int CreateNetworkInterfaceRequest::getQueuePairNumber() const {
return queuePairNumber_;
}
long CreateNetworkInterfaceRequest::getOwnerId()const
{
return ownerId_;
void CreateNetworkInterfaceRequest::setQueuePairNumber(int queuePairNumber) {
queuePairNumber_ = queuePairNumber;
setParameter(std::string("QueuePairNumber"), std::to_string(queuePairNumber));
}
void CreateNetworkInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateNetworkInterfaceRequest::getOwnerId() const {
return ownerId_;
}
std::vector<std::string> CreateNetworkInterfaceRequest::getSecurityGroupIds()const
{
return securityGroupIds_;
void CreateNetworkInterfaceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateNetworkInterfaceRequest::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<std::string> CreateNetworkInterfaceRequest::getSecurityGroupIds() const {
return securityGroupIds_;
}
std::string CreateNetworkInterfaceRequest::getNetworkInterfaceTrafficMode()const
{
return networkInterfaceTrafficMode_;
void CreateNetworkInterfaceRequest::setSecurityGroupIds(const std::vector<std::string> &securityGroupIds) {
securityGroupIds_ = securityGroupIds;
}
void CreateNetworkInterfaceRequest::setNetworkInterfaceTrafficMode(const std::string& networkInterfaceTrafficMode)
{
networkInterfaceTrafficMode_ = networkInterfaceTrafficMode;
setParameter("NetworkInterfaceTrafficMode", networkInterfaceTrafficMode);
std::string CreateNetworkInterfaceRequest::getNetworkInterfaceTrafficMode() const {
return networkInterfaceTrafficMode_;
}
std::string CreateNetworkInterfaceRequest::getVSwitchId()const
{
return vSwitchId_;
void CreateNetworkInterfaceRequest::setNetworkInterfaceTrafficMode(const std::string &networkInterfaceTrafficMode) {
networkInterfaceTrafficMode_ = networkInterfaceTrafficMode;
setParameter(std::string("NetworkInterfaceTrafficMode"), networkInterfaceTrafficMode);
}
void CreateNetworkInterfaceRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
std::string CreateNetworkInterfaceRequest::getVSwitchId() const {
return vSwitchId_;
}
std::vector<std::string> CreateNetworkInterfaceRequest::getPrivateIpAddress()const
{
return privateIpAddress_;
void CreateNetworkInterfaceRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setParameter(std::string("VSwitchId"), vSwitchId);
}
void CreateNetworkInterfaceRequest::setPrivateIpAddress(const std::vector<std::string>& privateIpAddress)
{
privateIpAddress_ = privateIpAddress;
for(int dep1 = 0; dep1!= privateIpAddress.size(); dep1++) {
setParameter("PrivateIpAddress."+ std::to_string(dep1), privateIpAddress.at(dep1));
}
std::vector<std::string> CreateNetworkInterfaceRequest::getPrivateIpAddress() const {
return privateIpAddress_;
}
std::string CreateNetworkInterfaceRequest::getPrimaryIpAddress()const
{
return primaryIpAddress_;
void CreateNetworkInterfaceRequest::setPrivateIpAddress(const std::vector<std::string> &privateIpAddress) {
privateIpAddress_ = privateIpAddress;
}
void CreateNetworkInterfaceRequest::setPrimaryIpAddress(const std::string& primaryIpAddress)
{
primaryIpAddress_ = primaryIpAddress;
setParameter("PrimaryIpAddress", primaryIpAddress);
std::string CreateNetworkInterfaceRequest::getPrimaryIpAddress() const {
return primaryIpAddress_;
}
std::vector<std::string> CreateNetworkInterfaceRequest::getIpv6Address()const
{
return ipv6Address_;
void CreateNetworkInterfaceRequest::setPrimaryIpAddress(const std::string &primaryIpAddress) {
primaryIpAddress_ = primaryIpAddress;
setParameter(std::string("PrimaryIpAddress"), primaryIpAddress);
}
void CreateNetworkInterfaceRequest::setIpv6Address(const std::vector<std::string>& ipv6Address)
{
ipv6Address_ = ipv6Address;
for(int dep1 = 0; dep1!= ipv6Address.size(); dep1++) {
setParameter("Ipv6Address."+ std::to_string(dep1), ipv6Address.at(dep1));
}
std::vector<std::string> CreateNetworkInterfaceRequest::getIpv6Address() const {
return ipv6Address_;
}
void CreateNetworkInterfaceRequest::setIpv6Address(const std::vector<std::string> &ipv6Address) {
ipv6Address_ = ipv6Address;
}

View File

@@ -1,216 +1,180 @@
/*
* 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/CreatePhysicalConnectionRequest.h>
using AlibabaCloud::Ecs::Model::CreatePhysicalConnectionRequest;
CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreatePhysicalConnection")
{
setMethod(HttpRequest::Method::Post);
}
CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest()
{}
std::string CreatePhysicalConnectionRequest::getAccessPointId()const
{
return accessPointId_;
*/
#include <alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h>
using AlibabaCloud::Ecs::Model::CreatePhysicalConnectionRequest;
CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreatePhysicalConnection") {
setMethod(HttpRequest::Method::Post);
}
void CreatePhysicalConnectionRequest::setAccessPointId(const std::string& accessPointId)
{
accessPointId_ = accessPointId;
setParameter("AccessPointId", accessPointId);
CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest() {}
std::string CreatePhysicalConnectionRequest::getAccessPointId() const {
return accessPointId_;
}
long CreatePhysicalConnectionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void CreatePhysicalConnectionRequest::setAccessPointId(const std::string &accessPointId) {
accessPointId_ = accessPointId;
setParameter(std::string("AccessPointId"), accessPointId);
}
void CreatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long CreatePhysicalConnectionRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreatePhysicalConnectionRequest::getPortType()const
{
return portType_;
void CreatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreatePhysicalConnectionRequest::setPortType(const std::string& portType)
{
portType_ = portType;
setParameter("PortType", portType);
std::string CreatePhysicalConnectionRequest::getPortType() const {
return portType_;
}
std::string CreatePhysicalConnectionRequest::getCircuitCode()const
{
return circuitCode_;
void CreatePhysicalConnectionRequest::setPortType(const std::string &portType) {
portType_ = portType;
setParameter(std::string("PortType"), portType);
}
void CreatePhysicalConnectionRequest::setCircuitCode(const std::string& circuitCode)
{
circuitCode_ = circuitCode;
setParameter("CircuitCode", circuitCode);
std::string CreatePhysicalConnectionRequest::getCircuitCode() const {
return circuitCode_;
}
std::string CreatePhysicalConnectionRequest::getClientToken()const
{
return clientToken_;
void CreatePhysicalConnectionRequest::setCircuitCode(const std::string &circuitCode) {
circuitCode_ = circuitCode;
setParameter(std::string("CircuitCode"), circuitCode);
}
void CreatePhysicalConnectionRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreatePhysicalConnectionRequest::getClientToken() const {
return clientToken_;
}
std::string CreatePhysicalConnectionRequest::getDescription()const
{
return description_;
void CreatePhysicalConnectionRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreatePhysicalConnectionRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreatePhysicalConnectionRequest::getDescription() const {
return description_;
}
std::string CreatePhysicalConnectionRequest::getType()const
{
return type_;
void CreatePhysicalConnectionRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreatePhysicalConnectionRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
std::string CreatePhysicalConnectionRequest::getType() const {
return type_;
}
std::string CreatePhysicalConnectionRequest::getRegionId()const
{
return regionId_;
void CreatePhysicalConnectionRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}
void CreatePhysicalConnectionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreatePhysicalConnectionRequest::getRegionId() const {
return regionId_;
}
std::string CreatePhysicalConnectionRequest::getUserCidr()const
{
return userCidr_;
void CreatePhysicalConnectionRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreatePhysicalConnectionRequest::setUserCidr(const std::string& userCidr)
{
userCidr_ = userCidr;
setParameter("UserCidr", userCidr);
std::string CreatePhysicalConnectionRequest::getUserCidr() const {
return userCidr_;
}
std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId()const
{
return redundantPhysicalConnectionId_;
void CreatePhysicalConnectionRequest::setUserCidr(const std::string &userCidr) {
userCidr_ = userCidr;
setParameter(std::string("UserCidr"), userCidr);
}
void CreatePhysicalConnectionRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId)
{
redundantPhysicalConnectionId_ = redundantPhysicalConnectionId;
setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId);
std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId() const {
return redundantPhysicalConnectionId_;
}
std::string CreatePhysicalConnectionRequest::getPeerLocation()const
{
return peerLocation_;
void CreatePhysicalConnectionRequest::setRedundantPhysicalConnectionId(const std::string &redundantPhysicalConnectionId) {
redundantPhysicalConnectionId_ = redundantPhysicalConnectionId;
setParameter(std::string("RedundantPhysicalConnectionId"), redundantPhysicalConnectionId);
}
void CreatePhysicalConnectionRequest::setPeerLocation(const std::string& peerLocation)
{
peerLocation_ = peerLocation;
setParameter("PeerLocation", peerLocation);
std::string CreatePhysicalConnectionRequest::getPeerLocation() const {
return peerLocation_;
}
int CreatePhysicalConnectionRequest::getBandwidth()const
{
return bandwidth_;
void CreatePhysicalConnectionRequest::setPeerLocation(const std::string &peerLocation) {
peerLocation_ = peerLocation;
setParameter(std::string("PeerLocation"), peerLocation);
}
void CreatePhysicalConnectionRequest::setBandwidth(int bandwidth)
{
bandwidth_ = bandwidth;
setParameter("Bandwidth", std::to_string(bandwidth));
int CreatePhysicalConnectionRequest::getBandwidth() const {
return bandwidth_;
}
std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreatePhysicalConnectionRequest::setBandwidth(int bandwidth) {
bandwidth_ = bandwidth;
setParameter(std::string("bandwidth"), std::to_string(bandwidth));
}
void CreatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreatePhysicalConnectionRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreatePhysicalConnectionRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreatePhysicalConnectionRequest::getOwnerId()const
{
return ownerId_;
void CreatePhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreatePhysicalConnectionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreatePhysicalConnectionRequest::getOwnerId() const {
return ownerId_;
}
std::string CreatePhysicalConnectionRequest::getLineOperator()const
{
return lineOperator_;
void CreatePhysicalConnectionRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreatePhysicalConnectionRequest::setLineOperator(const std::string& lineOperator)
{
lineOperator_ = lineOperator;
setParameter("LineOperator", lineOperator);
std::string CreatePhysicalConnectionRequest::getLineOperator() const {
return lineOperator_;
}
std::string CreatePhysicalConnectionRequest::getName()const
{
return name_;
void CreatePhysicalConnectionRequest::setLineOperator(const std::string &lineOperator) {
lineOperator_ = lineOperator;
setParameter(std::string("LineOperator"), lineOperator);
}
void CreatePhysicalConnectionRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string CreatePhysicalConnectionRequest::getName() const {
return name_;
}
void CreatePhysicalConnectionRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View File

@@ -1,155 +1,131 @@
/*
* 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/CreatePrefixListRequest.h>
using AlibabaCloud::Ecs::Model::CreatePrefixListRequest;
CreatePrefixListRequest::CreatePrefixListRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreatePrefixList")
{
setMethod(HttpRequest::Method::Post);
}
CreatePrefixListRequest::~CreatePrefixListRequest()
{}
long CreatePrefixListRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreatePrefixListRequest.h>
using AlibabaCloud::Ecs::Model::CreatePrefixListRequest;
CreatePrefixListRequest::CreatePrefixListRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreatePrefixList") {
setMethod(HttpRequest::Method::Post);
}
void CreatePrefixListRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreatePrefixListRequest::~CreatePrefixListRequest() {}
long CreatePrefixListRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreatePrefixListRequest::getClientToken()const
{
return clientToken_;
void CreatePrefixListRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreatePrefixListRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreatePrefixListRequest::getClientToken() const {
return clientToken_;
}
std::string CreatePrefixListRequest::getDescription()const
{
return description_;
void CreatePrefixListRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreatePrefixListRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreatePrefixListRequest::getDescription() const {
return description_;
}
int CreatePrefixListRequest::getMaxEntries()const
{
return maxEntries_;
void CreatePrefixListRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreatePrefixListRequest::setMaxEntries(int maxEntries)
{
maxEntries_ = maxEntries;
setParameter("MaxEntries", std::to_string(maxEntries));
int CreatePrefixListRequest::getMaxEntries() const {
return maxEntries_;
}
std::string CreatePrefixListRequest::getRegionId()const
{
return regionId_;
void CreatePrefixListRequest::setMaxEntries(int maxEntries) {
maxEntries_ = maxEntries;
setParameter(std::string("MaxEntries"), std::to_string(maxEntries));
}
void CreatePrefixListRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreatePrefixListRequest::getRegionId() const {
return regionId_;
}
std::string CreatePrefixListRequest::getAddressFamily()const
{
return addressFamily_;
void CreatePrefixListRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreatePrefixListRequest::setAddressFamily(const std::string& addressFamily)
{
addressFamily_ = addressFamily;
setParameter("AddressFamily", addressFamily);
std::string CreatePrefixListRequest::getAddressFamily() const {
return addressFamily_;
}
std::string CreatePrefixListRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreatePrefixListRequest::setAddressFamily(const std::string &addressFamily) {
addressFamily_ = addressFamily;
setParameter(std::string("AddressFamily"), addressFamily);
}
void CreatePrefixListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreatePrefixListRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreatePrefixListRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreatePrefixListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreatePrefixListRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreatePrefixListRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreatePrefixListRequest::getOwnerId()const
{
return ownerId_;
void CreatePrefixListRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreatePrefixListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreatePrefixListRequest::getOwnerId() const {
return ownerId_;
}
std::string CreatePrefixListRequest::getPrefixListName()const
{
return prefixListName_;
void CreatePrefixListRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreatePrefixListRequest::setPrefixListName(const std::string& prefixListName)
{
prefixListName_ = prefixListName;
setParameter("PrefixListName", prefixListName);
std::string CreatePrefixListRequest::getPrefixListName() const {
return prefixListName_;
}
std::vector<CreatePrefixListRequest::Entry> CreatePrefixListRequest::getEntry()const
{
return entry_;
void CreatePrefixListRequest::setPrefixListName(const std::string &prefixListName) {
prefixListName_ = prefixListName;
setParameter(std::string("PrefixListName"), prefixListName);
}
void CreatePrefixListRequest::setEntry(const std::vector<Entry>& entry)
{
entry_ = entry;
for(int dep1 = 0; dep1!= entry.size(); dep1++) {
auto entryObj = entry.at(dep1);
std::string entryObjStr = "Entry." + std::to_string(dep1 + 1);
setParameter(entryObjStr + ".Cidr", entryObj.cidr);
setParameter(entryObjStr + ".Description", entryObj.description);
}
std::vector<CreatePrefixListRequest::Entry> CreatePrefixListRequest::getEntry() const {
return entry_;
}
void CreatePrefixListRequest::setEntry(const std::vector<CreatePrefixListRequest::Entry> &entry) {
entry_ = entry;
for(int dep1 = 0; dep1 != entry.size(); dep1++) {
auto entryObj = entry.at(dep1);
std::string entryObjStr = std::string("Entry") + "." + std::to_string(dep1 + 1);
setParameter(entryObjStr + ".Description", entryObj.description);
setParameter(entryObjStr + ".Cidr", entryObj.cidr);
}
}

View File

@@ -1,155 +1,131 @@
/*
* 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/CreateRouteEntryRequest.h>
using AlibabaCloud::Ecs::Model::CreateRouteEntryRequest;
CreateRouteEntryRequest::CreateRouteEntryRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateRouteEntry")
{
setMethod(HttpRequest::Method::Post);
}
CreateRouteEntryRequest::~CreateRouteEntryRequest()
{}
long CreateRouteEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateRouteEntryRequest.h>
using AlibabaCloud::Ecs::Model::CreateRouteEntryRequest;
CreateRouteEntryRequest::CreateRouteEntryRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateRouteEntry") {
setMethod(HttpRequest::Method::Post);
}
void CreateRouteEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateRouteEntryRequest::~CreateRouteEntryRequest() {}
long CreateRouteEntryRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateRouteEntryRequest::getClientToken()const
{
return clientToken_;
void CreateRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateRouteEntryRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateRouteEntryRequest::getClientToken() const {
return clientToken_;
}
std::string CreateRouteEntryRequest::getRegionId()const
{
return regionId_;
void CreateRouteEntryRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateRouteEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateRouteEntryRequest::getRegionId() const {
return regionId_;
}
std::string CreateRouteEntryRequest::getNextHopId()const
{
return nextHopId_;
void CreateRouteEntryRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateRouteEntryRequest::setNextHopId(const std::string& nextHopId)
{
nextHopId_ = nextHopId;
setParameter("NextHopId", nextHopId);
std::string CreateRouteEntryRequest::getNextHopId() const {
return nextHopId_;
}
std::string CreateRouteEntryRequest::getNextHopType()const
{
return nextHopType_;
void CreateRouteEntryRequest::setNextHopId(const std::string &nextHopId) {
nextHopId_ = nextHopId;
setParameter(std::string("NextHopId"), nextHopId);
}
void CreateRouteEntryRequest::setNextHopType(const std::string& nextHopType)
{
nextHopType_ = nextHopType;
setParameter("NextHopType", nextHopType);
std::string CreateRouteEntryRequest::getNextHopType() const {
return nextHopType_;
}
std::string CreateRouteEntryRequest::getRouteTableId()const
{
return routeTableId_;
void CreateRouteEntryRequest::setNextHopType(const std::string &nextHopType) {
nextHopType_ = nextHopType;
setParameter(std::string("NextHopType"), nextHopType);
}
void CreateRouteEntryRequest::setRouteTableId(const std::string& routeTableId)
{
routeTableId_ = routeTableId;
setParameter("RouteTableId", routeTableId);
std::string CreateRouteEntryRequest::getRouteTableId() const {
return routeTableId_;
}
std::string CreateRouteEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateRouteEntryRequest::setRouteTableId(const std::string &routeTableId) {
routeTableId_ = routeTableId;
setParameter(std::string("RouteTableId"), routeTableId);
}
void CreateRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateRouteEntryRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateRouteEntryRequest::getDestinationCidrBlock()const
{
return destinationCidrBlock_;
void CreateRouteEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
{
destinationCidrBlock_ = destinationCidrBlock;
setParameter("DestinationCidrBlock", destinationCidrBlock);
std::string CreateRouteEntryRequest::getDestinationCidrBlock() const {
return destinationCidrBlock_;
}
std::string CreateRouteEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateRouteEntryRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) {
destinationCidrBlock_ = destinationCidrBlock;
setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock);
}
void CreateRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateRouteEntryRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateRouteEntryRequest::getOwnerId()const
{
return ownerId_;
void CreateRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateRouteEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateRouteEntryRequest::getOwnerId() const {
return ownerId_;
}
std::vector<CreateRouteEntryRequest::NextHopList> CreateRouteEntryRequest::getNextHopList()const
{
return nextHopList_;
void CreateRouteEntryRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateRouteEntryRequest::setNextHopList(const std::vector<NextHopList>& nextHopList)
{
nextHopList_ = nextHopList;
for(int dep1 = 0; dep1!= nextHopList.size(); dep1++) {
auto nextHopListObj = nextHopList.at(dep1);
std::string nextHopListObjStr = "NextHopList." + std::to_string(dep1 + 1);
setParameter(nextHopListObjStr + ".NextHopId", nextHopListObj.nextHopId);
setParameter(nextHopListObjStr + ".NextHopType", nextHopListObj.nextHopType);
}
std::vector<CreateRouteEntryRequest::NextHopList> CreateRouteEntryRequest::getNextHopList() const {
return nextHopList_;
}
void CreateRouteEntryRequest::setNextHopList(const std::vector<CreateRouteEntryRequest::NextHopList> &nextHopList) {
nextHopList_ = nextHopList;
for(int dep1 = 0; dep1 != nextHopList.size(); dep1++) {
auto nextHopListObj = nextHopList.at(dep1);
std::string nextHopListObjStr = std::string("NextHopList") + "." + std::to_string(dep1 + 1);
setParameter(nextHopListObjStr + ".NextHopId", nextHopListObj.nextHopId);
setParameter(nextHopListObjStr + ".NextHopType", nextHopListObj.nextHopType);
}
}

View File

@@ -1,315 +1,261 @@
/*
* 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/CreateRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::CreateRouterInterfaceRequest;
CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateRouterInterface")
{
setMethod(HttpRequest::Method::Post);
}
CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest()
{}
std::string CreateRouterInterfaceRequest::getAccessPointId()const
{
return accessPointId_;
*/
#include <alibabacloud/ecs/model/CreateRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::CreateRouterInterfaceRequest;
CreateRouterInterfaceRequest::CreateRouterInterfaceRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateRouterInterface") {
setMethod(HttpRequest::Method::Post);
}
void CreateRouterInterfaceRequest::setAccessPointId(const std::string& accessPointId)
{
accessPointId_ = accessPointId;
setParameter("AccessPointId", accessPointId);
CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest() {}
std::string CreateRouterInterfaceRequest::getAccessPointId() const {
return accessPointId_;
}
std::string CreateRouterInterfaceRequest::getOppositeRouterId()const
{
return oppositeRouterId_;
void CreateRouterInterfaceRequest::setAccessPointId(const std::string &accessPointId) {
accessPointId_ = accessPointId;
setParameter(std::string("AccessPointId"), accessPointId);
}
void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string& oppositeRouterId)
{
oppositeRouterId_ = oppositeRouterId;
setParameter("OppositeRouterId", oppositeRouterId);
std::string CreateRouterInterfaceRequest::getOppositeRouterId() const {
return oppositeRouterId_;
}
std::string CreateRouterInterfaceRequest::getOppositeAccessPointId()const
{
return oppositeAccessPointId_;
void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string &oppositeRouterId) {
oppositeRouterId_ = oppositeRouterId;
setParameter(std::string("OppositeRouterId"), oppositeRouterId);
}
void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string& oppositeAccessPointId)
{
oppositeAccessPointId_ = oppositeAccessPointId;
setParameter("OppositeAccessPointId", oppositeAccessPointId);
std::string CreateRouterInterfaceRequest::getOppositeAccessPointId() const {
return oppositeAccessPointId_;
}
long CreateRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string &oppositeAccessPointId) {
oppositeAccessPointId_ = oppositeAccessPointId;
setParameter(std::string("OppositeAccessPointId"), oppositeAccessPointId);
}
void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long CreateRouterInterfaceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateRouterInterfaceRequest::getRole()const
{
return role_;
void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateRouterInterfaceRequest::setRole(const std::string& role)
{
role_ = role;
setParameter("Role", role);
std::string CreateRouterInterfaceRequest::getRole() const {
return role_;
}
std::string CreateRouterInterfaceRequest::getClientToken()const
{
return clientToken_;
void CreateRouterInterfaceRequest::setRole(const std::string &role) {
role_ = role;
setParameter(std::string("Role"), role);
}
void CreateRouterInterfaceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateRouterInterfaceRequest::getClientToken() const {
return clientToken_;
}
std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const
{
return healthCheckTargetIp_;
void CreateRouterInterfaceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp)
{
healthCheckTargetIp_ = healthCheckTargetIp;
setParameter("HealthCheckTargetIp", healthCheckTargetIp);
std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp() const {
return healthCheckTargetIp_;
}
std::string CreateRouterInterfaceRequest::getDescription()const
{
return description_;
void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string &healthCheckTargetIp) {
healthCheckTargetIp_ = healthCheckTargetIp;
setParameter(std::string("HealthCheckTargetIp"), healthCheckTargetIp);
}
void CreateRouterInterfaceRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateRouterInterfaceRequest::getDescription() const {
return description_;
}
std::string CreateRouterInterfaceRequest::getSpec()const
{
return spec_;
void CreateRouterInterfaceRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateRouterInterfaceRequest::setSpec(const std::string& spec)
{
spec_ = spec;
setParameter("Spec", spec);
std::string CreateRouterInterfaceRequest::getSpec() const {
return spec_;
}
std::string CreateRouterInterfaceRequest::getRegionId()const
{
return regionId_;
void CreateRouterInterfaceRequest::setSpec(const std::string &spec) {
spec_ = spec;
setParameter(std::string("Spec"), spec);
}
void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateRouterInterfaceRequest::getRegionId() const {
return regionId_;
}
std::string CreateRouterInterfaceRequest::getUserCidr()const
{
return userCidr_;
void CreateRouterInterfaceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateRouterInterfaceRequest::setUserCidr(const std::string& userCidr)
{
userCidr_ = userCidr;
setParameter("UserCidr", userCidr);
std::string CreateRouterInterfaceRequest::getUserCidr() const {
return userCidr_;
}
std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const
{
return oppositeInterfaceId_;
void CreateRouterInterfaceRequest::setUserCidr(const std::string &userCidr) {
userCidr_ = userCidr;
setParameter(std::string("UserCidr"), userCidr);
}
void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId)
{
oppositeInterfaceId_ = oppositeInterfaceId;
setParameter("OppositeInterfaceId", oppositeInterfaceId);
std::string CreateRouterInterfaceRequest::getOppositeInterfaceId() const {
return oppositeInterfaceId_;
}
std::string CreateRouterInterfaceRequest::getInstanceChargeType()const
{
return instanceChargeType_;
void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string &oppositeInterfaceId) {
oppositeInterfaceId_ = oppositeInterfaceId;
setParameter(std::string("OppositeInterfaceId"), oppositeInterfaceId);
}
void CreateRouterInterfaceRequest::setInstanceChargeType(const std::string& instanceChargeType)
{
instanceChargeType_ = instanceChargeType;
setParameter("InstanceChargeType", instanceChargeType);
std::string CreateRouterInterfaceRequest::getInstanceChargeType() const {
return instanceChargeType_;
}
int CreateRouterInterfaceRequest::getPeriod()const
{
return period_;
void CreateRouterInterfaceRequest::setInstanceChargeType(const std::string &instanceChargeType) {
instanceChargeType_ = instanceChargeType;
setParameter(std::string("InstanceChargeType"), instanceChargeType);
}
void CreateRouterInterfaceRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
int CreateRouterInterfaceRequest::getPeriod() const {
return period_;
}
bool CreateRouterInterfaceRequest::getAutoPay()const
{
return autoPay_;
void CreateRouterInterfaceRequest::setPeriod(int period) {
period_ = period;
setParameter(std::string("Period"), std::to_string(period));
}
void CreateRouterInterfaceRequest::setAutoPay(bool autoPay)
{
autoPay_ = autoPay;
setParameter("AutoPay", autoPay ? "true" : "false");
bool CreateRouterInterfaceRequest::getAutoPay() const {
return autoPay_;
}
std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateRouterInterfaceRequest::setAutoPay(bool autoPay) {
autoPay_ = autoPay;
setParameter(std::string("AutoPay"), autoPay ? "true" : "false");
}
void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateRouterInterfaceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateRouterInterfaceRequest::getOppositeRegionId()const
{
return oppositeRegionId_;
void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string& oppositeRegionId)
{
oppositeRegionId_ = oppositeRegionId;
setParameter("OppositeRegionId", oppositeRegionId);
std::string CreateRouterInterfaceRequest::getOppositeRegionId() const {
return oppositeRegionId_;
}
std::string CreateRouterInterfaceRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string &oppositeRegionId) {
oppositeRegionId_ = oppositeRegionId;
setParameter(std::string("OppositeRegionId"), oppositeRegionId);
}
void CreateRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateRouterInterfaceRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
void CreateRouterInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateRouterInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateRouterInterfaceRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const
{
return oppositeInterfaceOwnerId_;
void CreateRouterInterfaceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId)
{
oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId;
setParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId);
std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId() const {
return oppositeInterfaceOwnerId_;
}
std::string CreateRouterInterfaceRequest::getRouterType()const
{
return routerType_;
void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string &oppositeInterfaceOwnerId) {
oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId;
setParameter(std::string("OppositeInterfaceOwnerId"), oppositeInterfaceOwnerId);
}
void CreateRouterInterfaceRequest::setRouterType(const std::string& routerType)
{
routerType_ = routerType;
setParameter("RouterType", routerType);
std::string CreateRouterInterfaceRequest::getRouterType() const {
return routerType_;
}
std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const
{
return healthCheckSourceIp_;
void CreateRouterInterfaceRequest::setRouterType(const std::string &routerType) {
routerType_ = routerType;
setParameter(std::string("RouterType"), routerType);
}
void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp)
{
healthCheckSourceIp_ = healthCheckSourceIp;
setParameter("HealthCheckSourceIp", healthCheckSourceIp);
std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp() const {
return healthCheckSourceIp_;
}
std::string CreateRouterInterfaceRequest::getRouterId()const
{
return routerId_;
void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string &healthCheckSourceIp) {
healthCheckSourceIp_ = healthCheckSourceIp;
setParameter(std::string("HealthCheckSourceIp"), healthCheckSourceIp);
}
void CreateRouterInterfaceRequest::setRouterId(const std::string& routerId)
{
routerId_ = routerId;
setParameter("RouterId", routerId);
std::string CreateRouterInterfaceRequest::getRouterId() const {
return routerId_;
}
std::string CreateRouterInterfaceRequest::getOppositeRouterType()const
{
return oppositeRouterType_;
void CreateRouterInterfaceRequest::setRouterId(const std::string &routerId) {
routerId_ = routerId;
setParameter(std::string("RouterId"), routerId);
}
void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string& oppositeRouterType)
{
oppositeRouterType_ = oppositeRouterType;
setParameter("OppositeRouterType", oppositeRouterType);
std::string CreateRouterInterfaceRequest::getOppositeRouterType() const {
return oppositeRouterType_;
}
std::string CreateRouterInterfaceRequest::getName()const
{
return name_;
void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string &oppositeRouterType) {
oppositeRouterType_ = oppositeRouterType;
setParameter(std::string("OppositeRouterType"), oppositeRouterType);
}
void CreateRouterInterfaceRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string CreateRouterInterfaceRequest::getName() const {
return name_;
}
std::string CreateRouterInterfaceRequest::getPricingCycle()const
{
return pricingCycle_;
void CreateRouterInterfaceRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
void CreateRouterInterfaceRequest::setPricingCycle(const std::string& pricingCycle)
{
pricingCycle_ = pricingCycle;
setParameter("PricingCycle", pricingCycle);
std::string CreateRouterInterfaceRequest::getPricingCycle() const {
return pricingCycle_;
}
void CreateRouterInterfaceRequest::setPricingCycle(const std::string &pricingCycle) {
pricingCycle_ = pricingCycle;
setParameter(std::string("PricingCycle"), pricingCycle);
}

View File

@@ -39,10 +39,10 @@ void CreateRouterInterfaceResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RouterInterfaceId"].isNull())
routerInterfaceId_ = value["RouterInterfaceId"].asString();
if(!value["OrderId"].isNull())
orderId_ = std::stol(value["OrderId"].asString());
if(!value["RouterInterfaceId"].isNull())
routerInterfaceId_ = value["RouterInterfaceId"].asString();
}

View File

@@ -1,177 +1,149 @@
/*
* 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/CreateSecurityGroupRequest.h>
using AlibabaCloud::Ecs::Model::CreateSecurityGroupRequest;
CreateSecurityGroupRequest::CreateSecurityGroupRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSecurityGroup")
{
setMethod(HttpRequest::Method::Post);
}
CreateSecurityGroupRequest::~CreateSecurityGroupRequest()
{}
long CreateSecurityGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateSecurityGroupRequest.h>
using AlibabaCloud::Ecs::Model::CreateSecurityGroupRequest;
CreateSecurityGroupRequest::CreateSecurityGroupRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateSecurityGroup") {
setMethod(HttpRequest::Method::Post);
}
void CreateSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateSecurityGroupRequest::~CreateSecurityGroupRequest() {}
long CreateSecurityGroupRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateSecurityGroupRequest::getClientToken()const
{
return clientToken_;
void CreateSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateSecurityGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateSecurityGroupRequest::getClientToken() const {
return clientToken_;
}
bool CreateSecurityGroupRequest::getServiceManaged()const
{
return serviceManaged_;
void CreateSecurityGroupRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateSecurityGroupRequest::setServiceManaged(bool serviceManaged)
{
serviceManaged_ = serviceManaged;
setParameter("ServiceManaged", serviceManaged ? "true" : "false");
bool CreateSecurityGroupRequest::getServiceManaged() const {
return serviceManaged_;
}
std::string CreateSecurityGroupRequest::getDescription()const
{
return description_;
void CreateSecurityGroupRequest::setServiceManaged(bool serviceManaged) {
serviceManaged_ = serviceManaged;
setParameter(std::string("ServiceManaged"), serviceManaged ? "true" : "false");
}
void CreateSecurityGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateSecurityGroupRequest::getDescription() const {
return description_;
}
std::string CreateSecurityGroupRequest::getSecurityGroupName()const
{
return securityGroupName_;
void CreateSecurityGroupRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateSecurityGroupRequest::setSecurityGroupName(const std::string& securityGroupName)
{
securityGroupName_ = securityGroupName;
setParameter("SecurityGroupName", securityGroupName);
std::string CreateSecurityGroupRequest::getSecurityGroupName() const {
return securityGroupName_;
}
std::string CreateSecurityGroupRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CreateSecurityGroupRequest::setSecurityGroupName(const std::string &securityGroupName) {
securityGroupName_ = securityGroupName;
setParameter(std::string("SecurityGroupName"), securityGroupName);
}
void CreateSecurityGroupRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CreateSecurityGroupRequest::getResourceGroupId() const {
return resourceGroupId_;
}
std::string CreateSecurityGroupRequest::getRegionId()const
{
return regionId_;
void CreateSecurityGroupRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CreateSecurityGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateSecurityGroupRequest::getRegionId() const {
return regionId_;
}
std::vector<CreateSecurityGroupRequest::Tag> CreateSecurityGroupRequest::getTag()const
{
return tag_;
void CreateSecurityGroupRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateSecurityGroupRequest::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 + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
std::vector<CreateSecurityGroupRequest::Tag> CreateSecurityGroupRequest::getTag() const {
return tag_;
}
std::string CreateSecurityGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateSecurityGroupRequest::setTag(const std::vector<CreateSecurityGroupRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
void CreateSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateSecurityGroupRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateSecurityGroupRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateSecurityGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateSecurityGroupRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateSecurityGroupRequest::getOwnerId()const
{
return ownerId_;
void CreateSecurityGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateSecurityGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateSecurityGroupRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateSecurityGroupRequest::getSecurityGroupType()const
{
return securityGroupType_;
void CreateSecurityGroupRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateSecurityGroupRequest::setSecurityGroupType(const std::string& securityGroupType)
{
securityGroupType_ = securityGroupType;
setParameter("SecurityGroupType", securityGroupType);
std::string CreateSecurityGroupRequest::getSecurityGroupType() const {
return securityGroupType_;
}
std::string CreateSecurityGroupRequest::getVpcId()const
{
return vpcId_;
void CreateSecurityGroupRequest::setSecurityGroupType(const std::string &securityGroupType) {
securityGroupType_ = securityGroupType;
setParameter(std::string("SecurityGroupType"), securityGroupType);
}
void CreateSecurityGroupRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
std::string CreateSecurityGroupRequest::getVpcId() const {
return vpcId_;
}
void CreateSecurityGroupRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setParameter(std::string("VpcId"), vpcId);
}

View File

@@ -1,119 +1,98 @@
/*
* 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/CreateSimulatedSystemEventsRequest.h>
using AlibabaCloud::Ecs::Model::CreateSimulatedSystemEventsRequest;
CreateSimulatedSystemEventsRequest::CreateSimulatedSystemEventsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSimulatedSystemEvents")
{
setMethod(HttpRequest::Method::Post);
}
CreateSimulatedSystemEventsRequest::~CreateSimulatedSystemEventsRequest()
{}
long CreateSimulatedSystemEventsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateSimulatedSystemEventsRequest.h>
using AlibabaCloud::Ecs::Model::CreateSimulatedSystemEventsRequest;
CreateSimulatedSystemEventsRequest::CreateSimulatedSystemEventsRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateSimulatedSystemEvents") {
setMethod(HttpRequest::Method::Post);
}
void CreateSimulatedSystemEventsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateSimulatedSystemEventsRequest::~CreateSimulatedSystemEventsRequest() {}
long CreateSimulatedSystemEventsRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateSimulatedSystemEventsRequest::getNotBefore()const
{
return notBefore_;
void CreateSimulatedSystemEventsRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateSimulatedSystemEventsRequest::setNotBefore(const std::string& notBefore)
{
notBefore_ = notBefore;
setParameter("NotBefore", notBefore);
std::string CreateSimulatedSystemEventsRequest::getNotBefore() const {
return notBefore_;
}
std::string CreateSimulatedSystemEventsRequest::getRegionId()const
{
return regionId_;
void CreateSimulatedSystemEventsRequest::setNotBefore(const std::string &notBefore) {
notBefore_ = notBefore;
setParameter(std::string("NotBefore"), notBefore);
}
void CreateSimulatedSystemEventsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateSimulatedSystemEventsRequest::getRegionId() const {
return regionId_;
}
std::string CreateSimulatedSystemEventsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateSimulatedSystemEventsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateSimulatedSystemEventsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateSimulatedSystemEventsRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateSimulatedSystemEventsRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateSimulatedSystemEventsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateSimulatedSystemEventsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateSimulatedSystemEventsRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateSimulatedSystemEventsRequest::getOwnerId()const
{
return ownerId_;
void CreateSimulatedSystemEventsRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateSimulatedSystemEventsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateSimulatedSystemEventsRequest::getOwnerId() const {
return ownerId_;
}
std::vector<std::string> CreateSimulatedSystemEventsRequest::getInstanceId()const
{
return instanceId_;
void CreateSimulatedSystemEventsRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateSimulatedSystemEventsRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
}
std::vector<std::string> CreateSimulatedSystemEventsRequest::getInstanceId() const {
return instanceId_;
}
std::string CreateSimulatedSystemEventsRequest::getEventType()const
{
return eventType_;
void CreateSimulatedSystemEventsRequest::setInstanceId(const std::vector<std::string> &instanceId) {
instanceId_ = instanceId;
}
void CreateSimulatedSystemEventsRequest::setEventType(const std::string& eventType)
{
eventType_ = eventType;
setParameter("EventType", eventType);
std::string CreateSimulatedSystemEventsRequest::getEventType() const {
return eventType_;
}
void CreateSimulatedSystemEventsRequest::setEventType(const std::string &eventType) {
eventType_ = eventType;
setParameter(std::string("EventType"), eventType);
}

View File

@@ -1,192 +1,156 @@
/*
* 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/CreateSnapshotGroupRequest.h>
using AlibabaCloud::Ecs::Model::CreateSnapshotGroupRequest;
CreateSnapshotGroupRequest::CreateSnapshotGroupRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshotGroup")
{
setMethod(HttpRequest::Method::Post);
}
CreateSnapshotGroupRequest::~CreateSnapshotGroupRequest()
{}
long CreateSnapshotGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateSnapshotGroupRequest.h>
using AlibabaCloud::Ecs::Model::CreateSnapshotGroupRequest;
CreateSnapshotGroupRequest::CreateSnapshotGroupRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshotGroup") {
setMethod(HttpRequest::Method::Post);
}
void CreateSnapshotGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateSnapshotGroupRequest::~CreateSnapshotGroupRequest() {}
long CreateSnapshotGroupRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
bool CreateSnapshotGroupRequest::getInstantAccess()const
{
return instantAccess_;
void CreateSnapshotGroupRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateSnapshotGroupRequest::setInstantAccess(bool instantAccess)
{
instantAccess_ = instantAccess;
setParameter("InstantAccess", instantAccess ? "true" : "false");
bool CreateSnapshotGroupRequest::getInstantAccess() const {
return instantAccess_;
}
std::vector<std::string> CreateSnapshotGroupRequest::getExcludeDiskId()const
{
return excludeDiskId_;
void CreateSnapshotGroupRequest::setInstantAccess(bool instantAccess) {
instantAccess_ = instantAccess;
setParameter(std::string("InstantAccess"), instantAccess ? "true" : "false");
}
void CreateSnapshotGroupRequest::setExcludeDiskId(const std::vector<std::string>& excludeDiskId)
{
excludeDiskId_ = excludeDiskId;
for(int dep1 = 0; dep1!= excludeDiskId.size(); dep1++) {
setParameter("ExcludeDiskId."+ std::to_string(dep1), excludeDiskId.at(dep1));
}
std::vector<std::string> CreateSnapshotGroupRequest::getExcludeDiskId() const {
return excludeDiskId_;
}
std::string CreateSnapshotGroupRequest::getDescription()const
{
return description_;
void CreateSnapshotGroupRequest::setExcludeDiskId(const std::vector<std::string> &excludeDiskId) {
excludeDiskId_ = excludeDiskId;
}
void CreateSnapshotGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateSnapshotGroupRequest::getDescription() const {
return description_;
}
std::string CreateSnapshotGroupRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CreateSnapshotGroupRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateSnapshotGroupRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CreateSnapshotGroupRequest::getResourceGroupId() const {
return resourceGroupId_;
}
int CreateSnapshotGroupRequest::getInstantAccessRetentionDays()const
{
return instantAccessRetentionDays_;
void CreateSnapshotGroupRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CreateSnapshotGroupRequest::setInstantAccessRetentionDays(int instantAccessRetentionDays)
{
instantAccessRetentionDays_ = instantAccessRetentionDays;
setParameter("InstantAccessRetentionDays", std::to_string(instantAccessRetentionDays));
int CreateSnapshotGroupRequest::getInstantAccessRetentionDays() const {
return instantAccessRetentionDays_;
}
std::string CreateSnapshotGroupRequest::getRegionId()const
{
return regionId_;
void CreateSnapshotGroupRequest::setInstantAccessRetentionDays(int instantAccessRetentionDays) {
instantAccessRetentionDays_ = instantAccessRetentionDays;
setParameter(std::string("InstantAccessRetentionDays"), std::to_string(instantAccessRetentionDays));
}
void CreateSnapshotGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateSnapshotGroupRequest::getRegionId() const {
return regionId_;
}
std::vector<std::string> CreateSnapshotGroupRequest::getDiskId()const
{
return diskId_;
void CreateSnapshotGroupRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateSnapshotGroupRequest::setDiskId(const std::vector<std::string>& diskId)
{
diskId_ = diskId;
for(int dep1 = 0; dep1!= diskId.size(); dep1++) {
setParameter("DiskId."+ std::to_string(dep1), diskId.at(dep1));
}
std::vector<std::string> CreateSnapshotGroupRequest::getDiskId() const {
return diskId_;
}
std::vector<CreateSnapshotGroupRequest::Tag> CreateSnapshotGroupRequest::getTag()const
{
return tag_;
void CreateSnapshotGroupRequest::setDiskId(const std::vector<std::string> &diskId) {
diskId_ = diskId;
}
void CreateSnapshotGroupRequest::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::vector<CreateSnapshotGroupRequest::Tag> CreateSnapshotGroupRequest::getTag() const {
return tag_;
}
std::string CreateSnapshotGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateSnapshotGroupRequest::setTag(const std::vector<CreateSnapshotGroupRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
void CreateSnapshotGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateSnapshotGroupRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateSnapshotGroupRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateSnapshotGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateSnapshotGroupRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateSnapshotGroupRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateSnapshotGroupRequest::getOwnerId()const
{
return ownerId_;
void CreateSnapshotGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateSnapshotGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateSnapshotGroupRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateSnapshotGroupRequest::getInstanceId()const
{
return instanceId_;
void CreateSnapshotGroupRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateSnapshotGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
std::string CreateSnapshotGroupRequest::getInstanceId() const {
return instanceId_;
}
std::string CreateSnapshotGroupRequest::getName()const
{
return name_;
void CreateSnapshotGroupRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
void CreateSnapshotGroupRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string CreateSnapshotGroupRequest::getName() const {
return name_;
}
void CreateSnapshotGroupRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View File

@@ -1,188 +1,158 @@
/*
* 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/CreateSnapshotRequest.h>
using AlibabaCloud::Ecs::Model::CreateSnapshotRequest;
CreateSnapshotRequest::CreateSnapshotRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshot")
{
setMethod(HttpRequest::Method::Post);
}
CreateSnapshotRequest::~CreateSnapshotRequest()
{}
long CreateSnapshotRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateSnapshotRequest.h>
using AlibabaCloud::Ecs::Model::CreateSnapshotRequest;
CreateSnapshotRequest::CreateSnapshotRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshot") {
setMethod(HttpRequest::Method::Post);
}
void CreateSnapshotRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateSnapshotRequest::~CreateSnapshotRequest() {}
long CreateSnapshotRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateSnapshotRequest::getClientToken()const
{
return clientToken_;
void CreateSnapshotRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateSnapshotRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateSnapshotRequest::getClientToken() const {
return clientToken_;
}
bool CreateSnapshotRequest::getInstantAccess()const
{
return instantAccess_;
void CreateSnapshotRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateSnapshotRequest::setInstantAccess(bool instantAccess)
{
instantAccess_ = instantAccess;
setParameter("InstantAccess", instantAccess ? "true" : "false");
bool CreateSnapshotRequest::getInstantAccess() const {
return instantAccess_;
}
std::string CreateSnapshotRequest::getDescription()const
{
return description_;
void CreateSnapshotRequest::setInstantAccess(bool instantAccess) {
instantAccess_ = instantAccess;
setParameter(std::string("InstantAccess"), instantAccess ? "true" : "false");
}
void CreateSnapshotRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateSnapshotRequest::getDescription() const {
return description_;
}
std::string CreateSnapshotRequest::getSnapshotName()const
{
return snapshotName_;
void CreateSnapshotRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateSnapshotRequest::setSnapshotName(const std::string& snapshotName)
{
snapshotName_ = snapshotName;
setParameter("SnapshotName", snapshotName);
std::string CreateSnapshotRequest::getSnapshotName() const {
return snapshotName_;
}
std::string CreateSnapshotRequest::getResourceGroupId()const
{
return resourceGroupId_;
void CreateSnapshotRequest::setSnapshotName(const std::string &snapshotName) {
snapshotName_ = snapshotName;
setParameter(std::string("SnapshotName"), snapshotName);
}
void CreateSnapshotRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
std::string CreateSnapshotRequest::getResourceGroupId() const {
return resourceGroupId_;
}
int CreateSnapshotRequest::getInstantAccessRetentionDays()const
{
return instantAccessRetentionDays_;
void CreateSnapshotRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
void CreateSnapshotRequest::setInstantAccessRetentionDays(int instantAccessRetentionDays)
{
instantAccessRetentionDays_ = instantAccessRetentionDays;
setParameter("InstantAccessRetentionDays", std::to_string(instantAccessRetentionDays));
int CreateSnapshotRequest::getInstantAccessRetentionDays() const {
return instantAccessRetentionDays_;
}
std::string CreateSnapshotRequest::getDiskId()const
{
return diskId_;
void CreateSnapshotRequest::setInstantAccessRetentionDays(int instantAccessRetentionDays) {
instantAccessRetentionDays_ = instantAccessRetentionDays;
setParameter(std::string("InstantAccessRetentionDays"), std::to_string(instantAccessRetentionDays));
}
void CreateSnapshotRequest::setDiskId(const std::string& diskId)
{
diskId_ = diskId;
setParameter("DiskId", diskId);
std::string CreateSnapshotRequest::getDiskId() const {
return diskId_;
}
std::vector<CreateSnapshotRequest::Tag> CreateSnapshotRequest::getTag()const
{
return tag_;
void CreateSnapshotRequest::setDiskId(const std::string &diskId) {
diskId_ = diskId;
setParameter(std::string("DiskId"), diskId);
}
void CreateSnapshotRequest::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 + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
std::vector<CreateSnapshotRequest::Tag> CreateSnapshotRequest::getTag() const {
return tag_;
}
std::string CreateSnapshotRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateSnapshotRequest::setTag(const std::vector<CreateSnapshotRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
void CreateSnapshotRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateSnapshotRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateSnapshotRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateSnapshotRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateSnapshotRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateSnapshotRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateSnapshotRequest::getOwnerId()const
{
return ownerId_;
void CreateSnapshotRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateSnapshotRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateSnapshotRequest::getOwnerId() const {
return ownerId_;
}
int CreateSnapshotRequest::getRetentionDays()const
{
return retentionDays_;
void CreateSnapshotRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateSnapshotRequest::setRetentionDays(int retentionDays)
{
retentionDays_ = retentionDays;
setParameter("RetentionDays", std::to_string(retentionDays));
int CreateSnapshotRequest::getRetentionDays() const {
return retentionDays_;
}
std::string CreateSnapshotRequest::getCategory()const
{
return category_;
void CreateSnapshotRequest::setRetentionDays(int retentionDays) {
retentionDays_ = retentionDays;
setParameter(std::string("RetentionDays"), std::to_string(retentionDays));
}
void CreateSnapshotRequest::setCategory(const std::string& category)
{
category_ = category;
setParameter("Category", category);
std::string CreateSnapshotRequest::getCategory() const {
return category_;
}
void CreateSnapshotRequest::setCategory(const std::string &category) {
category_ = category;
setParameter(std::string("Category"), category);
}

View File

@@ -1,139 +1,117 @@
/*
* 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/CreateStorageSetRequest.h>
using AlibabaCloud::Ecs::Model::CreateStorageSetRequest;
CreateStorageSetRequest::CreateStorageSetRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateStorageSet")
{
setMethod(HttpRequest::Method::Post);
}
CreateStorageSetRequest::~CreateStorageSetRequest()
{}
long CreateStorageSetRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateStorageSetRequest.h>
using AlibabaCloud::Ecs::Model::CreateStorageSetRequest;
CreateStorageSetRequest::CreateStorageSetRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateStorageSet") {
setMethod(HttpRequest::Method::Post);
}
void CreateStorageSetRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateStorageSetRequest::~CreateStorageSetRequest() {}
long CreateStorageSetRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateStorageSetRequest::getClientToken()const
{
return clientToken_;
void CreateStorageSetRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateStorageSetRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateStorageSetRequest::getClientToken() const {
return clientToken_;
}
int CreateStorageSetRequest::getMaxPartitionNumber()const
{
return maxPartitionNumber_;
void CreateStorageSetRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateStorageSetRequest::setMaxPartitionNumber(int maxPartitionNumber)
{
maxPartitionNumber_ = maxPartitionNumber;
setParameter("MaxPartitionNumber", std::to_string(maxPartitionNumber));
int CreateStorageSetRequest::getMaxPartitionNumber() const {
return maxPartitionNumber_;
}
std::string CreateStorageSetRequest::getDescription()const
{
return description_;
void CreateStorageSetRequest::setMaxPartitionNumber(int maxPartitionNumber) {
maxPartitionNumber_ = maxPartitionNumber;
setParameter(std::string("MaxPartitionNumber"), std::to_string(maxPartitionNumber));
}
void CreateStorageSetRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateStorageSetRequest::getDescription() const {
return description_;
}
std::string CreateStorageSetRequest::getRegionId()const
{
return regionId_;
void CreateStorageSetRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateStorageSetRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateStorageSetRequest::getRegionId() const {
return regionId_;
}
std::string CreateStorageSetRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateStorageSetRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateStorageSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateStorageSetRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateStorageSetRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateStorageSetRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateStorageSetRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateStorageSetRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateStorageSetRequest::getOwnerId()const
{
return ownerId_;
void CreateStorageSetRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateStorageSetRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateStorageSetRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateStorageSetRequest::getZoneId()const
{
return zoneId_;
void CreateStorageSetRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateStorageSetRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
std::string CreateStorageSetRequest::getZoneId() const {
return zoneId_;
}
std::string CreateStorageSetRequest::getStorageSetName()const
{
return storageSetName_;
void CreateStorageSetRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}
void CreateStorageSetRequest::setStorageSetName(const std::string& storageSetName)
{
storageSetName_ = storageSetName;
setParameter("StorageSetName", storageSetName);
std::string CreateStorageSetRequest::getStorageSetName() const {
return storageSetName_;
}
void CreateStorageSetRequest::setStorageSetName(const std::string &storageSetName) {
storageSetName_ = storageSetName;
setParameter(std::string("StorageSetName"), storageSetName);
}

View File

@@ -1,150 +1,126 @@
/*
* 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/CreateVSwitchRequest.h>
using AlibabaCloud::Ecs::Model::CreateVSwitchRequest;
CreateVSwitchRequest::CreateVSwitchRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateVSwitch")
{
setMethod(HttpRequest::Method::Post);
}
CreateVSwitchRequest::~CreateVSwitchRequest()
{}
long CreateVSwitchRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateVSwitchRequest.h>
using AlibabaCloud::Ecs::Model::CreateVSwitchRequest;
CreateVSwitchRequest::CreateVSwitchRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateVSwitch") {
setMethod(HttpRequest::Method::Post);
}
void CreateVSwitchRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateVSwitchRequest::~CreateVSwitchRequest() {}
long CreateVSwitchRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateVSwitchRequest::getClientToken()const
{
return clientToken_;
void CreateVSwitchRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateVSwitchRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateVSwitchRequest::getClientToken() const {
return clientToken_;
}
std::string CreateVSwitchRequest::getDescription()const
{
return description_;
void CreateVSwitchRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateVSwitchRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateVSwitchRequest::getDescription() const {
return description_;
}
std::string CreateVSwitchRequest::getRegionId()const
{
return regionId_;
void CreateVSwitchRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateVSwitchRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateVSwitchRequest::getRegionId() const {
return regionId_;
}
std::string CreateVSwitchRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateVSwitchRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateVSwitchRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateVSwitchRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateVSwitchRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateVSwitchRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateVSwitchRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateVSwitchRequest::getOwnerId()const
{
return ownerId_;
void CreateVSwitchRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateVSwitchRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateVSwitchRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateVSwitchRequest::getVpcId()const
{
return vpcId_;
void CreateVSwitchRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateVSwitchRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
std::string CreateVSwitchRequest::getVpcId() const {
return vpcId_;
}
std::string CreateVSwitchRequest::getVSwitchName()const
{
return vSwitchName_;
void CreateVSwitchRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setParameter(std::string("VpcId"), vpcId);
}
void CreateVSwitchRequest::setVSwitchName(const std::string& vSwitchName)
{
vSwitchName_ = vSwitchName;
setParameter("VSwitchName", vSwitchName);
std::string CreateVSwitchRequest::getVSwitchName() const {
return vSwitchName_;
}
std::string CreateVSwitchRequest::getCidrBlock()const
{
return cidrBlock_;
void CreateVSwitchRequest::setVSwitchName(const std::string &vSwitchName) {
vSwitchName_ = vSwitchName;
setParameter(std::string("VSwitchName"), vSwitchName);
}
void CreateVSwitchRequest::setCidrBlock(const std::string& cidrBlock)
{
cidrBlock_ = cidrBlock;
setParameter("CidrBlock", cidrBlock);
std::string CreateVSwitchRequest::getCidrBlock() const {
return cidrBlock_;
}
std::string CreateVSwitchRequest::getZoneId()const
{
return zoneId_;
void CreateVSwitchRequest::setCidrBlock(const std::string &cidrBlock) {
cidrBlock_ = cidrBlock;
setParameter(std::string("CidrBlock"), cidrBlock);
}
void CreateVSwitchRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
std::string CreateVSwitchRequest::getZoneId() const {
return zoneId_;
}
void CreateVSwitchRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}

View File

@@ -1,205 +1,171 @@
/*
* 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/CreateVirtualBorderRouterRequest.h>
using AlibabaCloud::Ecs::Model::CreateVirtualBorderRouterRequest;
CreateVirtualBorderRouterRequest::CreateVirtualBorderRouterRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateVirtualBorderRouter")
{
setMethod(HttpRequest::Method::Post);
}
CreateVirtualBorderRouterRequest::~CreateVirtualBorderRouterRequest()
{}
long CreateVirtualBorderRouterRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h>
using AlibabaCloud::Ecs::Model::CreateVirtualBorderRouterRequest;
CreateVirtualBorderRouterRequest::CreateVirtualBorderRouterRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateVirtualBorderRouter") {
setMethod(HttpRequest::Method::Post);
}
void CreateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateVirtualBorderRouterRequest::~CreateVirtualBorderRouterRequest() {}
long CreateVirtualBorderRouterRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateVirtualBorderRouterRequest::getCircuitCode()const
{
return circuitCode_;
void CreateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateVirtualBorderRouterRequest::setCircuitCode(const std::string& circuitCode)
{
circuitCode_ = circuitCode;
setParameter("CircuitCode", circuitCode);
std::string CreateVirtualBorderRouterRequest::getCircuitCode() const {
return circuitCode_;
}
int CreateVirtualBorderRouterRequest::getVlanId()const
{
return vlanId_;
void CreateVirtualBorderRouterRequest::setCircuitCode(const std::string &circuitCode) {
circuitCode_ = circuitCode;
setParameter(std::string("CircuitCode"), circuitCode);
}
void CreateVirtualBorderRouterRequest::setVlanId(int vlanId)
{
vlanId_ = vlanId;
setParameter("VlanId", std::to_string(vlanId));
int CreateVirtualBorderRouterRequest::getVlanId() const {
return vlanId_;
}
std::string CreateVirtualBorderRouterRequest::getClientToken()const
{
return clientToken_;
void CreateVirtualBorderRouterRequest::setVlanId(int vlanId) {
vlanId_ = vlanId;
setParameter(std::string("VlanId"), std::to_string(vlanId));
}
void CreateVirtualBorderRouterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateVirtualBorderRouterRequest::getClientToken() const {
return clientToken_;
}
std::string CreateVirtualBorderRouterRequest::getDescription()const
{
return description_;
void CreateVirtualBorderRouterRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateVirtualBorderRouterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateVirtualBorderRouterRequest::getDescription() const {
return description_;
}
std::string CreateVirtualBorderRouterRequest::getPeerGatewayIp()const
{
return peerGatewayIp_;
void CreateVirtualBorderRouterRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerGatewayIp)
{
peerGatewayIp_ = peerGatewayIp;
setParameter("PeerGatewayIp", peerGatewayIp);
std::string CreateVirtualBorderRouterRequest::getPeerGatewayIp() const {
return peerGatewayIp_;
}
std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask()const
{
return peeringSubnetMask_;
void CreateVirtualBorderRouterRequest::setPeerGatewayIp(const std::string &peerGatewayIp) {
peerGatewayIp_ = peerGatewayIp;
setParameter(std::string("PeerGatewayIp"), peerGatewayIp);
}
void CreateVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask)
{
peeringSubnetMask_ = peeringSubnetMask;
setParameter("PeeringSubnetMask", peeringSubnetMask);
std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask() const {
return peeringSubnetMask_;
}
std::string CreateVirtualBorderRouterRequest::getRegionId()const
{
return regionId_;
void CreateVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string &peeringSubnetMask) {
peeringSubnetMask_ = peeringSubnetMask;
setParameter(std::string("PeeringSubnetMask"), peeringSubnetMask);
}
void CreateVirtualBorderRouterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateVirtualBorderRouterRequest::getRegionId() const {
return regionId_;
}
std::string CreateVirtualBorderRouterRequest::getLocalGatewayIp()const
{
return localGatewayIp_;
void CreateVirtualBorderRouterRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& localGatewayIp)
{
localGatewayIp_ = localGatewayIp;
setParameter("LocalGatewayIp", localGatewayIp);
std::string CreateVirtualBorderRouterRequest::getLocalGatewayIp() const {
return localGatewayIp_;
}
std::string CreateVirtualBorderRouterRequest::getUserCidr()const
{
return userCidr_;
void CreateVirtualBorderRouterRequest::setLocalGatewayIp(const std::string &localGatewayIp) {
localGatewayIp_ = localGatewayIp;
setParameter(std::string("LocalGatewayIp"), localGatewayIp);
}
void CreateVirtualBorderRouterRequest::setUserCidr(const std::string& userCidr)
{
userCidr_ = userCidr;
setParameter("UserCidr", userCidr);
std::string CreateVirtualBorderRouterRequest::getUserCidr() const {
return userCidr_;
}
std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateVirtualBorderRouterRequest::setUserCidr(const std::string &userCidr) {
userCidr_ = userCidr;
setParameter(std::string("UserCidr"), userCidr);
}
void CreateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateVirtualBorderRouterRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateVirtualBorderRouterRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateVirtualBorderRouterRequest::getOwnerId()const
{
return ownerId_;
void CreateVirtualBorderRouterRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateVirtualBorderRouterRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateVirtualBorderRouterRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId()const
{
return physicalConnectionId_;
void CreateVirtualBorderRouterRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId)
{
physicalConnectionId_ = physicalConnectionId;
setParameter("PhysicalConnectionId", physicalConnectionId);
std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId() const {
return physicalConnectionId_;
}
std::string CreateVirtualBorderRouterRequest::getName()const
{
return name_;
void CreateVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) {
physicalConnectionId_ = physicalConnectionId;
setParameter(std::string("PhysicalConnectionId"), physicalConnectionId);
}
void CreateVirtualBorderRouterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string CreateVirtualBorderRouterRequest::getName() const {
return name_;
}
long CreateVirtualBorderRouterRequest::getVbrOwnerId()const
{
return vbrOwnerId_;
void CreateVirtualBorderRouterRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
void CreateVirtualBorderRouterRequest::setVbrOwnerId(long vbrOwnerId)
{
vbrOwnerId_ = vbrOwnerId;
setParameter("VbrOwnerId", std::to_string(vbrOwnerId));
long CreateVirtualBorderRouterRequest::getVbrOwnerId() const {
return vbrOwnerId_;
}
void CreateVirtualBorderRouterRequest::setVbrOwnerId(long vbrOwnerId) {
vbrOwnerId_ = vbrOwnerId;
setParameter(std::string("VbrOwnerId"), std::to_string(vbrOwnerId));
}

View File

@@ -1,139 +1,117 @@
/*
* 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/CreateVpcRequest.h>
using AlibabaCloud::Ecs::Model::CreateVpcRequest;
CreateVpcRequest::CreateVpcRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateVpc")
{
setMethod(HttpRequest::Method::Post);
}
CreateVpcRequest::~CreateVpcRequest()
{}
long CreateVpcRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/CreateVpcRequest.h>
using AlibabaCloud::Ecs::Model::CreateVpcRequest;
CreateVpcRequest::CreateVpcRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateVpc") {
setMethod(HttpRequest::Method::Post);
}
void CreateVpcRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
CreateVpcRequest::~CreateVpcRequest() {}
long CreateVpcRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string CreateVpcRequest::getClientToken()const
{
return clientToken_;
void CreateVpcRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void CreateVpcRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string CreateVpcRequest::getClientToken() const {
return clientToken_;
}
std::string CreateVpcRequest::getDescription()const
{
return description_;
void CreateVpcRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateVpcRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
std::string CreateVpcRequest::getDescription() const {
return description_;
}
std::string CreateVpcRequest::getVpcName()const
{
return vpcName_;
void CreateVpcRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
void CreateVpcRequest::setVpcName(const std::string& vpcName)
{
vpcName_ = vpcName;
setParameter("VpcName", vpcName);
std::string CreateVpcRequest::getVpcName() const {
return vpcName_;
}
std::string CreateVpcRequest::getRegionId()const
{
return regionId_;
void CreateVpcRequest::setVpcName(const std::string &vpcName) {
vpcName_ = vpcName;
setParameter(std::string("VpcName"), vpcName);
}
void CreateVpcRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string CreateVpcRequest::getRegionId() const {
return regionId_;
}
std::string CreateVpcRequest::getUserCidr()const
{
return userCidr_;
void CreateVpcRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateVpcRequest::setUserCidr(const std::string& userCidr)
{
userCidr_ = userCidr;
setParameter("UserCidr", userCidr);
std::string CreateVpcRequest::getUserCidr() const {
return userCidr_;
}
std::string CreateVpcRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void CreateVpcRequest::setUserCidr(const std::string &userCidr) {
userCidr_ = userCidr;
setParameter(std::string("UserCidr"), userCidr);
}
void CreateVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string CreateVpcRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string CreateVpcRequest::getOwnerAccount()const
{
return ownerAccount_;
void CreateVpcRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void CreateVpcRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string CreateVpcRequest::getOwnerAccount() const {
return ownerAccount_;
}
long CreateVpcRequest::getOwnerId()const
{
return ownerId_;
void CreateVpcRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void CreateVpcRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long CreateVpcRequest::getOwnerId() const {
return ownerId_;
}
std::string CreateVpcRequest::getCidrBlock()const
{
return cidrBlock_;
void CreateVpcRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void CreateVpcRequest::setCidrBlock(const std::string& cidrBlock)
{
cidrBlock_ = cidrBlock;
setParameter("CidrBlock", cidrBlock);
std::string CreateVpcRequest::getCidrBlock() const {
return cidrBlock_;
}
void CreateVpcRequest::setCidrBlock(const std::string &cidrBlock) {
cidrBlock_ = cidrBlock;
setParameter(std::string("CidrBlock"), cidrBlock);
}

View File

@@ -1,84 +1,72 @@
/*
* 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/DeactivateRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::DeactivateRouterInterfaceRequest;
DeactivateRouterInterfaceRequest::DeactivateRouterInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeactivateRouterInterface")
{
setMethod(HttpRequest::Method::Post);
}
DeactivateRouterInterfaceRequest::~DeactivateRouterInterfaceRequest()
{}
long DeactivateRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::DeactivateRouterInterfaceRequest;
DeactivateRouterInterfaceRequest::DeactivateRouterInterfaceRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeactivateRouterInterface") {
setMethod(HttpRequest::Method::Post);
}
void DeactivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeactivateRouterInterfaceRequest::~DeactivateRouterInterfaceRequest() {}
long DeactivateRouterInterfaceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeactivateRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeactivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeactivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeactivateRouterInterfaceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long DeactivateRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
void DeactivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeactivateRouterInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeactivateRouterInterfaceRequest::getOwnerId() const {
return ownerId_;
}
std::string DeactivateRouterInterfaceRequest::getRouterInterfaceId()const
{
return routerInterfaceId_;
void DeactivateRouterInterfaceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void DeactivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId)
{
routerInterfaceId_ = routerInterfaceId;
setParameter("RouterInterfaceId", routerInterfaceId);
std::string DeactivateRouterInterfaceRequest::getRouterInterfaceId() const {
return routerInterfaceId_;
}
std::string DeactivateRouterInterfaceRequest::getRegionId()const
{
return regionId_;
void DeactivateRouterInterfaceRequest::setRouterInterfaceId(const std::string &routerInterfaceId) {
routerInterfaceId_ = routerInterfaceId;
setParameter(std::string("RouterInterfaceId"), routerInterfaceId);
}
void DeactivateRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeactivateRouterInterfaceRequest::getRegionId() const {
return regionId_;
}
void DeactivateRouterInterfaceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -1,95 +1,81 @@
/*
* 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/DeleteActivationRequest.h>
using AlibabaCloud::Ecs::Model::DeleteActivationRequest;
DeleteActivationRequest::DeleteActivationRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteActivation")
{
setMethod(HttpRequest::Method::Post);
}
DeleteActivationRequest::~DeleteActivationRequest()
{}
long DeleteActivationRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteActivationRequest.h>
using AlibabaCloud::Ecs::Model::DeleteActivationRequest;
DeleteActivationRequest::DeleteActivationRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteActivation") {
setMethod(HttpRequest::Method::Post);
}
void DeleteActivationRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteActivationRequest::~DeleteActivationRequest() {}
long DeleteActivationRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteActivationRequest::getRegionId()const
{
return regionId_;
void DeleteActivationRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteActivationRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteActivationRequest::getRegionId() const {
return regionId_;
}
std::string DeleteActivationRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteActivationRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteActivationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteActivationRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteActivationRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteActivationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteActivationRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteActivationRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteActivationRequest::getOwnerId()const
{
return ownerId_;
void DeleteActivationRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteActivationRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteActivationRequest::getOwnerId() const {
return ownerId_;
}
std::string DeleteActivationRequest::getActivationId()const
{
return activationId_;
void DeleteActivationRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void DeleteActivationRequest::setActivationId(const std::string& activationId)
{
activationId_ = activationId;
setParameter("ActivationId", activationId);
std::string DeleteActivationRequest::getActivationId() const {
return activationId_;
}
void DeleteActivationRequest::setActivationId(const std::string &activationId) {
activationId_ = activationId;
setParameter(std::string("ActivationId"), activationId);
}

View File

@@ -40,24 +40,24 @@ void DeleteActivationResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto activationNode = value["Activation"];
if(!activationNode["ActivationId"].isNull())
activation_.activationId = activationNode["ActivationId"].asString();
if(!activationNode["InstanceName"].isNull())
activation_.instanceName = activationNode["InstanceName"].asString();
if(!activationNode["Description"].isNull())
activation_.description = activationNode["Description"].asString();
if(!activationNode["InstanceCount"].isNull())
activation_.instanceCount = std::stoi(activationNode["InstanceCount"].asString());
if(!activationNode["TimeToLiveInHours"].isNull())
activation_.timeToLiveInHours = std::stol(activationNode["TimeToLiveInHours"].asString());
if(!activationNode["IpAddressRange"].isNull())
activation_.ipAddressRange = activationNode["IpAddressRange"].asString();
if(!activationNode["RegisteredCount"].isNull())
activation_.registeredCount = std::stoi(activationNode["RegisteredCount"].asString());
if(!activationNode["DeregisteredCount"].isNull())
activation_.deregisteredCount = std::stoi(activationNode["DeregisteredCount"].asString());
if(!activationNode["CreationTime"].isNull())
activation_.creationTime = activationNode["CreationTime"].asString();
if(!activationNode["DeregisteredCount"].isNull())
activation_.deregisteredCount = std::stoi(activationNode["DeregisteredCount"].asString());
if(!activationNode["InstanceCount"].isNull())
activation_.instanceCount = std::stoi(activationNode["InstanceCount"].asString());
if(!activationNode["Description"].isNull())
activation_.description = activationNode["Description"].asString();
if(!activationNode["RegisteredCount"].isNull())
activation_.registeredCount = std::stoi(activationNode["RegisteredCount"].asString());
if(!activationNode["InstanceName"].isNull())
activation_.instanceName = activationNode["InstanceName"].asString();
if(!activationNode["IpAddressRange"].isNull())
activation_.ipAddressRange = activationNode["IpAddressRange"].asString();
if(!activationNode["TimeToLiveInHours"].isNull())
activation_.timeToLiveInHours = std::stol(activationNode["TimeToLiveInHours"].asString());
if(!activationNode["ActivationId"].isNull())
activation_.activationId = activationNode["ActivationId"].asString();
}

View File

@@ -1,106 +1,90 @@
/*
* 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/DeleteAutoProvisioningGroupRequest.h>
using AlibabaCloud::Ecs::Model::DeleteAutoProvisioningGroupRequest;
DeleteAutoProvisioningGroupRequest::DeleteAutoProvisioningGroupRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteAutoProvisioningGroup")
{
setMethod(HttpRequest::Method::Post);
}
DeleteAutoProvisioningGroupRequest::~DeleteAutoProvisioningGroupRequest()
{}
long DeleteAutoProvisioningGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteAutoProvisioningGroupRequest.h>
using AlibabaCloud::Ecs::Model::DeleteAutoProvisioningGroupRequest;
DeleteAutoProvisioningGroupRequest::DeleteAutoProvisioningGroupRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteAutoProvisioningGroup") {
setMethod(HttpRequest::Method::Post);
}
void DeleteAutoProvisioningGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteAutoProvisioningGroupRequest::~DeleteAutoProvisioningGroupRequest() {}
long DeleteAutoProvisioningGroupRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteAutoProvisioningGroupRequest::getRegionId()const
{
return regionId_;
void DeleteAutoProvisioningGroupRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteAutoProvisioningGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteAutoProvisioningGroupRequest::getRegionId() const {
return regionId_;
}
bool DeleteAutoProvisioningGroupRequest::getTerminateInstances()const
{
return terminateInstances_;
void DeleteAutoProvisioningGroupRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteAutoProvisioningGroupRequest::setTerminateInstances(bool terminateInstances)
{
terminateInstances_ = terminateInstances;
setParameter("TerminateInstances", terminateInstances ? "true" : "false");
bool DeleteAutoProvisioningGroupRequest::getTerminateInstances() const {
return terminateInstances_;
}
std::string DeleteAutoProvisioningGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteAutoProvisioningGroupRequest::setTerminateInstances(bool terminateInstances) {
terminateInstances_ = terminateInstances;
setParameter(std::string("TerminateInstances"), terminateInstances ? "true" : "false");
}
void DeleteAutoProvisioningGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteAutoProvisioningGroupRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteAutoProvisioningGroupRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteAutoProvisioningGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteAutoProvisioningGroupRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteAutoProvisioningGroupRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteAutoProvisioningGroupRequest::getOwnerId()const
{
return ownerId_;
void DeleteAutoProvisioningGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteAutoProvisioningGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteAutoProvisioningGroupRequest::getOwnerId() const {
return ownerId_;
}
std::string DeleteAutoProvisioningGroupRequest::getAutoProvisioningGroupId()const
{
return autoProvisioningGroupId_;
void DeleteAutoProvisioningGroupRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void DeleteAutoProvisioningGroupRequest::setAutoProvisioningGroupId(const std::string& autoProvisioningGroupId)
{
autoProvisioningGroupId_ = autoProvisioningGroupId;
setParameter("AutoProvisioningGroupId", autoProvisioningGroupId);
std::string DeleteAutoProvisioningGroupRequest::getAutoProvisioningGroupId() const {
return autoProvisioningGroupId_;
}
void DeleteAutoProvisioningGroupRequest::setAutoProvisioningGroupId(const std::string &autoProvisioningGroupId) {
autoProvisioningGroupId_ = autoProvisioningGroupId;
setParameter(std::string("AutoProvisioningGroupId"), autoProvisioningGroupId);
}

View File

@@ -1,84 +1,72 @@
/*
* 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/DeleteAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::DeleteAutoSnapshotPolicyRequest;
DeleteAutoSnapshotPolicyRequest::DeleteAutoSnapshotPolicyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteAutoSnapshotPolicy")
{
setMethod(HttpRequest::Method::Post);
}
DeleteAutoSnapshotPolicyRequest::~DeleteAutoSnapshotPolicyRequest()
{}
long DeleteAutoSnapshotPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::DeleteAutoSnapshotPolicyRequest;
DeleteAutoSnapshotPolicyRequest::DeleteAutoSnapshotPolicyRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteAutoSnapshotPolicy") {
setMethod(HttpRequest::Method::Post);
}
void DeleteAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteAutoSnapshotPolicyRequest::~DeleteAutoSnapshotPolicyRequest() {}
long DeleteAutoSnapshotPolicyRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId()const
{
return autoSnapshotPolicyId_;
void DeleteAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId)
{
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId);
std::string DeleteAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId() const {
return autoSnapshotPolicyId_;
}
std::string DeleteAutoSnapshotPolicyRequest::getRegionId()const
{
return regionId_;
void DeleteAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId) {
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
setParameter(std::string("autoSnapshotPolicyId"), autoSnapshotPolicyId);
}
void DeleteAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteAutoSnapshotPolicyRequest::getRegionId() const {
return regionId_;
}
std::string DeleteAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteAutoSnapshotPolicyRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("regionId"), regionId);
}
void DeleteAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteAutoSnapshotPolicyRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long DeleteAutoSnapshotPolicyRequest::getOwnerId()const
{
return ownerId_;
void DeleteAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteAutoSnapshotPolicyRequest::getOwnerId() const {
return ownerId_;
}
void DeleteAutoSnapshotPolicyRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,95 +1,81 @@
/*
* 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/DeleteBandwidthPackageRequest.h>
using AlibabaCloud::Ecs::Model::DeleteBandwidthPackageRequest;
DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteBandwidthPackage")
{
setMethod(HttpRequest::Method::Post);
}
DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest()
{}
long DeleteBandwidthPackageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h>
using AlibabaCloud::Ecs::Model::DeleteBandwidthPackageRequest;
DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteBandwidthPackage") {
setMethod(HttpRequest::Method::Post);
}
void DeleteBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest() {}
long DeleteBandwidthPackageRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteBandwidthPackageRequest::getRegionId()const
{
return regionId_;
void DeleteBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteBandwidthPackageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteBandwidthPackageRequest::getRegionId() const {
return regionId_;
}
std::string DeleteBandwidthPackageRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
void DeleteBandwidthPackageRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
std::string DeleteBandwidthPackageRequest::getBandwidthPackageId() const {
return bandwidthPackageId_;
}
std::string DeleteBandwidthPackageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteBandwidthPackageRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) {
bandwidthPackageId_ = bandwidthPackageId;
setParameter(std::string("BandwidthPackageId"), bandwidthPackageId);
}
void DeleteBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteBandwidthPackageRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteBandwidthPackageRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteBandwidthPackageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteBandwidthPackageRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteBandwidthPackageRequest::getOwnerId()const
{
return ownerId_;
void DeleteBandwidthPackageRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteBandwidthPackageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteBandwidthPackageRequest::getOwnerId() const {
return ownerId_;
}
void DeleteBandwidthPackageRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,95 +1,81 @@
/*
* 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/DeleteCommandRequest.h>
using AlibabaCloud::Ecs::Model::DeleteCommandRequest;
DeleteCommandRequest::DeleteCommandRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteCommand")
{
setMethod(HttpRequest::Method::Post);
}
DeleteCommandRequest::~DeleteCommandRequest()
{}
long DeleteCommandRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteCommandRequest.h>
using AlibabaCloud::Ecs::Model::DeleteCommandRequest;
DeleteCommandRequest::DeleteCommandRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteCommand") {
setMethod(HttpRequest::Method::Post);
}
void DeleteCommandRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteCommandRequest::~DeleteCommandRequest() {}
long DeleteCommandRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteCommandRequest::getCommandId()const
{
return commandId_;
void DeleteCommandRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteCommandRequest::setCommandId(const std::string& commandId)
{
commandId_ = commandId;
setParameter("CommandId", commandId);
std::string DeleteCommandRequest::getCommandId() const {
return commandId_;
}
std::string DeleteCommandRequest::getRegionId()const
{
return regionId_;
void DeleteCommandRequest::setCommandId(const std::string &commandId) {
commandId_ = commandId;
setParameter(std::string("CommandId"), commandId);
}
void DeleteCommandRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteCommandRequest::getRegionId() const {
return regionId_;
}
std::string DeleteCommandRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteCommandRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteCommandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteCommandRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteCommandRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteCommandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteCommandRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteCommandRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteCommandRequest::getOwnerId()const
{
return ownerId_;
void DeleteCommandRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteCommandRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteCommandRequest::getOwnerId() const {
return ownerId_;
}
void DeleteCommandRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,95 +1,81 @@
/*
* 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/DeleteDedicatedHostClusterRequest.h>
using AlibabaCloud::Ecs::Model::DeleteDedicatedHostClusterRequest;
DeleteDedicatedHostClusterRequest::DeleteDedicatedHostClusterRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteDedicatedHostCluster")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDedicatedHostClusterRequest::~DeleteDedicatedHostClusterRequest()
{}
long DeleteDedicatedHostClusterRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteDedicatedHostClusterRequest.h>
using AlibabaCloud::Ecs::Model::DeleteDedicatedHostClusterRequest;
DeleteDedicatedHostClusterRequest::DeleteDedicatedHostClusterRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteDedicatedHostCluster") {
setMethod(HttpRequest::Method::Post);
}
void DeleteDedicatedHostClusterRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteDedicatedHostClusterRequest::~DeleteDedicatedHostClusterRequest() {}
long DeleteDedicatedHostClusterRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteDedicatedHostClusterRequest::getRegionId()const
{
return regionId_;
void DeleteDedicatedHostClusterRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteDedicatedHostClusterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteDedicatedHostClusterRequest::getRegionId() const {
return regionId_;
}
std::string DeleteDedicatedHostClusterRequest::getDedicatedHostClusterId()const
{
return dedicatedHostClusterId_;
void DeleteDedicatedHostClusterRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteDedicatedHostClusterRequest::setDedicatedHostClusterId(const std::string& dedicatedHostClusterId)
{
dedicatedHostClusterId_ = dedicatedHostClusterId;
setParameter("DedicatedHostClusterId", dedicatedHostClusterId);
std::string DeleteDedicatedHostClusterRequest::getDedicatedHostClusterId() const {
return dedicatedHostClusterId_;
}
std::string DeleteDedicatedHostClusterRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteDedicatedHostClusterRequest::setDedicatedHostClusterId(const std::string &dedicatedHostClusterId) {
dedicatedHostClusterId_ = dedicatedHostClusterId;
setParameter(std::string("DedicatedHostClusterId"), dedicatedHostClusterId);
}
void DeleteDedicatedHostClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteDedicatedHostClusterRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteDedicatedHostClusterRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteDedicatedHostClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteDedicatedHostClusterRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteDedicatedHostClusterRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteDedicatedHostClusterRequest::getOwnerId()const
{
return ownerId_;
void DeleteDedicatedHostClusterRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteDedicatedHostClusterRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteDedicatedHostClusterRequest::getOwnerId() const {
return ownerId_;
}
void DeleteDedicatedHostClusterRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,117 +1,99 @@
/*
* 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/DeleteDemandRequest.h>
using AlibabaCloud::Ecs::Model::DeleteDemandRequest;
DeleteDemandRequest::DeleteDemandRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteDemand")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDemandRequest::~DeleteDemandRequest()
{}
std::string DeleteDemandRequest::getReason()const
{
return reason_;
*/
#include <alibabacloud/ecs/model/DeleteDemandRequest.h>
using AlibabaCloud::Ecs::Model::DeleteDemandRequest;
DeleteDemandRequest::DeleteDemandRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteDemand") {
setMethod(HttpRequest::Method::Post);
}
void DeleteDemandRequest::setReason(const std::string& reason)
{
reason_ = reason;
setParameter("Reason", reason);
DeleteDemandRequest::~DeleteDemandRequest() {}
std::string DeleteDemandRequest::getReason() const {
return reason_;
}
long DeleteDemandRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void DeleteDemandRequest::setReason(const std::string &reason) {
reason_ = reason;
setParameter(std::string("Reason"), reason);
}
void DeleteDemandRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long DeleteDemandRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteDemandRequest::getClientToken()const
{
return clientToken_;
void DeleteDemandRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteDemandRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string DeleteDemandRequest::getClientToken() const {
return clientToken_;
}
std::string DeleteDemandRequest::getRegionId()const
{
return regionId_;
void DeleteDemandRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void DeleteDemandRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteDemandRequest::getRegionId() const {
return regionId_;
}
std::string DeleteDemandRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteDemandRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteDemandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteDemandRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteDemandRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteDemandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteDemandRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteDemandRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteDemandRequest::getOwnerId()const
{
return ownerId_;
void DeleteDemandRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteDemandRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteDemandRequest::getOwnerId() const {
return ownerId_;
}
std::string DeleteDemandRequest::getDemandId()const
{
return demandId_;
void DeleteDemandRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void DeleteDemandRequest::setDemandId(const std::string& demandId)
{
demandId_ = demandId;
setParameter("DemandId", demandId);
std::string DeleteDemandRequest::getDemandId() const {
return demandId_;
}
void DeleteDemandRequest::setDemandId(const std::string &demandId) {
demandId_ = demandId;
setParameter(std::string("DemandId"), demandId);
}

View File

@@ -1,95 +1,81 @@
/*
* 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/DeleteDeploymentSetRequest.h>
using AlibabaCloud::Ecs::Model::DeleteDeploymentSetRequest;
DeleteDeploymentSetRequest::DeleteDeploymentSetRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteDeploymentSet")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDeploymentSetRequest::~DeleteDeploymentSetRequest()
{}
long DeleteDeploymentSetRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteDeploymentSetRequest.h>
using AlibabaCloud::Ecs::Model::DeleteDeploymentSetRequest;
DeleteDeploymentSetRequest::DeleteDeploymentSetRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteDeploymentSet") {
setMethod(HttpRequest::Method::Post);
}
void DeleteDeploymentSetRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteDeploymentSetRequest::~DeleteDeploymentSetRequest() {}
long DeleteDeploymentSetRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteDeploymentSetRequest::getRegionId()const
{
return regionId_;
void DeleteDeploymentSetRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteDeploymentSetRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteDeploymentSetRequest::getRegionId() const {
return regionId_;
}
std::string DeleteDeploymentSetRequest::getDeploymentSetId()const
{
return deploymentSetId_;
void DeleteDeploymentSetRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteDeploymentSetRequest::setDeploymentSetId(const std::string& deploymentSetId)
{
deploymentSetId_ = deploymentSetId;
setParameter("DeploymentSetId", deploymentSetId);
std::string DeleteDeploymentSetRequest::getDeploymentSetId() const {
return deploymentSetId_;
}
std::string DeleteDeploymentSetRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteDeploymentSetRequest::setDeploymentSetId(const std::string &deploymentSetId) {
deploymentSetId_ = deploymentSetId;
setParameter(std::string("DeploymentSetId"), deploymentSetId);
}
void DeleteDeploymentSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteDeploymentSetRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteDeploymentSetRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteDeploymentSetRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteDeploymentSetRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteDeploymentSetRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteDeploymentSetRequest::getOwnerId()const
{
return ownerId_;
void DeleteDeploymentSetRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteDeploymentSetRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteDeploymentSetRequest::getOwnerId() const {
return ownerId_;
}
void DeleteDeploymentSetRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,95 +1,81 @@
/*
* 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/DeleteDiskReplicaPairRequest.h>
using AlibabaCloud::Ecs::Model::DeleteDiskReplicaPairRequest;
DeleteDiskReplicaPairRequest::DeleteDiskReplicaPairRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteDiskReplicaPair")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDiskReplicaPairRequest::~DeleteDiskReplicaPairRequest()
{}
long DeleteDiskReplicaPairRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteDiskReplicaPairRequest.h>
using AlibabaCloud::Ecs::Model::DeleteDiskReplicaPairRequest;
DeleteDiskReplicaPairRequest::DeleteDiskReplicaPairRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteDiskReplicaPair") {
setMethod(HttpRequest::Method::Post);
}
void DeleteDiskReplicaPairRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteDiskReplicaPairRequest::~DeleteDiskReplicaPairRequest() {}
long DeleteDiskReplicaPairRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteDiskReplicaPairRequest::getRegionId()const
{
return regionId_;
void DeleteDiskReplicaPairRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteDiskReplicaPairRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteDiskReplicaPairRequest::getRegionId() const {
return regionId_;
}
std::string DeleteDiskReplicaPairRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteDiskReplicaPairRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteDiskReplicaPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteDiskReplicaPairRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteDiskReplicaPairRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteDiskReplicaPairRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteDiskReplicaPairRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteDiskReplicaPairRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteDiskReplicaPairRequest::getOwnerId()const
{
return ownerId_;
void DeleteDiskReplicaPairRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteDiskReplicaPairRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteDiskReplicaPairRequest::getOwnerId() const {
return ownerId_;
}
std::string DeleteDiskReplicaPairRequest::getReplicaPairId()const
{
return replicaPairId_;
void DeleteDiskReplicaPairRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void DeleteDiskReplicaPairRequest::setReplicaPairId(const std::string& replicaPairId)
{
replicaPairId_ = replicaPairId;
setParameter("ReplicaPairId", replicaPairId);
std::string DeleteDiskReplicaPairRequest::getReplicaPairId() const {
return replicaPairId_;
}
void DeleteDiskReplicaPairRequest::setReplicaPairId(const std::string &replicaPairId) {
replicaPairId_ = replicaPairId;
setParameter(std::string("ReplicaPairId"), replicaPairId);
}

View File

@@ -1,84 +1,72 @@
/*
* 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/DeleteDiskRequest.h>
using AlibabaCloud::Ecs::Model::DeleteDiskRequest;
DeleteDiskRequest::DeleteDiskRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteDisk")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDiskRequest::~DeleteDiskRequest()
{}
long DeleteDiskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteDiskRequest.h>
using AlibabaCloud::Ecs::Model::DeleteDiskRequest;
DeleteDiskRequest::DeleteDiskRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteDisk") {
setMethod(HttpRequest::Method::Post);
}
void DeleteDiskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteDiskRequest::~DeleteDiskRequest() {}
long DeleteDiskRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteDiskRequest::getDiskId()const
{
return diskId_;
void DeleteDiskRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteDiskRequest::setDiskId(const std::string& diskId)
{
diskId_ = diskId;
setParameter("DiskId", diskId);
std::string DeleteDiskRequest::getDiskId() const {
return diskId_;
}
std::string DeleteDiskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteDiskRequest::setDiskId(const std::string &diskId) {
diskId_ = diskId;
setParameter(std::string("DiskId"), diskId);
}
void DeleteDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteDiskRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteDiskRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteDiskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteDiskRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteDiskRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteDiskRequest::getOwnerId()const
{
return ownerId_;
void DeleteDiskRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteDiskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteDiskRequest::getOwnerId() const {
return ownerId_;
}
void DeleteDiskRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,106 +1,90 @@
/*
* 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/DeleteForwardEntryRequest.h>
using AlibabaCloud::Ecs::Model::DeleteForwardEntryRequest;
DeleteForwardEntryRequest::DeleteForwardEntryRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteForwardEntry")
{
setMethod(HttpRequest::Method::Post);
}
DeleteForwardEntryRequest::~DeleteForwardEntryRequest()
{}
long DeleteForwardEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteForwardEntryRequest.h>
using AlibabaCloud::Ecs::Model::DeleteForwardEntryRequest;
DeleteForwardEntryRequest::DeleteForwardEntryRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteForwardEntry") {
setMethod(HttpRequest::Method::Post);
}
void DeleteForwardEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteForwardEntryRequest::~DeleteForwardEntryRequest() {}
long DeleteForwardEntryRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteForwardEntryRequest::getForwardTableId()const
{
return forwardTableId_;
void DeleteForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteForwardEntryRequest::setForwardTableId(const std::string& forwardTableId)
{
forwardTableId_ = forwardTableId;
setParameter("ForwardTableId", forwardTableId);
std::string DeleteForwardEntryRequest::getForwardTableId() const {
return forwardTableId_;
}
std::string DeleteForwardEntryRequest::getRegionId()const
{
return regionId_;
void DeleteForwardEntryRequest::setForwardTableId(const std::string &forwardTableId) {
forwardTableId_ = forwardTableId;
setParameter(std::string("ForwardTableId"), forwardTableId);
}
void DeleteForwardEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteForwardEntryRequest::getRegionId() const {
return regionId_;
}
std::string DeleteForwardEntryRequest::getForwardEntryId()const
{
return forwardEntryId_;
void DeleteForwardEntryRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteForwardEntryRequest::setForwardEntryId(const std::string& forwardEntryId)
{
forwardEntryId_ = forwardEntryId;
setParameter("ForwardEntryId", forwardEntryId);
std::string DeleteForwardEntryRequest::getForwardEntryId() const {
return forwardEntryId_;
}
std::string DeleteForwardEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteForwardEntryRequest::setForwardEntryId(const std::string &forwardEntryId) {
forwardEntryId_ = forwardEntryId;
setParameter(std::string("ForwardEntryId"), forwardEntryId);
}
void DeleteForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteForwardEntryRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteForwardEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteForwardEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteForwardEntryRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteForwardEntryRequest::getOwnerId()const
{
return ownerId_;
void DeleteForwardEntryRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteForwardEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteForwardEntryRequest::getOwnerId() const {
return ownerId_;
}
void DeleteForwardEntryRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,106 +1,90 @@
/*
* 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/DeleteHaVipRequest.h>
using AlibabaCloud::Ecs::Model::DeleteHaVipRequest;
DeleteHaVipRequest::DeleteHaVipRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteHaVip")
{
setMethod(HttpRequest::Method::Post);
}
DeleteHaVipRequest::~DeleteHaVipRequest()
{}
long DeleteHaVipRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteHaVipRequest.h>
using AlibabaCloud::Ecs::Model::DeleteHaVipRequest;
DeleteHaVipRequest::DeleteHaVipRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteHaVip") {
setMethod(HttpRequest::Method::Post);
}
void DeleteHaVipRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteHaVipRequest::~DeleteHaVipRequest() {}
long DeleteHaVipRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteHaVipRequest::getClientToken()const
{
return clientToken_;
void DeleteHaVipRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteHaVipRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string DeleteHaVipRequest::getClientToken() const {
return clientToken_;
}
std::string DeleteHaVipRequest::getRegionId()const
{
return regionId_;
void DeleteHaVipRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void DeleteHaVipRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteHaVipRequest::getRegionId() const {
return regionId_;
}
std::string DeleteHaVipRequest::getHaVipId()const
{
return haVipId_;
void DeleteHaVipRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteHaVipRequest::setHaVipId(const std::string& haVipId)
{
haVipId_ = haVipId;
setParameter("HaVipId", haVipId);
std::string DeleteHaVipRequest::getHaVipId() const {
return haVipId_;
}
std::string DeleteHaVipRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteHaVipRequest::setHaVipId(const std::string &haVipId) {
haVipId_ = haVipId;
setParameter(std::string("HaVipId"), haVipId);
}
void DeleteHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteHaVipRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteHaVipRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteHaVipRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteHaVipRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteHaVipRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteHaVipRequest::getOwnerId()const
{
return ownerId_;
void DeleteHaVipRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteHaVipRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteHaVipRequest::getOwnerId() const {
return ownerId_;
}
void DeleteHaVipRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,106 +1,90 @@
/*
* 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/DeleteHpcClusterRequest.h>
using AlibabaCloud::Ecs::Model::DeleteHpcClusterRequest;
DeleteHpcClusterRequest::DeleteHpcClusterRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteHpcCluster")
{
setMethod(HttpRequest::Method::Post);
}
DeleteHpcClusterRequest::~DeleteHpcClusterRequest()
{}
long DeleteHpcClusterRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteHpcClusterRequest.h>
using AlibabaCloud::Ecs::Model::DeleteHpcClusterRequest;
DeleteHpcClusterRequest::DeleteHpcClusterRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteHpcCluster") {
setMethod(HttpRequest::Method::Post);
}
void DeleteHpcClusterRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteHpcClusterRequest::~DeleteHpcClusterRequest() {}
long DeleteHpcClusterRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteHpcClusterRequest::getHpcClusterId()const
{
return hpcClusterId_;
void DeleteHpcClusterRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteHpcClusterRequest::setHpcClusterId(const std::string& hpcClusterId)
{
hpcClusterId_ = hpcClusterId;
setParameter("HpcClusterId", hpcClusterId);
std::string DeleteHpcClusterRequest::getHpcClusterId() const {
return hpcClusterId_;
}
std::string DeleteHpcClusterRequest::getClientToken()const
{
return clientToken_;
void DeleteHpcClusterRequest::setHpcClusterId(const std::string &hpcClusterId) {
hpcClusterId_ = hpcClusterId;
setParameter(std::string("HpcClusterId"), hpcClusterId);
}
void DeleteHpcClusterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string DeleteHpcClusterRequest::getClientToken() const {
return clientToken_;
}
std::string DeleteHpcClusterRequest::getRegionId()const
{
return regionId_;
void DeleteHpcClusterRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void DeleteHpcClusterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteHpcClusterRequest::getRegionId() const {
return regionId_;
}
std::string DeleteHpcClusterRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteHpcClusterRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteHpcClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteHpcClusterRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteHpcClusterRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteHpcClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteHpcClusterRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteHpcClusterRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteHpcClusterRequest::getOwnerId()const
{
return ownerId_;
void DeleteHpcClusterRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteHpcClusterRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteHpcClusterRequest::getOwnerId() const {
return ownerId_;
}
void DeleteHpcClusterRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,111 +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/DeleteImageComponentRequest.h>
using AlibabaCloud::Ecs::Model::DeleteImageComponentRequest;
DeleteImageComponentRequest::DeleteImageComponentRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteImageComponent")
{
setMethod(HttpRequest::Method::Post);
}
DeleteImageComponentRequest::~DeleteImageComponentRequest()
{}
long DeleteImageComponentRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteImageComponentRequest.h>
using AlibabaCloud::Ecs::Model::DeleteImageComponentRequest;
DeleteImageComponentRequest::DeleteImageComponentRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteImageComponent") {
setMethod(HttpRequest::Method::Post);
}
void DeleteImageComponentRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteImageComponentRequest::~DeleteImageComponentRequest() {}
long DeleteImageComponentRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteImageComponentRequest::getImageComponentId()const
{
return imageComponentId_;
void DeleteImageComponentRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteImageComponentRequest::setImageComponentId(const std::string& imageComponentId)
{
imageComponentId_ = imageComponentId;
setParameter("ImageComponentId", imageComponentId);
std::string DeleteImageComponentRequest::getImageComponentId() const {
return imageComponentId_;
}
std::string DeleteImageComponentRequest::getRegionId()const
{
return regionId_;
void DeleteImageComponentRequest::setImageComponentId(const std::string &imageComponentId) {
imageComponentId_ = imageComponentId;
setParameter(std::string("ImageComponentId"), imageComponentId);
}
void DeleteImageComponentRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteImageComponentRequest::getRegionId() const {
return regionId_;
}
std::vector<DeleteImageComponentRequest::TemplateTag> DeleteImageComponentRequest::getTemplateTag()const
{
return templateTag_;
void DeleteImageComponentRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteImageComponentRequest::setTemplateTag(const std::vector<TemplateTag>& templateTag)
{
templateTag_ = templateTag;
for(int dep1 = 0; dep1!= templateTag.size(); dep1++) {
auto templateTagObj = templateTag.at(dep1);
std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1);
setParameter(templateTagObjStr + ".Key", templateTagObj.key);
setParameter(templateTagObjStr + ".Value", templateTagObj.value);
}
std::vector<DeleteImageComponentRequest::TemplateTag> DeleteImageComponentRequest::getTemplateTag() const {
return templateTag_;
}
std::string DeleteImageComponentRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteImageComponentRequest::setTemplateTag(const std::vector<DeleteImageComponentRequest::TemplateTag> &templateTag) {
templateTag_ = templateTag;
for(int dep1 = 0; dep1 != templateTag.size(); dep1++) {
auto templateTagObj = templateTag.at(dep1);
std::string templateTagObjStr = std::string("TemplateTag") + "." + std::to_string(dep1 + 1);
setParameter(templateTagObjStr + ".Key", templateTagObj.key);
setParameter(templateTagObjStr + ".Value", templateTagObj.value);
}
}
void DeleteImageComponentRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteImageComponentRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteImageComponentRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteImageComponentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteImageComponentRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteImageComponentRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteImageComponentRequest::getOwnerId()const
{
return ownerId_;
void DeleteImageComponentRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteImageComponentRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteImageComponentRequest::getOwnerId() const {
return ownerId_;
}
void DeleteImageComponentRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,111 +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/DeleteImagePipelineRequest.h>
using AlibabaCloud::Ecs::Model::DeleteImagePipelineRequest;
DeleteImagePipelineRequest::DeleteImagePipelineRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteImagePipeline")
{
setMethod(HttpRequest::Method::Post);
}
DeleteImagePipelineRequest::~DeleteImagePipelineRequest()
{}
std::string DeleteImagePipelineRequest::getImagePipelineId()const
{
return imagePipelineId_;
*/
#include <alibabacloud/ecs/model/DeleteImagePipelineRequest.h>
using AlibabaCloud::Ecs::Model::DeleteImagePipelineRequest;
DeleteImagePipelineRequest::DeleteImagePipelineRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteImagePipeline") {
setMethod(HttpRequest::Method::Post);
}
void DeleteImagePipelineRequest::setImagePipelineId(const std::string& imagePipelineId)
{
imagePipelineId_ = imagePipelineId;
setParameter("ImagePipelineId", imagePipelineId);
DeleteImagePipelineRequest::~DeleteImagePipelineRequest() {}
std::string DeleteImagePipelineRequest::getImagePipelineId() const {
return imagePipelineId_;
}
long DeleteImagePipelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void DeleteImagePipelineRequest::setImagePipelineId(const std::string &imagePipelineId) {
imagePipelineId_ = imagePipelineId;
setParameter(std::string("ImagePipelineId"), imagePipelineId);
}
void DeleteImagePipelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long DeleteImagePipelineRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteImagePipelineRequest::getRegionId()const
{
return regionId_;
void DeleteImagePipelineRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteImagePipelineRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteImagePipelineRequest::getRegionId() const {
return regionId_;
}
std::vector<DeleteImagePipelineRequest::TemplateTag> DeleteImagePipelineRequest::getTemplateTag()const
{
return templateTag_;
void DeleteImagePipelineRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteImagePipelineRequest::setTemplateTag(const std::vector<TemplateTag>& templateTag)
{
templateTag_ = templateTag;
for(int dep1 = 0; dep1!= templateTag.size(); dep1++) {
auto templateTagObj = templateTag.at(dep1);
std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1);
setParameter(templateTagObjStr + ".Key", templateTagObj.key);
setParameter(templateTagObjStr + ".Value", templateTagObj.value);
}
std::vector<DeleteImagePipelineRequest::TemplateTag> DeleteImagePipelineRequest::getTemplateTag() const {
return templateTag_;
}
std::string DeleteImagePipelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteImagePipelineRequest::setTemplateTag(const std::vector<DeleteImagePipelineRequest::TemplateTag> &templateTag) {
templateTag_ = templateTag;
for(int dep1 = 0; dep1 != templateTag.size(); dep1++) {
auto templateTagObj = templateTag.at(dep1);
std::string templateTagObjStr = std::string("TemplateTag") + "." + std::to_string(dep1 + 1);
setParameter(templateTagObjStr + ".Key", templateTagObj.key);
setParameter(templateTagObjStr + ".Value", templateTagObj.value);
}
}
void DeleteImagePipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteImagePipelineRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteImagePipelineRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteImagePipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteImagePipelineRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteImagePipelineRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteImagePipelineRequest::getOwnerId()const
{
return ownerId_;
void DeleteImagePipelineRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteImagePipelineRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteImagePipelineRequest::getOwnerId() const {
return ownerId_;
}
void DeleteImagePipelineRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,106 +1,90 @@
/*
* 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/DeleteImageRequest.h>
using AlibabaCloud::Ecs::Model::DeleteImageRequest;
DeleteImageRequest::DeleteImageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteImage")
{
setMethod(HttpRequest::Method::Post);
}
DeleteImageRequest::~DeleteImageRequest()
{}
long DeleteImageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteImageRequest.h>
using AlibabaCloud::Ecs::Model::DeleteImageRequest;
DeleteImageRequest::DeleteImageRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteImage") {
setMethod(HttpRequest::Method::Post);
}
void DeleteImageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteImageRequest::~DeleteImageRequest() {}
long DeleteImageRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteImageRequest::getImageId()const
{
return imageId_;
void DeleteImageRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteImageRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
std::string DeleteImageRequest::getImageId() const {
return imageId_;
}
std::string DeleteImageRequest::getRegionId()const
{
return regionId_;
void DeleteImageRequest::setImageId(const std::string &imageId) {
imageId_ = imageId;
setParameter(std::string("ImageId"), imageId);
}
void DeleteImageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteImageRequest::getRegionId() const {
return regionId_;
}
std::string DeleteImageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteImageRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteImageRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteImageRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteImageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteImageRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteImageRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteImageRequest::getOwnerId()const
{
return ownerId_;
void DeleteImageRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteImageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteImageRequest::getOwnerId() const {
return ownerId_;
}
bool DeleteImageRequest::getForce()const
{
return force_;
void DeleteImageRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void DeleteImageRequest::setForce(bool force)
{
force_ = force;
setParameter("Force", force ? "true" : "false");
bool DeleteImageRequest::getForce() const {
return force_;
}
void DeleteImageRequest::setForce(bool force) {
force_ = force;
setParameter(std::string("Force"), force ? "true" : "false");
}

View File

@@ -1,106 +1,90 @@
/*
* 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/DeleteInstanceRequest.h>
using AlibabaCloud::Ecs::Model::DeleteInstanceRequest;
DeleteInstanceRequest::DeleteInstanceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteInstance")
{
setMethod(HttpRequest::Method::Post);
}
DeleteInstanceRequest::~DeleteInstanceRequest()
{}
long DeleteInstanceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteInstanceRequest.h>
using AlibabaCloud::Ecs::Model::DeleteInstanceRequest;
DeleteInstanceRequest::DeleteInstanceRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteInstance") {
setMethod(HttpRequest::Method::Post);
}
void DeleteInstanceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteInstanceRequest::~DeleteInstanceRequest() {}
long DeleteInstanceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
bool DeleteInstanceRequest::getTerminateSubscription()const
{
return terminateSubscription_;
void DeleteInstanceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteInstanceRequest::setTerminateSubscription(bool terminateSubscription)
{
terminateSubscription_ = terminateSubscription;
setParameter("TerminateSubscription", terminateSubscription ? "true" : "false");
bool DeleteInstanceRequest::getTerminateSubscription() const {
return terminateSubscription_;
}
std::string DeleteInstanceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteInstanceRequest::setTerminateSubscription(bool terminateSubscription) {
terminateSubscription_ = terminateSubscription;
setParameter(std::string("TerminateSubscription"), terminateSubscription ? "true" : "false");
}
void DeleteInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteInstanceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteInstanceRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteInstanceRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteInstanceRequest::getOwnerId()const
{
return ownerId_;
void DeleteInstanceRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteInstanceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteInstanceRequest::getOwnerId() const {
return ownerId_;
}
std::string DeleteInstanceRequest::getInstanceId()const
{
return instanceId_;
void DeleteInstanceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void DeleteInstanceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
std::string DeleteInstanceRequest::getInstanceId() const {
return instanceId_;
}
bool DeleteInstanceRequest::getForce()const
{
return force_;
void DeleteInstanceRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
void DeleteInstanceRequest::setForce(bool force)
{
force_ = force;
setParameter("Force", force ? "true" : "false");
bool DeleteInstanceRequest::getForce() const {
return force_;
}
void DeleteInstanceRequest::setForce(bool force) {
force_ = force;
setParameter(std::string("Force"), force ? "true" : "false");
}

View File

@@ -1,141 +1,116 @@
/*
* 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/DeleteInstancesRequest.h>
using AlibabaCloud::Ecs::Model::DeleteInstancesRequest;
DeleteInstancesRequest::DeleteInstancesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteInstances")
{
setMethod(HttpRequest::Method::Post);
}
DeleteInstancesRequest::~DeleteInstancesRequest()
{}
long DeleteInstancesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteInstancesRequest.h>
using AlibabaCloud::Ecs::Model::DeleteInstancesRequest;
DeleteInstancesRequest::DeleteInstancesRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteInstances") {
setMethod(HttpRequest::Method::Post);
}
void DeleteInstancesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteInstancesRequest::~DeleteInstancesRequest() {}
long DeleteInstancesRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteInstancesRequest::getClientToken()const
{
return clientToken_;
void DeleteInstancesRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteInstancesRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string DeleteInstancesRequest::getClientToken() const {
return clientToken_;
}
std::string DeleteInstancesRequest::getRegionId()const
{
return regionId_;
void DeleteInstancesRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void DeleteInstancesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteInstancesRequest::getRegionId() const {
return regionId_;
}
bool DeleteInstancesRequest::getTerminateSubscription()const
{
return terminateSubscription_;
void DeleteInstancesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteInstancesRequest::setTerminateSubscription(bool terminateSubscription)
{
terminateSubscription_ = terminateSubscription;
setParameter("TerminateSubscription", terminateSubscription ? "true" : "false");
bool DeleteInstancesRequest::getTerminateSubscription() const {
return terminateSubscription_;
}
bool DeleteInstancesRequest::getDryRun()const
{
return dryRun_;
void DeleteInstancesRequest::setTerminateSubscription(bool terminateSubscription) {
terminateSubscription_ = terminateSubscription;
setParameter(std::string("TerminateSubscription"), terminateSubscription ? "true" : "false");
}
void DeleteInstancesRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
bool DeleteInstancesRequest::getDryRun() const {
return dryRun_;
}
std::string DeleteInstancesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteInstancesRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
void DeleteInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteInstancesRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteInstancesRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteInstancesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteInstancesRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteInstancesRequest::getOwnerId()const
{
return ownerId_;
void DeleteInstancesRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteInstancesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteInstancesRequest::getOwnerId() const {
return ownerId_;
}
std::vector<std::string> DeleteInstancesRequest::getInstanceId()const
{
return instanceId_;
void DeleteInstancesRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void DeleteInstancesRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
}
std::vector<std::string> DeleteInstancesRequest::getInstanceId() const {
return instanceId_;
}
bool DeleteInstancesRequest::getForce()const
{
return force_;
void DeleteInstancesRequest::setInstanceId(const std::vector<std::string> &instanceId) {
instanceId_ = instanceId;
}
void DeleteInstancesRequest::setForce(bool force)
{
force_ = force;
setParameter("Force", force ? "true" : "false");
bool DeleteInstancesRequest::getForce() const {
return force_;
}
void DeleteInstancesRequest::setForce(bool force) {
force_ = force;
setParameter(std::string("Force"), force ? "true" : "false");
}

View File

@@ -1,84 +1,72 @@
/*
* 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/DeleteKeyPairsRequest.h>
using AlibabaCloud::Ecs::Model::DeleteKeyPairsRequest;
DeleteKeyPairsRequest::DeleteKeyPairsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteKeyPairs")
{
setMethod(HttpRequest::Method::Post);
}
DeleteKeyPairsRequest::~DeleteKeyPairsRequest()
{}
long DeleteKeyPairsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteKeyPairsRequest.h>
using AlibabaCloud::Ecs::Model::DeleteKeyPairsRequest;
DeleteKeyPairsRequest::DeleteKeyPairsRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteKeyPairs") {
setMethod(HttpRequest::Method::Post);
}
void DeleteKeyPairsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteKeyPairsRequest::~DeleteKeyPairsRequest() {}
long DeleteKeyPairsRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteKeyPairsRequest::getKeyPairNames()const
{
return keyPairNames_;
void DeleteKeyPairsRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteKeyPairsRequest::setKeyPairNames(const std::string& keyPairNames)
{
keyPairNames_ = keyPairNames;
setParameter("KeyPairNames", keyPairNames);
std::string DeleteKeyPairsRequest::getKeyPairNames() const {
return keyPairNames_;
}
std::string DeleteKeyPairsRequest::getRegionId()const
{
return regionId_;
void DeleteKeyPairsRequest::setKeyPairNames(const std::string &keyPairNames) {
keyPairNames_ = keyPairNames;
setParameter(std::string("KeyPairNames"), keyPairNames);
}
void DeleteKeyPairsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteKeyPairsRequest::getRegionId() const {
return regionId_;
}
std::string DeleteKeyPairsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteKeyPairsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteKeyPairsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteKeyPairsRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
long DeleteKeyPairsRequest::getOwnerId()const
{
return ownerId_;
void DeleteKeyPairsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteKeyPairsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteKeyPairsRequest::getOwnerId() const {
return ownerId_;
}
void DeleteKeyPairsRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,106 +1,90 @@
/*
* 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/DeleteLaunchTemplateRequest.h>
using AlibabaCloud::Ecs::Model::DeleteLaunchTemplateRequest;
DeleteLaunchTemplateRequest::DeleteLaunchTemplateRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteLaunchTemplate")
{
setMethod(HttpRequest::Method::Post);
}
DeleteLaunchTemplateRequest::~DeleteLaunchTemplateRequest()
{}
std::string DeleteLaunchTemplateRequest::getLaunchTemplateName()const
{
return launchTemplateName_;
*/
#include <alibabacloud/ecs/model/DeleteLaunchTemplateRequest.h>
using AlibabaCloud::Ecs::Model::DeleteLaunchTemplateRequest;
DeleteLaunchTemplateRequest::DeleteLaunchTemplateRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteLaunchTemplate") {
setMethod(HttpRequest::Method::Post);
}
void DeleteLaunchTemplateRequest::setLaunchTemplateName(const std::string& launchTemplateName)
{
launchTemplateName_ = launchTemplateName;
setParameter("LaunchTemplateName", launchTemplateName);
DeleteLaunchTemplateRequest::~DeleteLaunchTemplateRequest() {}
std::string DeleteLaunchTemplateRequest::getLaunchTemplateName() const {
return launchTemplateName_;
}
long DeleteLaunchTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void DeleteLaunchTemplateRequest::setLaunchTemplateName(const std::string &launchTemplateName) {
launchTemplateName_ = launchTemplateName;
setParameter(std::string("LaunchTemplateName"), launchTemplateName);
}
void DeleteLaunchTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long DeleteLaunchTemplateRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteLaunchTemplateRequest::getRegionId()const
{
return regionId_;
void DeleteLaunchTemplateRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteLaunchTemplateRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteLaunchTemplateRequest::getRegionId() const {
return regionId_;
}
std::string DeleteLaunchTemplateRequest::getLaunchTemplateId()const
{
return launchTemplateId_;
void DeleteLaunchTemplateRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteLaunchTemplateRequest::setLaunchTemplateId(const std::string& launchTemplateId)
{
launchTemplateId_ = launchTemplateId;
setParameter("LaunchTemplateId", launchTemplateId);
std::string DeleteLaunchTemplateRequest::getLaunchTemplateId() const {
return launchTemplateId_;
}
std::string DeleteLaunchTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteLaunchTemplateRequest::setLaunchTemplateId(const std::string &launchTemplateId) {
launchTemplateId_ = launchTemplateId;
setParameter(std::string("LaunchTemplateId"), launchTemplateId);
}
void DeleteLaunchTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteLaunchTemplateRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteLaunchTemplateRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteLaunchTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteLaunchTemplateRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteLaunchTemplateRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteLaunchTemplateRequest::getOwnerId()const
{
return ownerId_;
void DeleteLaunchTemplateRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteLaunchTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteLaunchTemplateRequest::getOwnerId() const {
return ownerId_;
}
void DeleteLaunchTemplateRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,119 +1,98 @@
/*
* 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/DeleteLaunchTemplateVersionRequest.h>
using AlibabaCloud::Ecs::Model::DeleteLaunchTemplateVersionRequest;
DeleteLaunchTemplateVersionRequest::DeleteLaunchTemplateVersionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteLaunchTemplateVersion")
{
setMethod(HttpRequest::Method::Post);
}
DeleteLaunchTemplateVersionRequest::~DeleteLaunchTemplateVersionRequest()
{}
std::string DeleteLaunchTemplateVersionRequest::getLaunchTemplateName()const
{
return launchTemplateName_;
*/
#include <alibabacloud/ecs/model/DeleteLaunchTemplateVersionRequest.h>
using AlibabaCloud::Ecs::Model::DeleteLaunchTemplateVersionRequest;
DeleteLaunchTemplateVersionRequest::DeleteLaunchTemplateVersionRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteLaunchTemplateVersion") {
setMethod(HttpRequest::Method::Post);
}
void DeleteLaunchTemplateVersionRequest::setLaunchTemplateName(const std::string& launchTemplateName)
{
launchTemplateName_ = launchTemplateName;
setParameter("LaunchTemplateName", launchTemplateName);
DeleteLaunchTemplateVersionRequest::~DeleteLaunchTemplateVersionRequest() {}
std::string DeleteLaunchTemplateVersionRequest::getLaunchTemplateName() const {
return launchTemplateName_;
}
long DeleteLaunchTemplateVersionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
void DeleteLaunchTemplateVersionRequest::setLaunchTemplateName(const std::string &launchTemplateName) {
launchTemplateName_ = launchTemplateName;
setParameter(std::string("LaunchTemplateName"), launchTemplateName);
}
void DeleteLaunchTemplateVersionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
long DeleteLaunchTemplateVersionRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::vector<long> DeleteLaunchTemplateVersionRequest::getDeleteVersion()const
{
return deleteVersion_;
void DeleteLaunchTemplateVersionRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteLaunchTemplateVersionRequest::setDeleteVersion(const std::vector<long>& deleteVersion)
{
deleteVersion_ = deleteVersion;
for(int dep1 = 0; dep1!= deleteVersion.size(); dep1++) {
setParameter("DeleteVersion."+ std::to_string(dep1), std::to_string(deleteVersion.at(dep1)));
}
std::vector<long> DeleteLaunchTemplateVersionRequest::getDeleteVersion() const {
return deleteVersion_;
}
std::string DeleteLaunchTemplateVersionRequest::getRegionId()const
{
return regionId_;
void DeleteLaunchTemplateVersionRequest::setDeleteVersion(const std::vector<long> &deleteVersion) {
deleteVersion_ = deleteVersion;
}
void DeleteLaunchTemplateVersionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteLaunchTemplateVersionRequest::getRegionId() const {
return regionId_;
}
std::string DeleteLaunchTemplateVersionRequest::getLaunchTemplateId()const
{
return launchTemplateId_;
void DeleteLaunchTemplateVersionRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteLaunchTemplateVersionRequest::setLaunchTemplateId(const std::string& launchTemplateId)
{
launchTemplateId_ = launchTemplateId;
setParameter("LaunchTemplateId", launchTemplateId);
std::string DeleteLaunchTemplateVersionRequest::getLaunchTemplateId() const {
return launchTemplateId_;
}
std::string DeleteLaunchTemplateVersionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteLaunchTemplateVersionRequest::setLaunchTemplateId(const std::string &launchTemplateId) {
launchTemplateId_ = launchTemplateId;
setParameter(std::string("LaunchTemplateId"), launchTemplateId);
}
void DeleteLaunchTemplateVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteLaunchTemplateVersionRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteLaunchTemplateVersionRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteLaunchTemplateVersionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteLaunchTemplateVersionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteLaunchTemplateVersionRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteLaunchTemplateVersionRequest::getOwnerId()const
{
return ownerId_;
void DeleteLaunchTemplateVersionRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteLaunchTemplateVersionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteLaunchTemplateVersionRequest::getOwnerId() const {
return ownerId_;
}
void DeleteLaunchTemplateVersionRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,95 +1,81 @@
/*
* 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/DeleteNatGatewayRequest.h>
using AlibabaCloud::Ecs::Model::DeleteNatGatewayRequest;
DeleteNatGatewayRequest::DeleteNatGatewayRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteNatGateway")
{
setMethod(HttpRequest::Method::Post);
}
DeleteNatGatewayRequest::~DeleteNatGatewayRequest()
{}
long DeleteNatGatewayRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteNatGatewayRequest.h>
using AlibabaCloud::Ecs::Model::DeleteNatGatewayRequest;
DeleteNatGatewayRequest::DeleteNatGatewayRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteNatGateway") {
setMethod(HttpRequest::Method::Post);
}
void DeleteNatGatewayRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteNatGatewayRequest::~DeleteNatGatewayRequest() {}
long DeleteNatGatewayRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteNatGatewayRequest::getRegionId()const
{
return regionId_;
void DeleteNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteNatGatewayRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteNatGatewayRequest::getRegionId() const {
return regionId_;
}
std::string DeleteNatGatewayRequest::getNatGatewayId()const
{
return natGatewayId_;
void DeleteNatGatewayRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteNatGatewayRequest::setNatGatewayId(const std::string& natGatewayId)
{
natGatewayId_ = natGatewayId;
setParameter("NatGatewayId", natGatewayId);
std::string DeleteNatGatewayRequest::getNatGatewayId() const {
return natGatewayId_;
}
std::string DeleteNatGatewayRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteNatGatewayRequest::setNatGatewayId(const std::string &natGatewayId) {
natGatewayId_ = natGatewayId;
setParameter(std::string("NatGatewayId"), natGatewayId);
}
void DeleteNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteNatGatewayRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteNatGatewayRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteNatGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteNatGatewayRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteNatGatewayRequest::getOwnerId()const
{
return ownerId_;
void DeleteNatGatewayRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteNatGatewayRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteNatGatewayRequest::getOwnerId() const {
return ownerId_;
}
void DeleteNatGatewayRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,106 +1,90 @@
/*
* 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/DeleteNetworkInterfacePermissionRequest.h>
using AlibabaCloud::Ecs::Model::DeleteNetworkInterfacePermissionRequest;
DeleteNetworkInterfacePermissionRequest::DeleteNetworkInterfacePermissionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteNetworkInterfacePermission")
{
setMethod(HttpRequest::Method::Post);
}
DeleteNetworkInterfacePermissionRequest::~DeleteNetworkInterfacePermissionRequest()
{}
long DeleteNetworkInterfacePermissionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteNetworkInterfacePermissionRequest.h>
using AlibabaCloud::Ecs::Model::DeleteNetworkInterfacePermissionRequest;
DeleteNetworkInterfacePermissionRequest::DeleteNetworkInterfacePermissionRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteNetworkInterfacePermission") {
setMethod(HttpRequest::Method::Post);
}
void DeleteNetworkInterfacePermissionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteNetworkInterfacePermissionRequest::~DeleteNetworkInterfacePermissionRequest() {}
long DeleteNetworkInterfacePermissionRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteNetworkInterfacePermissionRequest::getRegionId()const
{
return regionId_;
void DeleteNetworkInterfacePermissionRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteNetworkInterfacePermissionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteNetworkInterfacePermissionRequest::getRegionId() const {
return regionId_;
}
std::string DeleteNetworkInterfacePermissionRequest::getNetworkInterfacePermissionId()const
{
return networkInterfacePermissionId_;
void DeleteNetworkInterfacePermissionRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteNetworkInterfacePermissionRequest::setNetworkInterfacePermissionId(const std::string& networkInterfacePermissionId)
{
networkInterfacePermissionId_ = networkInterfacePermissionId;
setParameter("NetworkInterfacePermissionId", networkInterfacePermissionId);
std::string DeleteNetworkInterfacePermissionRequest::getNetworkInterfacePermissionId() const {
return networkInterfacePermissionId_;
}
std::string DeleteNetworkInterfacePermissionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteNetworkInterfacePermissionRequest::setNetworkInterfacePermissionId(const std::string &networkInterfacePermissionId) {
networkInterfacePermissionId_ = networkInterfacePermissionId;
setParameter(std::string("NetworkInterfacePermissionId"), networkInterfacePermissionId);
}
void DeleteNetworkInterfacePermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteNetworkInterfacePermissionRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteNetworkInterfacePermissionRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteNetworkInterfacePermissionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteNetworkInterfacePermissionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteNetworkInterfacePermissionRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteNetworkInterfacePermissionRequest::getOwnerId()const
{
return ownerId_;
void DeleteNetworkInterfacePermissionRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteNetworkInterfacePermissionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteNetworkInterfacePermissionRequest::getOwnerId() const {
return ownerId_;
}
bool DeleteNetworkInterfacePermissionRequest::getForce()const
{
return force_;
void DeleteNetworkInterfacePermissionRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void DeleteNetworkInterfacePermissionRequest::setForce(bool force)
{
force_ = force;
setParameter("Force", force ? "true" : "false");
bool DeleteNetworkInterfacePermissionRequest::getForce() const {
return force_;
}
void DeleteNetworkInterfacePermissionRequest::setForce(bool force) {
force_ = force;
setParameter(std::string("Force"), force ? "true" : "false");
}

View File

@@ -1,95 +1,81 @@
/*
* 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/DeleteNetworkInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::DeleteNetworkInterfaceRequest;
DeleteNetworkInterfaceRequest::DeleteNetworkInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteNetworkInterface")
{
setMethod(HttpRequest::Method::Post);
}
DeleteNetworkInterfaceRequest::~DeleteNetworkInterfaceRequest()
{}
long DeleteNetworkInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::DeleteNetworkInterfaceRequest;
DeleteNetworkInterfaceRequest::DeleteNetworkInterfaceRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteNetworkInterface") {
setMethod(HttpRequest::Method::Post);
}
void DeleteNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeleteNetworkInterfaceRequest::~DeleteNetworkInterfaceRequest() {}
long DeleteNetworkInterfaceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeleteNetworkInterfaceRequest::getRegionId()const
{
return regionId_;
void DeleteNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeleteNetworkInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeleteNetworkInterfaceRequest::getRegionId() const {
return regionId_;
}
std::string DeleteNetworkInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeleteNetworkInterfaceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeleteNetworkInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeleteNetworkInterfaceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeleteNetworkInterfaceRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeleteNetworkInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeleteNetworkInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeleteNetworkInterfaceRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeleteNetworkInterfaceRequest::getOwnerId()const
{
return ownerId_;
void DeleteNetworkInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeleteNetworkInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeleteNetworkInterfaceRequest::getOwnerId() const {
return ownerId_;
}
std::string DeleteNetworkInterfaceRequest::getNetworkInterfaceId()const
{
return networkInterfaceId_;
void DeleteNetworkInterfaceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void DeleteNetworkInterfaceRequest::setNetworkInterfaceId(const std::string& networkInterfaceId)
{
networkInterfaceId_ = networkInterfaceId;
setParameter("NetworkInterfaceId", networkInterfaceId);
std::string DeleteNetworkInterfaceRequest::getNetworkInterfaceId() const {
return networkInterfaceId_;
}
void DeleteNetworkInterfaceRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
networkInterfaceId_ = networkInterfaceId;
setParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
}

View File

@@ -1,106 +1,90 @@
/*
* 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/DeletePhysicalConnectionRequest.h>
using AlibabaCloud::Ecs::Model::DeletePhysicalConnectionRequest;
DeletePhysicalConnectionRequest::DeletePhysicalConnectionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeletePhysicalConnection")
{
setMethod(HttpRequest::Method::Post);
}
DeletePhysicalConnectionRequest::~DeletePhysicalConnectionRequest()
{}
long DeletePhysicalConnectionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h>
using AlibabaCloud::Ecs::Model::DeletePhysicalConnectionRequest;
DeletePhysicalConnectionRequest::DeletePhysicalConnectionRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeletePhysicalConnection") {
setMethod(HttpRequest::Method::Post);
}
void DeletePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeletePhysicalConnectionRequest::~DeletePhysicalConnectionRequest() {}
long DeletePhysicalConnectionRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeletePhysicalConnectionRequest::getClientToken()const
{
return clientToken_;
void DeletePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeletePhysicalConnectionRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string DeletePhysicalConnectionRequest::getClientToken() const {
return clientToken_;
}
std::string DeletePhysicalConnectionRequest::getRegionId()const
{
return regionId_;
void DeletePhysicalConnectionRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void DeletePhysicalConnectionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeletePhysicalConnectionRequest::getRegionId() const {
return regionId_;
}
std::string DeletePhysicalConnectionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeletePhysicalConnectionRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeletePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeletePhysicalConnectionRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeletePhysicalConnectionRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeletePhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeletePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeletePhysicalConnectionRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeletePhysicalConnectionRequest::getOwnerId()const
{
return ownerId_;
void DeletePhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeletePhysicalConnectionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeletePhysicalConnectionRequest::getOwnerId() const {
return ownerId_;
}
std::string DeletePhysicalConnectionRequest::getPhysicalConnectionId()const
{
return physicalConnectionId_;
void DeletePhysicalConnectionRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void DeletePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId)
{
physicalConnectionId_ = physicalConnectionId;
setParameter("PhysicalConnectionId", physicalConnectionId);
std::string DeletePhysicalConnectionRequest::getPhysicalConnectionId() const {
return physicalConnectionId_;
}
void DeletePhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) {
physicalConnectionId_ = physicalConnectionId;
setParameter(std::string("PhysicalConnectionId"), physicalConnectionId);
}

View File

@@ -1,95 +1,81 @@
/*
* 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/DeletePrefixListRequest.h>
using AlibabaCloud::Ecs::Model::DeletePrefixListRequest;
DeletePrefixListRequest::DeletePrefixListRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeletePrefixList")
{
setMethod(HttpRequest::Method::Post);
}
DeletePrefixListRequest::~DeletePrefixListRequest()
{}
long DeletePrefixListRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
*/
#include <alibabacloud/ecs/model/DeletePrefixListRequest.h>
using AlibabaCloud::Ecs::Model::DeletePrefixListRequest;
DeletePrefixListRequest::DeletePrefixListRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeletePrefixList") {
setMethod(HttpRequest::Method::Post);
}
void DeletePrefixListRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
DeletePrefixListRequest::~DeletePrefixListRequest() {}
long DeletePrefixListRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
std::string DeletePrefixListRequest::getRegionId()const
{
return regionId_;
void DeletePrefixListRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
void DeletePrefixListRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
std::string DeletePrefixListRequest::getRegionId() const {
return regionId_;
}
std::string DeletePrefixListRequest::getPrefixListId()const
{
return prefixListId_;
void DeletePrefixListRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void DeletePrefixListRequest::setPrefixListId(const std::string& prefixListId)
{
prefixListId_ = prefixListId;
setParameter("PrefixListId", prefixListId);
std::string DeletePrefixListRequest::getPrefixListId() const {
return prefixListId_;
}
std::string DeletePrefixListRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void DeletePrefixListRequest::setPrefixListId(const std::string &prefixListId) {
prefixListId_ = prefixListId;
setParameter(std::string("PrefixListId"), prefixListId);
}
void DeletePrefixListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string DeletePrefixListRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string DeletePrefixListRequest::getOwnerAccount()const
{
return ownerAccount_;
void DeletePrefixListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void DeletePrefixListRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string DeletePrefixListRequest::getOwnerAccount() const {
return ownerAccount_;
}
long DeletePrefixListRequest::getOwnerId()const
{
return ownerId_;
void DeletePrefixListRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void DeletePrefixListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long DeletePrefixListRequest::getOwnerId() const {
return ownerId_;
}
void DeletePrefixListRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

Some files were not shown because too many files have changed in this diff Show More