由丰鲁成发起的ECS SDK自动发布, BUILD_ID=338, 版本号:升级小版本

发布日志:
1, First release ecs for C++
This commit is contained in:
haowei.yao
2018-01-10 14:30:32 +08:00
parent fd95431436
commit 83a5d98a83
889 changed files with 94214 additions and 1 deletions

7981
ecs/src/EcsClient.cc Normal file

File diff suppressed because it is too large Load Diff

27
ecs/src/EcsRequest.cc Normal file
View File

@@ -0,0 +1,27 @@
/*
* 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/EcsRequest.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Ecs;
EcsRequest::EcsRequest(const std::string & action) :
RpcServiceRequest("ecs", "2014-05-26", action)
{ }
EcsRequest::~EcsRequest()
{ }

View File

@@ -0,0 +1,83 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() :
EcsRequest("ActivateRouterInterface")
{}
ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest()
{}
long ActivateRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ActivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ActivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ActivateRouterInterfaceRequest::getRegionId()const
{
return regionId_;
}
void ActivateRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
long ActivateRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
}
void ActivateRouterInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ActivateRouterInterfaceRequest::getRouterInterfaceId()const
{
return routerInterfaceId_;
}
void ActivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId)
{
routerInterfaceId_ = routerInterfaceId;
setParameter("RouterInterfaceId", routerInterfaceId);
}

View File

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

View File

@@ -0,0 +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/AddBandwidthPackageIpsRequest.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest() :
EcsRequest("AddBandwidthPackageIps")
{}
AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest()
{}
long AddBandwidthPackageIpsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddBandwidthPackageIpsRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void AddBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
}
std::string AddBandwidthPackageIpsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddBandwidthPackageIpsRequest::getRegionId()const
{
return regionId_;
}
void AddBandwidthPackageIpsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddBandwidthPackageIpsRequest::getClientToken()const
{
return clientToken_;
}
void AddBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AddBandwidthPackageIpsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddBandwidthPackageIpsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AddBandwidthPackageIpsRequest::getOwnerId()const
{
return ownerId_;
}
void AddBandwidthPackageIpsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddBandwidthPackageIpsRequest::getIpCount()const
{
return ipCount_;
}
void AddBandwidthPackageIpsRequest::setIpCount(const std::string& ipCount)
{
ipCount_ = ipCount;
setParameter("IpCount", ipCount);
}

View File

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

View File

@@ -0,0 +1,105 @@
/*
* 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/AddIpRangeRequest.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AddIpRangeRequest::AddIpRangeRequest() :
EcsRequest("AddIpRange")
{}
AddIpRangeRequest::~AddIpRangeRequest()
{}
std::string AddIpRangeRequest::getIpAddress()const
{
return ipAddress_;
}
void AddIpRangeRequest::setIpAddress(const std::string& ipAddress)
{
ipAddress_ = ipAddress;
setParameter("IpAddress", ipAddress);
}
long AddIpRangeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddIpRangeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddIpRangeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddIpRangeRequest::getRegionId()const
{
return regionId_;
}
void AddIpRangeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddIpRangeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddIpRangeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddIpRangeRequest::getZoneId()const
{
return zoneId_;
}
void AddIpRangeRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
long AddIpRangeRequest::getOwnerId()const
{
return ownerId_;
}
void AddIpRangeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,204 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AddTagsRequest::AddTagsRequest() :
EcsRequest("AddTags")
{}
AddTagsRequest::~AddTagsRequest()
{}
std::string AddTagsRequest::getTag4Value()const
{
return tag4Value_;
}
void AddTagsRequest::setTag4Value(const std::string& tag4Value)
{
tag4Value_ = tag4Value;
setParameter("Tag4Value", tag4Value);
}
long AddTagsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddTagsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddTagsRequest::getResourceId()const
{
return resourceId_;
}
void AddTagsRequest::setResourceId(const std::string& resourceId)
{
resourceId_ = resourceId;
setParameter("ResourceId", resourceId);
}
std::string AddTagsRequest::getTag2Key()const
{
return tag2Key_;
}
void AddTagsRequest::setTag2Key(const std::string& tag2Key)
{
tag2Key_ = tag2Key;
setParameter("Tag2Key", tag2Key);
}
std::string AddTagsRequest::getTag5Key()const
{
return tag5Key_;
}
void AddTagsRequest::setTag5Key(const std::string& tag5Key)
{
tag5Key_ = tag5Key;
setParameter("Tag5Key", tag5Key);
}
std::string AddTagsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddTagsRequest::getTag3Key()const
{
return tag3Key_;
}
void AddTagsRequest::setTag3Key(const std::string& tag3Key)
{
tag3Key_ = tag3Key;
setParameter("Tag3Key", tag3Key);
}
long AddTagsRequest::getOwnerId()const
{
return ownerId_;
}
void AddTagsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddTagsRequest::getResourceType()const
{
return resourceType_;
}
void AddTagsRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}
std::string AddTagsRequest::getTag5Value()const
{
return tag5Value_;
}
void AddTagsRequest::setTag5Value(const std::string& tag5Value)
{
tag5Value_ = tag5Value;
setParameter("Tag5Value", tag5Value);
}
std::string AddTagsRequest::getTag1Key()const
{
return tag1Key_;
}
void AddTagsRequest::setTag1Key(const std::string& tag1Key)
{
tag1Key_ = tag1Key;
setParameter("Tag1Key", tag1Key);
}
std::string AddTagsRequest::getTag1Value()const
{
return tag1Value_;
}
void AddTagsRequest::setTag1Value(const std::string& tag1Value)
{
tag1Value_ = tag1Value;
setParameter("Tag1Value", tag1Value);
}
std::string AddTagsRequest::getRegionId()const
{
return regionId_;
}
void AddTagsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddTagsRequest::getTag2Value()const
{
return tag2Value_;
}
void AddTagsRequest::setTag2Value(const std::string& tag2Value)
{
tag2Value_ = tag2Value;
setParameter("Tag2Value", tag2Value);
}
std::string AddTagsRequest::getTag4Key()const
{
return tag4Key_;
}
void AddTagsRequest::setTag4Key(const std::string& tag4Key)
{
tag4Key_ = tag4Key;
setParameter("Tag4Key", tag4Key);
}
std::string AddTagsRequest::getTag3Value()const
{
return tag3Value_;
}
void AddTagsRequest::setTag3Value(const std::string& tag3Value)
{
tag3Value_ = tag3Value;
setParameter("Tag3Value", tag3Value);
}

View File

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

View File

@@ -0,0 +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/AllocateEipAddressRequest.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AllocateEipAddressRequest::AllocateEipAddressRequest() :
EcsRequest("AllocateEipAddress")
{}
AllocateEipAddressRequest::~AllocateEipAddressRequest()
{}
long AllocateEipAddressRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AllocateEipAddressRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AllocateEipAddressRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AllocateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AllocateEipAddressRequest::getRegionId()const
{
return regionId_;
}
void AllocateEipAddressRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AllocateEipAddressRequest::getBandwidth()const
{
return bandwidth_;
}
void AllocateEipAddressRequest::setBandwidth(const std::string& bandwidth)
{
bandwidth_ = bandwidth;
setParameter("Bandwidth", bandwidth);
}
std::string AllocateEipAddressRequest::getClientToken()const
{
return clientToken_;
}
void AllocateEipAddressRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AllocateEipAddressRequest::getInternetChargeType()const
{
return internetChargeType_;
}
void AllocateEipAddressRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
}
std::string AllocateEipAddressRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AllocateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AllocateEipAddressRequest::getOwnerId()const
{
return ownerId_;
}
void AllocateEipAddressRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,67 @@
/*
* 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/AllocateEipAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AllocateEipAddressResult::AllocateEipAddressResult() :
ServiceResult()
{}
AllocateEipAddressResult::AllocateEipAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AllocateEipAddressResult::~AllocateEipAddressResult()
{}
void AllocateEipAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
allocationId_ = value["AllocationId"].asString();
eipAddress_ = value["EipAddress"].asString();
}
std::string AllocateEipAddressResult::getAllocationId()const
{
return allocationId_;
}
void AllocateEipAddressResult::setAllocationId(const std::string& allocationId)
{
allocationId_ = allocationId;
}
std::string AllocateEipAddressResult::getEipAddress()const
{
return eipAddress_;
}
void AllocateEipAddressResult::setEipAddress(const std::string& eipAddress)
{
eipAddress_ = eipAddress;
}

View File

@@ -0,0 +1,105 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AllocatePublicIpAddressRequest::AllocatePublicIpAddressRequest() :
EcsRequest("AllocatePublicIpAddress")
{}
AllocatePublicIpAddressRequest::~AllocatePublicIpAddressRequest()
{}
std::string AllocatePublicIpAddressRequest::getIpAddress()const
{
return ipAddress_;
}
void AllocatePublicIpAddressRequest::setIpAddress(const std::string& ipAddress)
{
ipAddress_ = ipAddress;
setParameter("IpAddress", ipAddress);
}
long AllocatePublicIpAddressRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AllocatePublicIpAddressRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AllocatePublicIpAddressRequest::getInstanceId()const
{
return instanceId_;
}
void AllocatePublicIpAddressRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AllocatePublicIpAddressRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AllocatePublicIpAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AllocatePublicIpAddressRequest::getVlanId()const
{
return vlanId_;
}
void AllocatePublicIpAddressRequest::setVlanId(const std::string& vlanId)
{
vlanId_ = vlanId;
setParameter("VlanId", vlanId);
}
std::string AllocatePublicIpAddressRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AllocatePublicIpAddressRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AllocatePublicIpAddressRequest::getOwnerId()const
{
return ownerId_;
}
void AllocatePublicIpAddressRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,94 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ApplyAutoSnapshotPolicyRequest::ApplyAutoSnapshotPolicyRequest() :
EcsRequest("ApplyAutoSnapshotPolicy")
{}
ApplyAutoSnapshotPolicyRequest::~ApplyAutoSnapshotPolicyRequest()
{}
long ApplyAutoSnapshotPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ApplyAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ApplyAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ApplyAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ApplyAutoSnapshotPolicyRequest::getRegionId()const
{
return regionId_;
}
void ApplyAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ApplyAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId()const
{
return autoSnapshotPolicyId_;
}
void ApplyAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId)
{
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId);
}
std::string ApplyAutoSnapshotPolicyRequest::getDiskIds()const
{
return diskIds_;
}
void ApplyAutoSnapshotPolicyRequest::setDiskIds(const std::string& diskIds)
{
diskIds_ = diskIds;
setParameter("DiskIds", diskIds);
}
long ApplyAutoSnapshotPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void ApplyAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,105 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AssociateEipAddressRequest::AssociateEipAddressRequest() :
EcsRequest("AssociateEipAddress")
{}
AssociateEipAddressRequest::~AssociateEipAddressRequest()
{}
long AssociateEipAddressRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AssociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AssociateEipAddressRequest::getInstanceId()const
{
return instanceId_;
}
void AssociateEipAddressRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AssociateEipAddressRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AssociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AssociateEipAddressRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AssociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AssociateEipAddressRequest::getInstanceType()const
{
return instanceType_;
}
void AssociateEipAddressRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
}
std::string AssociateEipAddressRequest::getAllocationId()const
{
return allocationId_;
}
void AssociateEipAddressRequest::setAllocationId(const std::string& allocationId)
{
allocationId_ = allocationId;
setParameter("AllocationId", allocationId);
}
long AssociateEipAddressRequest::getOwnerId()const
{
return ownerId_;
}
void AssociateEipAddressRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +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/AssociateHaVipRequest.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AssociateHaVipRequest::AssociateHaVipRequest() :
EcsRequest("AssociateHaVip")
{}
AssociateHaVipRequest::~AssociateHaVipRequest()
{}
std::string AssociateHaVipRequest::getHaVipId()const
{
return haVipId_;
}
void AssociateHaVipRequest::setHaVipId(const std::string& haVipId)
{
haVipId_ = haVipId;
setParameter("HaVipId", haVipId);
}
long AssociateHaVipRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AssociateHaVipRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AssociateHaVipRequest::getInstanceId()const
{
return instanceId_;
}
void AssociateHaVipRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AssociateHaVipRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AssociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AssociateHaVipRequest::getClientToken()const
{
return clientToken_;
}
void AssociateHaVipRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AssociateHaVipRequest::getRegionId()const
{
return regionId_;
}
void AssociateHaVipRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AssociateHaVipRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AssociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AssociateHaVipRequest::getOwnerId()const
{
return ownerId_;
}
void AssociateHaVipRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,94 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachClassicLinkVpcRequest::AttachClassicLinkVpcRequest() :
EcsRequest("AttachClassicLinkVpc")
{}
AttachClassicLinkVpcRequest::~AttachClassicLinkVpcRequest()
{}
long AttachClassicLinkVpcRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AttachClassicLinkVpcRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AttachClassicLinkVpcRequest::getInstanceId()const
{
return instanceId_;
}
void AttachClassicLinkVpcRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AttachClassicLinkVpcRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AttachClassicLinkVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AttachClassicLinkVpcRequest::getRegionId()const
{
return regionId_;
}
void AttachClassicLinkVpcRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AttachClassicLinkVpcRequest::getVpcId()const
{
return vpcId_;
}
void AttachClassicLinkVpcRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
long AttachClassicLinkVpcRequest::getOwnerId()const
{
return ownerId_;
}
void AttachClassicLinkVpcRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +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/AttachDiskRequest.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachDiskRequest::AttachDiskRequest() :
EcsRequest("AttachDisk")
{}
AttachDiskRequest::~AttachDiskRequest()
{}
long AttachDiskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AttachDiskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AttachDiskRequest::getInstanceId()const
{
return instanceId_;
}
void AttachDiskRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AttachDiskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AttachDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AttachDiskRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AttachDiskRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AttachDiskRequest::getDiskId()const
{
return diskId_;
}
void AttachDiskRequest::setDiskId(const std::string& diskId)
{
diskId_ = diskId;
setParameter("DiskId", diskId);
}
long AttachDiskRequest::getOwnerId()const
{
return ownerId_;
}
void AttachDiskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AttachDiskRequest::getDevice()const
{
return device_;
}
void AttachDiskRequest::setDevice(const std::string& device)
{
device_ = device;
setParameter("Device", device);
}
bool AttachDiskRequest::getDeleteWithInstance()const
{
return deleteWithInstance_;
}
void AttachDiskRequest::setDeleteWithInstance(bool deleteWithInstance)
{
deleteWithInstance_ = deleteWithInstance;
setParameter("DeleteWithInstance", std::to_string(deleteWithInstance));
}

View File

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

View File

@@ -0,0 +1,94 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachInstanceRamRoleRequest::AttachInstanceRamRoleRequest() :
EcsRequest("AttachInstanceRamRole")
{}
AttachInstanceRamRoleRequest::~AttachInstanceRamRoleRequest()
{}
long AttachInstanceRamRoleRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AttachInstanceRamRoleRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AttachInstanceRamRoleRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AttachInstanceRamRoleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AttachInstanceRamRoleRequest::getRegionId()const
{
return regionId_;
}
void AttachInstanceRamRoleRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AttachInstanceRamRoleRequest::getInstanceIds()const
{
return instanceIds_;
}
void AttachInstanceRamRoleRequest::setInstanceIds(const std::string& instanceIds)
{
instanceIds_ = instanceIds;
setParameter("InstanceIds", instanceIds);
}
std::string AttachInstanceRamRoleRequest::getRamRoleName()const
{
return ramRoleName_;
}
void AttachInstanceRamRoleRequest::setRamRoleName(const std::string& ramRoleName)
{
ramRoleName_ = ramRoleName;
setParameter("RamRoleName", ramRoleName);
}
long AttachInstanceRamRoleRequest::getOwnerId()const
{
return ownerId_;
}
void AttachInstanceRamRoleRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,88 @@
/*
* 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/AttachInstanceRamRoleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachInstanceRamRoleResult::AttachInstanceRamRoleResult() :
ServiceResult()
{}
AttachInstanceRamRoleResult::AttachInstanceRamRoleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachInstanceRamRoleResult::~AttachInstanceRamRoleResult()
{}
void AttachInstanceRamRoleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAttachInstanceRamRoleResults = value["AttachInstanceRamRoleResults"]["AttachInstanceRamRoleResult"];
for (auto value : allAttachInstanceRamRoleResults)
{
Result attachInstanceRamRoleResultObject;
attachInstanceRamRoleResultObject.instanceId = value["InstanceId"].asString();
attachInstanceRamRoleResultObject.success = std::stoi(value["Success"].asString());
attachInstanceRamRoleResultObject.code = value["Code"].asString();
attachInstanceRamRoleResultObject.message = value["Message"].asString();
attachInstanceRamRoleResults_.push_back(attachInstanceRamRoleResultObject);
}
totalCount_ = std::stoi(value["TotalCount"].asString());
failCount_ = std::stoi(value["FailCount"].asString());
ramRoleName_ = value["RamRoleName"].asString();
}
int AttachInstanceRamRoleResult::getTotalCount()const
{
return totalCount_;
}
void AttachInstanceRamRoleResult::setTotalCount(int totalCount)
{
totalCount_ = totalCount;
}
std::string AttachInstanceRamRoleResult::getRamRoleName()const
{
return ramRoleName_;
}
void AttachInstanceRamRoleResult::setRamRoleName(const std::string& ramRoleName)
{
ramRoleName_ = ramRoleName;
}
int AttachInstanceRamRoleResult::getFailCount()const
{
return failCount_;
}
void AttachInstanceRamRoleResult::setFailCount(int failCount)
{
failCount_ = failCount;
}

View File

@@ -0,0 +1,94 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachKeyPairRequest::AttachKeyPairRequest() :
EcsRequest("AttachKeyPair")
{}
AttachKeyPairRequest::~AttachKeyPairRequest()
{}
long AttachKeyPairRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AttachKeyPairRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AttachKeyPairRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AttachKeyPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AttachKeyPairRequest::getRegionId()const
{
return regionId_;
}
void AttachKeyPairRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AttachKeyPairRequest::getInstanceIds()const
{
return instanceIds_;
}
void AttachKeyPairRequest::setInstanceIds(const std::string& instanceIds)
{
instanceIds_ = instanceIds;
setParameter("InstanceIds", instanceIds);
}
std::string AttachKeyPairRequest::getKeyPairName()const
{
return keyPairName_;
}
void AttachKeyPairRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
}
long AttachKeyPairRequest::getOwnerId()const
{
return ownerId_;
}
void AttachKeyPairRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,88 @@
/*
* 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/AttachKeyPairResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachKeyPairResult::AttachKeyPairResult() :
ServiceResult()
{}
AttachKeyPairResult::AttachKeyPairResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachKeyPairResult::~AttachKeyPairResult()
{}
void AttachKeyPairResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResults = value["Results"]["Result"];
for (auto value : allResults)
{
Result resultObject;
resultObject.instanceId = value["InstanceId"].asString();
resultObject.success = value["Success"].asString();
resultObject.code = value["Code"].asString();
resultObject.message = value["Message"].asString();
results_.push_back(resultObject);
}
totalCount_ = value["TotalCount"].asString();
failCount_ = value["FailCount"].asString();
keyPairName_ = value["KeyPairName"].asString();
}
std::string AttachKeyPairResult::getKeyPairName()const
{
return keyPairName_;
}
void AttachKeyPairResult::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
}
std::string AttachKeyPairResult::getTotalCount()const
{
return totalCount_;
}
void AttachKeyPairResult::setTotalCount(const std::string& totalCount)
{
totalCount_ = totalCount;
}
std::string AttachKeyPairResult::getFailCount()const
{
return failCount_;
}
void AttachKeyPairResult::setFailCount(const std::string& failCount)
{
failCount_ = failCount;
}

View File

@@ -0,0 +1,314 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachNetworkInterfaceRequest::AttachNetworkInterfaceRequest() :
EcsRequest("AttachNetworkInterface")
{}
AttachNetworkInterfaceRequest::~AttachNetworkInterfaceRequest()
{}
long AttachNetworkInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AttachNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long AttachNetworkInterfaceRequest::getCallerParentId()const
{
return callerParentId_;
}
void AttachNetworkInterfaceRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool AttachNetworkInterfaceRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void AttachNetworkInterfaceRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string AttachNetworkInterfaceRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void AttachNetworkInterfaceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string AttachNetworkInterfaceRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void AttachNetworkInterfaceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string AttachNetworkInterfaceRequest::getCallerType()const
{
return callerType_;
}
void AttachNetworkInterfaceRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string AttachNetworkInterfaceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AttachNetworkInterfaceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AttachNetworkInterfaceRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void AttachNetworkInterfaceRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string AttachNetworkInterfaceRequest::getSecurityToken()const
{
return securityToken_;
}
void AttachNetworkInterfaceRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string AttachNetworkInterfaceRequest::getRegionId()const
{
return regionId_;
}
void AttachNetworkInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool AttachNetworkInterfaceRequest::getEnable()const
{
return enable_;
}
void AttachNetworkInterfaceRequest::setEnable(bool enable)
{
enable_ = enable;
setParameter("Enable", std::to_string(enable));
}
std::string AttachNetworkInterfaceRequest::getRequestContent()const
{
return requestContent_;
}
void AttachNetworkInterfaceRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string AttachNetworkInterfaceRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void AttachNetworkInterfaceRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string AttachNetworkInterfaceRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void AttachNetworkInterfaceRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long AttachNetworkInterfaceRequest::getCallerUid()const
{
return callerUid_;
}
void AttachNetworkInterfaceRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string AttachNetworkInterfaceRequest::getApp_ip()const
{
return app_ip_;
}
void AttachNetworkInterfaceRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string AttachNetworkInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AttachNetworkInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AttachNetworkInterfaceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AttachNetworkInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AttachNetworkInterfaceRequest::getCallerBid()const
{
return callerBid_;
}
void AttachNetworkInterfaceRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long AttachNetworkInterfaceRequest::getOwnerId()const
{
return ownerId_;
}
void AttachNetworkInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
bool AttachNetworkInterfaceRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void AttachNetworkInterfaceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool AttachNetworkInterfaceRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void AttachNetworkInterfaceRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool AttachNetworkInterfaceRequest::getSecurity_transport()const
{
return security_transport_;
}
void AttachNetworkInterfaceRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string AttachNetworkInterfaceRequest::getInstanceId()const
{
return instanceId_;
}
void AttachNetworkInterfaceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AttachNetworkInterfaceRequest::getRequestId()const
{
return requestId_;
}
void AttachNetworkInterfaceRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string AttachNetworkInterfaceRequest::getNetworkInterfaceId()const
{
return networkInterfaceId_;
}
void AttachNetworkInterfaceRequest::setNetworkInterfaceId(const std::string& networkInterfaceId)
{
networkInterfaceId_ = networkInterfaceId;
setParameter("NetworkInterfaceId", networkInterfaceId);
}

View File

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

View File

@@ -0,0 +1,446 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest() :
EcsRequest("AuthorizeSecurityGroupEgress")
{}
AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest()
{}
std::string AuthorizeSecurityGroupEgressRequest::getNicType()const
{
return nicType_;
}
void AuthorizeSecurityGroupEgressRequest::setNicType(const std::string& nicType)
{
nicType_ = nicType;
setParameter("NicType", nicType);
}
long AuthorizeSecurityGroupEgressRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AuthorizeSecurityGroupEgressRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AuthorizeSecurityGroupEgressRequest::getSourcePortRange()const
{
return sourcePortRange_;
}
void AuthorizeSecurityGroupEgressRequest::setSourcePortRange(const std::string& sourcePortRange)
{
sourcePortRange_ = sourcePortRange;
setParameter("SourcePortRange", sourcePortRange);
}
std::string AuthorizeSecurityGroupEgressRequest::getClientToken()const
{
return clientToken_;
}
void AuthorizeSecurityGroupEgressRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
long AuthorizeSecurityGroupEgressRequest::getCallerParentId()const
{
return callerParentId_;
}
void AuthorizeSecurityGroupEgressRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
std::string AuthorizeSecurityGroupEgressRequest::getSecurityGroupId()const
{
return securityGroupId_;
}
void AuthorizeSecurityGroupEgressRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
}
bool AuthorizeSecurityGroupEgressRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void AuthorizeSecurityGroupEgressRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string AuthorizeSecurityGroupEgressRequest::getDescription()const
{
return description_;
}
void AuthorizeSecurityGroupEgressRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string AuthorizeSecurityGroupEgressRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void AuthorizeSecurityGroupEgressRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string AuthorizeSecurityGroupEgressRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void AuthorizeSecurityGroupEgressRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string AuthorizeSecurityGroupEgressRequest::getCallerType()const
{
return callerType_;
}
void AuthorizeSecurityGroupEgressRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string AuthorizeSecurityGroupEgressRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AuthorizeSecurityGroupEgressRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AuthorizeSecurityGroupEgressRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void AuthorizeSecurityGroupEgressRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string AuthorizeSecurityGroupEgressRequest::getSecurityToken()const
{
return securityToken_;
}
void AuthorizeSecurityGroupEgressRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string AuthorizeSecurityGroupEgressRequest::getRegionId()const
{
return regionId_;
}
void AuthorizeSecurityGroupEgressRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool AuthorizeSecurityGroupEgressRequest::getEnable()const
{
return enable_;
}
void AuthorizeSecurityGroupEgressRequest::setEnable(bool enable)
{
enable_ = enable;
setParameter("Enable", std::to_string(enable));
}
std::string AuthorizeSecurityGroupEgressRequest::getRequestContent()const
{
return requestContent_;
}
void AuthorizeSecurityGroupEgressRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string AuthorizeSecurityGroupEgressRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void AuthorizeSecurityGroupEgressRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string AuthorizeSecurityGroupEgressRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void AuthorizeSecurityGroupEgressRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long AuthorizeSecurityGroupEgressRequest::getCallerUid()const
{
return callerUid_;
}
void AuthorizeSecurityGroupEgressRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string AuthorizeSecurityGroupEgressRequest::getPolicy()const
{
return policy_;
}
void AuthorizeSecurityGroupEgressRequest::setPolicy(const std::string& policy)
{
policy_ = policy;
setParameter("Policy", policy);
}
std::string AuthorizeSecurityGroupEgressRequest::getApp_ip()const
{
return app_ip_;
}
void AuthorizeSecurityGroupEgressRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string AuthorizeSecurityGroupEgressRequest::getPortRange()const
{
return portRange_;
}
void AuthorizeSecurityGroupEgressRequest::setPortRange(const std::string& portRange)
{
portRange_ = portRange;
setParameter("PortRange", portRange);
}
std::string AuthorizeSecurityGroupEgressRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AuthorizeSecurityGroupEgressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AuthorizeSecurityGroupEgressRequest::getIpProtocol()const
{
return ipProtocol_;
}
void AuthorizeSecurityGroupEgressRequest::setIpProtocol(const std::string& ipProtocol)
{
ipProtocol_ = ipProtocol;
setParameter("IpProtocol", ipProtocol);
}
std::string AuthorizeSecurityGroupEgressRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AuthorizeSecurityGroupEgressRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AuthorizeSecurityGroupEgressRequest::getSourceCidrIp()const
{
return sourceCidrIp_;
}
void AuthorizeSecurityGroupEgressRequest::setSourceCidrIp(const std::string& sourceCidrIp)
{
sourceCidrIp_ = sourceCidrIp;
setParameter("SourceCidrIp", sourceCidrIp);
}
std::string AuthorizeSecurityGroupEgressRequest::getCallerBid()const
{
return callerBid_;
}
void AuthorizeSecurityGroupEgressRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
std::string AuthorizeSecurityGroupEgressRequest::getDestGroupId()const
{
return destGroupId_;
}
void AuthorizeSecurityGroupEgressRequest::setDestGroupId(const std::string& destGroupId)
{
destGroupId_ = destGroupId;
setParameter("DestGroupId", destGroupId);
}
long AuthorizeSecurityGroupEgressRequest::getOwnerId()const
{
return ownerId_;
}
void AuthorizeSecurityGroupEgressRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerAccount()const
{
return destGroupOwnerAccount_;
}
void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount)
{
destGroupOwnerAccount_ = destGroupOwnerAccount;
setParameter("DestGroupOwnerAccount", destGroupOwnerAccount);
}
std::string AuthorizeSecurityGroupEgressRequest::getPriority()const
{
return priority_;
}
void AuthorizeSecurityGroupEgressRequest::setPriority(const std::string& priority)
{
priority_ = priority;
setParameter("Priority", priority);
}
std::string AuthorizeSecurityGroupEgressRequest::getDestCidrIp()const
{
return destCidrIp_;
}
void AuthorizeSecurityGroupEgressRequest::setDestCidrIp(const std::string& destCidrIp)
{
destCidrIp_ = destCidrIp;
setParameter("DestCidrIp", destCidrIp);
}
bool AuthorizeSecurityGroupEgressRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void AuthorizeSecurityGroupEgressRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool AuthorizeSecurityGroupEgressRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void AuthorizeSecurityGroupEgressRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool AuthorizeSecurityGroupEgressRequest::getSecurity_transport()const
{
return security_transport_;
}
void AuthorizeSecurityGroupEgressRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
long AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerId()const
{
return destGroupOwnerId_;
}
void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerId(long destGroupOwnerId)
{
destGroupOwnerId_ = destGroupOwnerId;
setParameter("DestGroupOwnerId", std::to_string(destGroupOwnerId));
}
std::string AuthorizeSecurityGroupEgressRequest::getRequestId()const
{
return requestId_;
}
void AuthorizeSecurityGroupEgressRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}

View File

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

View File

@@ -0,0 +1,446 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest() :
EcsRequest("AuthorizeSecurityGroup")
{}
AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest()
{}
std::string AuthorizeSecurityGroupRequest::getNicType()const
{
return nicType_;
}
void AuthorizeSecurityGroupRequest::setNicType(const std::string& nicType)
{
nicType_ = nicType;
setParameter("NicType", nicType);
}
long AuthorizeSecurityGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AuthorizeSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AuthorizeSecurityGroupRequest::getSourcePortRange()const
{
return sourcePortRange_;
}
void AuthorizeSecurityGroupRequest::setSourcePortRange(const std::string& sourcePortRange)
{
sourcePortRange_ = sourcePortRange;
setParameter("SourcePortRange", sourcePortRange);
}
std::string AuthorizeSecurityGroupRequest::getClientToken()const
{
return clientToken_;
}
void AuthorizeSecurityGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
long AuthorizeSecurityGroupRequest::getCallerParentId()const
{
return callerParentId_;
}
void AuthorizeSecurityGroupRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
std::string AuthorizeSecurityGroupRequest::getSecurityGroupId()const
{
return securityGroupId_;
}
void AuthorizeSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
}
bool AuthorizeSecurityGroupRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void AuthorizeSecurityGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string AuthorizeSecurityGroupRequest::getDescription()const
{
return description_;
}
void AuthorizeSecurityGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string AuthorizeSecurityGroupRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void AuthorizeSecurityGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string AuthorizeSecurityGroupRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void AuthorizeSecurityGroupRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string AuthorizeSecurityGroupRequest::getCallerType()const
{
return callerType_;
}
void AuthorizeSecurityGroupRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string AuthorizeSecurityGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AuthorizeSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AuthorizeSecurityGroupRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void AuthorizeSecurityGroupRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
long AuthorizeSecurityGroupRequest::getSourceGroupOwnerId()const
{
return sourceGroupOwnerId_;
}
void AuthorizeSecurityGroupRequest::setSourceGroupOwnerId(long sourceGroupOwnerId)
{
sourceGroupOwnerId_ = sourceGroupOwnerId;
setParameter("SourceGroupOwnerId", std::to_string(sourceGroupOwnerId));
}
std::string AuthorizeSecurityGroupRequest::getSourceGroupOwnerAccount()const
{
return sourceGroupOwnerAccount_;
}
void AuthorizeSecurityGroupRequest::setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount)
{
sourceGroupOwnerAccount_ = sourceGroupOwnerAccount;
setParameter("SourceGroupOwnerAccount", sourceGroupOwnerAccount);
}
std::string AuthorizeSecurityGroupRequest::getSecurityToken()const
{
return securityToken_;
}
void AuthorizeSecurityGroupRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string AuthorizeSecurityGroupRequest::getRegionId()const
{
return regionId_;
}
void AuthorizeSecurityGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool AuthorizeSecurityGroupRequest::getEnable()const
{
return enable_;
}
void AuthorizeSecurityGroupRequest::setEnable(bool enable)
{
enable_ = enable;
setParameter("Enable", std::to_string(enable));
}
std::string AuthorizeSecurityGroupRequest::getRequestContent()const
{
return requestContent_;
}
void AuthorizeSecurityGroupRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string AuthorizeSecurityGroupRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void AuthorizeSecurityGroupRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string AuthorizeSecurityGroupRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void AuthorizeSecurityGroupRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long AuthorizeSecurityGroupRequest::getCallerUid()const
{
return callerUid_;
}
void AuthorizeSecurityGroupRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string AuthorizeSecurityGroupRequest::getPolicy()const
{
return policy_;
}
void AuthorizeSecurityGroupRequest::setPolicy(const std::string& policy)
{
policy_ = policy;
setParameter("Policy", policy);
}
std::string AuthorizeSecurityGroupRequest::getApp_ip()const
{
return app_ip_;
}
void AuthorizeSecurityGroupRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string AuthorizeSecurityGroupRequest::getPortRange()const
{
return portRange_;
}
void AuthorizeSecurityGroupRequest::setPortRange(const std::string& portRange)
{
portRange_ = portRange;
setParameter("PortRange", portRange);
}
std::string AuthorizeSecurityGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AuthorizeSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AuthorizeSecurityGroupRequest::getIpProtocol()const
{
return ipProtocol_;
}
void AuthorizeSecurityGroupRequest::setIpProtocol(const std::string& ipProtocol)
{
ipProtocol_ = ipProtocol;
setParameter("IpProtocol", ipProtocol);
}
std::string AuthorizeSecurityGroupRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AuthorizeSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AuthorizeSecurityGroupRequest::getSourceCidrIp()const
{
return sourceCidrIp_;
}
void AuthorizeSecurityGroupRequest::setSourceCidrIp(const std::string& sourceCidrIp)
{
sourceCidrIp_ = sourceCidrIp;
setParameter("SourceCidrIp", sourceCidrIp);
}
std::string AuthorizeSecurityGroupRequest::getCallerBid()const
{
return callerBid_;
}
void AuthorizeSecurityGroupRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long AuthorizeSecurityGroupRequest::getOwnerId()const
{
return ownerId_;
}
void AuthorizeSecurityGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AuthorizeSecurityGroupRequest::getPriority()const
{
return priority_;
}
void AuthorizeSecurityGroupRequest::setPriority(const std::string& priority)
{
priority_ = priority;
setParameter("Priority", priority);
}
std::string AuthorizeSecurityGroupRequest::getDestCidrIp()const
{
return destCidrIp_;
}
void AuthorizeSecurityGroupRequest::setDestCidrIp(const std::string& destCidrIp)
{
destCidrIp_ = destCidrIp;
setParameter("DestCidrIp", destCidrIp);
}
bool AuthorizeSecurityGroupRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void AuthorizeSecurityGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool AuthorizeSecurityGroupRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void AuthorizeSecurityGroupRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool AuthorizeSecurityGroupRequest::getSecurity_transport()const
{
return security_transport_;
}
void AuthorizeSecurityGroupRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string AuthorizeSecurityGroupRequest::getRequestId()const
{
return requestId_;
}
void AuthorizeSecurityGroupRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string AuthorizeSecurityGroupRequest::getSourceGroupId()const
{
return sourceGroupId_;
}
void AuthorizeSecurityGroupRequest::setSourceGroupId(const std::string& sourceGroupId)
{
sourceGroupId_ = sourceGroupId;
setParameter("SourceGroupId", sourceGroupId);
}

View File

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

View File

@@ -0,0 +1,94 @@
/*
* 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/BindIpRangeRequest.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
BindIpRangeRequest::BindIpRangeRequest() :
EcsRequest("BindIpRange")
{}
BindIpRangeRequest::~BindIpRangeRequest()
{}
std::string BindIpRangeRequest::getIpAddress()const
{
return ipAddress_;
}
void BindIpRangeRequest::setIpAddress(const std::string& ipAddress)
{
ipAddress_ = ipAddress;
setParameter("IpAddress", ipAddress);
}
long BindIpRangeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void BindIpRangeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string BindIpRangeRequest::getInstanceId()const
{
return instanceId_;
}
void BindIpRangeRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string BindIpRangeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BindIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string BindIpRangeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void BindIpRangeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long BindIpRangeRequest::getOwnerId()const
{
return ownerId_;
}
void BindIpRangeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,281 @@
/*
* 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/CancelAgreementRequest.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelAgreementRequest::CancelAgreementRequest() :
EcsRequest("CancelAgreement")
{}
CancelAgreementRequest::~CancelAgreementRequest()
{}
std::string CancelAgreementRequest::getApp_ip()const
{
return app_ip_;
}
void CancelAgreementRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
long CancelAgreementRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CancelAgreementRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CancelAgreementRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CancelAgreementRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long CancelAgreementRequest::getCallerParentId()const
{
return callerParentId_;
}
void CancelAgreementRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
std::string CancelAgreementRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CancelAgreementRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
bool CancelAgreementRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void CancelAgreementRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string CancelAgreementRequest::getCallerBid()const
{
return callerBid_;
}
void CancelAgreementRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long CancelAgreementRequest::getOwnerId()const
{
return ownerId_;
}
void CancelAgreementRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CancelAgreementRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void CancelAgreementRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string CancelAgreementRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void CancelAgreementRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string CancelAgreementRequest::getCallerType()const
{
return callerType_;
}
void CancelAgreementRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool CancelAgreementRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void CancelAgreementRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool CancelAgreementRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void CancelAgreementRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string CancelAgreementRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CancelAgreementRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool CancelAgreementRequest::getSecurity_transport()const
{
return security_transport_;
}
void CancelAgreementRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string CancelAgreementRequest::getSecurityToken()const
{
return securityToken_;
}
void CancelAgreementRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string CancelAgreementRequest::getRequestId()const
{
return requestId_;
}
void CancelAgreementRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
bool CancelAgreementRequest::getEnable()const
{
return enable_;
}
void CancelAgreementRequest::setEnable(bool enable)
{
enable_ = enable;
setParameter("Enable", std::to_string(enable));
}
std::string CancelAgreementRequest::getRequestContent()const
{
return requestContent_;
}
void CancelAgreementRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string CancelAgreementRequest::getAgreementType()const
{
return agreementType_;
}
void CancelAgreementRequest::setAgreementType(const std::string& agreementType)
{
agreementType_ = agreementType;
setParameter("AgreementType", agreementType);
}
std::string CancelAgreementRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void CancelAgreementRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string CancelAgreementRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void CancelAgreementRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long CancelAgreementRequest::getCallerUid()const
{
return callerUid_;
}
void CancelAgreementRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}

View File

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

View File

@@ -0,0 +1,83 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelAutoSnapshotPolicyRequest::CancelAutoSnapshotPolicyRequest() :
EcsRequest("CancelAutoSnapshotPolicy")
{}
CancelAutoSnapshotPolicyRequest::~CancelAutoSnapshotPolicyRequest()
{}
long CancelAutoSnapshotPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CancelAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CancelAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CancelAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CancelAutoSnapshotPolicyRequest::getRegionId()const
{
return regionId_;
}
void CancelAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CancelAutoSnapshotPolicyRequest::getDiskIds()const
{
return diskIds_;
}
void CancelAutoSnapshotPolicyRequest::setDiskIds(const std::string& diskIds)
{
diskIds_ = diskIds;
setParameter("DiskIds", diskIds);
}
long CancelAutoSnapshotPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void CancelAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,94 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelCopyImageRequest::CancelCopyImageRequest() :
EcsRequest("CancelCopyImage")
{}
CancelCopyImageRequest::~CancelCopyImageRequest()
{}
long CancelCopyImageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CancelCopyImageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CancelCopyImageRequest::getImageId()const
{
return imageId_;
}
void CancelCopyImageRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
}
std::string CancelCopyImageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CancelCopyImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CancelCopyImageRequest::getRegionId()const
{
return regionId_;
}
void CancelCopyImageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CancelCopyImageRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CancelCopyImageRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long CancelCopyImageRequest::getOwnerId()const
{
return ownerId_;
}
void CancelCopyImageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +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/CancelPhysicalConnectionRequest.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() :
EcsRequest("CancelPhysicalConnection")
{}
CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest()
{}
long CancelPhysicalConnectionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CancelPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CancelPhysicalConnectionRequest::getRegionId()const
{
return regionId_;
}
void CancelPhysicalConnectionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CancelPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CancelPhysicalConnectionRequest::getClientToken()const
{
return clientToken_;
}
void CancelPhysicalConnectionRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId()const
{
return physicalConnectionId_;
}
void CancelPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId)
{
physicalConnectionId_ = physicalConnectionId;
setParameter("PhysicalConnectionId", physicalConnectionId);
}
std::string CancelPhysicalConnectionRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CancelPhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CancelPhysicalConnectionRequest::getUserCidr()const
{
return userCidr_;
}
void CancelPhysicalConnectionRequest::setUserCidr(const std::string& userCidr)
{
userCidr_ = userCidr;
setParameter("UserCidr", userCidr);
}
long CancelPhysicalConnectionRequest::getOwnerId()const
{
return ownerId_;
}
void CancelPhysicalConnectionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,83 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelTaskRequest::CancelTaskRequest() :
EcsRequest("CancelTask")
{}
CancelTaskRequest::~CancelTaskRequest()
{}
long CancelTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CancelTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CancelTaskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CancelTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CancelTaskRequest::getRegionId()const
{
return regionId_;
}
void CancelTaskRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
long CancelTaskRequest::getOwnerId()const
{
return ownerId_;
}
void CancelTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CancelTaskRequest::getTaskId()const
{
return taskId_;
}
void CancelTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}

View File

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

View File

@@ -0,0 +1,160 @@
/*
* 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/CheckAutoSnapshotPolicyRequest.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CheckAutoSnapshotPolicyRequest::CheckAutoSnapshotPolicyRequest() :
EcsRequest("CheckAutoSnapshotPolicy")
{}
CheckAutoSnapshotPolicyRequest::~CheckAutoSnapshotPolicyRequest()
{}
bool CheckAutoSnapshotPolicyRequest::getDataDiskPolicyEnabled()const
{
return dataDiskPolicyEnabled_;
}
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled)
{
dataDiskPolicyEnabled_ = dataDiskPolicyEnabled;
setParameter("DataDiskPolicyEnabled", std::to_string(dataDiskPolicyEnabled));
}
long CheckAutoSnapshotPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CheckAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int CheckAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionDays()const
{
return dataDiskPolicyRetentionDays_;
}
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays)
{
dataDiskPolicyRetentionDays_ = dataDiskPolicyRetentionDays;
setParameter("DataDiskPolicyRetentionDays", std::to_string(dataDiskPolicyRetentionDays));
}
std::string CheckAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CheckAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
bool CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionLastWeek()const
{
return systemDiskPolicyRetentionLastWeek_;
}
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek)
{
systemDiskPolicyRetentionLastWeek_ = systemDiskPolicyRetentionLastWeek;
setParameter("SystemDiskPolicyRetentionLastWeek", std::to_string(systemDiskPolicyRetentionLastWeek));
}
std::string CheckAutoSnapshotPolicyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CheckAutoSnapshotPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
int CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyTimePeriod()const
{
return systemDiskPolicyTimePeriod_;
}
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod)
{
systemDiskPolicyTimePeriod_ = systemDiskPolicyTimePeriod;
setParameter("SystemDiskPolicyTimePeriod", std::to_string(systemDiskPolicyTimePeriod));
}
long CheckAutoSnapshotPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void CheckAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
bool CheckAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionLastWeek()const
{
return dataDiskPolicyRetentionLastWeek_;
}
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek)
{
dataDiskPolicyRetentionLastWeek_ = dataDiskPolicyRetentionLastWeek;
setParameter("DataDiskPolicyRetentionLastWeek", std::to_string(dataDiskPolicyRetentionLastWeek));
}
int CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionDays()const
{
return systemDiskPolicyRetentionDays_;
}
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays)
{
systemDiskPolicyRetentionDays_ = systemDiskPolicyRetentionDays;
setParameter("SystemDiskPolicyRetentionDays", std::to_string(systemDiskPolicyRetentionDays));
}
int CheckAutoSnapshotPolicyRequest::getDataDiskPolicyTimePeriod()const
{
return dataDiskPolicyTimePeriod_;
}
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod)
{
dataDiskPolicyTimePeriod_ = dataDiskPolicyTimePeriod;
setParameter("DataDiskPolicyTimePeriod", std::to_string(dataDiskPolicyTimePeriod));
}
bool CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyEnabled()const
{
return systemDiskPolicyEnabled_;
}
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled)
{
systemDiskPolicyEnabled_ = systemDiskPolicyEnabled;
setParameter("SystemDiskPolicyEnabled", std::to_string(systemDiskPolicyEnabled));
}

View File

@@ -0,0 +1,67 @@
/*
* 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/CheckAutoSnapshotPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CheckAutoSnapshotPolicyResult::CheckAutoSnapshotPolicyResult() :
ServiceResult()
{}
CheckAutoSnapshotPolicyResult::CheckAutoSnapshotPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckAutoSnapshotPolicyResult::~CheckAutoSnapshotPolicyResult()
{}
void CheckAutoSnapshotPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString());
isPermittedModify_ = value["IsPermittedModify"].asString();
}
int CheckAutoSnapshotPolicyResult::getAutoSnapshotOccupation()const
{
return autoSnapshotOccupation_;
}
void CheckAutoSnapshotPolicyResult::setAutoSnapshotOccupation(int autoSnapshotOccupation)
{
autoSnapshotOccupation_ = autoSnapshotOccupation;
}
std::string CheckAutoSnapshotPolicyResult::getIsPermittedModify()const
{
return isPermittedModify_;
}
void CheckAutoSnapshotPolicyResult::setIsPermittedModify(const std::string& isPermittedModify)
{
isPermittedModify_ = isPermittedModify;
}

View File

@@ -0,0 +1,83 @@
/*
* 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/CheckDiskEnableAutoSnapshotValidationRequest.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CheckDiskEnableAutoSnapshotValidationRequest::CheckDiskEnableAutoSnapshotValidationRequest() :
EcsRequest("CheckDiskEnableAutoSnapshotValidation")
{}
CheckDiskEnableAutoSnapshotValidationRequest::~CheckDiskEnableAutoSnapshotValidationRequest()
{}
long CheckDiskEnableAutoSnapshotValidationRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CheckDiskEnableAutoSnapshotValidationRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CheckDiskEnableAutoSnapshotValidationRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CheckDiskEnableAutoSnapshotValidationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CheckDiskEnableAutoSnapshotValidationRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CheckDiskEnableAutoSnapshotValidationRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CheckDiskEnableAutoSnapshotValidationRequest::getDiskIds()const
{
return diskIds_;
}
void CheckDiskEnableAutoSnapshotValidationRequest::setDiskIds(const std::string& diskIds)
{
diskIds_ = diskIds;
setParameter("DiskIds", diskIds);
}
long CheckDiskEnableAutoSnapshotValidationRequest::getOwnerId()const
{
return ownerId_;
}
void CheckDiskEnableAutoSnapshotValidationRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,67 @@
/*
* 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/CheckDiskEnableAutoSnapshotValidationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CheckDiskEnableAutoSnapshotValidationResult::CheckDiskEnableAutoSnapshotValidationResult() :
ServiceResult()
{}
CheckDiskEnableAutoSnapshotValidationResult::CheckDiskEnableAutoSnapshotValidationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckDiskEnableAutoSnapshotValidationResult::~CheckDiskEnableAutoSnapshotValidationResult()
{}
void CheckDiskEnableAutoSnapshotValidationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
isPermitted_ = value["IsPermitted"].asString();
autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString());
}
int CheckDiskEnableAutoSnapshotValidationResult::getAutoSnapshotOccupation()const
{
return autoSnapshotOccupation_;
}
void CheckDiskEnableAutoSnapshotValidationResult::setAutoSnapshotOccupation(int autoSnapshotOccupation)
{
autoSnapshotOccupation_ = autoSnapshotOccupation;
}
std::string CheckDiskEnableAutoSnapshotValidationResult::getIsPermitted()const
{
return isPermitted_;
}
void CheckDiskEnableAutoSnapshotValidationResult::setIsPermitted(const std::string& isPermitted)
{
isPermitted_ = isPermitted;
}

View File

@@ -0,0 +1,83 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() :
EcsRequest("ConnectRouterInterface")
{}
ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest()
{}
long ConnectRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ConnectRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ConnectRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ConnectRouterInterfaceRequest::getRegionId()const
{
return regionId_;
}
void ConnectRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
long ConnectRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
}
void ConnectRouterInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ConnectRouterInterfaceRequest::getRouterInterfaceId()const
{
return routerInterfaceId_;
}
void ConnectRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId)
{
routerInterfaceId_ = routerInterfaceId;
setParameter("RouterInterfaceId", routerInterfaceId);
}

View File

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

View File

@@ -0,0 +1,281 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ConvertNatPublicIpToEipRequest::ConvertNatPublicIpToEipRequest() :
EcsRequest("ConvertNatPublicIpToEip")
{}
ConvertNatPublicIpToEipRequest::~ConvertNatPublicIpToEipRequest()
{}
std::string ConvertNatPublicIpToEipRequest::getApp_ip()const
{
return app_ip_;
}
void ConvertNatPublicIpToEipRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
long ConvertNatPublicIpToEipRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ConvertNatPublicIpToEipRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ConvertNatPublicIpToEipRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ConvertNatPublicIpToEipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ConvertNatPublicIpToEipRequest::getCallerParentId()const
{
return callerParentId_;
}
void ConvertNatPublicIpToEipRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool ConvertNatPublicIpToEipRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void ConvertNatPublicIpToEipRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string ConvertNatPublicIpToEipRequest::getCallerBid()const
{
return callerBid_;
}
void ConvertNatPublicIpToEipRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long ConvertNatPublicIpToEipRequest::getOwnerId()const
{
return ownerId_;
}
void ConvertNatPublicIpToEipRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ConvertNatPublicIpToEipRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void ConvertNatPublicIpToEipRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string ConvertNatPublicIpToEipRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void ConvertNatPublicIpToEipRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string ConvertNatPublicIpToEipRequest::getCallerType()const
{
return callerType_;
}
void ConvertNatPublicIpToEipRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool ConvertNatPublicIpToEipRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void ConvertNatPublicIpToEipRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool ConvertNatPublicIpToEipRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void ConvertNatPublicIpToEipRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string ConvertNatPublicIpToEipRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ConvertNatPublicIpToEipRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool ConvertNatPublicIpToEipRequest::getSecurity_transport()const
{
return security_transport_;
}
void ConvertNatPublicIpToEipRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string ConvertNatPublicIpToEipRequest::getInstanceId()const
{
return instanceId_;
}
void ConvertNatPublicIpToEipRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ConvertNatPublicIpToEipRequest::getSecurityToken()const
{
return securityToken_;
}
void ConvertNatPublicIpToEipRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string ConvertNatPublicIpToEipRequest::getRegionId()const
{
return regionId_;
}
void ConvertNatPublicIpToEipRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ConvertNatPublicIpToEipRequest::getRequestId()const
{
return requestId_;
}
void ConvertNatPublicIpToEipRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
bool ConvertNatPublicIpToEipRequest::getEnable()const
{
return enable_;
}
void ConvertNatPublicIpToEipRequest::setEnable(bool enable)
{
enable_ = enable;
setParameter("Enable", std::to_string(enable));
}
std::string ConvertNatPublicIpToEipRequest::getRequestContent()const
{
return requestContent_;
}
void ConvertNatPublicIpToEipRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string ConvertNatPublicIpToEipRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void ConvertNatPublicIpToEipRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string ConvertNatPublicIpToEipRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void ConvertNatPublicIpToEipRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long ConvertNatPublicIpToEipRequest::getCallerUid()const
{
return callerUid_;
}
void ConvertNatPublicIpToEipRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}

View File

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

View File

@@ -0,0 +1,248 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CopyImageRequest::CopyImageRequest() :
EcsRequest("CopyImage")
{}
CopyImageRequest::~CopyImageRequest()
{}
std::string CopyImageRequest::getTag4Value()const
{
return tag4Value_;
}
void CopyImageRequest::setTag4Value(const std::string& tag4Value)
{
tag4Value_ = tag4Value;
setParameter("Tag4Value", tag4Value);
}
long CopyImageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CopyImageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CopyImageRequest::getImageId()const
{
return imageId_;
}
void CopyImageRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
}
std::string CopyImageRequest::getTag2Key()const
{
return tag2Key_;
}
void CopyImageRequest::setTag2Key(const std::string& tag2Key)
{
tag2Key_ = tag2Key;
setParameter("Tag2Key", tag2Key);
}
std::string CopyImageRequest::getTag5Key()const
{
return tag5Key_;
}
void CopyImageRequest::setTag5Key(const std::string& tag5Key)
{
tag5Key_ = tag5Key;
setParameter("Tag5Key", tag5Key);
}
std::string CopyImageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CopyImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CopyImageRequest::getDestinationImageName()const
{
return destinationImageName_;
}
void CopyImageRequest::setDestinationImageName(const std::string& destinationImageName)
{
destinationImageName_ = destinationImageName;
setParameter("DestinationImageName", destinationImageName);
}
std::string CopyImageRequest::getDestinationRegionId()const
{
return destinationRegionId_;
}
void CopyImageRequest::setDestinationRegionId(const std::string& destinationRegionId)
{
destinationRegionId_ = destinationRegionId;
setParameter("DestinationRegionId", destinationRegionId);
}
std::string CopyImageRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CopyImageRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CopyImageRequest::getTag3Key()const
{
return tag3Key_;
}
void CopyImageRequest::setTag3Key(const std::string& tag3Key)
{
tag3Key_ = tag3Key;
setParameter("Tag3Key", tag3Key);
}
long CopyImageRequest::getOwnerId()const
{
return ownerId_;
}
void CopyImageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CopyImageRequest::getTag5Value()const
{
return tag5Value_;
}
void CopyImageRequest::setTag5Value(const std::string& tag5Value)
{
tag5Value_ = tag5Value;
setParameter("Tag5Value", tag5Value);
}
std::string CopyImageRequest::getTag1Key()const
{
return tag1Key_;
}
void CopyImageRequest::setTag1Key(const std::string& tag1Key)
{
tag1Key_ = tag1Key;
setParameter("Tag1Key", tag1Key);
}
std::string CopyImageRequest::getTag1Value()const
{
return tag1Value_;
}
void CopyImageRequest::setTag1Value(const std::string& tag1Value)
{
tag1Value_ = tag1Value;
setParameter("Tag1Value", tag1Value);
}
bool CopyImageRequest::getEncrypted()const
{
return encrypted_;
}
void CopyImageRequest::setEncrypted(bool encrypted)
{
encrypted_ = encrypted;
setParameter("Encrypted", std::to_string(encrypted));
}
std::string CopyImageRequest::getRegionId()const
{
return regionId_;
}
void CopyImageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CopyImageRequest::getTag2Value()const
{
return tag2Value_;
}
void CopyImageRequest::setTag2Value(const std::string& tag2Value)
{
tag2Value_ = tag2Value;
setParameter("Tag2Value", tag2Value);
}
std::string CopyImageRequest::getTag4Key()const
{
return tag4Key_;
}
void CopyImageRequest::setTag4Key(const std::string& tag4Key)
{
tag4Key_ = tag4Key;
setParameter("Tag4Key", tag4Key);
}
std::string CopyImageRequest::getDestinationDescription()const
{
return destinationDescription_;
}
void CopyImageRequest::setDestinationDescription(const std::string& destinationDescription)
{
destinationDescription_ = destinationDescription;
setParameter("DestinationDescription", destinationDescription);
}
std::string CopyImageRequest::getTag3Value()const
{
return tag3Value_;
}
void CopyImageRequest::setTag3Value(const std::string& tag3Value)
{
tag3Value_ = tag3Value;
setParameter("Tag3Value", tag3Value);
}

View File

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

View File

@@ -0,0 +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/CreateAutoSnapshotPolicyRequest.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateAutoSnapshotPolicyRequest::CreateAutoSnapshotPolicyRequest() :
EcsRequest("CreateAutoSnapshotPolicy")
{}
CreateAutoSnapshotPolicyRequest::~CreateAutoSnapshotPolicyRequest()
{}
long CreateAutoSnapshotPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateAutoSnapshotPolicyRequest::getRegionId()const
{
return regionId_;
}
void CreateAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateAutoSnapshotPolicyRequest::getTimePoints()const
{
return timePoints_;
}
void CreateAutoSnapshotPolicyRequest::setTimePoints(const std::string& timePoints)
{
timePoints_ = timePoints;
setParameter("TimePoints", timePoints);
}
int CreateAutoSnapshotPolicyRequest::getRetentionDays()const
{
return retentionDays_;
}
void CreateAutoSnapshotPolicyRequest::setRetentionDays(int retentionDays)
{
retentionDays_ = retentionDays;
setParameter("RetentionDays", std::to_string(retentionDays));
}
long CreateAutoSnapshotPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void CreateAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateAutoSnapshotPolicyRequest::getRepeatWeekdays()const
{
return repeatWeekdays_;
}
void CreateAutoSnapshotPolicyRequest::setRepeatWeekdays(const std::string& repeatWeekdays)
{
repeatWeekdays_ = repeatWeekdays;
setParameter("RepeatWeekdays", repeatWeekdays);
}
std::string CreateAutoSnapshotPolicyRequest::getAutoSnapshotPolicyName()const
{
return autoSnapshotPolicyName_;
}
void CreateAutoSnapshotPolicyRequest::setAutoSnapshotPolicyName(const std::string& autoSnapshotPolicyName)
{
autoSnapshotPolicyName_ = autoSnapshotPolicyName;
setParameter("AutoSnapshotPolicyName", autoSnapshotPolicyName);
}

View File

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

View File

@@ -0,0 +1,358 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateCommandRequest::CreateCommandRequest() :
EcsRequest("CreateCommand")
{}
CreateCommandRequest::~CreateCommandRequest()
{}
long CreateCommandRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateCommandRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long CreateCommandRequest::getCallerParentId()const
{
return callerParentId_;
}
void CreateCommandRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
std::string CreateCommandRequest::getWorkingDir()const
{
return workingDir_;
}
void CreateCommandRequest::setWorkingDir(const std::string& workingDir)
{
workingDir_ = workingDir;
setParameter("WorkingDir", workingDir);
}
bool CreateCommandRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void CreateCommandRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string CreateCommandRequest::getDescription()const
{
return description_;
}
void CreateCommandRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateCommandRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void CreateCommandRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string CreateCommandRequest::getType()const
{
return type_;
}
void CreateCommandRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string CreateCommandRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void CreateCommandRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string CreateCommandRequest::getCallerType()const
{
return callerType_;
}
void CreateCommandRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string CreateCommandRequest::getCommandContent()const
{
return commandContent_;
}
void CreateCommandRequest::setCommandContent(const std::string& commandContent)
{
commandContent_ = commandContent;
setParameter("CommandContent", commandContent);
}
long CreateCommandRequest::getTimeout()const
{
return timeout_;
}
void CreateCommandRequest::setTimeout(long timeout)
{
timeout_ = timeout;
setParameter("Timeout", std::to_string(timeout));
}
std::string CreateCommandRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateCommandRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateCommandRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateCommandRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateCommandRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateCommandRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string CreateCommandRequest::getRegionId()const
{
return regionId_;
}
void CreateCommandRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool CreateCommandRequest::getEnable()const
{
return enable_;
}
void CreateCommandRequest::setEnable(bool enable)
{
enable_ = enable;
setParameter("Enable", std::to_string(enable));
}
std::string CreateCommandRequest::getRequestContent()const
{
return requestContent_;
}
void CreateCommandRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string CreateCommandRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void CreateCommandRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string CreateCommandRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void CreateCommandRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long CreateCommandRequest::getCallerUid()const
{
return callerUid_;
}
void CreateCommandRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string CreateCommandRequest::getApp_ip()const
{
return app_ip_;
}
void CreateCommandRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string CreateCommandRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateCommandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateCommandRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateCommandRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateCommandRequest::getCallerBid()const
{
return callerBid_;
}
void CreateCommandRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long CreateCommandRequest::getOwnerId()const
{
return ownerId_;
}
void CreateCommandRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
bool CreateCommandRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void CreateCommandRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool CreateCommandRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void CreateCommandRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool CreateCommandRequest::getSecurity_transport()const
{
return security_transport_;
}
void CreateCommandRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string CreateCommandRequest::getRequestId()const
{
return requestId_;
}
void CreateCommandRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string CreateCommandRequest::getName()const
{
return name_;
}
void CreateCommandRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

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

View File

@@ -0,0 +1,160 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateDeploymentSetRequest::CreateDeploymentSetRequest() :
EcsRequest("CreateDeploymentSet")
{}
CreateDeploymentSetRequest::~CreateDeploymentSetRequest()
{}
long CreateDeploymentSetRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateDeploymentSetRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateDeploymentSetRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateDeploymentSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateDeploymentSetRequest::getClientToken()const
{
return clientToken_;
}
void CreateDeploymentSetRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateDeploymentSetRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateDeploymentSetRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateDeploymentSetRequest::getDescription()const
{
return description_;
}
void CreateDeploymentSetRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateDeploymentSetRequest::getDeploymentSetName()const
{
return deploymentSetName_;
}
void CreateDeploymentSetRequest::setDeploymentSetName(const std::string& deploymentSetName)
{
deploymentSetName_ = deploymentSetName;
setParameter("DeploymentSetName", deploymentSetName);
}
long CreateDeploymentSetRequest::getOwnerId()const
{
return ownerId_;
}
void CreateDeploymentSetRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateDeploymentSetRequest::getRegionId()const
{
return regionId_;
}
void CreateDeploymentSetRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateDeploymentSetRequest::getGranularity()const
{
return granularity_;
}
void CreateDeploymentSetRequest::setGranularity(const std::string& granularity)
{
granularity_ = granularity;
setParameter("Granularity", granularity);
}
std::string CreateDeploymentSetRequest::getDomain()const
{
return domain_;
}
void CreateDeploymentSetRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string CreateDeploymentSetRequest::getZoneId()const
{
return zoneId_;
}
void CreateDeploymentSetRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string CreateDeploymentSetRequest::getStrategy()const
{
return strategy_;
}
void CreateDeploymentSetRequest::setStrategy(const std::string& strategy)
{
strategy_ = strategy;
setParameter("Strategy", strategy);
}

View File

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

View File

@@ -0,0 +1,292 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateDiskRequest::CreateDiskRequest() :
EcsRequest("CreateDisk")
{}
CreateDiskRequest::~CreateDiskRequest()
{}
std::string CreateDiskRequest::getTag4Value()const
{
return tag4Value_;
}
void CreateDiskRequest::setTag4Value(const std::string& tag4Value)
{
tag4Value_ = tag4Value;
setParameter("Tag4Value", tag4Value);
}
long CreateDiskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateDiskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateDiskRequest::getSnapshotId()const
{
return snapshotId_;
}
void CreateDiskRequest::setSnapshotId(const std::string& snapshotId)
{
snapshotId_ = snapshotId;
setParameter("SnapshotId", snapshotId);
}
std::string CreateDiskRequest::getTag2Key()const
{
return tag2Key_;
}
void CreateDiskRequest::setTag2Key(const std::string& tag2Key)
{
tag2Key_ = tag2Key;
setParameter("Tag2Key", tag2Key);
}
std::string CreateDiskRequest::getClientToken()const
{
return clientToken_;
}
void CreateDiskRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateDiskRequest::getDescription()const
{
return description_;
}
void CreateDiskRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateDiskRequest::getTag3Key()const
{
return tag3Key_;
}
void CreateDiskRequest::setTag3Key(const std::string& tag3Key)
{
tag3Key_ = tag3Key;
setParameter("Tag3Key", tag3Key);
}
std::string CreateDiskRequest::getDiskName()const
{
return diskName_;
}
void CreateDiskRequest::setDiskName(const std::string& diskName)
{
diskName_ = diskName;
setParameter("DiskName", diskName);
}
std::string CreateDiskRequest::getTag1Value()const
{
return tag1Value_;
}
void CreateDiskRequest::setTag1Value(const std::string& tag1Value)
{
tag1Value_ = tag1Value;
setParameter("Tag1Value", tag1Value);
}
std::string CreateDiskRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateDiskRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateDiskRequest::getRegionId()const
{
return regionId_;
}
void CreateDiskRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateDiskRequest::getDiskCategory()const
{
return diskCategory_;
}
void CreateDiskRequest::setDiskCategory(const std::string& diskCategory)
{
diskCategory_ = diskCategory;
setParameter("DiskCategory", diskCategory);
}
std::string CreateDiskRequest::getTag3Value()const
{
return tag3Value_;
}
void CreateDiskRequest::setTag3Value(const std::string& tag3Value)
{
tag3Value_ = tag3Value;
setParameter("Tag3Value", tag3Value);
}
std::string CreateDiskRequest::getTag5Key()const
{
return tag5Key_;
}
void CreateDiskRequest::setTag5Key(const std::string& tag5Key)
{
tag5Key_ = tag5Key;
setParameter("Tag5Key", tag5Key);
}
std::string CreateDiskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateDiskRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateDiskRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long CreateDiskRequest::getOwnerId()const
{
return ownerId_;
}
void CreateDiskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateDiskRequest::getTag5Value()const
{
return tag5Value_;
}
void CreateDiskRequest::setTag5Value(const std::string& tag5Value)
{
tag5Value_ = tag5Value;
setParameter("Tag5Value", tag5Value);
}
std::string CreateDiskRequest::getTag1Key()const
{
return tag1Key_;
}
void CreateDiskRequest::setTag1Key(const std::string& tag1Key)
{
tag1Key_ = tag1Key;
setParameter("Tag1Key", tag1Key);
}
int CreateDiskRequest::getSize()const
{
return size_;
}
void CreateDiskRequest::setSize(int size)
{
size_ = size;
setParameter("Size", std::to_string(size));
}
bool CreateDiskRequest::getEncrypted()const
{
return encrypted_;
}
void CreateDiskRequest::setEncrypted(bool encrypted)
{
encrypted_ = encrypted;
setParameter("Encrypted", std::to_string(encrypted));
}
std::string CreateDiskRequest::getTag2Value()const
{
return tag2Value_;
}
void CreateDiskRequest::setTag2Value(const std::string& tag2Value)
{
tag2Value_ = tag2Value;
setParameter("Tag2Value", tag2Value);
}
std::string CreateDiskRequest::getZoneId()const
{
return zoneId_;
}
void CreateDiskRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string CreateDiskRequest::getTag4Key()const
{
return tag4Key_;
}
void CreateDiskRequest::setTag4Key(const std::string& tag4Key)
{
tag4Key_ = tag4Key;
setParameter("Tag4Key", tag4Key);
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,127 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateHaVipRequest::CreateHaVipRequest() :
EcsRequest("CreateHaVip")
{}
CreateHaVipRequest::~CreateHaVipRequest()
{}
std::string CreateHaVipRequest::getVSwitchId()const
{
return vSwitchId_;
}
void CreateHaVipRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::string CreateHaVipRequest::getIpAddress()const
{
return ipAddress_;
}
void CreateHaVipRequest::setIpAddress(const std::string& ipAddress)
{
ipAddress_ = ipAddress;
setParameter("IpAddress", ipAddress);
}
long CreateHaVipRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateHaVipRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateHaVipRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateHaVipRequest::getClientToken()const
{
return clientToken_;
}
void CreateHaVipRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateHaVipRequest::getRegionId()const
{
return regionId_;
}
void CreateHaVipRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateHaVipRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateHaVipRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateHaVipRequest::getDescription()const
{
return description_;
}
void CreateHaVipRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateHaVipRequest::getOwnerId()const
{
return ownerId_;
}
void CreateHaVipRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,314 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateHpcClusterRequest::CreateHpcClusterRequest() :
EcsRequest("CreateHpcCluster")
{}
CreateHpcClusterRequest::~CreateHpcClusterRequest()
{}
long CreateHpcClusterRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateHpcClusterRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateHpcClusterRequest::getClientToken()const
{
return clientToken_;
}
void CreateHpcClusterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
long CreateHpcClusterRequest::getCallerParentId()const
{
return callerParentId_;
}
void CreateHpcClusterRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool CreateHpcClusterRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void CreateHpcClusterRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string CreateHpcClusterRequest::getDescription()const
{
return description_;
}
void CreateHpcClusterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateHpcClusterRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void CreateHpcClusterRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string CreateHpcClusterRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void CreateHpcClusterRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string CreateHpcClusterRequest::getCallerType()const
{
return callerType_;
}
void CreateHpcClusterRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string CreateHpcClusterRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateHpcClusterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateHpcClusterRequest::getRegionId()const
{
return regionId_;
}
void CreateHpcClusterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateHpcClusterRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateHpcClusterRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
bool CreateHpcClusterRequest::getEnable()const
{
return enable_;
}
void CreateHpcClusterRequest::setEnable(bool enable)
{
enable_ = enable;
setParameter("Enable", std::to_string(enable));
}
std::string CreateHpcClusterRequest::getRequestContent()const
{
return requestContent_;
}
void CreateHpcClusterRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string CreateHpcClusterRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void CreateHpcClusterRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string CreateHpcClusterRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void CreateHpcClusterRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long CreateHpcClusterRequest::getCallerUid()const
{
return callerUid_;
}
void CreateHpcClusterRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string CreateHpcClusterRequest::getApp_ip()const
{
return app_ip_;
}
void CreateHpcClusterRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string CreateHpcClusterRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateHpcClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateHpcClusterRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateHpcClusterRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateHpcClusterRequest::getCallerBid()const
{
return callerBid_;
}
void CreateHpcClusterRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long CreateHpcClusterRequest::getOwnerId()const
{
return ownerId_;
}
void CreateHpcClusterRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
bool CreateHpcClusterRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void CreateHpcClusterRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool CreateHpcClusterRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void CreateHpcClusterRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool CreateHpcClusterRequest::getSecurity_transport()const
{
return security_transport_;
}
void CreateHpcClusterRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string CreateHpcClusterRequest::getRequestId()const
{
return requestId_;
}
void CreateHpcClusterRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string CreateHpcClusterRequest::getName()const
{
return name_;
}
void CreateHpcClusterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

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

View File

@@ -0,0 +1,300 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateImageRequest::CreateImageRequest() :
EcsRequest("CreateImage")
{}
CreateImageRequest::~CreateImageRequest()
{}
std::vector<CreateImageRequest::DiskDeviceMapping> CreateImageRequest::getDiskDeviceMapping()const
{
return diskDeviceMapping_;
}
void CreateImageRequest::setDiskDeviceMapping(const std::vector<DiskDeviceMapping>& diskDeviceMapping)
{
diskDeviceMapping_ = diskDeviceMapping;
int i = 0;
for(int i = 0; i!= diskDeviceMapping.size(); i++) {
auto obj = diskDeviceMapping.at(i);
std::string str ="DiskDeviceMapping."+ std::to_string(i);
setParameter(str + ".Size", std::to_string(obj.size));
setParameter(str + ".SnapshotId", obj.snapshotId);
setParameter(str + ".Device", obj.device);
setParameter(str + ".DiskType", obj.diskType);
}
}
std::string CreateImageRequest::getTag4Value()const
{
return tag4Value_;
}
void CreateImageRequest::setTag4Value(const std::string& tag4Value)
{
tag4Value_ = tag4Value;
setParameter("Tag4Value", tag4Value);
}
long CreateImageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateImageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateImageRequest::getSnapshotId()const
{
return snapshotId_;
}
void CreateImageRequest::setSnapshotId(const std::string& snapshotId)
{
snapshotId_ = snapshotId;
setParameter("SnapshotId", snapshotId);
}
std::string CreateImageRequest::getTag2Key()const
{
return tag2Key_;
}
void CreateImageRequest::setTag2Key(const std::string& tag2Key)
{
tag2Key_ = tag2Key;
setParameter("Tag2Key", tag2Key);
}
std::string CreateImageRequest::getClientToken()const
{
return clientToken_;
}
void CreateImageRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateImageRequest::getDescription()const
{
return description_;
}
void CreateImageRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateImageRequest::getTag3Key()const
{
return tag3Key_;
}
void CreateImageRequest::setTag3Key(const std::string& tag3Key)
{
tag3Key_ = tag3Key;
setParameter("Tag3Key", tag3Key);
}
std::string CreateImageRequest::getPlatform()const
{
return platform_;
}
void CreateImageRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
}
std::string CreateImageRequest::getTag1Value()const
{
return tag1Value_;
}
void CreateImageRequest::setTag1Value(const std::string& tag1Value)
{
tag1Value_ = tag1Value;
setParameter("Tag1Value", tag1Value);
}
std::string CreateImageRequest::getRegionId()const
{
return regionId_;
}
void CreateImageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateImageRequest::getImageName()const
{
return imageName_;
}
void CreateImageRequest::setImageName(const std::string& imageName)
{
imageName_ = imageName;
setParameter("ImageName", imageName);
}
std::string CreateImageRequest::getTag3Value()const
{
return tag3Value_;
}
void CreateImageRequest::setTag3Value(const std::string& tag3Value)
{
tag3Value_ = tag3Value;
setParameter("Tag3Value", tag3Value);
}
std::string CreateImageRequest::getArchitecture()const
{
return architecture_;
}
void CreateImageRequest::setArchitecture(const std::string& architecture)
{
architecture_ = architecture;
setParameter("Architecture", architecture);
}
std::string CreateImageRequest::getTag5Key()const
{
return tag5Key_;
}
void CreateImageRequest::setTag5Key(const std::string& tag5Key)
{
tag5Key_ = tag5Key;
setParameter("Tag5Key", tag5Key);
}
std::string CreateImageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateImageRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateImageRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long CreateImageRequest::getOwnerId()const
{
return ownerId_;
}
void CreateImageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateImageRequest::getTag5Value()const
{
return tag5Value_;
}
void CreateImageRequest::setTag5Value(const std::string& tag5Value)
{
tag5Value_ = tag5Value;
setParameter("Tag5Value", tag5Value);
}
std::string CreateImageRequest::getTag1Key()const
{
return tag1Key_;
}
void CreateImageRequest::setTag1Key(const std::string& tag1Key)
{
tag1Key_ = tag1Key;
setParameter("Tag1Key", tag1Key);
}
std::string CreateImageRequest::getInstanceId()const
{
return instanceId_;
}
void CreateImageRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateImageRequest::getTag2Value()const
{
return tag2Value_;
}
void CreateImageRequest::setTag2Value(const std::string& tag2Value)
{
tag2Value_ = tag2Value;
setParameter("Tag2Value", tag2Value);
}
std::string CreateImageRequest::getImageVersion()const
{
return imageVersion_;
}
void CreateImageRequest::setImageVersion(const std::string& imageVersion)
{
imageVersion_ = imageVersion;
setParameter("ImageVersion", imageVersion);
}
std::string CreateImageRequest::getTag4Key()const
{
return tag4Key_;
}
void CreateImageRequest::setTag4Key(const std::string& tag4Key)
{
tag4Key_ = tag4Key;
setParameter("Tag4Key", tag4Key);
}

View File

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

View File

@@ -0,0 +1,634 @@
/*
* 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/CreateInstanceRequest.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateInstanceRequest::CreateInstanceRequest() :
EcsRequest("CreateInstance")
{}
CreateInstanceRequest::~CreateInstanceRequest()
{}
std::string CreateInstanceRequest::getTag4Value()const
{
return tag4Value_;
}
void CreateInstanceRequest::setTag4Value(const std::string& tag4Value)
{
tag4Value_ = tag4Value;
setParameter("Tag4Value", tag4Value);
}
long CreateInstanceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateInstanceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateInstanceRequest::getTag2Key()const
{
return tag2Key_;
}
void CreateInstanceRequest::setTag2Key(const std::string& tag2Key)
{
tag2Key_ = tag2Key;
setParameter("Tag2Key", tag2Key);
}
std::string CreateInstanceRequest::getHpcClusterId()const
{
return hpcClusterId_;
}
void CreateInstanceRequest::setHpcClusterId(const std::string& hpcClusterId)
{
hpcClusterId_ = hpcClusterId;
setParameter("HpcClusterId", hpcClusterId);
}
std::string CreateInstanceRequest::getTag3Key()const
{
return tag3Key_;
}
void CreateInstanceRequest::setTag3Key(const std::string& tag3Key)
{
tag3Key_ = tag3Key;
setParameter("Tag3Key", tag3Key);
}
std::string CreateInstanceRequest::getSecurityEnhancementStrategy()const
{
return securityEnhancementStrategy_;
}
void CreateInstanceRequest::setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy)
{
securityEnhancementStrategy_ = securityEnhancementStrategy;
setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy);
}
std::string CreateInstanceRequest::getKeyPairName()const
{
return keyPairName_;
}
void CreateInstanceRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
}
float CreateInstanceRequest::getSpotPriceLimit()const
{
return spotPriceLimit_;
}
void CreateInstanceRequest::setSpotPriceLimit(float spotPriceLimit)
{
spotPriceLimit_ = spotPriceLimit;
setParameter("SpotPriceLimit", std::to_string(spotPriceLimit));
}
std::string CreateInstanceRequest::getTag1Value()const
{
return tag1Value_;
}
void CreateInstanceRequest::setTag1Value(const std::string& tag1Value)
{
tag1Value_ = tag1Value;
setParameter("Tag1Value", tag1Value);
}
std::string CreateInstanceRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateInstanceRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateInstanceRequest::getHostName()const
{
return hostName_;
}
void CreateInstanceRequest::setHostName(const std::string& hostName)
{
hostName_ = hostName;
setParameter("HostName", hostName);
}
std::string CreateInstanceRequest::getPassword()const
{
return password_;
}
void CreateInstanceRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
}
int CreateInstanceRequest::getAutoRenewPeriod()const
{
return autoRenewPeriod_;
}
void CreateInstanceRequest::setAutoRenewPeriod(int autoRenewPeriod)
{
autoRenewPeriod_ = autoRenewPeriod;
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
}
std::string CreateInstanceRequest::getNodeControllerId()const
{
return nodeControllerId_;
}
void CreateInstanceRequest::setNodeControllerId(const std::string& nodeControllerId)
{
nodeControllerId_ = nodeControllerId;
setParameter("NodeControllerId", nodeControllerId);
}
int CreateInstanceRequest::getPeriod()const
{
return period_;
}
void CreateInstanceRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
}
std::string CreateInstanceRequest::getTag5Key()const
{
return tag5Key_;
}
void CreateInstanceRequest::setTag5Key(const std::string& tag5Key)
{
tag5Key_ = tag5Key;
setParameter("Tag5Key", tag5Key);
}
long CreateInstanceRequest::getOwnerId()const
{
return ownerId_;
}
void CreateInstanceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateInstanceRequest::getVSwitchId()const
{
return vSwitchId_;
}
void CreateInstanceRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::string CreateInstanceRequest::getPrivateIpAddress()const
{
return privateIpAddress_;
}
void CreateInstanceRequest::setPrivateIpAddress(const std::string& privateIpAddress)
{
privateIpAddress_ = privateIpAddress;
setParameter("PrivateIpAddress", privateIpAddress);
}
std::string CreateInstanceRequest::getSpotStrategy()const
{
return spotStrategy_;
}
void CreateInstanceRequest::setSpotStrategy(const std::string& spotStrategy)
{
spotStrategy_ = spotStrategy;
setParameter("SpotStrategy", spotStrategy);
}
std::string CreateInstanceRequest::getPeriodUnit()const
{
return periodUnit_;
}
void CreateInstanceRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setParameter("PeriodUnit", periodUnit);
}
std::string CreateInstanceRequest::getInstanceName()const
{
return instanceName_;
}
void CreateInstanceRequest::setInstanceName(const std::string& instanceName)
{
instanceName_ = instanceName;
setParameter("InstanceName", instanceName);
}
bool CreateInstanceRequest::getAutoRenew()const
{
return autoRenew_;
}
void CreateInstanceRequest::setAutoRenew(bool autoRenew)
{
autoRenew_ = autoRenew;
setParameter("AutoRenew", std::to_string(autoRenew));
}
std::string CreateInstanceRequest::getInternetChargeType()const
{
return internetChargeType_;
}
void CreateInstanceRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
}
std::string CreateInstanceRequest::getZoneId()const
{
return zoneId_;
}
void CreateInstanceRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string CreateInstanceRequest::getTag4Key()const
{
return tag4Key_;
}
void CreateInstanceRequest::setTag4Key(const std::string& tag4Key)
{
tag4Key_ = tag4Key;
setParameter("Tag4Key", tag4Key);
}
int CreateInstanceRequest::getInternetMaxBandwidthIn()const
{
return internetMaxBandwidthIn_;
}
void CreateInstanceRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn)
{
internetMaxBandwidthIn_ = internetMaxBandwidthIn;
setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn));
}
bool CreateInstanceRequest::getUseAdditionalService()const
{
return useAdditionalService_;
}
void CreateInstanceRequest::setUseAdditionalService(bool useAdditionalService)
{
useAdditionalService_ = useAdditionalService;
setParameter("UseAdditionalService", std::to_string(useAdditionalService));
}
std::string CreateInstanceRequest::getImageId()const
{
return imageId_;
}
void CreateInstanceRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
}
std::string CreateInstanceRequest::getClientToken()const
{
return clientToken_;
}
void CreateInstanceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateInstanceRequest::getVlanId()const
{
return vlanId_;
}
void CreateInstanceRequest::setVlanId(const std::string& vlanId)
{
vlanId_ = vlanId;
setParameter("VlanId", vlanId);
}
std::string CreateInstanceRequest::getIoOptimized()const
{
return ioOptimized_;
}
void CreateInstanceRequest::setIoOptimized(const std::string& ioOptimized)
{
ioOptimized_ = ioOptimized;
setParameter("IoOptimized", ioOptimized);
}
std::string CreateInstanceRequest::getSecurityGroupId()const
{
return securityGroupId_;
}
void CreateInstanceRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
}
int CreateInstanceRequest::getInternetMaxBandwidthOut()const
{
return internetMaxBandwidthOut_;
}
void CreateInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut)
{
internetMaxBandwidthOut_ = internetMaxBandwidthOut;
setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut));
}
std::string CreateInstanceRequest::getDescription()const
{
return description_;
}
void CreateInstanceRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateInstanceRequest::getSystemDiskCategory()const
{
return systemDiskCategory_;
}
void CreateInstanceRequest::setSystemDiskCategory(const std::string& systemDiskCategory)
{
systemDiskCategory_ = systemDiskCategory;
setParameter("SystemDiskCategory", systemDiskCategory);
}
std::string CreateInstanceRequest::getUserData()const
{
return userData_;
}
void CreateInstanceRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
}
std::string CreateInstanceRequest::getRegionId()const
{
return regionId_;
}
void CreateInstanceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateInstanceRequest::getInstanceType()const
{
return instanceType_;
}
void CreateInstanceRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
}
std::string CreateInstanceRequest::getInstanceChargeType()const
{
return instanceChargeType_;
}
void CreateInstanceRequest::setInstanceChargeType(const std::string& instanceChargeType)
{
instanceChargeType_ = instanceChargeType;
setParameter("InstanceChargeType", instanceChargeType);
}
std::string CreateInstanceRequest::getTag3Value()const
{
return tag3Value_;
}
void CreateInstanceRequest::setTag3Value(const std::string& tag3Value)
{
tag3Value_ = tag3Value;
setParameter("Tag3Value", tag3Value);
}
std::string CreateInstanceRequest::getDeploymentSetId()const
{
return deploymentSetId_;
}
void CreateInstanceRequest::setDeploymentSetId(const std::string& deploymentSetId)
{
deploymentSetId_ = deploymentSetId;
setParameter("DeploymentSetId", deploymentSetId);
}
std::string CreateInstanceRequest::getInnerIpAddress()const
{
return innerIpAddress_;
}
void CreateInstanceRequest::setInnerIpAddress(const std::string& innerIpAddress)
{
innerIpAddress_ = innerIpAddress;
setParameter("InnerIpAddress", innerIpAddress);
}
std::string CreateInstanceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateInstanceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateInstanceRequest::getSystemDiskDiskName()const
{
return systemDiskDiskName_;
}
void CreateInstanceRequest::setSystemDiskDiskName(const std::string& systemDiskDiskName)
{
systemDiskDiskName_ = systemDiskDiskName;
setParameter("SystemDiskDiskName", systemDiskDiskName);
}
std::string CreateInstanceRequest::getRamRoleName()const
{
return ramRoleName_;
}
void CreateInstanceRequest::setRamRoleName(const std::string& ramRoleName)
{
ramRoleName_ = ramRoleName;
setParameter("RamRoleName", ramRoleName);
}
std::string CreateInstanceRequest::getClusterId()const
{
return clusterId_;
}
void CreateInstanceRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::vector<CreateInstanceRequest::DataDisk> CreateInstanceRequest::getDataDisk()const
{
return dataDisk_;
}
void CreateInstanceRequest::setDataDisk(const std::vector<DataDisk>& dataDisk)
{
dataDisk_ = dataDisk;
int i = 0;
for(int i = 0; i!= dataDisk.size(); i++) {
auto obj = dataDisk.at(i);
std::string str ="DataDisk."+ std::to_string(i);
setParameter(str + ".Size", std::to_string(obj.size));
setParameter(str + ".SnapshotId", obj.snapshotId);
setParameter(str + ".Category", obj.category);
setParameter(str + ".DiskName", obj.diskName);
setParameter(str + ".Description", obj.description);
setParameter(str + ".Device", obj.device);
setParameter(str + ".DeleteWithInstance", std::to_string(obj.deleteWithInstance));
setParameter(str + ".Encrypted", std::to_string(obj.encrypted));
}
}
std::string CreateInstanceRequest::getTag5Value()const
{
return tag5Value_;
}
void CreateInstanceRequest::setTag5Value(const std::string& tag5Value)
{
tag5Value_ = tag5Value;
setParameter("Tag5Value", tag5Value);
}
std::string CreateInstanceRequest::getTag1Key()const
{
return tag1Key_;
}
void CreateInstanceRequest::setTag1Key(const std::string& tag1Key)
{
tag1Key_ = tag1Key;
setParameter("Tag1Key", tag1Key);
}
int CreateInstanceRequest::getSystemDiskSize()const
{
return systemDiskSize_;
}
void CreateInstanceRequest::setSystemDiskSize(int systemDiskSize)
{
systemDiskSize_ = systemDiskSize;
setParameter("SystemDiskSize", std::to_string(systemDiskSize));
}
std::string CreateInstanceRequest::getTag2Value()const
{
return tag2Value_;
}
void CreateInstanceRequest::setTag2Value(const std::string& tag2Value)
{
tag2Value_ = tag2Value;
setParameter("Tag2Value", tag2Value);
}
std::string CreateInstanceRequest::getSystemDiskDescription()const
{
return systemDiskDescription_;
}
void CreateInstanceRequest::setSystemDiskDescription(const std::string& systemDiskDescription)
{
systemDiskDescription_ = systemDiskDescription;
setParameter("SystemDiskDescription", systemDiskDescription);
}

View File

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

View File

@@ -0,0 +1,83 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateKeyPairRequest::CreateKeyPairRequest() :
EcsRequest("CreateKeyPair")
{}
CreateKeyPairRequest::~CreateKeyPairRequest()
{}
long CreateKeyPairRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateKeyPairRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateKeyPairRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateKeyPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateKeyPairRequest::getRegionId()const
{
return regionId_;
}
void CreateKeyPairRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateKeyPairRequest::getKeyPairName()const
{
return keyPairName_;
}
void CreateKeyPairRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
}
long CreateKeyPairRequest::getOwnerId()const
{
return ownerId_;
}
void CreateKeyPairRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,78 @@
/*
* 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/CreateKeyPairResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateKeyPairResult::CreateKeyPairResult() :
ServiceResult()
{}
CreateKeyPairResult::CreateKeyPairResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateKeyPairResult::~CreateKeyPairResult()
{}
void CreateKeyPairResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
keyPairName_ = value["KeyPairName"].asString();
keyPairFingerPrint_ = value["KeyPairFingerPrint"].asString();
privateKeyBody_ = value["PrivateKeyBody"].asString();
}
std::string CreateKeyPairResult::getKeyPairFingerPrint()const
{
return keyPairFingerPrint_;
}
void CreateKeyPairResult::setKeyPairFingerPrint(const std::string& keyPairFingerPrint)
{
keyPairFingerPrint_ = keyPairFingerPrint;
}
std::string CreateKeyPairResult::getKeyPairName()const
{
return keyPairName_;
}
void CreateKeyPairResult::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
}
std::string CreateKeyPairResult::getPrivateKeyBody()const
{
return privateKeyBody_;
}
void CreateKeyPairResult::setPrivateKeyBody(const std::string& privateKeyBody)
{
privateKeyBody_ = privateKeyBody;
}

View File

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

View File

@@ -0,0 +1,82 @@
/*
* 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/CreateNatGatewayResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateNatGatewayResult::CreateNatGatewayResult() :
ServiceResult()
{}
CreateNatGatewayResult::CreateNatGatewayResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNatGatewayResult::~CreateNatGatewayResult()
{}
void CreateNatGatewayResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"];
for (const auto &item : allForwardTableIds)
forwardTableIds_.push_back(item.asString());
auto allBandwidthPackageIds = value["BandwidthPackageIds"]["BandwidthPackageId"];
for (const auto &item : allBandwidthPackageIds)
bandwidthPackageIds_.push_back(item.asString());
natGatewayId_ = value["NatGatewayId"].asString();
}
std::vector<std::string> CreateNatGatewayResult::getForwardTableIds()const
{
return forwardTableIds_;
}
void CreateNatGatewayResult::setForwardTableIds(const std::vector<std::string>& forwardTableIds)
{
forwardTableIds_ = forwardTableIds;
}
std::vector<std::string> CreateNatGatewayResult::getBandwidthPackageIds()const
{
return bandwidthPackageIds_;
}
void CreateNatGatewayResult::setBandwidthPackageIds(const std::vector<std::string>& bandwidthPackageIds)
{
bandwidthPackageIds_ = bandwidthPackageIds;
}
std::string CreateNatGatewayResult::getNatGatewayId()const
{
return natGatewayId_;
}
void CreateNatGatewayResult::setNatGatewayId(const std::string& natGatewayId)
{
natGatewayId_ = natGatewayId;
}

View File

@@ -0,0 +1,358 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateNetworkInterfaceRequest::CreateNetworkInterfaceRequest() :
EcsRequest("CreateNetworkInterface")
{}
CreateNetworkInterfaceRequest::~CreateNetworkInterfaceRequest()
{}
long CreateNetworkInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateNetworkInterfaceRequest::getClientToken()const
{
return clientToken_;
}
void CreateNetworkInterfaceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
long CreateNetworkInterfaceRequest::getCallerParentId()const
{
return callerParentId_;
}
void CreateNetworkInterfaceRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
std::string CreateNetworkInterfaceRequest::getSecurityGroupId()const
{
return securityGroupId_;
}
void CreateNetworkInterfaceRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
}
bool CreateNetworkInterfaceRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void CreateNetworkInterfaceRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string CreateNetworkInterfaceRequest::getDescription()const
{
return description_;
}
void CreateNetworkInterfaceRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateNetworkInterfaceRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void CreateNetworkInterfaceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string CreateNetworkInterfaceRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void CreateNetworkInterfaceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string CreateNetworkInterfaceRequest::getCallerType()const
{
return callerType_;
}
void CreateNetworkInterfaceRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string CreateNetworkInterfaceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateNetworkInterfaceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateNetworkInterfaceRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateNetworkInterfaceRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateNetworkInterfaceRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateNetworkInterfaceRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string CreateNetworkInterfaceRequest::getRegionId()const
{
return regionId_;
}
void CreateNetworkInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool CreateNetworkInterfaceRequest::getEnable()const
{
return enable_;
}
void CreateNetworkInterfaceRequest::setEnable(bool enable)
{
enable_ = enable;
setParameter("Enable", std::to_string(enable));
}
std::string CreateNetworkInterfaceRequest::getRequestContent()const
{
return requestContent_;
}
void CreateNetworkInterfaceRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string CreateNetworkInterfaceRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void CreateNetworkInterfaceRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string CreateNetworkInterfaceRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void CreateNetworkInterfaceRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
std::string CreateNetworkInterfaceRequest::getNetworkInterfaceName()const
{
return networkInterfaceName_;
}
void CreateNetworkInterfaceRequest::setNetworkInterfaceName(const std::string& networkInterfaceName)
{
networkInterfaceName_ = networkInterfaceName;
setParameter("NetworkInterfaceName", networkInterfaceName);
}
long CreateNetworkInterfaceRequest::getCallerUid()const
{
return callerUid_;
}
void CreateNetworkInterfaceRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string CreateNetworkInterfaceRequest::getApp_ip()const
{
return app_ip_;
}
void CreateNetworkInterfaceRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string CreateNetworkInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateNetworkInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateNetworkInterfaceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateNetworkInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateNetworkInterfaceRequest::getCallerBid()const
{
return callerBid_;
}
void CreateNetworkInterfaceRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long CreateNetworkInterfaceRequest::getOwnerId()const
{
return ownerId_;
}
void CreateNetworkInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
bool CreateNetworkInterfaceRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void CreateNetworkInterfaceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool CreateNetworkInterfaceRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void CreateNetworkInterfaceRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool CreateNetworkInterfaceRequest::getSecurity_transport()const
{
return security_transport_;
}
void CreateNetworkInterfaceRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string CreateNetworkInterfaceRequest::getVSwitchId()const
{
return vSwitchId_;
}
void CreateNetworkInterfaceRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::string CreateNetworkInterfaceRequest::getRequestId()const
{
return requestId_;
}
void CreateNetworkInterfaceRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string CreateNetworkInterfaceRequest::getPrimaryIpAddress()const
{
return primaryIpAddress_;
}
void CreateNetworkInterfaceRequest::setPrimaryIpAddress(const std::string& primaryIpAddress)
{
primaryIpAddress_ = primaryIpAddress;
setParameter("PrimaryIpAddress", primaryIpAddress);
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +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/CreateRouteEntryRequest.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateRouteEntryRequest::CreateRouteEntryRequest() :
EcsRequest("CreateRouteEntry")
{}
CreateRouteEntryRequest::~CreateRouteEntryRequest()
{}
long CreateRouteEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateRouteEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateRouteEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateRouteEntryRequest::getClientToken()const
{
return clientToken_;
}
void CreateRouteEntryRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateRouteEntryRequest::getDestinationCidrBlock()const
{
return destinationCidrBlock_;
}
void CreateRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
{
destinationCidrBlock_ = destinationCidrBlock;
setParameter("DestinationCidrBlock", destinationCidrBlock);
}
std::string CreateRouteEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateRouteEntryRequest::getNextHopId()const
{
return nextHopId_;
}
void CreateRouteEntryRequest::setNextHopId(const std::string& nextHopId)
{
nextHopId_ = nextHopId;
setParameter("NextHopId", nextHopId);
}
long CreateRouteEntryRequest::getOwnerId()const
{
return ownerId_;
}
void CreateRouteEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateRouteEntryRequest::getNextHopType()const
{
return nextHopType_;
}
void CreateRouteEntryRequest::setNextHopType(const std::string& nextHopType)
{
nextHopType_ = nextHopType;
setParameter("NextHopType", nextHopType);
}
std::vector<CreateRouteEntryRequest::NextHopList> CreateRouteEntryRequest::getNextHopList()const
{
return nextHopList_;
}
void CreateRouteEntryRequest::setNextHopList(const std::vector<NextHopList>& nextHopList)
{
nextHopList_ = nextHopList;
int i = 0;
for(int i = 0; i!= nextHopList.size(); i++) {
auto obj = nextHopList.at(i);
std::string str ="NextHopList."+ std::to_string(i);
setParameter(str + ".NextHopType", obj.nextHopType);
setParameter(str + ".NextHopId", obj.nextHopId);
}
}
std::string CreateRouteEntryRequest::getRouteTableId()const
{
return routeTableId_;
}
void CreateRouteEntryRequest::setRouteTableId(const std::string& routeTableId)
{
routeTableId_ = routeTableId;
setParameter("RouteTableId", routeTableId);
}

View File

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

View File

@@ -0,0 +1,270 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() :
EcsRequest("CreateRouterInterface")
{}
CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest()
{}
std::string CreateRouterInterfaceRequest::getAccessPointId()const
{
return accessPointId_;
}
void CreateRouterInterfaceRequest::setAccessPointId(const std::string& accessPointId)
{
accessPointId_ = accessPointId;
setParameter("AccessPointId", accessPointId);
}
std::string CreateRouterInterfaceRequest::getOppositeRouterId()const
{
return oppositeRouterId_;
}
void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string& oppositeRouterId)
{
oppositeRouterId_ = oppositeRouterId;
setParameter("OppositeRouterId", oppositeRouterId);
}
std::string CreateRouterInterfaceRequest::getOppositeAccessPointId()const
{
return oppositeAccessPointId_;
}
void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string& oppositeAccessPointId)
{
oppositeAccessPointId_ = oppositeAccessPointId;
setParameter("OppositeAccessPointId", oppositeAccessPointId);
}
long CreateRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateRouterInterfaceRequest::getRole()const
{
return role_;
}
void CreateRouterInterfaceRequest::setRole(const std::string& role)
{
role_ = role;
setParameter("Role", role);
}
std::string CreateRouterInterfaceRequest::getClientToken()const
{
return clientToken_;
}
void CreateRouterInterfaceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateRouterInterfaceRequest::getOppositeRegionId()const
{
return oppositeRegionId_;
}
void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string& oppositeRegionId)
{
oppositeRegionId_ = oppositeRegionId;
setParameter("OppositeRegionId", oppositeRegionId);
}
std::string CreateRouterInterfaceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const
{
return healthCheckTargetIp_;
}
void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp)
{
healthCheckTargetIp_ = healthCheckTargetIp;
setParameter("HealthCheckTargetIp", healthCheckTargetIp);
}
std::string CreateRouterInterfaceRequest::getDescription()const
{
return description_;
}
void CreateRouterInterfaceRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
}
void CreateRouterInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateRouterInterfaceRequest::getSpec()const
{
return spec_;
}
void CreateRouterInterfaceRequest::setSpec(const std::string& spec)
{
spec_ = spec;
setParameter("Spec", spec);
}
std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const
{
return oppositeInterfaceOwnerId_;
}
void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId)
{
oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId;
setParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId);
}
std::string CreateRouterInterfaceRequest::getRouterType()const
{
return routerType_;
}
void CreateRouterInterfaceRequest::setRouterType(const std::string& routerType)
{
routerType_ = routerType;
setParameter("RouterType", routerType);
}
std::string CreateRouterInterfaceRequest::getRegionId()const
{
return regionId_;
}
void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const
{
return healthCheckSourceIp_;
}
void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp)
{
healthCheckSourceIp_ = healthCheckSourceIp;
setParameter("HealthCheckSourceIp", healthCheckSourceIp);
}
std::string CreateRouterInterfaceRequest::getRouterId()const
{
return routerId_;
}
void CreateRouterInterfaceRequest::setRouterId(const std::string& routerId)
{
routerId_ = routerId;
setParameter("RouterId", routerId);
}
std::string CreateRouterInterfaceRequest::getOppositeRouterType()const
{
return oppositeRouterType_;
}
void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string& oppositeRouterType)
{
oppositeRouterType_ = oppositeRouterType;
setParameter("OppositeRouterType", oppositeRouterType);
}
std::string CreateRouterInterfaceRequest::getName()const
{
return name_;
}
void CreateRouterInterfaceRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateRouterInterfaceRequest::getUserCidr()const
{
return userCidr_;
}
void CreateRouterInterfaceRequest::setUserCidr(const std::string& userCidr)
{
userCidr_ = userCidr;
setParameter("UserCidr", userCidr);
}
std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const
{
return oppositeInterfaceId_;
}
void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId)
{
oppositeInterfaceId_ = oppositeInterfaceId;
setParameter("OppositeInterfaceId", oppositeInterfaceId);
}

View File

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

View File

@@ -0,0 +1,237 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateSecurityGroupRequest::CreateSecurityGroupRequest() :
EcsRequest("CreateSecurityGroup")
{}
CreateSecurityGroupRequest::~CreateSecurityGroupRequest()
{}
std::string CreateSecurityGroupRequest::getTag4Value()const
{
return tag4Value_;
}
void CreateSecurityGroupRequest::setTag4Value(const std::string& tag4Value)
{
tag4Value_ = tag4Value;
setParameter("Tag4Value", tag4Value);
}
long CreateSecurityGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateSecurityGroupRequest::getTag2Key()const
{
return tag2Key_;
}
void CreateSecurityGroupRequest::setTag2Key(const std::string& tag2Key)
{
tag2Key_ = tag2Key;
setParameter("Tag2Key", tag2Key);
}
std::string CreateSecurityGroupRequest::getTag5Key()const
{
return tag5Key_;
}
void CreateSecurityGroupRequest::setTag5Key(const std::string& tag5Key)
{
tag5Key_ = tag5Key;
setParameter("Tag5Key", tag5Key);
}
std::string CreateSecurityGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateSecurityGroupRequest::getClientToken()const
{
return clientToken_;
}
void CreateSecurityGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateSecurityGroupRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateSecurityGroupRequest::getDescription()const
{
return description_;
}
void CreateSecurityGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateSecurityGroupRequest::getTag3Key()const
{
return tag3Key_;
}
void CreateSecurityGroupRequest::setTag3Key(const std::string& tag3Key)
{
tag3Key_ = tag3Key;
setParameter("Tag3Key", tag3Key);
}
long CreateSecurityGroupRequest::getOwnerId()const
{
return ownerId_;
}
void CreateSecurityGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateSecurityGroupRequest::getSecurityGroupName()const
{
return securityGroupName_;
}
void CreateSecurityGroupRequest::setSecurityGroupName(const std::string& securityGroupName)
{
securityGroupName_ = securityGroupName;
setParameter("SecurityGroupName", securityGroupName);
}
std::string CreateSecurityGroupRequest::getTag5Value()const
{
return tag5Value_;
}
void CreateSecurityGroupRequest::setTag5Value(const std::string& tag5Value)
{
tag5Value_ = tag5Value;
setParameter("Tag5Value", tag5Value);
}
std::string CreateSecurityGroupRequest::getTag1Key()const
{
return tag1Key_;
}
void CreateSecurityGroupRequest::setTag1Key(const std::string& tag1Key)
{
tag1Key_ = tag1Key;
setParameter("Tag1Key", tag1Key);
}
std::string CreateSecurityGroupRequest::getTag1Value()const
{
return tag1Value_;
}
void CreateSecurityGroupRequest::setTag1Value(const std::string& tag1Value)
{
tag1Value_ = tag1Value;
setParameter("Tag1Value", tag1Value);
}
std::string CreateSecurityGroupRequest::getRegionId()const
{
return regionId_;
}
void CreateSecurityGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateSecurityGroupRequest::getVpcId()const
{
return vpcId_;
}
void CreateSecurityGroupRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
std::string CreateSecurityGroupRequest::getTag2Value()const
{
return tag2Value_;
}
void CreateSecurityGroupRequest::setTag2Value(const std::string& tag2Value)
{
tag2Value_ = tag2Value;
setParameter("Tag2Value", tag2Value);
}
std::string CreateSecurityGroupRequest::getTag4Key()const
{
return tag4Key_;
}
void CreateSecurityGroupRequest::setTag4Key(const std::string& tag4Key)
{
tag4Key_ = tag4Key;
setParameter("Tag4Key", tag4Key);
}
std::string CreateSecurityGroupRequest::getTag3Value()const
{
return tag3Value_;
}
void CreateSecurityGroupRequest::setTag3Value(const std::string& tag3Value)
{
tag3Value_ = tag3Value;
setParameter("Tag3Value", tag3Value);
}

View File

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

View File

@@ -0,0 +1,226 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateSnapshotRequest::CreateSnapshotRequest() :
EcsRequest("CreateSnapshot")
{}
CreateSnapshotRequest::~CreateSnapshotRequest()
{}
std::string CreateSnapshotRequest::getTag4Value()const
{
return tag4Value_;
}
void CreateSnapshotRequest::setTag4Value(const std::string& tag4Value)
{
tag4Value_ = tag4Value;
setParameter("Tag4Value", tag4Value);
}
long CreateSnapshotRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateSnapshotRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateSnapshotRequest::getTag2Key()const
{
return tag2Key_;
}
void CreateSnapshotRequest::setTag2Key(const std::string& tag2Key)
{
tag2Key_ = tag2Key;
setParameter("Tag2Key", tag2Key);
}
std::string CreateSnapshotRequest::getTag5Key()const
{
return tag5Key_;
}
void CreateSnapshotRequest::setTag5Key(const std::string& tag5Key)
{
tag5Key_ = tag5Key;
setParameter("Tag5Key", tag5Key);
}
std::string CreateSnapshotRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateSnapshotRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateSnapshotRequest::getClientToken()const
{
return clientToken_;
}
void CreateSnapshotRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateSnapshotRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateSnapshotRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateSnapshotRequest::getDescription()const
{
return description_;
}
void CreateSnapshotRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateSnapshotRequest::getSnapshotName()const
{
return snapshotName_;
}
void CreateSnapshotRequest::setSnapshotName(const std::string& snapshotName)
{
snapshotName_ = snapshotName;
setParameter("SnapshotName", snapshotName);
}
std::string CreateSnapshotRequest::getTag3Key()const
{
return tag3Key_;
}
void CreateSnapshotRequest::setTag3Key(const std::string& tag3Key)
{
tag3Key_ = tag3Key;
setParameter("Tag3Key", tag3Key);
}
long CreateSnapshotRequest::getOwnerId()const
{
return ownerId_;
}
void CreateSnapshotRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateSnapshotRequest::getTag5Value()const
{
return tag5Value_;
}
void CreateSnapshotRequest::setTag5Value(const std::string& tag5Value)
{
tag5Value_ = tag5Value;
setParameter("Tag5Value", tag5Value);
}
std::string CreateSnapshotRequest::getTag1Key()const
{
return tag1Key_;
}
void CreateSnapshotRequest::setTag1Key(const std::string& tag1Key)
{
tag1Key_ = tag1Key;
setParameter("Tag1Key", tag1Key);
}
std::string CreateSnapshotRequest::getTag1Value()const
{
return tag1Value_;
}
void CreateSnapshotRequest::setTag1Value(const std::string& tag1Value)
{
tag1Value_ = tag1Value;
setParameter("Tag1Value", tag1Value);
}
std::string CreateSnapshotRequest::getTag2Value()const
{
return tag2Value_;
}
void CreateSnapshotRequest::setTag2Value(const std::string& tag2Value)
{
tag2Value_ = tag2Value;
setParameter("Tag2Value", tag2Value);
}
std::string CreateSnapshotRequest::getTag4Key()const
{
return tag4Key_;
}
void CreateSnapshotRequest::setTag4Key(const std::string& tag4Key)
{
tag4Key_ = tag4Key;
setParameter("Tag4Key", tag4Key);
}
std::string CreateSnapshotRequest::getDiskId()const
{
return diskId_;
}
void CreateSnapshotRequest::setDiskId(const std::string& diskId)
{
diskId_ = diskId;
setParameter("DiskId", diskId);
}
std::string CreateSnapshotRequest::getTag3Value()const
{
return tag3Value_;
}
void CreateSnapshotRequest::setTag3Value(const std::string& tag3Value)
{
tag3Value_ = tag3Value;
setParameter("Tag3Value", tag3Value);
}

View File

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

View File

@@ -0,0 +1,138 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateVSwitchRequest::CreateVSwitchRequest() :
EcsRequest("CreateVSwitch")
{}
CreateVSwitchRequest::~CreateVSwitchRequest()
{}
long CreateVSwitchRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateVSwitchRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateVSwitchRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateVSwitchRequest::getClientToken()const
{
return clientToken_;
}
void CreateVSwitchRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateVSwitchRequest::getVpcId()const
{
return vpcId_;
}
void CreateVSwitchRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
std::string CreateVSwitchRequest::getVSwitchName()const
{
return vSwitchName_;
}
void CreateVSwitchRequest::setVSwitchName(const std::string& vSwitchName)
{
vSwitchName_ = vSwitchName;
setParameter("VSwitchName", vSwitchName);
}
std::string CreateVSwitchRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateVSwitchRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateVSwitchRequest::getCidrBlock()const
{
return cidrBlock_;
}
void CreateVSwitchRequest::setCidrBlock(const std::string& cidrBlock)
{
cidrBlock_ = cidrBlock;
setParameter("CidrBlock", cidrBlock);
}
std::string CreateVSwitchRequest::getZoneId()const
{
return zoneId_;
}
void CreateVSwitchRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string CreateVSwitchRequest::getDescription()const
{
return description_;
}
void CreateVSwitchRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateVSwitchRequest::getOwnerId()const
{
return ownerId_;
}
void CreateVSwitchRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,78 @@
/*
* 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/CreateVpcResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateVpcResult::CreateVpcResult() :
ServiceResult()
{}
CreateVpcResult::CreateVpcResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateVpcResult::~CreateVpcResult()
{}
void CreateVpcResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
vpcId_ = value["VpcId"].asString();
vRouterId_ = value["VRouterId"].asString();
routeTableId_ = value["RouteTableId"].asString();
}
std::string CreateVpcResult::getVRouterId()const
{
return vRouterId_;
}
void CreateVpcResult::setVRouterId(const std::string& vRouterId)
{
vRouterId_ = vRouterId;
}
std::string CreateVpcResult::getRouteTableId()const
{
return routeTableId_;
}
void CreateVpcResult::setRouteTableId(const std::string& routeTableId)
{
routeTableId_ = routeTableId;
}
std::string CreateVpcResult::getVpcId()const
{
return vpcId_;
}
void CreateVpcResult::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
}

View File

@@ -0,0 +1,83 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
DeactivateRouterInterfaceRequest::DeactivateRouterInterfaceRequest() :
EcsRequest("DeactivateRouterInterface")
{}
DeactivateRouterInterfaceRequest::~DeactivateRouterInterfaceRequest()
{}
long DeactivateRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeactivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeactivateRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeactivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeactivateRouterInterfaceRequest::getRegionId()const
{
return regionId_;
}
void DeactivateRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
long DeactivateRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
}
void DeactivateRouterInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeactivateRouterInterfaceRequest::getRouterInterfaceId()const
{
return routerInterfaceId_;
}
void DeactivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId)
{
routerInterfaceId_ = routerInterfaceId;
setParameter("RouterInterfaceId", routerInterfaceId);
}

View File

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

View File

@@ -0,0 +1,83 @@
/*
* 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 namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
DeleteAutoSnapshotPolicyRequest::DeleteAutoSnapshotPolicyRequest() :
EcsRequest("DeleteAutoSnapshotPolicy")
{}
DeleteAutoSnapshotPolicyRequest::~DeleteAutoSnapshotPolicyRequest()
{}
long DeleteAutoSnapshotPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteAutoSnapshotPolicyRequest::getRegionId()const
{
return regionId_;
}
void DeleteAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId()const
{
return autoSnapshotPolicyId_;
}
void DeleteAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId)
{
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId);
}
long DeleteAutoSnapshotPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

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