Support cloud disk.

This commit is contained in:
sdk-team
2022-01-28 07:59:04 +00:00
parent d78148b8be
commit a09a6e094a
658 changed files with 47846 additions and 1 deletions

5921
ens/src/EnsClient.cc Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,51 @@
/*
* 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/ens/model/AddBackendServersRequest.h>
using AlibabaCloud::Ens::Model::AddBackendServersRequest;
AddBackendServersRequest::AddBackendServersRequest()
: RpcServiceRequest("ens", "2017-11-10", "AddBackendServers") {
setMethod(HttpRequest::Method::Post);
}
AddBackendServersRequest::~AddBackendServersRequest() {}
std::vector<AddBackendServersRequest::BackendServers> AddBackendServersRequest::getBackendServers() const {
return backendServers_;
}
void AddBackendServersRequest::setBackendServers(const std::vector<AddBackendServersRequest::BackendServers> &backendServers) {
backendServers_ = backendServers;
for(int dep1 = 0; dep1 != backendServers.size(); dep1++) {
setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(backendServers[dep1].port));
setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Ip", backendServers[dep1].ip);
setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Weight", std::to_string(backendServers[dep1].weight));
setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Type", backendServers[dep1].type);
setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".ServerId", backendServers[dep1].serverId);
}
}
std::string AddBackendServersRequest::getLoadBalancerId() const {
return loadBalancerId_;
}
void AddBackendServersRequest::setLoadBalancerId(const std::string &loadBalancerId) {
loadBalancerId_ = loadBalancerId;
setParameter(std::string("LoadBalancerId"), loadBalancerId);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/ens/model/AddBackendServersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
AddBackendServersResult::AddBackendServersResult() :
ServiceResult()
{}
AddBackendServersResult::AddBackendServersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddBackendServersResult::~AddBackendServersResult()
{}
void AddBackendServersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBackendServersNode = value["BackendServers"]["BackendServer"];
for (auto valueBackendServersBackendServer : allBackendServersNode)
{
BackendServer backendServersObject;
if(!valueBackendServersBackendServer["ServerId"].isNull())
backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString();
if(!valueBackendServersBackendServer["Weight"].isNull())
backendServersObject.weight = std::stoi(valueBackendServersBackendServer["Weight"].asString());
if(!valueBackendServersBackendServer["Type"].isNull())
backendServersObject.type = valueBackendServersBackendServer["Type"].asString();
if(!valueBackendServersBackendServer["Ip"].isNull())
backendServersObject.ip = valueBackendServersBackendServer["Ip"].asString();
if(!valueBackendServersBackendServer["Port"].isNull())
backendServersObject.port = std::stoi(valueBackendServersBackendServer["Port"].asString());
backendServers_.push_back(backendServersObject);
}
}
std::vector<AddBackendServersResult::BackendServer> AddBackendServersResult::getBackendServers()const
{
return backendServers_;
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/AddDeviceInternetPortRequest.h>
using AlibabaCloud::Ens::Model::AddDeviceInternetPortRequest;
AddDeviceInternetPortRequest::AddDeviceInternetPortRequest()
: RpcServiceRequest("ens", "2017-11-10", "AddDeviceInternetPort") {
setMethod(HttpRequest::Method::Get);
}
AddDeviceInternetPortRequest::~AddDeviceInternetPortRequest() {}
std::string AddDeviceInternetPortRequest::getISP() const {
return iSP_;
}
void AddDeviceInternetPortRequest::setISP(const std::string &iSP) {
iSP_ = iSP;
setParameter(std::string("ISP"), iSP);
}
std::string AddDeviceInternetPortRequest::getInternalIp() const {
return internalIp_;
}
void AddDeviceInternetPortRequest::setInternalIp(const std::string &internalIp) {
internalIp_ = internalIp;
setParameter(std::string("InternalIp"), internalIp);
}
std::string AddDeviceInternetPortRequest::getRegionId() const {
return regionId_;
}
void AddDeviceInternetPortRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string AddDeviceInternetPortRequest::getNatType() const {
return natType_;
}
void AddDeviceInternetPortRequest::setNatType(const std::string &natType) {
natType_ = natType;
setParameter(std::string("NatType"), natType);
}
std::string AddDeviceInternetPortRequest::getInstanceId() const {
return instanceId_;
}
void AddDeviceInternetPortRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string AddDeviceInternetPortRequest::getInternalPort() const {
return internalPort_;
}
void AddDeviceInternetPortRequest::setInternalPort(const std::string &internalPort) {
internalPort_ = internalPort;
setParameter(std::string("InternalPort"), internalPort);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/ens/model/AddDeviceInternetPortResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
AddDeviceInternetPortResult::AddDeviceInternetPortResult() :
ServiceResult()
{}
AddDeviceInternetPortResult::AddDeviceInternetPortResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddDeviceInternetPortResult::~AddDeviceInternetPortResult()
{}
void AddDeviceInternetPortResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRuleIds = value["RuleIds"]["RuleIds"];
for (const auto &item : allRuleIds)
ruleIds_.push_back(item.asString());
}
std::vector<std::string> AddDeviceInternetPortResult::getRuleIds()const
{
return ruleIds_;
}

View File

@@ -0,0 +1,54 @@
/*
* 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/ens/model/AddNetworkInterfaceToInstanceRequest.h>
using AlibabaCloud::Ens::Model::AddNetworkInterfaceToInstanceRequest;
AddNetworkInterfaceToInstanceRequest::AddNetworkInterfaceToInstanceRequest()
: RpcServiceRequest("ens", "2017-11-10", "AddNetworkInterfaceToInstance") {
setMethod(HttpRequest::Method::Post);
}
AddNetworkInterfaceToInstanceRequest::~AddNetworkInterfaceToInstanceRequest() {}
std::string AddNetworkInterfaceToInstanceRequest::getNetworks() const {
return networks_;
}
void AddNetworkInterfaceToInstanceRequest::setNetworks(const std::string &networks) {
networks_ = networks;
setParameter(std::string("Networks"), networks);
}
bool AddNetworkInterfaceToInstanceRequest::getAutoStart() const {
return autoStart_;
}
void AddNetworkInterfaceToInstanceRequest::setAutoStart(bool autoStart) {
autoStart_ = autoStart;
setParameter(std::string("AutoStart"), autoStart ? "true" : "false");
}
std::string AddNetworkInterfaceToInstanceRequest::getInstanceId() const {
return instanceId_;
}
void AddNetworkInterfaceToInstanceRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/AddNetworkInterfaceToInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
AddNetworkInterfaceToInstanceResult::AddNetworkInterfaceToInstanceResult() :
ServiceResult()
{}
AddNetworkInterfaceToInstanceResult::AddNetworkInterfaceToInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddNetworkInterfaceToInstanceResult::~AddNetworkInterfaceToInstanceResult()
{}
void AddNetworkInterfaceToInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,54 @@
/*
* 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/ens/model/AllocateEipAddressRequest.h>
using AlibabaCloud::Ens::Model::AllocateEipAddressRequest;
AllocateEipAddressRequest::AllocateEipAddressRequest()
: RpcServiceRequest("ens", "2017-11-10", "AllocateEipAddress") {
setMethod(HttpRequest::Method::Post);
}
AllocateEipAddressRequest::~AllocateEipAddressRequest() {}
int AllocateEipAddressRequest::getMinCount() const {
return minCount_;
}
void AllocateEipAddressRequest::setMinCount(int minCount) {
minCount_ = minCount;
setParameter(std::string("MinCount"), std::to_string(minCount));
}
std::string AllocateEipAddressRequest::getEnsRegionId() const {
return ensRegionId_;
}
void AllocateEipAddressRequest::setEnsRegionId(const std::string &ensRegionId) {
ensRegionId_ = ensRegionId;
setParameter(std::string("EnsRegionId"), ensRegionId);
}
int AllocateEipAddressRequest::getCount() const {
return count_;
}
void AllocateEipAddressRequest::setCount(int count) {
count_ = count;
setParameter(std::string("Count"), std::to_string(count));
}

View File

@@ -0,0 +1,64 @@
/*
* 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/ens/model/AllocateEipAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::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());
auto allEipAddressesNode = value["EipAddresses"]["EipAddress"];
for (auto valueEipAddressesEipAddress : allEipAddressesNode)
{
EipAddress eipAddressesObject;
if(!valueEipAddressesEipAddress["Eip"].isNull())
eipAddressesObject.eip = valueEipAddressesEipAddress["Eip"].asString();
eipAddresses_.push_back(eipAddressesObject);
}
if(!value["BizStatusCode"].isNull())
bizStatusCode_ = value["BizStatusCode"].asString();
}
std::vector<AllocateEipAddressResult::EipAddress> AllocateEipAddressResult::getEipAddresses()const
{
return eipAddresses_;
}
std::string AllocateEipAddressResult::getBizStatusCode()const
{
return bizStatusCode_;
}

View File

@@ -0,0 +1,54 @@
/*
* 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/ens/model/AssociateEipAddressRequest.h>
using AlibabaCloud::Ens::Model::AssociateEipAddressRequest;
AssociateEipAddressRequest::AssociateEipAddressRequest()
: RpcServiceRequest("ens", "2017-11-10", "AssociateEipAddress") {
setMethod(HttpRequest::Method::Post);
}
AssociateEipAddressRequest::~AssociateEipAddressRequest() {}
std::string AssociateEipAddressRequest::getEip() const {
return eip_;
}
void AssociateEipAddressRequest::setEip(const std::string &eip) {
eip_ = eip;
setParameter(std::string("Eip"), eip);
}
std::string AssociateEipAddressRequest::getEnsRegionId() const {
return ensRegionId_;
}
void AssociateEipAddressRequest::setEnsRegionId(const std::string &ensRegionId) {
ensRegionId_ = ensRegionId;
setParameter(std::string("EnsRegionId"), ensRegionId);
}
std::string AssociateEipAddressRequest::getInstanceIdInternetIp() const {
return instanceIdInternetIp_;
}
void AssociateEipAddressRequest::setInstanceIdInternetIp(const std::string &instanceIdInternetIp) {
instanceIdInternetIp_ = instanceIdInternetIp;
setParameter(std::string("InstanceIdInternetIp"), instanceIdInternetIp);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/AssociateEipAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::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,54 @@
/*
* 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/ens/model/AssociateEnsEipAddressRequest.h>
using AlibabaCloud::Ens::Model::AssociateEnsEipAddressRequest;
AssociateEnsEipAddressRequest::AssociateEnsEipAddressRequest()
: RpcServiceRequest("ens", "2017-11-10", "AssociateEnsEipAddress") {
setMethod(HttpRequest::Method::Post);
}
AssociateEnsEipAddressRequest::~AssociateEnsEipAddressRequest() {}
std::string AssociateEnsEipAddressRequest::getAllocationId() const {
return allocationId_;
}
void AssociateEnsEipAddressRequest::setAllocationId(const std::string &allocationId) {
allocationId_ = allocationId;
setParameter(std::string("AllocationId"), allocationId);
}
std::string AssociateEnsEipAddressRequest::getInstanceType() const {
return instanceType_;
}
void AssociateEnsEipAddressRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string AssociateEnsEipAddressRequest::getInstanceId() const {
return instanceId_;
}
void AssociateEnsEipAddressRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/AssociateEnsEipAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
AssociateEnsEipAddressResult::AssociateEnsEipAddressResult() :
ServiceResult()
{}
AssociateEnsEipAddressResult::AssociateEnsEipAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssociateEnsEipAddressResult::~AssociateEnsEipAddressResult()
{}
void AssociateEnsEipAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,54 @@
/*
* 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/ens/model/AttachDiskRequest.h>
using AlibabaCloud::Ens::Model::AttachDiskRequest;
AttachDiskRequest::AttachDiskRequest()
: RpcServiceRequest("ens", "2017-11-10", "AttachDisk") {
setMethod(HttpRequest::Method::Post);
}
AttachDiskRequest::~AttachDiskRequest() {}
std::string AttachDiskRequest::getDiskId() const {
return diskId_;
}
void AttachDiskRequest::setDiskId(const std::string &diskId) {
diskId_ = diskId;
setParameter(std::string("DiskId"), diskId);
}
std::string AttachDiskRequest::getDeleteWithInstance() const {
return deleteWithInstance_;
}
void AttachDiskRequest::setDeleteWithInstance(const std::string &deleteWithInstance) {
deleteWithInstance_ = deleteWithInstance;
setParameter(std::string("DeleteWithInstance"), deleteWithInstance);
}
std::string AttachDiskRequest::getInstanceId() const {
return instanceId_;
}
void AttachDiskRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/ens/model/AttachDiskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::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());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
}
int AttachDiskResult::getCode()const
{
return code_;
}

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/ens/model/AttachEnsInstancesRequest.h>
using AlibabaCloud::Ens::Model::AttachEnsInstancesRequest;
AttachEnsInstancesRequest::AttachEnsInstancesRequest()
: RpcServiceRequest("ens", "2017-11-10", "AttachEnsInstances") {
setMethod(HttpRequest::Method::Post);
}
AttachEnsInstancesRequest::~AttachEnsInstancesRequest() {}
std::string AttachEnsInstancesRequest::getScripts() const {
return scripts_;
}
void AttachEnsInstancesRequest::setScripts(const std::string &scripts) {
scripts_ = scripts;
setParameter(std::string("Scripts"), scripts);
}
std::string AttachEnsInstancesRequest::getInstanceId() const {
return instanceId_;
}
void AttachEnsInstancesRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/AttachEnsInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
AttachEnsInstancesResult::AttachEnsInstancesResult() :
ServiceResult()
{}
AttachEnsInstancesResult::AttachEnsInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachEnsInstancesResult::~AttachEnsInstancesResult()
{}
void AttachEnsInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/AuthorizeSecurityGroupEgressRequest.h>
using AlibabaCloud::Ens::Model::AuthorizeSecurityGroupEgressRequest;
AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest()
: RpcServiceRequest("ens", "2017-11-10", "AuthorizeSecurityGroupEgress") {
setMethod(HttpRequest::Method::Post);
}
AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest() {}
std::string AuthorizeSecurityGroupEgressRequest::getSourcePortRange() const {
return sourcePortRange_;
}
void AuthorizeSecurityGroupEgressRequest::setSourcePortRange(const std::string &sourcePortRange) {
sourcePortRange_ = sourcePortRange;
setParameter(std::string("SourcePortRange"), sourcePortRange);
}
std::string AuthorizeSecurityGroupEgressRequest::getPortRange() const {
return portRange_;
}
void AuthorizeSecurityGroupEgressRequest::setPortRange(const std::string &portRange) {
portRange_ = portRange;
setParameter(std::string("PortRange"), portRange);
}
std::string AuthorizeSecurityGroupEgressRequest::getIpProtocol() const {
return ipProtocol_;
}
void AuthorizeSecurityGroupEgressRequest::setIpProtocol(const std::string &ipProtocol) {
ipProtocol_ = ipProtocol;
setParameter(std::string("IpProtocol"), ipProtocol);
}
int AuthorizeSecurityGroupEgressRequest::getPriority() const {
return priority_;
}
void AuthorizeSecurityGroupEgressRequest::setPriority(int priority) {
priority_ = priority;
setParameter(std::string("Priority"), std::to_string(priority));
}
std::string AuthorizeSecurityGroupEgressRequest::getDestCidrIp() const {
return destCidrIp_;
}
void AuthorizeSecurityGroupEgressRequest::setDestCidrIp(const std::string &destCidrIp) {
destCidrIp_ = destCidrIp;
setParameter(std::string("DestCidrIp"), destCidrIp);
}
std::string AuthorizeSecurityGroupEgressRequest::getSecurityGroupId() const {
return securityGroupId_;
}
void AuthorizeSecurityGroupEgressRequest::setSecurityGroupId(const std::string &securityGroupId) {
securityGroupId_ = securityGroupId;
setParameter(std::string("SecurityGroupId"), securityGroupId);
}
std::string AuthorizeSecurityGroupEgressRequest::getPolicy() const {
return policy_;
}
void AuthorizeSecurityGroupEgressRequest::setPolicy(const std::string &policy) {
policy_ = policy;
setParameter(std::string("Policy"), policy);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/AuthorizeSecurityGroupEgressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::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,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/AuthorizeSecurityGroupRequest.h>
using AlibabaCloud::Ens::Model::AuthorizeSecurityGroupRequest;
AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest()
: RpcServiceRequest("ens", "2017-11-10", "AuthorizeSecurityGroup") {
setMethod(HttpRequest::Method::Post);
}
AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest() {}
std::string AuthorizeSecurityGroupRequest::getSourcePortRange() const {
return sourcePortRange_;
}
void AuthorizeSecurityGroupRequest::setSourcePortRange(const std::string &sourcePortRange) {
sourcePortRange_ = sourcePortRange;
setParameter(std::string("SourcePortRange"), sourcePortRange);
}
std::string AuthorizeSecurityGroupRequest::getPortRange() const {
return portRange_;
}
void AuthorizeSecurityGroupRequest::setPortRange(const std::string &portRange) {
portRange_ = portRange;
setParameter(std::string("PortRange"), portRange);
}
std::string AuthorizeSecurityGroupRequest::getIpProtocol() const {
return ipProtocol_;
}
void AuthorizeSecurityGroupRequest::setIpProtocol(const std::string &ipProtocol) {
ipProtocol_ = ipProtocol;
setParameter(std::string("IpProtocol"), ipProtocol);
}
std::string AuthorizeSecurityGroupRequest::getSourceCidrIp() const {
return sourceCidrIp_;
}
void AuthorizeSecurityGroupRequest::setSourceCidrIp(const std::string &sourceCidrIp) {
sourceCidrIp_ = sourceCidrIp;
setParameter(std::string("SourceCidrIp"), sourceCidrIp);
}
int AuthorizeSecurityGroupRequest::getPriority() const {
return priority_;
}
void AuthorizeSecurityGroupRequest::setPriority(int priority) {
priority_ = priority;
setParameter(std::string("Priority"), std::to_string(priority));
}
std::string AuthorizeSecurityGroupRequest::getSecurityGroupId() const {
return securityGroupId_;
}
void AuthorizeSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) {
securityGroupId_ = securityGroupId;
setParameter(std::string("SecurityGroupId"), securityGroupId);
}
std::string AuthorizeSecurityGroupRequest::getPolicy() const {
return policy_;
}
void AuthorizeSecurityGroupRequest::setPolicy(const std::string &policy) {
policy_ = policy;
setParameter(std::string("Policy"), policy);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/AuthorizeSecurityGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::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,54 @@
/*
* 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/ens/model/CheckQuotaRequest.h>
using AlibabaCloud::Ens::Model::CheckQuotaRequest;
CheckQuotaRequest::CheckQuotaRequest()
: RpcServiceRequest("ens", "2017-11-10", "CheckQuota") {
setMethod(HttpRequest::Method::Post);
}
CheckQuotaRequest::~CheckQuotaRequest() {}
std::string CheckQuotaRequest::getGroupUuid() const {
return groupUuid_;
}
void CheckQuotaRequest::setGroupUuid(const std::string &groupUuid) {
groupUuid_ = groupUuid;
setParameter(std::string("GroupUuid"), groupUuid);
}
std::string CheckQuotaRequest::getResourceAttribute() const {
return resourceAttribute_;
}
void CheckQuotaRequest::setResourceAttribute(const std::string &resourceAttribute) {
resourceAttribute_ = resourceAttribute;
setBodyParameter(std::string("ResourceAttribute"), resourceAttribute);
}
long CheckQuotaRequest::getAliUid() const {
return aliUid_;
}
void CheckQuotaRequest::setAliUid(long aliUid) {
aliUid_ = aliUid;
setParameter(std::string("AliUid"), std::to_string(aliUid));
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CheckQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CheckQuotaResult::CheckQuotaResult() :
ServiceResult()
{}
CheckQuotaResult::CheckQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckQuotaResult::~CheckQuotaResult()
{}
void CheckQuotaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Msg"].isNull())
msg_ = value["Msg"].asString();
if(!value["Desc"].isNull())
desc_ = value["Desc"].asString();
}
std::string CheckQuotaResult::getMsg()const
{
return msg_;
}
std::string CheckQuotaResult::getDesc()const
{
return desc_;
}
std::string CheckQuotaResult::getData()const
{
return data_;
}
int CheckQuotaResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/ens/model/ConfigureSecurityGroupPermissionsRequest.h>
using AlibabaCloud::Ens::Model::ConfigureSecurityGroupPermissionsRequest;
ConfigureSecurityGroupPermissionsRequest::ConfigureSecurityGroupPermissionsRequest()
: RpcServiceRequest("ens", "2017-11-10", "ConfigureSecurityGroupPermissions") {
setMethod(HttpRequest::Method::Post);
}
ConfigureSecurityGroupPermissionsRequest::~ConfigureSecurityGroupPermissionsRequest() {}
std::string ConfigureSecurityGroupPermissionsRequest::getSecurityGroupId() const {
return securityGroupId_;
}
void ConfigureSecurityGroupPermissionsRequest::setSecurityGroupId(const std::string &securityGroupId) {
securityGroupId_ = securityGroupId;
setParameter(std::string("SecurityGroupId"), securityGroupId);
}
std::vector<ConfigureSecurityGroupPermissionsRequest::RevokePermissions> ConfigureSecurityGroupPermissionsRequest::getRevokePermissions() const {
return revokePermissions_;
}
void ConfigureSecurityGroupPermissionsRequest::setRevokePermissions(const std::vector<ConfigureSecurityGroupPermissionsRequest::RevokePermissions> &revokePermissions) {
revokePermissions_ = revokePermissions;
for(int dep1 = 0; dep1 != revokePermissions.size(); dep1++) {
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".SourcePortRange", revokePermissions[dep1].sourcePortRange);
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".PortRange", revokePermissions[dep1].portRange);
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".IpProtocol", revokePermissions[dep1].ipProtocol);
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", revokePermissions[dep1].sourceCidrIp);
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(revokePermissions[dep1].priority));
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".DestCidrIp", revokePermissions[dep1].destCidrIp);
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".Direction", revokePermissions[dep1].direction);
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".Policy", revokePermissions[dep1].policy);
}
}
std::vector<ConfigureSecurityGroupPermissionsRequest::AuthorizePermissions> ConfigureSecurityGroupPermissionsRequest::getAuthorizePermissions() const {
return authorizePermissions_;
}
void ConfigureSecurityGroupPermissionsRequest::setAuthorizePermissions(const std::vector<ConfigureSecurityGroupPermissionsRequest::AuthorizePermissions> &authorizePermissions) {
authorizePermissions_ = authorizePermissions;
for(int dep1 = 0; dep1 != authorizePermissions.size(); dep1++) {
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".SourcePortRange", authorizePermissions[dep1].sourcePortRange);
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".PortRange", authorizePermissions[dep1].portRange);
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".IpProtocol", authorizePermissions[dep1].ipProtocol);
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", authorizePermissions[dep1].sourceCidrIp);
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".Description", authorizePermissions[dep1].description);
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(authorizePermissions[dep1].priority));
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".DestCidrIp", authorizePermissions[dep1].destCidrIp);
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".Direction", authorizePermissions[dep1].direction);
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".Policy", authorizePermissions[dep1].policy);
}
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/ConfigureSecurityGroupPermissionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
ConfigureSecurityGroupPermissionsResult::ConfigureSecurityGroupPermissionsResult() :
ServiceResult()
{}
ConfigureSecurityGroupPermissionsResult::ConfigureSecurityGroupPermissionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConfigureSecurityGroupPermissionsResult::~ConfigureSecurityGroupPermissionsResult()
{}
void ConfigureSecurityGroupPermissionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ens/model/CreateApplicationRequest.h>
using AlibabaCloud::Ens::Model::CreateApplicationRequest;
CreateApplicationRequest::CreateApplicationRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateApplication") {
setMethod(HttpRequest::Method::Post);
}
CreateApplicationRequest::~CreateApplicationRequest() {}
std::string CreateApplicationRequest::get_Template() const {
return _template_;
}
void CreateApplicationRequest::set_Template(const std::string &_template) {
_template_ = _template;
setParameter(std::string("Template"), _template);
}
int CreateApplicationRequest::getTimeout() const {
return timeout_;
}
void CreateApplicationRequest::setTimeout(int timeout) {
timeout_ = timeout;
setParameter(std::string("Timeout"), std::to_string(timeout));
}

View File

@@ -0,0 +1,51 @@
/*
* 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/ens/model/CreateApplicationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateApplicationResult::CreateApplicationResult() :
ServiceResult()
{}
CreateApplicationResult::CreateApplicationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateApplicationResult::~CreateApplicationResult()
{}
void CreateApplicationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AppId"].isNull())
appId_ = value["AppId"].asString();
}
std::string CreateApplicationResult::getAppId()const
{
return appId_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ens/model/CreateDiskBuyOrderRequest.h>
using AlibabaCloud::Ens::Model::CreateDiskBuyOrderRequest;
CreateDiskBuyOrderRequest::CreateDiskBuyOrderRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateDiskBuyOrder") {
setMethod(HttpRequest::Method::Post);
}
CreateDiskBuyOrderRequest::~CreateDiskBuyOrderRequest() {}
std::string CreateDiskBuyOrderRequest::getOrderDetails() const {
return orderDetails_;
}
void CreateDiskBuyOrderRequest::setOrderDetails(const std::string &orderDetails) {
orderDetails_ = orderDetails;
setParameter(std::string("OrderDetails"), orderDetails);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/ens/model/CreateDiskBuyOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateDiskBuyOrderResult::CreateDiskBuyOrderResult() :
ServiceResult()
{}
CreateDiskBuyOrderResult::CreateDiskBuyOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDiskBuyOrderResult::~CreateDiskBuyOrderResult()
{}
void CreateDiskBuyOrderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
}
std::string CreateDiskBuyOrderResult::getOrderId()const
{
return orderId_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/ens/model/CreateDiskRequest.h>
using AlibabaCloud::Ens::Model::CreateDiskRequest;
CreateDiskRequest::CreateDiskRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateDisk") {
setMethod(HttpRequest::Method::Post);
}
CreateDiskRequest::~CreateDiskRequest() {}
std::string CreateDiskRequest::getEnsRegionId() const {
return ensRegionId_;
}
void CreateDiskRequest::setEnsRegionId(const std::string &ensRegionId) {
ensRegionId_ = ensRegionId;
setParameter(std::string("EnsRegionId"), ensRegionId);
}
std::string CreateDiskRequest::getInstanceChargeType() const {
return instanceChargeType_;
}
void CreateDiskRequest::setInstanceChargeType(const std::string &instanceChargeType) {
instanceChargeType_ = instanceChargeType;
setParameter(std::string("InstanceChargeType"), instanceChargeType);
}
std::string CreateDiskRequest::getSize() const {
return size_;
}
void CreateDiskRequest::setSize(const std::string &size) {
size_ = size;
setParameter(std::string("Size"), size);
}
std::string CreateDiskRequest::getCategory() const {
return category_;
}
void CreateDiskRequest::setCategory(const std::string &category) {
category_ = category;
setParameter(std::string("Category"), category);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/ens/model/CreateDiskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::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());
auto allInstanceIds = value["InstanceIds"]["InstanceIds"];
for (const auto &item : allInstanceIds)
instanceIds_.push_back(item.asString());
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
}
std::vector<std::string> CreateDiskResult::getInstanceIds()const
{
return instanceIds_;
}
std::string CreateDiskResult::getOrderId()const
{
return orderId_;
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateEPInstanceRequest.h>
using AlibabaCloud::Ens::Model::CreateEPInstanceRequest;
CreateEPInstanceRequest::CreateEPInstanceRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateEPInstance") {
setMethod(HttpRequest::Method::Post);
}
CreateEPInstanceRequest::~CreateEPInstanceRequest() {}
std::string CreateEPInstanceRequest::getNetworkingModel() const {
return networkingModel_;
}
void CreateEPInstanceRequest::setNetworkingModel(const std::string &networkingModel) {
networkingModel_ = networkingModel;
setParameter(std::string("NetworkingModel"), networkingModel);
}
int CreateEPInstanceRequest::getInternetMaxBandwidthOut() const {
return internetMaxBandwidthOut_;
}
void CreateEPInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) {
internetMaxBandwidthOut_ = internetMaxBandwidthOut;
setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut));
}
std::string CreateEPInstanceRequest::getEPNInstanceType() const {
return ePNInstanceType_;
}
void CreateEPInstanceRequest::setEPNInstanceType(const std::string &ePNInstanceType) {
ePNInstanceType_ = ePNInstanceType;
setParameter(std::string("EPNInstanceType"), ePNInstanceType);
}
std::string CreateEPInstanceRequest::getInternetChargeType() const {
return internetChargeType_;
}
void CreateEPInstanceRequest::setInternetChargeType(const std::string &internetChargeType) {
internetChargeType_ = internetChargeType;
setParameter(std::string("InternetChargeType"), internetChargeType);
}
std::string CreateEPInstanceRequest::getEPNInstanceName() const {
return ePNInstanceName_;
}
void CreateEPInstanceRequest::setEPNInstanceName(const std::string &ePNInstanceName) {
ePNInstanceName_ = ePNInstanceName;
setParameter(std::string("EPNInstanceName"), ePNInstanceName);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/ens/model/CreateEPInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateEPInstanceResult::CreateEPInstanceResult() :
ServiceResult()
{}
CreateEPInstanceResult::CreateEPInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateEPInstanceResult::~CreateEPInstanceResult()
{}
void CreateEPInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["EPNInstanceId"].isNull())
ePNInstanceId_ = value["EPNInstanceId"].asString();
}
std::string CreateEPInstanceResult::getEPNInstanceId()const
{
return ePNInstanceId_;
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateEipInstanceRequest.h>
using AlibabaCloud::Ens::Model::CreateEipInstanceRequest;
CreateEipInstanceRequest::CreateEipInstanceRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateEipInstance") {
setMethod(HttpRequest::Method::Post);
}
CreateEipInstanceRequest::~CreateEipInstanceRequest() {}
std::string CreateEipInstanceRequest::getIsp() const {
return isp_;
}
void CreateEipInstanceRequest::setIsp(const std::string &isp) {
isp_ = isp;
setParameter(std::string("Isp"), isp);
}
std::string CreateEipInstanceRequest::getEnsRegionId() const {
return ensRegionId_;
}
void CreateEipInstanceRequest::setEnsRegionId(const std::string &ensRegionId) {
ensRegionId_ = ensRegionId;
setParameter(std::string("EnsRegionId"), ensRegionId);
}
std::string CreateEipInstanceRequest::getInstanceChargeType() const {
return instanceChargeType_;
}
void CreateEipInstanceRequest::setInstanceChargeType(const std::string &instanceChargeType) {
instanceChargeType_ = instanceChargeType;
setParameter(std::string("InstanceChargeType"), instanceChargeType);
}
long CreateEipInstanceRequest::getBandwidth() const {
return bandwidth_;
}
void CreateEipInstanceRequest::setBandwidth(long bandwidth) {
bandwidth_ = bandwidth;
setParameter(std::string("Bandwidth"), std::to_string(bandwidth));
}
std::string CreateEipInstanceRequest::getInternetChargeType() const {
return internetChargeType_;
}
void CreateEipInstanceRequest::setInternetChargeType(const std::string &internetChargeType) {
internetChargeType_ = internetChargeType;
setParameter(std::string("InternetChargeType"), internetChargeType);
}
std::string CreateEipInstanceRequest::getName() const {
return name_;
}
void CreateEipInstanceRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/ens/model/CreateEipInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateEipInstanceResult::CreateEipInstanceResult() :
ServiceResult()
{}
CreateEipInstanceResult::CreateEipInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateEipInstanceResult::~CreateEipInstanceResult()
{}
void CreateEipInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AllocationId"].isNull())
allocationId_ = value["AllocationId"].asString();
}
std::string CreateEipInstanceResult::getAllocationId()const
{
return allocationId_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ens/model/CreateElbBuyOrderRequest.h>
using AlibabaCloud::Ens::Model::CreateElbBuyOrderRequest;
CreateElbBuyOrderRequest::CreateElbBuyOrderRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateElbBuyOrder") {
setMethod(HttpRequest::Method::Post);
}
CreateElbBuyOrderRequest::~CreateElbBuyOrderRequest() {}
std::string CreateElbBuyOrderRequest::getOrderDetails() const {
return orderDetails_;
}
void CreateElbBuyOrderRequest::setOrderDetails(const std::string &orderDetails) {
orderDetails_ = orderDetails;
setParameter(std::string("OrderDetails"), orderDetails);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/ens/model/CreateElbBuyOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateElbBuyOrderResult::CreateElbBuyOrderResult() :
ServiceResult()
{}
CreateElbBuyOrderResult::CreateElbBuyOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateElbBuyOrderResult::~CreateElbBuyOrderResult()
{}
void CreateElbBuyOrderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLoadBalancerIds = value["LoadBalancerIds"]["LoadBalancerIds"];
for (const auto &item : allLoadBalancerIds)
loadBalancerIds_.push_back(item.asString());
}
std::vector<std::string> CreateElbBuyOrderResult::getLoadBalancerIds()const
{
return loadBalancerIds_;
}

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/ens/model/CreateEnsServiceRequest.h>
using AlibabaCloud::Ens::Model::CreateEnsServiceRequest;
CreateEnsServiceRequest::CreateEnsServiceRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateEnsService") {
setMethod(HttpRequest::Method::Post);
}
CreateEnsServiceRequest::~CreateEnsServiceRequest() {}
std::string CreateEnsServiceRequest::getEnsServiceId() const {
return ensServiceId_;
}
void CreateEnsServiceRequest::setEnsServiceId(const std::string &ensServiceId) {
ensServiceId_ = ensServiceId;
setParameter(std::string("EnsServiceId"), ensServiceId);
}
std::string CreateEnsServiceRequest::getOrderType() const {
return orderType_;
}
void CreateEnsServiceRequest::setOrderType(const std::string &orderType) {
orderType_ = orderType;
setParameter(std::string("OrderType"), orderType);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/ens/model/CreateEnsServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateEnsServiceResult::CreateEnsServiceResult() :
ServiceResult()
{}
CreateEnsServiceResult::CreateEnsServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateEnsServiceResult::~CreateEnsServiceResult()
{}
void CreateEnsServiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
}
int CreateEnsServiceResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateEpnInstanceRequest.h>
using AlibabaCloud::Ens::Model::CreateEpnInstanceRequest;
CreateEpnInstanceRequest::CreateEpnInstanceRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateEpnInstance") {
setMethod(HttpRequest::Method::Post);
}
CreateEpnInstanceRequest::~CreateEpnInstanceRequest() {}
std::string CreateEpnInstanceRequest::getNetworkingModel() const {
return networkingModel_;
}
void CreateEpnInstanceRequest::setNetworkingModel(const std::string &networkingModel) {
networkingModel_ = networkingModel;
setParameter(std::string("NetworkingModel"), networkingModel);
}
int CreateEpnInstanceRequest::getInternetMaxBandwidthOut() const {
return internetMaxBandwidthOut_;
}
void CreateEpnInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) {
internetMaxBandwidthOut_ = internetMaxBandwidthOut;
setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut));
}
std::string CreateEpnInstanceRequest::getEPNInstanceType() const {
return ePNInstanceType_;
}
void CreateEpnInstanceRequest::setEPNInstanceType(const std::string &ePNInstanceType) {
ePNInstanceType_ = ePNInstanceType;
setParameter(std::string("EPNInstanceType"), ePNInstanceType);
}
std::string CreateEpnInstanceRequest::getInternetChargeType() const {
return internetChargeType_;
}
void CreateEpnInstanceRequest::setInternetChargeType(const std::string &internetChargeType) {
internetChargeType_ = internetChargeType;
setParameter(std::string("InternetChargeType"), internetChargeType);
}
std::string CreateEpnInstanceRequest::getEPNInstanceName() const {
return ePNInstanceName_;
}
void CreateEpnInstanceRequest::setEPNInstanceName(const std::string &ePNInstanceName) {
ePNInstanceName_ = ePNInstanceName;
setParameter(std::string("EPNInstanceName"), ePNInstanceName);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/ens/model/CreateEpnInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateEpnInstanceResult::CreateEpnInstanceResult() :
ServiceResult()
{}
CreateEpnInstanceResult::CreateEpnInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateEpnInstanceResult::~CreateEpnInstanceResult()
{}
void CreateEpnInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["EPNInstanceId"].isNull())
ePNInstanceId_ = value["EPNInstanceId"].asString();
}
std::string CreateEpnInstanceResult::getEPNInstanceId()const
{
return ePNInstanceId_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/ens/model/CreateImageRequest.h>
using AlibabaCloud::Ens::Model::CreateImageRequest;
CreateImageRequest::CreateImageRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateImage") {
setMethod(HttpRequest::Method::Post);
}
CreateImageRequest::~CreateImageRequest() {}
std::string CreateImageRequest::getDeleteAfterImageUpload() const {
return deleteAfterImageUpload_;
}
void CreateImageRequest::setDeleteAfterImageUpload(const std::string &deleteAfterImageUpload) {
deleteAfterImageUpload_ = deleteAfterImageUpload;
setParameter(std::string("DeleteAfterImageUpload"), deleteAfterImageUpload);
}
std::string CreateImageRequest::getImageName() const {
return imageName_;
}
void CreateImageRequest::setImageName(const std::string &imageName) {
imageName_ = imageName;
setParameter(std::string("ImageName"), imageName);
}
std::string CreateImageRequest::getProduct() const {
return product_;
}
void CreateImageRequest::setProduct(const std::string &product) {
product_ = product;
setParameter(std::string("product"), product);
}
std::string CreateImageRequest::getInstanceId() const {
return instanceId_;
}
void CreateImageRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/ens/model/CreateImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::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());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ImageId"].isNull())
imageId_ = value["ImageId"].asString();
}
std::string CreateImageResult::getImageId()const
{
return imageId_;
}
int CreateImageResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,225 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateInstanceRequest.h>
using AlibabaCloud::Ens::Model::CreateInstanceRequest;
CreateInstanceRequest::CreateInstanceRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateInstance") {
setMethod(HttpRequest::Method::Post);
}
CreateInstanceRequest::~CreateInstanceRequest() {}
bool CreateInstanceRequest::getUniqueSuffix() const {
return uniqueSuffix_;
}
void CreateInstanceRequest::setUniqueSuffix(bool uniqueSuffix) {
uniqueSuffix_ = uniqueSuffix;
setParameter(std::string("UniqueSuffix"), uniqueSuffix ? "true" : "false");
}
std::string CreateInstanceRequest::getKeyPairName() const {
return keyPairName_;
}
void CreateInstanceRequest::setKeyPairName(const std::string &keyPairName) {
keyPairName_ = keyPairName;
setParameter(std::string("KeyPairName"), keyPairName);
}
std::string CreateInstanceRequest::getPassword() const {
return password_;
}
void CreateInstanceRequest::setPassword(const std::string &password) {
password_ = password;
setParameter(std::string("Password"), password);
}
std::string CreateInstanceRequest::getHostName() const {
return hostName_;
}
void CreateInstanceRequest::setHostName(const std::string &hostName) {
hostName_ = hostName;
setParameter(std::string("HostName"), hostName);
}
std::string CreateInstanceRequest::getEnsRegionId() const {
return ensRegionId_;
}
void CreateInstanceRequest::setEnsRegionId(const std::string &ensRegionId) {
ensRegionId_ = ensRegionId;
setParameter(std::string("EnsRegionId"), ensRegionId);
}
std::string CreateInstanceRequest::getAutoRenewPeriod() const {
return autoRenewPeriod_;
}
void CreateInstanceRequest::setAutoRenewPeriod(const std::string &autoRenewPeriod) {
autoRenewPeriod_ = autoRenewPeriod;
setParameter(std::string("AutoRenewPeriod"), autoRenewPeriod);
}
std::string CreateInstanceRequest::getPeriod() const {
return period_;
}
void CreateInstanceRequest::setPeriod(const std::string &period) {
period_ = period;
setParameter(std::string("Period"), period);
}
bool CreateInstanceRequest::getPublicIpIdentification() const {
return publicIpIdentification_;
}
void CreateInstanceRequest::setPublicIpIdentification(bool publicIpIdentification) {
publicIpIdentification_ = publicIpIdentification;
setParameter(std::string("PublicIpIdentification"), publicIpIdentification ? "true" : "false");
}
long CreateInstanceRequest::getOwnerId() const {
return ownerId_;
}
void CreateInstanceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string CreateInstanceRequest::getVSwitchId() const {
return vSwitchId_;
}
void CreateInstanceRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setParameter(std::string("VSwitchId"), vSwitchId);
}
std::string CreateInstanceRequest::getPrivateIpAddress() const {
return privateIpAddress_;
}
void CreateInstanceRequest::setPrivateIpAddress(const std::string &privateIpAddress) {
privateIpAddress_ = privateIpAddress;
setParameter(std::string("PrivateIpAddress"), privateIpAddress);
}
std::string CreateInstanceRequest::getInstanceName() const {
return instanceName_;
}
void CreateInstanceRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("InstanceName"), instanceName);
}
std::string CreateInstanceRequest::getAutoRenew() const {
return autoRenew_;
}
void CreateInstanceRequest::setAutoRenew(const std::string &autoRenew) {
autoRenew_ = autoRenew;
setParameter(std::string("AutoRenew"), autoRenew);
}
std::string CreateInstanceRequest::getInternetChargeType() const {
return internetChargeType_;
}
void CreateInstanceRequest::setInternetChargeType(const std::string &internetChargeType) {
internetChargeType_ = internetChargeType;
setParameter(std::string("InternetChargeType"), internetChargeType);
}
std::string CreateInstanceRequest::getImageId() const {
return imageId_;
}
void CreateInstanceRequest::setImageId(const std::string &imageId) {
imageId_ = imageId;
setParameter(std::string("ImageId"), imageId);
}
std::string CreateInstanceRequest::getUserData() const {
return userData_;
}
void CreateInstanceRequest::setUserData(const std::string &userData) {
userData_ = userData;
setParameter(std::string("UserData"), userData);
}
std::string CreateInstanceRequest::getInstanceType() const {
return instanceType_;
}
void CreateInstanceRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string CreateInstanceRequest::getDataDisk1Size() const {
return dataDisk1Size_;
}
void CreateInstanceRequest::setDataDisk1Size(const std::string &dataDisk1Size) {
dataDisk1Size_ = dataDisk1Size;
setParameter(std::string("DataDisk.1.Size"), dataDisk1Size);
}
std::string CreateInstanceRequest::getQuantity() const {
return quantity_;
}
void CreateInstanceRequest::setQuantity(const std::string &quantity) {
quantity_ = quantity;
setParameter(std::string("Quantity"), quantity);
}
std::string CreateInstanceRequest::getIpType() const {
return ipType_;
}
void CreateInstanceRequest::setIpType(const std::string &ipType) {
ipType_ = ipType;
setParameter(std::string("IpType"), ipType);
}
std::string CreateInstanceRequest::getSystemDiskSize() const {
return systemDiskSize_;
}
void CreateInstanceRequest::setSystemDiskSize(const std::string &systemDiskSize) {
systemDiskSize_ = systemDiskSize;
setParameter(std::string("SystemDisk.Size"), systemDiskSize);
}
std::string CreateInstanceRequest::getPaymentType() const {
return paymentType_;
}
void CreateInstanceRequest::setPaymentType(const std::string &paymentType) {
paymentType_ = paymentType;
setParameter(std::string("PaymentType"), paymentType);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/ens/model/CreateInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::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());
auto allInstanceIds = value["InstanceIds"]["InstanceId"];
for (const auto &item : allInstanceIds)
instanceIds_.push_back(item.asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
}
std::vector<std::string> CreateInstanceResult::getInstanceIds()const
{
return instanceIds_;
}
int CreateInstanceResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ens/model/CreateKeyPairRequest.h>
using AlibabaCloud::Ens::Model::CreateKeyPairRequest;
CreateKeyPairRequest::CreateKeyPairRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateKeyPair") {
setMethod(HttpRequest::Method::Post);
}
CreateKeyPairRequest::~CreateKeyPairRequest() {}
std::string CreateKeyPairRequest::getKeyPairName() const {
return keyPairName_;
}
void CreateKeyPairRequest::setKeyPairName(const std::string &keyPairName) {
keyPairName_ = keyPairName;
setParameter(std::string("KeyPairName"), keyPairName);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateKeyPairResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::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());
if(!value["KeyPairFingerPrint"].isNull())
keyPairFingerPrint_ = value["KeyPairFingerPrint"].asString();
if(!value["KeyPairId"].isNull())
keyPairId_ = value["KeyPairId"].asString();
if(!value["KeyPairName"].isNull())
keyPairName_ = value["KeyPairName"].asString();
if(!value["PrivateKeyBody"].isNull())
privateKeyBody_ = value["PrivateKeyBody"].asString();
}
std::string CreateKeyPairResult::getKeyPairFingerPrint()const
{
return keyPairFingerPrint_;
}
std::string CreateKeyPairResult::getKeyPairName()const
{
return keyPairName_;
}
std::string CreateKeyPairResult::getKeyPairId()const
{
return keyPairId_;
}
std::string CreateKeyPairResult::getPrivateKeyBody()const
{
return privateKeyBody_;
}

View File

@@ -0,0 +1,243 @@
/*
* 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/ens/model/CreateLoadBalancerHTTPListenerRequest.h>
using AlibabaCloud::Ens::Model::CreateLoadBalancerHTTPListenerRequest;
CreateLoadBalancerHTTPListenerRequest::CreateLoadBalancerHTTPListenerRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateLoadBalancerHTTPListener") {
setMethod(HttpRequest::Method::Post);
}
CreateLoadBalancerHTTPListenerRequest::~CreateLoadBalancerHTTPListenerRequest() {}
std::string CreateLoadBalancerHTTPListenerRequest::getListenerForward() const {
return listenerForward_;
}
void CreateLoadBalancerHTTPListenerRequest::setListenerForward(const std::string &listenerForward) {
listenerForward_ = listenerForward;
setParameter(std::string("ListenerForward"), listenerForward);
}
int CreateLoadBalancerHTTPListenerRequest::getHealthCheckTimeout() const {
return healthCheckTimeout_;
}
void CreateLoadBalancerHTTPListenerRequest::setHealthCheckTimeout(int healthCheckTimeout) {
healthCheckTimeout_ = healthCheckTimeout;
setParameter(std::string("HealthCheckTimeout"), std::to_string(healthCheckTimeout));
}
std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor() const {
return xForwardedFor_;
}
void CreateLoadBalancerHTTPListenerRequest::setXForwardedFor(const std::string &xForwardedFor) {
xForwardedFor_ = xForwardedFor;
setParameter(std::string("XForwardedFor"), xForwardedFor);
}
std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckURI() const {
return healthCheckURI_;
}
void CreateLoadBalancerHTTPListenerRequest::setHealthCheckURI(const std::string &healthCheckURI) {
healthCheckURI_ = healthCheckURI;
setParameter(std::string("HealthCheckURI"), healthCheckURI);
}
std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheck() const {
return healthCheck_;
}
void CreateLoadBalancerHTTPListenerRequest::setHealthCheck(const std::string &healthCheck) {
healthCheck_ = healthCheck;
setParameter(std::string("HealthCheck"), healthCheck);
}
std::string CreateLoadBalancerHTTPListenerRequest::getProtocol() const {
return protocol_;
}
void CreateLoadBalancerHTTPListenerRequest::setProtocol(const std::string &protocol) {
protocol_ = protocol;
setParameter(std::string("Protocol"), protocol);
}
std::string CreateLoadBalancerHTTPListenerRequest::getCookie() const {
return cookie_;
}
void CreateLoadBalancerHTTPListenerRequest::setCookie(const std::string &cookie) {
cookie_ = cookie;
setParameter(std::string("Cookie"), cookie);
}
std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckMethod() const {
return healthCheckMethod_;
}
void CreateLoadBalancerHTTPListenerRequest::setHealthCheckMethod(const std::string &healthCheckMethod) {
healthCheckMethod_ = healthCheckMethod;
setParameter(std::string("HealthCheckMethod"), healthCheckMethod);
}
std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckDomain() const {
return healthCheckDomain_;
}
void CreateLoadBalancerHTTPListenerRequest::setHealthCheckDomain(const std::string &healthCheckDomain) {
healthCheckDomain_ = healthCheckDomain;
setParameter(std::string("HealthCheckDomain"), healthCheckDomain);
}
int CreateLoadBalancerHTTPListenerRequest::getRequestTimeout() const {
return requestTimeout_;
}
void CreateLoadBalancerHTTPListenerRequest::setRequestTimeout(int requestTimeout) {
requestTimeout_ = requestTimeout;
setParameter(std::string("RequestTimeout"), std::to_string(requestTimeout));
}
std::string CreateLoadBalancerHTTPListenerRequest::getLoadBalancerId() const {
return loadBalancerId_;
}
void CreateLoadBalancerHTTPListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) {
loadBalancerId_ = loadBalancerId;
setParameter(std::string("LoadBalancerId"), loadBalancerId);
}
int CreateLoadBalancerHTTPListenerRequest::getHealthCheckInterval() const {
return healthCheckInterval_;
}
void CreateLoadBalancerHTTPListenerRequest::setHealthCheckInterval(int healthCheckInterval) {
healthCheckInterval_ = healthCheckInterval;
setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval));
}
std::string CreateLoadBalancerHTTPListenerRequest::getDescription() const {
return description_;
}
void CreateLoadBalancerHTTPListenerRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
int CreateLoadBalancerHTTPListenerRequest::getUnhealthyThreshold() const {
return unhealthyThreshold_;
}
void CreateLoadBalancerHTTPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) {
unhealthyThreshold_ = unhealthyThreshold;
setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold));
}
int CreateLoadBalancerHTTPListenerRequest::getHealthyThreshold() const {
return healthyThreshold_;
}
void CreateLoadBalancerHTTPListenerRequest::setHealthyThreshold(int healthyThreshold) {
healthyThreshold_ = healthyThreshold;
setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold));
}
std::string CreateLoadBalancerHTTPListenerRequest::getScheduler() const {
return scheduler_;
}
void CreateLoadBalancerHTTPListenerRequest::setScheduler(const std::string &scheduler) {
scheduler_ = scheduler;
setParameter(std::string("Scheduler"), scheduler);
}
int CreateLoadBalancerHTTPListenerRequest::getForwardPort() const {
return forwardPort_;
}
void CreateLoadBalancerHTTPListenerRequest::setForwardPort(int forwardPort) {
forwardPort_ = forwardPort;
setParameter(std::string("ForwardPort"), std::to_string(forwardPort));
}
int CreateLoadBalancerHTTPListenerRequest::getCookieTimeout() const {
return cookieTimeout_;
}
void CreateLoadBalancerHTTPListenerRequest::setCookieTimeout(int cookieTimeout) {
cookieTimeout_ = cookieTimeout;
setParameter(std::string("CookieTimeout"), std::to_string(cookieTimeout));
}
std::string CreateLoadBalancerHTTPListenerRequest::getStickySessionType() const {
return stickySessionType_;
}
void CreateLoadBalancerHTTPListenerRequest::setStickySessionType(const std::string &stickySessionType) {
stickySessionType_ = stickySessionType;
setParameter(std::string("StickySessionType"), stickySessionType);
}
int CreateLoadBalancerHTTPListenerRequest::getListenerPort() const {
return listenerPort_;
}
void CreateLoadBalancerHTTPListenerRequest::setListenerPort(int listenerPort) {
listenerPort_ = listenerPort;
setParameter(std::string("ListenerPort"), std::to_string(listenerPort));
}
std::string CreateLoadBalancerHTTPListenerRequest::getStickySession() const {
return stickySession_;
}
void CreateLoadBalancerHTTPListenerRequest::setStickySession(const std::string &stickySession) {
stickySession_ = stickySession;
setParameter(std::string("StickySession"), stickySession);
}
int CreateLoadBalancerHTTPListenerRequest::getIdleTimeout() const {
return idleTimeout_;
}
void CreateLoadBalancerHTTPListenerRequest::setIdleTimeout(int idleTimeout) {
idleTimeout_ = idleTimeout;
setParameter(std::string("IdleTimeout"), std::to_string(idleTimeout));
}
int CreateLoadBalancerHTTPListenerRequest::getHealthCheckConnectPort() const {
return healthCheckConnectPort_;
}
void CreateLoadBalancerHTTPListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) {
healthCheckConnectPort_ = healthCheckConnectPort;
setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort));
}
std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckHttpCode() const {
return healthCheckHttpCode_;
}
void CreateLoadBalancerHTTPListenerRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) {
healthCheckHttpCode_ = healthCheckHttpCode;
setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateLoadBalancerHTTPListenerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateLoadBalancerHTTPListenerResult::CreateLoadBalancerHTTPListenerResult() :
ServiceResult()
{}
CreateLoadBalancerHTTPListenerResult::CreateLoadBalancerHTTPListenerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLoadBalancerHTTPListenerResult::~CreateLoadBalancerHTTPListenerResult()
{}
void CreateLoadBalancerHTTPListenerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,243 @@
/*
* 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/ens/model/CreateLoadBalancerHTTPSListenerRequest.h>
using AlibabaCloud::Ens::Model::CreateLoadBalancerHTTPSListenerRequest;
CreateLoadBalancerHTTPSListenerRequest::CreateLoadBalancerHTTPSListenerRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateLoadBalancerHTTPSListener") {
setMethod(HttpRequest::Method::Post);
}
CreateLoadBalancerHTTPSListenerRequest::~CreateLoadBalancerHTTPSListenerRequest() {}
std::string CreateLoadBalancerHTTPSListenerRequest::getListenerForward() const {
return listenerForward_;
}
void CreateLoadBalancerHTTPSListenerRequest::setListenerForward(const std::string &listenerForward) {
listenerForward_ = listenerForward;
setParameter(std::string("ListenerForward"), listenerForward);
}
int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckTimeout() const {
return healthCheckTimeout_;
}
void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckTimeout(int healthCheckTimeout) {
healthCheckTimeout_ = healthCheckTimeout;
setParameter(std::string("HealthCheckTimeout"), std::to_string(healthCheckTimeout));
}
std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckURI() const {
return healthCheckURI_;
}
void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckURI(const std::string &healthCheckURI) {
healthCheckURI_ = healthCheckURI;
setParameter(std::string("HealthCheckURI"), healthCheckURI);
}
std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheck() const {
return healthCheck_;
}
void CreateLoadBalancerHTTPSListenerRequest::setHealthCheck(const std::string &healthCheck) {
healthCheck_ = healthCheck;
setParameter(std::string("HealthCheck"), healthCheck);
}
std::string CreateLoadBalancerHTTPSListenerRequest::getProtocol() const {
return protocol_;
}
void CreateLoadBalancerHTTPSListenerRequest::setProtocol(const std::string &protocol) {
protocol_ = protocol;
setParameter(std::string("Protocol"), protocol);
}
std::string CreateLoadBalancerHTTPSListenerRequest::getCookie() const {
return cookie_;
}
void CreateLoadBalancerHTTPSListenerRequest::setCookie(const std::string &cookie) {
cookie_ = cookie;
setParameter(std::string("Cookie"), cookie);
}
std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckMethod() const {
return healthCheckMethod_;
}
void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckMethod(const std::string &healthCheckMethod) {
healthCheckMethod_ = healthCheckMethod;
setParameter(std::string("HealthCheckMethod"), healthCheckMethod);
}
std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckDomain() const {
return healthCheckDomain_;
}
void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckDomain(const std::string &healthCheckDomain) {
healthCheckDomain_ = healthCheckDomain;
setParameter(std::string("HealthCheckDomain"), healthCheckDomain);
}
int CreateLoadBalancerHTTPSListenerRequest::getRequestTimeout() const {
return requestTimeout_;
}
void CreateLoadBalancerHTTPSListenerRequest::setRequestTimeout(int requestTimeout) {
requestTimeout_ = requestTimeout;
setParameter(std::string("RequestTimeout"), std::to_string(requestTimeout));
}
std::string CreateLoadBalancerHTTPSListenerRequest::getLoadBalancerId() const {
return loadBalancerId_;
}
void CreateLoadBalancerHTTPSListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) {
loadBalancerId_ = loadBalancerId;
setParameter(std::string("LoadBalancerId"), loadBalancerId);
}
int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckInterval() const {
return healthCheckInterval_;
}
void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckInterval(int healthCheckInterval) {
healthCheckInterval_ = healthCheckInterval;
setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval));
}
std::string CreateLoadBalancerHTTPSListenerRequest::getDescription() const {
return description_;
}
void CreateLoadBalancerHTTPSListenerRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
int CreateLoadBalancerHTTPSListenerRequest::getUnhealthyThreshold() const {
return unhealthyThreshold_;
}
void CreateLoadBalancerHTTPSListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) {
unhealthyThreshold_ = unhealthyThreshold;
setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold));
}
int CreateLoadBalancerHTTPSListenerRequest::getHealthyThreshold() const {
return healthyThreshold_;
}
void CreateLoadBalancerHTTPSListenerRequest::setHealthyThreshold(int healthyThreshold) {
healthyThreshold_ = healthyThreshold;
setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold));
}
std::string CreateLoadBalancerHTTPSListenerRequest::getScheduler() const {
return scheduler_;
}
void CreateLoadBalancerHTTPSListenerRequest::setScheduler(const std::string &scheduler) {
scheduler_ = scheduler;
setParameter(std::string("Scheduler"), scheduler);
}
int CreateLoadBalancerHTTPSListenerRequest::getForwardPort() const {
return forwardPort_;
}
void CreateLoadBalancerHTTPSListenerRequest::setForwardPort(int forwardPort) {
forwardPort_ = forwardPort;
setParameter(std::string("ForwardPort"), std::to_string(forwardPort));
}
int CreateLoadBalancerHTTPSListenerRequest::getCookieTimeout() const {
return cookieTimeout_;
}
void CreateLoadBalancerHTTPSListenerRequest::setCookieTimeout(int cookieTimeout) {
cookieTimeout_ = cookieTimeout;
setParameter(std::string("CookieTimeout"), std::to_string(cookieTimeout));
}
std::string CreateLoadBalancerHTTPSListenerRequest::getStickySessionType() const {
return stickySessionType_;
}
void CreateLoadBalancerHTTPSListenerRequest::setStickySessionType(const std::string &stickySessionType) {
stickySessionType_ = stickySessionType;
setParameter(std::string("StickySessionType"), stickySessionType);
}
int CreateLoadBalancerHTTPSListenerRequest::getListenerPort() const {
return listenerPort_;
}
void CreateLoadBalancerHTTPSListenerRequest::setListenerPort(int listenerPort) {
listenerPort_ = listenerPort;
setParameter(std::string("ListenerPort"), std::to_string(listenerPort));
}
std::string CreateLoadBalancerHTTPSListenerRequest::getStickySession() const {
return stickySession_;
}
void CreateLoadBalancerHTTPSListenerRequest::setStickySession(const std::string &stickySession) {
stickySession_ = stickySession;
setParameter(std::string("StickySession"), stickySession);
}
std::string CreateLoadBalancerHTTPSListenerRequest::getServerCertificateId() const {
return serverCertificateId_;
}
void CreateLoadBalancerHTTPSListenerRequest::setServerCertificateId(const std::string &serverCertificateId) {
serverCertificateId_ = serverCertificateId;
setParameter(std::string("ServerCertificateId"), serverCertificateId);
}
int CreateLoadBalancerHTTPSListenerRequest::getIdleTimeout() const {
return idleTimeout_;
}
void CreateLoadBalancerHTTPSListenerRequest::setIdleTimeout(int idleTimeout) {
idleTimeout_ = idleTimeout;
setParameter(std::string("IdleTimeout"), std::to_string(idleTimeout));
}
int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckConnectPort() const {
return healthCheckConnectPort_;
}
void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) {
healthCheckConnectPort_ = healthCheckConnectPort;
setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort));
}
std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckHttpCode() const {
return healthCheckHttpCode_;
}
void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) {
healthCheckHttpCode_ = healthCheckHttpCode;
setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateLoadBalancerHTTPSListenerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateLoadBalancerHTTPSListenerResult::CreateLoadBalancerHTTPSListenerResult() :
ServiceResult()
{}
CreateLoadBalancerHTTPSListenerResult::CreateLoadBalancerHTTPSListenerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLoadBalancerHTTPSListenerResult::~CreateLoadBalancerHTTPSListenerResult()
{}
void CreateLoadBalancerHTTPSListenerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateLoadBalancerRequest.h>
using AlibabaCloud::Ens::Model::CreateLoadBalancerRequest;
CreateLoadBalancerRequest::CreateLoadBalancerRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateLoadBalancer") {
setMethod(HttpRequest::Method::Post);
}
CreateLoadBalancerRequest::~CreateLoadBalancerRequest() {}
std::string CreateLoadBalancerRequest::getLoadBalancerName() const {
return loadBalancerName_;
}
void CreateLoadBalancerRequest::setLoadBalancerName(const std::string &loadBalancerName) {
loadBalancerName_ = loadBalancerName;
setParameter(std::string("LoadBalancerName"), loadBalancerName);
}
std::string CreateLoadBalancerRequest::getEnsRegionId() const {
return ensRegionId_;
}
void CreateLoadBalancerRequest::setEnsRegionId(const std::string &ensRegionId) {
ensRegionId_ = ensRegionId;
setParameter(std::string("EnsRegionId"), ensRegionId);
}
std::string CreateLoadBalancerRequest::getLoadBalancerSpec() const {
return loadBalancerSpec_;
}
void CreateLoadBalancerRequest::setLoadBalancerSpec(const std::string &loadBalancerSpec) {
loadBalancerSpec_ = loadBalancerSpec;
setParameter(std::string("LoadBalancerSpec"), loadBalancerSpec);
}
std::string CreateLoadBalancerRequest::getVSwitchId() const {
return vSwitchId_;
}
void CreateLoadBalancerRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setParameter(std::string("VSwitchId"), vSwitchId);
}
std::string CreateLoadBalancerRequest::getNetworkId() const {
return networkId_;
}
void CreateLoadBalancerRequest::setNetworkId(const std::string &networkId) {
networkId_ = networkId;
setParameter(std::string("NetworkId"), networkId);
}
std::string CreateLoadBalancerRequest::getPayType() const {
return payType_;
}
void CreateLoadBalancerRequest::setPayType(const std::string &payType) {
payType_ = payType;
setParameter(std::string("PayType"), payType);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateLoadBalancerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateLoadBalancerResult::CreateLoadBalancerResult() :
ServiceResult()
{}
CreateLoadBalancerResult::CreateLoadBalancerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLoadBalancerResult::~CreateLoadBalancerResult()
{}
void CreateLoadBalancerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["LoadBalancerId"].isNull())
loadBalancerId_ = value["LoadBalancerId"].asString();
if(!value["VSwitchId"].isNull())
vSwitchId_ = value["VSwitchId"].asString();
if(!value["LoadBalancerName"].isNull())
loadBalancerName_ = value["LoadBalancerName"].asString();
if(!value["NetworkId"].isNull())
networkId_ = value["NetworkId"].asString();
}
std::string CreateLoadBalancerResult::getLoadBalancerName()const
{
return loadBalancerName_;
}
std::string CreateLoadBalancerResult::getVSwitchId()const
{
return vSwitchId_;
}
std::string CreateLoadBalancerResult::getLoadBalancerId()const
{
return loadBalancerId_;
}
std::string CreateLoadBalancerResult::getNetworkId()const
{
return networkId_;
}

View File

@@ -0,0 +1,189 @@
/*
* 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/ens/model/CreateLoadBalancerTCPListenerRequest.h>
using AlibabaCloud::Ens::Model::CreateLoadBalancerTCPListenerRequest;
CreateLoadBalancerTCPListenerRequest::CreateLoadBalancerTCPListenerRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateLoadBalancerTCPListener") {
setMethod(HttpRequest::Method::Post);
}
CreateLoadBalancerTCPListenerRequest::~CreateLoadBalancerTCPListenerRequest() {}
std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckURI() const {
return healthCheckURI_;
}
void CreateLoadBalancerTCPListenerRequest::setHealthCheckURI(const std::string &healthCheckURI) {
healthCheckURI_ = healthCheckURI;
setParameter(std::string("HealthCheckURI"), healthCheckURI);
}
std::string CreateLoadBalancerTCPListenerRequest::getProtocol() const {
return protocol_;
}
void CreateLoadBalancerTCPListenerRequest::setProtocol(const std::string &protocol) {
protocol_ = protocol;
setParameter(std::string("Protocol"), protocol);
}
int CreateLoadBalancerTCPListenerRequest::getEstablishedTimeout() const {
return establishedTimeout_;
}
void CreateLoadBalancerTCPListenerRequest::setEstablishedTimeout(int establishedTimeout) {
establishedTimeout_ = establishedTimeout;
setParameter(std::string("EstablishedTimeout"), std::to_string(establishedTimeout));
}
int CreateLoadBalancerTCPListenerRequest::getPersistenceTimeout() const {
return persistenceTimeout_;
}
void CreateLoadBalancerTCPListenerRequest::setPersistenceTimeout(int persistenceTimeout) {
persistenceTimeout_ = persistenceTimeout;
setParameter(std::string("PersistenceTimeout"), std::to_string(persistenceTimeout));
}
std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckDomain() const {
return healthCheckDomain_;
}
void CreateLoadBalancerTCPListenerRequest::setHealthCheckDomain(const std::string &healthCheckDomain) {
healthCheckDomain_ = healthCheckDomain;
setParameter(std::string("HealthCheckDomain"), healthCheckDomain);
}
std::string CreateLoadBalancerTCPListenerRequest::getLoadBalancerId() const {
return loadBalancerId_;
}
void CreateLoadBalancerTCPListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) {
loadBalancerId_ = loadBalancerId;
setParameter(std::string("LoadBalancerId"), loadBalancerId);
}
int CreateLoadBalancerTCPListenerRequest::getHealthCheckInterval() const {
return healthCheckInterval_;
}
void CreateLoadBalancerTCPListenerRequest::setHealthCheckInterval(int healthCheckInterval) {
healthCheckInterval_ = healthCheckInterval;
setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval));
}
int CreateLoadBalancerTCPListenerRequest::getBackendServerPort() const {
return backendServerPort_;
}
void CreateLoadBalancerTCPListenerRequest::setBackendServerPort(int backendServerPort) {
backendServerPort_ = backendServerPort;
setParameter(std::string("BackendServerPort"), std::to_string(backendServerPort));
}
int CreateLoadBalancerTCPListenerRequest::getHealthCheckConnectTimeout() const {
return healthCheckConnectTimeout_;
}
void CreateLoadBalancerTCPListenerRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) {
healthCheckConnectTimeout_ = healthCheckConnectTimeout;
setParameter(std::string("HealthCheckConnectTimeout"), std::to_string(healthCheckConnectTimeout));
}
std::string CreateLoadBalancerTCPListenerRequest::getDescription() const {
return description_;
}
void CreateLoadBalancerTCPListenerRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
int CreateLoadBalancerTCPListenerRequest::getUnhealthyThreshold() const {
return unhealthyThreshold_;
}
void CreateLoadBalancerTCPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) {
unhealthyThreshold_ = unhealthyThreshold;
setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold));
}
int CreateLoadBalancerTCPListenerRequest::getHealthyThreshold() const {
return healthyThreshold_;
}
void CreateLoadBalancerTCPListenerRequest::setHealthyThreshold(int healthyThreshold) {
healthyThreshold_ = healthyThreshold;
setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold));
}
std::string CreateLoadBalancerTCPListenerRequest::getScheduler() const {
return scheduler_;
}
void CreateLoadBalancerTCPListenerRequest::setScheduler(const std::string &scheduler) {
scheduler_ = scheduler;
setParameter(std::string("Scheduler"), scheduler);
}
std::string CreateLoadBalancerTCPListenerRequest::getEipTransmit() const {
return eipTransmit_;
}
void CreateLoadBalancerTCPListenerRequest::setEipTransmit(const std::string &eipTransmit) {
eipTransmit_ = eipTransmit;
setParameter(std::string("EipTransmit"), eipTransmit);
}
int CreateLoadBalancerTCPListenerRequest::getListenerPort() const {
return listenerPort_;
}
void CreateLoadBalancerTCPListenerRequest::setListenerPort(int listenerPort) {
listenerPort_ = listenerPort;
setParameter(std::string("ListenerPort"), std::to_string(listenerPort));
}
std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckType() const {
return healthCheckType_;
}
void CreateLoadBalancerTCPListenerRequest::setHealthCheckType(const std::string &healthCheckType) {
healthCheckType_ = healthCheckType;
setParameter(std::string("HealthCheckType"), healthCheckType);
}
std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckHttpCode() const {
return healthCheckHttpCode_;
}
void CreateLoadBalancerTCPListenerRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) {
healthCheckHttpCode_ = healthCheckHttpCode;
setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode);
}
int CreateLoadBalancerTCPListenerRequest::getHealthCheckConnectPort() const {
return healthCheckConnectPort_;
}
void CreateLoadBalancerTCPListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) {
healthCheckConnectPort_ = healthCheckConnectPort;
setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort));
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateLoadBalancerTCPListenerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateLoadBalancerTCPListenerResult::CreateLoadBalancerTCPListenerResult() :
ServiceResult()
{}
CreateLoadBalancerTCPListenerResult::CreateLoadBalancerTCPListenerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLoadBalancerTCPListenerResult::~CreateLoadBalancerTCPListenerResult()
{}
void CreateLoadBalancerTCPListenerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,153 @@
/*
* 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/ens/model/CreateLoadBalancerUDPListenerRequest.h>
using AlibabaCloud::Ens::Model::CreateLoadBalancerUDPListenerRequest;
CreateLoadBalancerUDPListenerRequest::CreateLoadBalancerUDPListenerRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateLoadBalancerUDPListener") {
setMethod(HttpRequest::Method::Post);
}
CreateLoadBalancerUDPListenerRequest::~CreateLoadBalancerUDPListenerRequest() {}
std::string CreateLoadBalancerUDPListenerRequest::getProtocol() const {
return protocol_;
}
void CreateLoadBalancerUDPListenerRequest::setProtocol(const std::string &protocol) {
protocol_ = protocol;
setParameter(std::string("Protocol"), protocol);
}
std::string CreateLoadBalancerUDPListenerRequest::getLoadBalancerId() const {
return loadBalancerId_;
}
void CreateLoadBalancerUDPListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) {
loadBalancerId_ = loadBalancerId;
setParameter(std::string("LoadBalancerId"), loadBalancerId);
}
std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckReq() const {
return healthCheckReq_;
}
void CreateLoadBalancerUDPListenerRequest::setHealthCheckReq(const std::string &healthCheckReq) {
healthCheckReq_ = healthCheckReq;
setParameter(std::string("HealthCheckReq"), healthCheckReq);
}
int CreateLoadBalancerUDPListenerRequest::getHealthCheckInterval() const {
return healthCheckInterval_;
}
void CreateLoadBalancerUDPListenerRequest::setHealthCheckInterval(int healthCheckInterval) {
healthCheckInterval_ = healthCheckInterval;
setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval));
}
int CreateLoadBalancerUDPListenerRequest::getBackendServerPort() const {
return backendServerPort_;
}
void CreateLoadBalancerUDPListenerRequest::setBackendServerPort(int backendServerPort) {
backendServerPort_ = backendServerPort;
setParameter(std::string("BackendServerPort"), std::to_string(backendServerPort));
}
std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckExp() const {
return healthCheckExp_;
}
void CreateLoadBalancerUDPListenerRequest::setHealthCheckExp(const std::string &healthCheckExp) {
healthCheckExp_ = healthCheckExp;
setParameter(std::string("HealthCheckExp"), healthCheckExp);
}
int CreateLoadBalancerUDPListenerRequest::getHealthCheckConnectTimeout() const {
return healthCheckConnectTimeout_;
}
void CreateLoadBalancerUDPListenerRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) {
healthCheckConnectTimeout_ = healthCheckConnectTimeout;
setParameter(std::string("HealthCheckConnectTimeout"), std::to_string(healthCheckConnectTimeout));
}
std::string CreateLoadBalancerUDPListenerRequest::getDescription() const {
return description_;
}
void CreateLoadBalancerUDPListenerRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
int CreateLoadBalancerUDPListenerRequest::getUnhealthyThreshold() const {
return unhealthyThreshold_;
}
void CreateLoadBalancerUDPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) {
unhealthyThreshold_ = unhealthyThreshold;
setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold));
}
int CreateLoadBalancerUDPListenerRequest::getHealthyThreshold() const {
return healthyThreshold_;
}
void CreateLoadBalancerUDPListenerRequest::setHealthyThreshold(int healthyThreshold) {
healthyThreshold_ = healthyThreshold;
setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold));
}
std::string CreateLoadBalancerUDPListenerRequest::getScheduler() const {
return scheduler_;
}
void CreateLoadBalancerUDPListenerRequest::setScheduler(const std::string &scheduler) {
scheduler_ = scheduler;
setParameter(std::string("Scheduler"), scheduler);
}
std::string CreateLoadBalancerUDPListenerRequest::getEipTransmit() const {
return eipTransmit_;
}
void CreateLoadBalancerUDPListenerRequest::setEipTransmit(const std::string &eipTransmit) {
eipTransmit_ = eipTransmit;
setParameter(std::string("EipTransmit"), eipTransmit);
}
int CreateLoadBalancerUDPListenerRequest::getListenerPort() const {
return listenerPort_;
}
void CreateLoadBalancerUDPListenerRequest::setListenerPort(int listenerPort) {
listenerPort_ = listenerPort;
setParameter(std::string("ListenerPort"), std::to_string(listenerPort));
}
int CreateLoadBalancerUDPListenerRequest::getHealthCheckConnectPort() const {
return healthCheckConnectPort_;
}
void CreateLoadBalancerUDPListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) {
healthCheckConnectPort_ = healthCheckConnectPort;
setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort));
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateLoadBalancerUDPListenerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateLoadBalancerUDPListenerResult::CreateLoadBalancerUDPListenerResult() :
ServiceResult()
{}
CreateLoadBalancerUDPListenerResult::CreateLoadBalancerUDPListenerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLoadBalancerUDPListenerResult::~CreateLoadBalancerUDPListenerResult()
{}
void CreateLoadBalancerUDPListenerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,63 @@
/*
* 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/ens/model/CreateNetworkRequest.h>
using AlibabaCloud::Ens::Model::CreateNetworkRequest;
CreateNetworkRequest::CreateNetworkRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateNetwork") {
setMethod(HttpRequest::Method::Post);
}
CreateNetworkRequest::~CreateNetworkRequest() {}
std::string CreateNetworkRequest::getDescription() const {
return description_;
}
void CreateNetworkRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateNetworkRequest::getEnsRegionId() const {
return ensRegionId_;
}
void CreateNetworkRequest::setEnsRegionId(const std::string &ensRegionId) {
ensRegionId_ = ensRegionId;
setParameter(std::string("EnsRegionId"), ensRegionId);
}
std::string CreateNetworkRequest::getNetworkName() const {
return networkName_;
}
void CreateNetworkRequest::setNetworkName(const std::string &networkName) {
networkName_ = networkName;
setParameter(std::string("NetworkName"), networkName);
}
std::string CreateNetworkRequest::getCidrBlock() const {
return cidrBlock_;
}
void CreateNetworkRequest::setCidrBlock(const std::string &cidrBlock) {
cidrBlock_ = cidrBlock;
setParameter(std::string("CidrBlock"), cidrBlock);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/ens/model/CreateNetworkResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateNetworkResult::CreateNetworkResult() :
ServiceResult()
{}
CreateNetworkResult::CreateNetworkResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNetworkResult::~CreateNetworkResult()
{}
void CreateNetworkResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["NetworkId"].isNull())
networkId_ = value["NetworkId"].asString();
}
std::string CreateNetworkResult::getNetworkId()const
{
return networkId_;
}

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/ens/model/CreateSecurityGroupRequest.h>
using AlibabaCloud::Ens::Model::CreateSecurityGroupRequest;
CreateSecurityGroupRequest::CreateSecurityGroupRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateSecurityGroup") {
setMethod(HttpRequest::Method::Post);
}
CreateSecurityGroupRequest::~CreateSecurityGroupRequest() {}
std::string CreateSecurityGroupRequest::getDescription() const {
return description_;
}
void CreateSecurityGroupRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateSecurityGroupRequest::getSecurityGroupName() const {
return securityGroupName_;
}
void CreateSecurityGroupRequest::setSecurityGroupName(const std::string &securityGroupName) {
securityGroupName_ = securityGroupName;
setParameter(std::string("SecurityGroupName"), securityGroupName);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/ens/model/CreateSecurityGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::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());
if(!value["SecurityGroupId"].isNull())
securityGroupId_ = value["SecurityGroupId"].asString();
}
std::string CreateSecurityGroupResult::getSecurityGroupId()const
{
return securityGroupId_;
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateVSwitchRequest.h>
using AlibabaCloud::Ens::Model::CreateVSwitchRequest;
CreateVSwitchRequest::CreateVSwitchRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateVSwitch") {
setMethod(HttpRequest::Method::Post);
}
CreateVSwitchRequest::~CreateVSwitchRequest() {}
std::string CreateVSwitchRequest::getDescription() const {
return description_;
}
void CreateVSwitchRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateVSwitchRequest::getEnsRegionId() const {
return ensRegionId_;
}
void CreateVSwitchRequest::setEnsRegionId(const std::string &ensRegionId) {
ensRegionId_ = ensRegionId;
setParameter(std::string("EnsRegionId"), ensRegionId);
}
std::string CreateVSwitchRequest::getVSwitchName() const {
return vSwitchName_;
}
void CreateVSwitchRequest::setVSwitchName(const std::string &vSwitchName) {
vSwitchName_ = vSwitchName;
setParameter(std::string("VSwitchName"), vSwitchName);
}
std::string CreateVSwitchRequest::getCidrBlock() const {
return cidrBlock_;
}
void CreateVSwitchRequest::setCidrBlock(const std::string &cidrBlock) {
cidrBlock_ = cidrBlock;
setParameter(std::string("CidrBlock"), cidrBlock);
}
std::string CreateVSwitchRequest::getNetworkId() const {
return networkId_;
}
void CreateVSwitchRequest::setNetworkId(const std::string &networkId) {
networkId_ = networkId;
setParameter(std::string("NetworkId"), networkId);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/ens/model/CreateVSwitchResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::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());
if(!value["VSwitchId"].isNull())
vSwitchId_ = value["VSwitchId"].asString();
}
std::string CreateVSwitchResult::getVSwitchId()const
{
return vSwitchId_;
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateVmAndSaveStockRequest.h>
using AlibabaCloud::Ens::Model::CreateVmAndSaveStockRequest;
CreateVmAndSaveStockRequest::CreateVmAndSaveStockRequest()
: RpcServiceRequest("ens", "2017-11-10", "CreateVmAndSaveStock") {
setMethod(HttpRequest::Method::Post);
}
CreateVmAndSaveStockRequest::~CreateVmAndSaveStockRequest() {}
std::string CreateVmAndSaveStockRequest::getGroupUuid() const {
return groupUuid_;
}
void CreateVmAndSaveStockRequest::setGroupUuid(const std::string &groupUuid) {
groupUuid_ = groupUuid;
setParameter(std::string("GroupUuid"), groupUuid);
}
std::string CreateVmAndSaveStockRequest::getResourceAttribute() const {
return resourceAttribute_;
}
void CreateVmAndSaveStockRequest::setResourceAttribute(const std::string &resourceAttribute) {
resourceAttribute_ = resourceAttribute;
setBodyParameter(std::string("ResourceAttribute"), resourceAttribute);
}
long CreateVmAndSaveStockRequest::getAliUid() const {
return aliUid_;
}
void CreateVmAndSaveStockRequest::setAliUid(long aliUid) {
aliUid_ = aliUid;
setParameter(std::string("AliUid"), std::to_string(aliUid));
}
std::string CreateVmAndSaveStockRequest::getTenant() const {
return tenant_;
}
void CreateVmAndSaveStockRequest::setTenant(const std::string &tenant) {
tenant_ = tenant;
setParameter(std::string("Tenant"), tenant);
}
std::string CreateVmAndSaveStockRequest::getWorkloadUuid() const {
return workloadUuid_;
}
void CreateVmAndSaveStockRequest::setWorkloadUuid(const std::string &workloadUuid) {
workloadUuid_ = workloadUuid;
setParameter(std::string("WorkloadUuid"), workloadUuid);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/CreateVmAndSaveStockResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
CreateVmAndSaveStockResult::CreateVmAndSaveStockResult() :
ServiceResult()
{}
CreateVmAndSaveStockResult::CreateVmAndSaveStockResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateVmAndSaveStockResult::~CreateVmAndSaveStockResult()
{}
void CreateVmAndSaveStockResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Msg"].isNull())
msg_ = value["Msg"].asString();
if(!value["Desc"].isNull())
desc_ = value["Desc"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string CreateVmAndSaveStockResult::getMsg()const
{
return msg_;
}
std::string CreateVmAndSaveStockResult::getDesc()const
{
return desc_;
}
std::string CreateVmAndSaveStockResult::getData()const
{
return data_;
}
int CreateVmAndSaveStockResult::getCode()const
{
return code_;
}

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/ens/model/DeleteApplicationRequest.h>
using AlibabaCloud::Ens::Model::DeleteApplicationRequest;
DeleteApplicationRequest::DeleteApplicationRequest()
: RpcServiceRequest("ens", "2017-11-10", "DeleteApplication") {
setMethod(HttpRequest::Method::Post);
}
DeleteApplicationRequest::~DeleteApplicationRequest() {}
int DeleteApplicationRequest::getTimeout() const {
return timeout_;
}
void DeleteApplicationRequest::setTimeout(int timeout) {
timeout_ = timeout;
setParameter(std::string("Timeout"), std::to_string(timeout));
}
std::string DeleteApplicationRequest::getAppId() const {
return appId_;
}
void DeleteApplicationRequest::setAppId(const std::string &appId) {
appId_ = appId;
setParameter(std::string("AppId"), appId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/DeleteApplicationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DeleteApplicationResult::DeleteApplicationResult() :
ServiceResult()
{}
DeleteApplicationResult::DeleteApplicationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteApplicationResult::~DeleteApplicationResult()
{}
void DeleteApplicationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,54 @@
/*
* 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/ens/model/DeleteDeviceInternetPortRequest.h>
using AlibabaCloud::Ens::Model::DeleteDeviceInternetPortRequest;
DeleteDeviceInternetPortRequest::DeleteDeviceInternetPortRequest()
: RpcServiceRequest("ens", "2017-11-10", "DeleteDeviceInternetPort") {
setMethod(HttpRequest::Method::Get);
}
DeleteDeviceInternetPortRequest::~DeleteDeviceInternetPortRequest() {}
std::string DeleteDeviceInternetPortRequest::getNatType() const {
return natType_;
}
void DeleteDeviceInternetPortRequest::setNatType(const std::string &natType) {
natType_ = natType;
setParameter(std::string("NatType"), natType);
}
std::string DeleteDeviceInternetPortRequest::getInstanceId() const {
return instanceId_;
}
void DeleteDeviceInternetPortRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DeleteDeviceInternetPortRequest::getRuleId() const {
return ruleId_;
}
void DeleteDeviceInternetPortRequest::setRuleId(const std::string &ruleId) {
ruleId_ = ruleId;
setParameter(std::string("RuleId"), ruleId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/ens/model/DeleteDeviceInternetPortResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DeleteDeviceInternetPortResult::DeleteDeviceInternetPortResult() :
ServiceResult()
{}
DeleteDeviceInternetPortResult::DeleteDeviceInternetPortResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDeviceInternetPortResult::~DeleteDeviceInternetPortResult()
{}
void DeleteDeviceInternetPortResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRuleIds = value["RuleIds"]["RuleIds"];
for (const auto &item : allRuleIds)
ruleIds_.push_back(item.asString());
}
std::vector<std::string> DeleteDeviceInternetPortResult::getRuleIds()const
{
return ruleIds_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ens/model/DeleteEpnInstanceRequest.h>
using AlibabaCloud::Ens::Model::DeleteEpnInstanceRequest;
DeleteEpnInstanceRequest::DeleteEpnInstanceRequest()
: RpcServiceRequest("ens", "2017-11-10", "DeleteEpnInstance") {
setMethod(HttpRequest::Method::Post);
}
DeleteEpnInstanceRequest::~DeleteEpnInstanceRequest() {}
std::string DeleteEpnInstanceRequest::getEPNInstanceId() const {
return ePNInstanceId_;
}
void DeleteEpnInstanceRequest::setEPNInstanceId(const std::string &ePNInstanceId) {
ePNInstanceId_ = ePNInstanceId;
setParameter(std::string("EPNInstanceId"), ePNInstanceId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/DeleteEpnInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DeleteEpnInstanceResult::DeleteEpnInstanceResult() :
ServiceResult()
{}
DeleteEpnInstanceResult::DeleteEpnInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteEpnInstanceResult::~DeleteEpnInstanceResult()
{}
void DeleteEpnInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ens/model/DeleteKeyPairsRequest.h>
using AlibabaCloud::Ens::Model::DeleteKeyPairsRequest;
DeleteKeyPairsRequest::DeleteKeyPairsRequest()
: RpcServiceRequest("ens", "2017-11-10", "DeleteKeyPairs") {
setMethod(HttpRequest::Method::Post);
}
DeleteKeyPairsRequest::~DeleteKeyPairsRequest() {}
std::string DeleteKeyPairsRequest::getKeyPairName() const {
return keyPairName_;
}
void DeleteKeyPairsRequest::setKeyPairName(const std::string &keyPairName) {
keyPairName_ = keyPairName;
setParameter(std::string("KeyPairName"), keyPairName);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/DeleteKeyPairsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DeleteKeyPairsResult::DeleteKeyPairsResult() :
ServiceResult()
{}
DeleteKeyPairsResult::DeleteKeyPairsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteKeyPairsResult::~DeleteKeyPairsResult()
{}
void DeleteKeyPairsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ens/model/DeleteLoadBalancerListenerRequest.h>
using AlibabaCloud::Ens::Model::DeleteLoadBalancerListenerRequest;
DeleteLoadBalancerListenerRequest::DeleteLoadBalancerListenerRequest()
: RpcServiceRequest("ens", "2017-11-10", "DeleteLoadBalancerListener") {
setMethod(HttpRequest::Method::Post);
}
DeleteLoadBalancerListenerRequest::~DeleteLoadBalancerListenerRequest() {}
int DeleteLoadBalancerListenerRequest::getListenerPort() const {
return listenerPort_;
}
void DeleteLoadBalancerListenerRequest::setListenerPort(int listenerPort) {
listenerPort_ = listenerPort;
setParameter(std::string("ListenerPort"), std::to_string(listenerPort));
}
std::string DeleteLoadBalancerListenerRequest::getLoadBalancerId() const {
return loadBalancerId_;
}
void DeleteLoadBalancerListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) {
loadBalancerId_ = loadBalancerId;
setParameter(std::string("LoadBalancerId"), loadBalancerId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/DeleteLoadBalancerListenerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DeleteLoadBalancerListenerResult::DeleteLoadBalancerListenerResult() :
ServiceResult()
{}
DeleteLoadBalancerListenerResult::DeleteLoadBalancerListenerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteLoadBalancerListenerResult::~DeleteLoadBalancerListenerResult()
{}
void DeleteLoadBalancerListenerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ens/model/DeleteNetworkRequest.h>
using AlibabaCloud::Ens::Model::DeleteNetworkRequest;
DeleteNetworkRequest::DeleteNetworkRequest()
: RpcServiceRequest("ens", "2017-11-10", "DeleteNetwork") {
setMethod(HttpRequest::Method::Post);
}
DeleteNetworkRequest::~DeleteNetworkRequest() {}
std::string DeleteNetworkRequest::getNetworkId() const {
return networkId_;
}
void DeleteNetworkRequest::setNetworkId(const std::string &networkId) {
networkId_ = networkId;
setParameter(std::string("NetworkId"), networkId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/DeleteNetworkResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DeleteNetworkResult::DeleteNetworkResult() :
ServiceResult()
{}
DeleteNetworkResult::DeleteNetworkResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteNetworkResult::~DeleteNetworkResult()
{}
void DeleteNetworkResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ens/model/DeleteSecurityGroupRequest.h>
using AlibabaCloud::Ens::Model::DeleteSecurityGroupRequest;
DeleteSecurityGroupRequest::DeleteSecurityGroupRequest()
: RpcServiceRequest("ens", "2017-11-10", "DeleteSecurityGroup") {
setMethod(HttpRequest::Method::Post);
}
DeleteSecurityGroupRequest::~DeleteSecurityGroupRequest() {}
std::string DeleteSecurityGroupRequest::getSecurityGroupId() const {
return securityGroupId_;
}
void DeleteSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) {
securityGroupId_ = securityGroupId;
setParameter(std::string("SecurityGroupId"), securityGroupId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/DeleteSecurityGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DeleteSecurityGroupResult::DeleteSecurityGroupResult() :
ServiceResult()
{}
DeleteSecurityGroupResult::DeleteSecurityGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSecurityGroupResult::~DeleteSecurityGroupResult()
{}
void DeleteSecurityGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ens/model/DeleteVSwitchRequest.h>
using AlibabaCloud::Ens::Model::DeleteVSwitchRequest;
DeleteVSwitchRequest::DeleteVSwitchRequest()
: RpcServiceRequest("ens", "2017-11-10", "DeleteVSwitch") {
setMethod(HttpRequest::Method::Post);
}
DeleteVSwitchRequest::~DeleteVSwitchRequest() {}
std::string DeleteVSwitchRequest::getVSwitchId() const {
return vSwitchId_;
}
void DeleteVSwitchRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setParameter(std::string("VSwitchId"), vSwitchId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/DeleteVSwitchResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DeleteVSwitchResult::DeleteVSwitchResult() :
ServiceResult()
{}
DeleteVSwitchResult::DeleteVSwitchResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteVSwitchResult::~DeleteVSwitchResult()
{}
void DeleteVSwitchResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ens/model/DeleteVmRequest.h>
using AlibabaCloud::Ens::Model::DeleteVmRequest;
DeleteVmRequest::DeleteVmRequest()
: RpcServiceRequest("ens", "2017-11-10", "DeleteVm") {
setMethod(HttpRequest::Method::Post);
}
DeleteVmRequest::~DeleteVmRequest() {}
long DeleteVmRequest::getAliUid() const {
return aliUid_;
}
void DeleteVmRequest::setAliUid(long aliUid) {
aliUid_ = aliUid;
setParameter(std::string("AliUid"), std::to_string(aliUid));
}
std::string DeleteVmRequest::getWorkloadUuid() const {
return workloadUuid_;
}
void DeleteVmRequest::setWorkloadUuid(const std::string &workloadUuid) {
workloadUuid_ = workloadUuid;
setParameter(std::string("WorkloadUuid"), workloadUuid);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/DeleteVmResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DeleteVmResult::DeleteVmResult() :
ServiceResult()
{}
DeleteVmResult::DeleteVmResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteVmResult::~DeleteVmResult()
{}
void DeleteVmResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Msg"].isNull())
msg_ = value["Msg"].asString();
if(!value["Desc"].isNull())
desc_ = value["Desc"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string DeleteVmResult::getMsg()const
{
return msg_;
}
std::string DeleteVmResult::getDesc()const
{
return desc_;
}
std::string DeleteVmResult::getData()const
{
return data_;
}
int DeleteVmResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/ens/model/DescribeApplicationRequest.h>
using AlibabaCloud::Ens::Model::DescribeApplicationRequest;
DescribeApplicationRequest::DescribeApplicationRequest()
: RpcServiceRequest("ens", "2017-11-10", "DescribeApplication") {
setMethod(HttpRequest::Method::Post);
}
DescribeApplicationRequest::~DescribeApplicationRequest() {}
std::string DescribeApplicationRequest::getAppVersions() const {
return appVersions_;
}
void DescribeApplicationRequest::setAppVersions(const std::string &appVersions) {
appVersions_ = appVersions;
setParameter(std::string("AppVersions"), appVersions);
}
std::string DescribeApplicationRequest::getOutDetailStatParams() const {
return outDetailStatParams_;
}
void DescribeApplicationRequest::setOutDetailStatParams(const std::string &outDetailStatParams) {
outDetailStatParams_ = outDetailStatParams;
setParameter(std::string("OutDetailStatParams"), outDetailStatParams);
}
std::string DescribeApplicationRequest::getLevel() const {
return level_;
}
void DescribeApplicationRequest::setLevel(const std::string &level) {
level_ = level;
setParameter(std::string("Level"), level);
}
std::string DescribeApplicationRequest::getAppId() const {
return appId_;
}
void DescribeApplicationRequest::setAppId(const std::string &appId) {
appId_ = appId;
setParameter(std::string("AppId"), appId);
}

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/ens/model/DescribeApplicationResourceSummaryRequest.h>
using AlibabaCloud::Ens::Model::DescribeApplicationResourceSummaryRequest;
DescribeApplicationResourceSummaryRequest::DescribeApplicationResourceSummaryRequest()
: RpcServiceRequest("ens", "2017-11-10", "DescribeApplicationResourceSummary") {
setMethod(HttpRequest::Method::Post);
}
DescribeApplicationResourceSummaryRequest::~DescribeApplicationResourceSummaryRequest() {}
std::string DescribeApplicationResourceSummaryRequest::getLevel() const {
return level_;
}
void DescribeApplicationResourceSummaryRequest::setLevel(const std::string &level) {
level_ = level;
setParameter(std::string("Level"), level);
}
std::string DescribeApplicationResourceSummaryRequest::getResourceType() const {
return resourceType_;
}
void DescribeApplicationResourceSummaryRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/ens/model/DescribeApplicationResourceSummaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DescribeApplicationResourceSummaryResult::DescribeApplicationResourceSummaryResult() :
ServiceResult()
{}
DescribeApplicationResourceSummaryResult::DescribeApplicationResourceSummaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApplicationResourceSummaryResult::~DescribeApplicationResourceSummaryResult()
{}
void DescribeApplicationResourceSummaryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ApplicationResource"].isNull())
applicationResource_ = value["ApplicationResource"].asString();
}
std::string DescribeApplicationResourceSummaryResult::getApplicationResource()const
{
return applicationResource_;
}

View File

@@ -0,0 +1,51 @@
/*
* 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/ens/model/DescribeApplicationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DescribeApplicationResult::DescribeApplicationResult() :
ServiceResult()
{}
DescribeApplicationResult::DescribeApplicationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApplicationResult::~DescribeApplicationResult()
{}
void DescribeApplicationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Application"].isNull())
application_ = value["Application"].asString();
}
std::string DescribeApplicationResult::getApplication()const
{
return application_;
}

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/ens/model/DescribeAvailableResourceInfoRequest.h>
using AlibabaCloud::Ens::Model::DescribeAvailableResourceInfoRequest;
DescribeAvailableResourceInfoRequest::DescribeAvailableResourceInfoRequest()
: RpcServiceRequest("ens", "2017-11-10", "DescribeAvailableResourceInfo") {
setMethod(HttpRequest::Method::Post);
}
DescribeAvailableResourceInfoRequest::~DescribeAvailableResourceInfoRequest() {}

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/ens/model/DescribeAvailableResourceInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DescribeAvailableResourceInfoResult::DescribeAvailableResourceInfoResult() :
ServiceResult()
{}
DescribeAvailableResourceInfoResult::DescribeAvailableResourceInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAvailableResourceInfoResult::~DescribeAvailableResourceInfoResult()
{}
void DescribeAvailableResourceInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allImagesNode = value["Images"]["Image"];
for (auto valueImagesImage : allImagesNode)
{
Image imagesObject;
if(!valueImagesImage["ImageSize"].isNull())
imagesObject.imageSize = std::stoi(valueImagesImage["ImageSize"].asString());
if(!valueImagesImage["ImageName"].isNull())
imagesObject.imageName = valueImagesImage["ImageName"].asString();
if(!valueImagesImage["ImageId"].isNull())
imagesObject.imageId = valueImagesImage["ImageId"].asString();
images_.push_back(imagesObject);
}
auto allSupportResourcesNode = value["SupportResources"]["SupportResource"];
for (auto valueSupportResourcesSupportResource : allSupportResourcesNode)
{
SupportResource supportResourcesObject;
if(!valueSupportResourcesSupportResource["DataDiskMaxSize"].isNull())
supportResourcesObject.dataDiskMaxSize = std::stoi(valueSupportResourcesSupportResource["DataDiskMaxSize"].asString());
if(!valueSupportResourcesSupportResource["SystemDiskMinSize"].isNull())
supportResourcesObject.systemDiskMinSize = std::stoi(valueSupportResourcesSupportResource["SystemDiskMinSize"].asString());
if(!valueSupportResourcesSupportResource["SystemDiskMaxSize"].isNull())
supportResourcesObject.systemDiskMaxSize = std::stoi(valueSupportResourcesSupportResource["SystemDiskMaxSize"].asString());
if(!valueSupportResourcesSupportResource["DataDiskMinSize"].isNull())
supportResourcesObject.dataDiskMinSize = std::stoi(valueSupportResourcesSupportResource["DataDiskMinSize"].asString());
auto allEnsRegionIdsExtendsNode = valueSupportResourcesSupportResource["EnsRegionIdsExtends"]["EnsRegionId"];
for (auto valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId : allEnsRegionIdsExtendsNode)
{
SupportResource::EnsRegionId ensRegionIdsExtendsObject;
if(!valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["EnsRegionId"].isNull())
ensRegionIdsExtendsObject.ensRegionId = valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["EnsRegionId"].asString();
if(!valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["EnName"].isNull())
ensRegionIdsExtendsObject.enName = valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["EnName"].asString();
if(!valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["Area"].isNull())
ensRegionIdsExtendsObject.area = valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["Area"].asString();
if(!valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["Name"].isNull())
ensRegionIdsExtendsObject.name = valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["Name"].asString();
if(!valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["Province"].isNull())
ensRegionIdsExtendsObject.province = valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["Province"].asString();
supportResourcesObject.ensRegionIdsExtends.push_back(ensRegionIdsExtendsObject);
}
auto allBandwidthTypes = value["BandwidthTypes"]["BandwidthType"];
for (auto value : allBandwidthTypes)
supportResourcesObject.bandwidthTypes.push_back(value.asString());
auto allEnsRegionIds = value["EnsRegionIds"]["EnsRegionId"];
for (auto value : allEnsRegionIds)
supportResourcesObject.ensRegionIds.push_back(value.asString());
auto allInstanceSpeces = value["InstanceSpeces"]["InstanceSpec"];
for (auto value : allInstanceSpeces)
supportResourcesObject.instanceSpeces.push_back(value.asString());
supportResources_.push_back(supportResourcesObject);
}
}
std::vector<DescribeAvailableResourceInfoResult::Image> DescribeAvailableResourceInfoResult::getImages()const
{
return images_;
}
std::vector<DescribeAvailableResourceInfoResult::SupportResource> DescribeAvailableResourceInfoResult::getSupportResources()const
{
return supportResources_;
}

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/ens/model/DescribeAvailableResourceRequest.h>
using AlibabaCloud::Ens::Model::DescribeAvailableResourceRequest;
DescribeAvailableResourceRequest::DescribeAvailableResourceRequest()
: RpcServiceRequest("ens", "2017-11-10", "DescribeAvailableResource") {
setMethod(HttpRequest::Method::Post);
}
DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() {}

View File

@@ -0,0 +1,87 @@
/*
* 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/ens/model/DescribeAvailableResourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DescribeAvailableResourceResult::DescribeAvailableResourceResult() :
ServiceResult()
{}
DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAvailableResourceResult::~DescribeAvailableResourceResult()
{}
void DescribeAvailableResourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allImagesNode = value["Images"]["Image"];
for (auto valueImagesImage : allImagesNode)
{
Image imagesObject;
if(!valueImagesImage["ImageId"].isNull())
imagesObject.imageId = valueImagesImage["ImageId"].asString();
if(!valueImagesImage["ImageName"].isNull())
imagesObject.imageName = valueImagesImage["ImageName"].asString();
images_.push_back(imagesObject);
}
auto allSupportResourcesNode = value["SupportResources"]["SupportResource"];
for (auto valueSupportResourcesSupportResource : allSupportResourcesNode)
{
SupportResource supportResourcesObject;
if(!valueSupportResourcesSupportResource["DataDiskSize"].isNull())
supportResourcesObject.dataDiskSize = valueSupportResourcesSupportResource["DataDiskSize"].asString();
if(!valueSupportResourcesSupportResource["EnsRegionId"].isNull())
supportResourcesObject.ensRegionId = valueSupportResourcesSupportResource["EnsRegionId"].asString();
if(!valueSupportResourcesSupportResource["InstanceSpec"].isNull())
supportResourcesObject.instanceSpec = valueSupportResourcesSupportResource["InstanceSpec"].asString();
if(!valueSupportResourcesSupportResource["SupportResourcesCount"].isNull())
supportResourcesObject.supportResourcesCount = valueSupportResourcesSupportResource["SupportResourcesCount"].asString();
if(!valueSupportResourcesSupportResource["SystemDiskSize"].isNull())
supportResourcesObject.systemDiskSize = valueSupportResourcesSupportResource["SystemDiskSize"].asString();
supportResources_.push_back(supportResourcesObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
}
std::vector<DescribeAvailableResourceResult::Image> DescribeAvailableResourceResult::getImages()const
{
return images_;
}
std::vector<DescribeAvailableResourceResult::SupportResource> DescribeAvailableResourceResult::getSupportResources()const
{
return supportResources_;
}
int DescribeAvailableResourceResult::getCode()const
{
return code_;
}

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/ens/model/DescribeBandWithdChargeTypeRequest.h>
using AlibabaCloud::Ens::Model::DescribeBandWithdChargeTypeRequest;
DescribeBandWithdChargeTypeRequest::DescribeBandWithdChargeTypeRequest()
: RpcServiceRequest("ens", "2017-11-10", "DescribeBandWithdChargeType") {
setMethod(HttpRequest::Method::Post);
}
DescribeBandWithdChargeTypeRequest::~DescribeBandWithdChargeTypeRequest() {}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ens/model/DescribeBandWithdChargeTypeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DescribeBandWithdChargeTypeResult::DescribeBandWithdChargeTypeResult() :
ServiceResult()
{}
DescribeBandWithdChargeTypeResult::DescribeBandWithdChargeTypeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBandWithdChargeTypeResult::~DescribeBandWithdChargeTypeResult()
{}
void DescribeBandWithdChargeTypeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["BandWithTypeInfo"].isNull())
bandWithTypeInfo_ = value["BandWithTypeInfo"].asString();
if(!value["ChargeContractType"].isNull())
chargeContractType_ = value["ChargeContractType"].asString();
if(!value["ChargeCycleInfo"].isNull())
chargeCycleInfo_ = value["ChargeCycleInfo"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
}
std::string DescribeBandWithdChargeTypeResult::getBandWithTypeInfo()const
{
return bandWithTypeInfo_;
}
std::string DescribeBandWithdChargeTypeResult::getChargeCycleInfo()const
{
return chargeCycleInfo_;
}
int DescribeBandWithdChargeTypeResult::getCode()const
{
return code_;
}
std::string DescribeBandWithdChargeTypeResult::getChargeContractType()const
{
return chargeContractType_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/ens/model/DescribeBandwitdhByInternetChargeTypeRequest.h>
using AlibabaCloud::Ens::Model::DescribeBandwitdhByInternetChargeTypeRequest;
DescribeBandwitdhByInternetChargeTypeRequest::DescribeBandwitdhByInternetChargeTypeRequest()
: RpcServiceRequest("ens", "2017-11-10", "DescribeBandwitdhByInternetChargeType") {
setMethod(HttpRequest::Method::Post);
}
DescribeBandwitdhByInternetChargeTypeRequest::~DescribeBandwitdhByInternetChargeTypeRequest() {}
std::string DescribeBandwitdhByInternetChargeTypeRequest::getIsp() const {
return isp_;
}
void DescribeBandwitdhByInternetChargeTypeRequest::setIsp(const std::string &isp) {
isp_ = isp;
setParameter(std::string("Isp"), isp);
}
std::string DescribeBandwitdhByInternetChargeTypeRequest::getStartTime() const {
return startTime_;
}
void DescribeBandwitdhByInternetChargeTypeRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
std::string DescribeBandwitdhByInternetChargeTypeRequest::getEnsRegionId() const {
return ensRegionId_;
}
void DescribeBandwitdhByInternetChargeTypeRequest::setEnsRegionId(const std::string &ensRegionId) {
ensRegionId_ = ensRegionId;
setParameter(std::string("EnsRegionId"), ensRegionId);
}
std::string DescribeBandwitdhByInternetChargeTypeRequest::getEndTime() const {
return endTime_;
}
void DescribeBandwitdhByInternetChargeTypeRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/ens/model/DescribeBandwitdhByInternetChargeTypeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DescribeBandwitdhByInternetChargeTypeResult::DescribeBandwitdhByInternetChargeTypeResult() :
ServiceResult()
{}
DescribeBandwitdhByInternetChargeTypeResult::DescribeBandwitdhByInternetChargeTypeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBandwitdhByInternetChargeTypeResult::~DescribeBandwitdhByInternetChargeTypeResult()
{}
void DescribeBandwitdhByInternetChargeTypeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["BandwidthValue"].isNull())
bandwidthValue_ = std::stol(value["BandwidthValue"].asString());
if(!value["InternetChargeType"].isNull())
internetChargeType_ = value["InternetChargeType"].asString();
if(!value["TimeStamp"].isNull())
timeStamp_ = value["TimeStamp"].asString();
}
long DescribeBandwitdhByInternetChargeTypeResult::getBandwidthValue()const
{
return bandwidthValue_;
}
std::string DescribeBandwitdhByInternetChargeTypeResult::getTimeStamp()const
{
return timeStamp_;
}
std::string DescribeBandwitdhByInternetChargeTypeResult::getInternetChargeType()const
{
return internetChargeType_;
}

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/ens/model/DescribeCloudDiskAvailableResourceInfoRequest.h>
using AlibabaCloud::Ens::Model::DescribeCloudDiskAvailableResourceInfoRequest;
DescribeCloudDiskAvailableResourceInfoRequest::DescribeCloudDiskAvailableResourceInfoRequest()
: RpcServiceRequest("ens", "2017-11-10", "DescribeCloudDiskAvailableResourceInfo") {
setMethod(HttpRequest::Method::Get);
}
DescribeCloudDiskAvailableResourceInfoRequest::~DescribeCloudDiskAvailableResourceInfoRequest() {}

View File

@@ -0,0 +1,69 @@
/*
* 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/ens/model/DescribeCloudDiskAvailableResourceInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DescribeCloudDiskAvailableResourceInfoResult::DescribeCloudDiskAvailableResourceInfoResult() :
ServiceResult()
{}
DescribeCloudDiskAvailableResourceInfoResult::DescribeCloudDiskAvailableResourceInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCloudDiskAvailableResourceInfoResult::~DescribeCloudDiskAvailableResourceInfoResult()
{}
void DescribeCloudDiskAvailableResourceInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSupportResourcesNode = value["SupportResources"]["SupportResource"];
for (auto valueSupportResourcesSupportResource : allSupportResourcesNode)
{
SupportResource supportResourcesObject;
if(!valueSupportResourcesSupportResource["EnsRegionId"].isNull())
supportResourcesObject.ensRegionId = valueSupportResourcesSupportResource["EnsRegionId"].asString();
if(!valueSupportResourcesSupportResource["EnsRegionName"].isNull())
supportResourcesObject.ensRegionName = valueSupportResourcesSupportResource["EnsRegionName"].asString();
if(!valueSupportResourcesSupportResource["DiskMinSize"].isNull())
supportResourcesObject.diskMinSize = std::stol(valueSupportResourcesSupportResource["DiskMinSize"].asString());
if(!valueSupportResourcesSupportResource["DiskMaxSize"].isNull())
supportResourcesObject.diskMaxSize = std::stol(valueSupportResourcesSupportResource["DiskMaxSize"].asString());
if(!valueSupportResourcesSupportResource["CanBuyCount"].isNull())
supportResourcesObject.canBuyCount = std::stol(valueSupportResourcesSupportResource["CanBuyCount"].asString());
if(!valueSupportResourcesSupportResource["Category"].isNull())
supportResourcesObject.category = valueSupportResourcesSupportResource["Category"].asString();
if(!valueSupportResourcesSupportResource["DefaultDiskSize"].isNull())
supportResourcesObject.defaultDiskSize = std::stol(valueSupportResourcesSupportResource["DefaultDiskSize"].asString());
supportResources_.push_back(supportResourcesObject);
}
}
std::vector<DescribeCloudDiskAvailableResourceInfoResult::SupportResource> DescribeCloudDiskAvailableResourceInfoResult::getSupportResources()const
{
return supportResources_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ens/model/DescribeCloudDiskTypesRequest.h>
using AlibabaCloud::Ens::Model::DescribeCloudDiskTypesRequest;
DescribeCloudDiskTypesRequest::DescribeCloudDiskTypesRequest()
: RpcServiceRequest("ens", "2017-11-10", "DescribeCloudDiskTypes") {
setMethod(HttpRequest::Method::Get);
}
DescribeCloudDiskTypesRequest::~DescribeCloudDiskTypesRequest() {}
std::string DescribeCloudDiskTypesRequest::getEnsRegionId() const {
return ensRegionId_;
}
void DescribeCloudDiskTypesRequest::setEnsRegionId(const std::string &ensRegionId) {
ensRegionId_ = ensRegionId;
setParameter(std::string("EnsRegionId"), ensRegionId);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/ens/model/DescribeCloudDiskTypesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ens;
using namespace AlibabaCloud::Ens::Model;
DescribeCloudDiskTypesResult::DescribeCloudDiskTypesResult() :
ServiceResult()
{}
DescribeCloudDiskTypesResult::DescribeCloudDiskTypesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCloudDiskTypesResult::~DescribeCloudDiskTypesResult()
{}
void DescribeCloudDiskTypesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSupportResourcesNode = value["SupportResources"]["SupportResource"];
for (auto valueSupportResourcesSupportResource : allSupportResourcesNode)
{
SupportResource supportResourcesObject;
if(!valueSupportResourcesSupportResource["Category"].isNull())
supportResourcesObject.category = valueSupportResourcesSupportResource["Category"].asString();
if(!valueSupportResourcesSupportResource["EnsRegionId"].isNull())
supportResourcesObject.ensRegionId = valueSupportResourcesSupportResource["EnsRegionId"].asString();
supportResources_.push_back(supportResourcesObject);
}
}
std::vector<DescribeCloudDiskTypesResult::SupportResource> DescribeCloudDiskTypesResult::getSupportResources()const
{
return supportResources_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ens/model/DescribeCreatePrePaidInstanceResultRequest.h>
using AlibabaCloud::Ens::Model::DescribeCreatePrePaidInstanceResultRequest;
DescribeCreatePrePaidInstanceResultRequest::DescribeCreatePrePaidInstanceResultRequest()
: RpcServiceRequest("ens", "2017-11-10", "DescribeCreatePrePaidInstanceResult") {
setMethod(HttpRequest::Method::Post);
}
DescribeCreatePrePaidInstanceResultRequest::~DescribeCreatePrePaidInstanceResultRequest() {}
std::string DescribeCreatePrePaidInstanceResultRequest::getInstanceId() const {
return instanceId_;
}
void DescribeCreatePrePaidInstanceResultRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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