Support elastic network interface.

This commit is contained in:
sdk-team
2023-08-28 02:28:04 +00:00
parent 1243cb5656
commit 06ad26c36a
232 changed files with 16565 additions and 189 deletions

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/eflo/model/AssignPrivateIpAddressRequest.h>
using AlibabaCloud::Eflo::Model::AssignPrivateIpAddressRequest;
AssignPrivateIpAddressRequest::AssignPrivateIpAddressRequest()
: RpcServiceRequest("eflo", "2022-05-30", "AssignPrivateIpAddress") {
setMethod(HttpRequest::Method::Post);
}
AssignPrivateIpAddressRequest::~AssignPrivateIpAddressRequest() {}
std::string AssignPrivateIpAddressRequest::getDescription() const {
return description_;
}
void AssignPrivateIpAddressRequest::setDescription(const std::string &description) {
description_ = description;
setBodyParameter(std::string("Description"), description);
}
bool AssignPrivateIpAddressRequest::getAssignMac() const {
return assignMac_;
}
void AssignPrivateIpAddressRequest::setAssignMac(bool assignMac) {
assignMac_ = assignMac;
setBodyParameter(std::string("AssignMac"), assignMac ? "true" : "false");
}
std::string AssignPrivateIpAddressRequest::getRegionId() const {
return regionId_;
}
void AssignPrivateIpAddressRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string AssignPrivateIpAddressRequest::getSubnetId() const {
return subnetId_;
}
void AssignPrivateIpAddressRequest::setSubnetId(const std::string &subnetId) {
subnetId_ = subnetId;
setBodyParameter(std::string("SubnetId"), subnetId);
}
bool AssignPrivateIpAddressRequest::getSkipConfig() const {
return skipConfig_;
}
void AssignPrivateIpAddressRequest::setSkipConfig(bool skipConfig) {
skipConfig_ = skipConfig;
setBodyParameter(std::string("SkipConfig"), skipConfig ? "true" : "false");
}
std::string AssignPrivateIpAddressRequest::getPrivateIpAddress() const {
return privateIpAddress_;
}
void AssignPrivateIpAddressRequest::setPrivateIpAddress(const std::string &privateIpAddress) {
privateIpAddress_ = privateIpAddress;
setBodyParameter(std::string("PrivateIpAddress"), privateIpAddress);
}
std::string AssignPrivateIpAddressRequest::getNetworkInterfaceId() const {
return networkInterfaceId_;
}
void AssignPrivateIpAddressRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
networkInterfaceId_ = networkInterfaceId;
setBodyParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
}

View File

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

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/eflo/model/AssociateVpdCidrBlockRequest.h>
using AlibabaCloud::Eflo::Model::AssociateVpdCidrBlockRequest;
AssociateVpdCidrBlockRequest::AssociateVpdCidrBlockRequest()
: RpcServiceRequest("eflo", "2022-05-30", "AssociateVpdCidrBlock") {
setMethod(HttpRequest::Method::Post);
}
AssociateVpdCidrBlockRequest::~AssociateVpdCidrBlockRequest() {}
std::string AssociateVpdCidrBlockRequest::getRegionId() const {
return regionId_;
}
void AssociateVpdCidrBlockRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string AssociateVpdCidrBlockRequest::getVpdId() const {
return vpdId_;
}
void AssociateVpdCidrBlockRequest::setVpdId(const std::string &vpdId) {
vpdId_ = vpdId;
setBodyParameter(std::string("VpdId"), vpdId);
}
std::string AssociateVpdCidrBlockRequest::getSecondaryCidrBlock() const {
return secondaryCidrBlock_;
}
void AssociateVpdCidrBlockRequest::setSecondaryCidrBlock(const std::string &secondaryCidrBlock) {
secondaryCidrBlock_ = secondaryCidrBlock;
setBodyParameter(std::string("SecondaryCidrBlock"), secondaryCidrBlock);
}

View File

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

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/eflo/model/CreateElasticNetworkInterfaceRequest.h>
using AlibabaCloud::Eflo::Model::CreateElasticNetworkInterfaceRequest;
CreateElasticNetworkInterfaceRequest::CreateElasticNetworkInterfaceRequest()
: RpcServiceRequest("eflo", "2022-05-30", "CreateElasticNetworkInterface") {
setMethod(HttpRequest::Method::Post);
}
CreateElasticNetworkInterfaceRequest::~CreateElasticNetworkInterfaceRequest() {}
std::string CreateElasticNetworkInterfaceRequest::getDescription() const {
return description_;
}
void CreateElasticNetworkInterfaceRequest::setDescription(const std::string &description) {
description_ = description;
setBodyParameter(std::string("Description"), description);
}
std::string CreateElasticNetworkInterfaceRequest::getVSwitchId() const {
return vSwitchId_;
}
void CreateElasticNetworkInterfaceRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setBodyParameter(std::string("VSwitchId"), vSwitchId);
}
std::string CreateElasticNetworkInterfaceRequest::getRegionId() const {
return regionId_;
}
void CreateElasticNetworkInterfaceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string CreateElasticNetworkInterfaceRequest::getVpcId() const {
return vpcId_;
}
void CreateElasticNetworkInterfaceRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setBodyParameter(std::string("VpcId"), vpcId);
}
std::string CreateElasticNetworkInterfaceRequest::getZoneId() const {
return zoneId_;
}
void CreateElasticNetworkInterfaceRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setBodyParameter(std::string("ZoneId"), zoneId);
}
std::string CreateElasticNetworkInterfaceRequest::getNodeId() const {
return nodeId_;
}
void CreateElasticNetworkInterfaceRequest::setNodeId(const std::string &nodeId) {
nodeId_ = nodeId;
setBodyParameter(std::string("NodeId"), nodeId);
}

View File

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

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/eflo/model/CreateErAttachmentRequest.h>
using AlibabaCloud::Eflo::Model::CreateErAttachmentRequest;
CreateErAttachmentRequest::CreateErAttachmentRequest()
: RpcServiceRequest("eflo", "2022-05-30", "CreateErAttachment") {
setMethod(HttpRequest::Method::Post);
}
CreateErAttachmentRequest::~CreateErAttachmentRequest() {}
std::string CreateErAttachmentRequest::getResourceTenantId() const {
return resourceTenantId_;
}
void CreateErAttachmentRequest::setResourceTenantId(const std::string &resourceTenantId) {
resourceTenantId_ = resourceTenantId;
setBodyParameter(std::string("ResourceTenantId"), resourceTenantId);
}
std::string CreateErAttachmentRequest::getRegionId() const {
return regionId_;
}
void CreateErAttachmentRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
bool CreateErAttachmentRequest::getAutoReceiveAllRoute() const {
return autoReceiveAllRoute_;
}
void CreateErAttachmentRequest::setAutoReceiveAllRoute(bool autoReceiveAllRoute) {
autoReceiveAllRoute_ = autoReceiveAllRoute;
setBodyParameter(std::string("AutoReceiveAllRoute"), autoReceiveAllRoute ? "true" : "false");
}
std::string CreateErAttachmentRequest::getInstanceType() const {
return instanceType_;
}
void CreateErAttachmentRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setBodyParameter(std::string("InstanceType"), instanceType);
}
std::string CreateErAttachmentRequest::getErAttachmentName() const {
return erAttachmentName_;
}
void CreateErAttachmentRequest::setErAttachmentName(const std::string &erAttachmentName) {
erAttachmentName_ = erAttachmentName;
setBodyParameter(std::string("ErAttachmentName"), erAttachmentName);
}
std::string CreateErAttachmentRequest::getErId() const {
return erId_;
}
void CreateErAttachmentRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string CreateErAttachmentRequest::getInstanceId() const {
return instanceId_;
}
void CreateErAttachmentRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/CreateErAttachmentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
CreateErAttachmentResult::CreateErAttachmentResult() :
ServiceResult()
{}
CreateErAttachmentResult::CreateErAttachmentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateErAttachmentResult::~CreateErAttachmentResult()
{}
void CreateErAttachmentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["ErAttachmentId"].isNull())
content_.erAttachmentId = contentNode["ErAttachmentId"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CreateErAttachmentResult::getMessage()const
{
return message_;
}
CreateErAttachmentResult::Content CreateErAttachmentResult::getContent()const
{
return content_;
}
int CreateErAttachmentResult::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/eflo/model/CreateErRequest.h>
using AlibabaCloud::Eflo::Model::CreateErRequest;
CreateErRequest::CreateErRequest()
: RpcServiceRequest("eflo", "2022-05-30", "CreateEr") {
setMethod(HttpRequest::Method::Post);
}
CreateErRequest::~CreateErRequest() {}
std::string CreateErRequest::getDescription() const {
return description_;
}
void CreateErRequest::setDescription(const std::string &description) {
description_ = description;
setBodyParameter(std::string("Description"), description);
}
std::string CreateErRequest::getErName() const {
return erName_;
}
void CreateErRequest::setErName(const std::string &erName) {
erName_ = erName;
setBodyParameter(std::string("ErName"), erName);
}
std::string CreateErRequest::getMasterZoneId() const {
return masterZoneId_;
}
void CreateErRequest::setMasterZoneId(const std::string &masterZoneId) {
masterZoneId_ = masterZoneId;
setBodyParameter(std::string("MasterZoneId"), masterZoneId);
}
std::string CreateErRequest::getRegionId() const {
return regionId_;
}
void CreateErRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

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

View File

@@ -0,0 +1,135 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/CreateErRouteMapRequest.h>
using AlibabaCloud::Eflo::Model::CreateErRouteMapRequest;
CreateErRouteMapRequest::CreateErRouteMapRequest()
: RpcServiceRequest("eflo", "2022-05-30", "CreateErRouteMap") {
setMethod(HttpRequest::Method::Post);
}
CreateErRouteMapRequest::~CreateErRouteMapRequest() {}
std::string CreateErRouteMapRequest::getReceptionInstanceType() const {
return receptionInstanceType_;
}
void CreateErRouteMapRequest::setReceptionInstanceType(const std::string &receptionInstanceType) {
receptionInstanceType_ = receptionInstanceType;
setBodyParameter(std::string("ReceptionInstanceType"), receptionInstanceType);
}
std::string CreateErRouteMapRequest::getDescription() const {
return description_;
}
void CreateErRouteMapRequest::setDescription(const std::string &description) {
description_ = description;
setBodyParameter(std::string("Description"), description);
}
std::string CreateErRouteMapRequest::getReceptionInstanceId() const {
return receptionInstanceId_;
}
void CreateErRouteMapRequest::setReceptionInstanceId(const std::string &receptionInstanceId) {
receptionInstanceId_ = receptionInstanceId;
setBodyParameter(std::string("ReceptionInstanceId"), receptionInstanceId);
}
std::string CreateErRouteMapRequest::getRouteMapAction() const {
return routeMapAction_;
}
void CreateErRouteMapRequest::setRouteMapAction(const std::string &routeMapAction) {
routeMapAction_ = routeMapAction;
setBodyParameter(std::string("RouteMapAction"), routeMapAction);
}
std::string CreateErRouteMapRequest::getTransmissionInstanceType() const {
return transmissionInstanceType_;
}
void CreateErRouteMapRequest::setTransmissionInstanceType(const std::string &transmissionInstanceType) {
transmissionInstanceType_ = transmissionInstanceType;
setBodyParameter(std::string("TransmissionInstanceType"), transmissionInstanceType);
}
std::string CreateErRouteMapRequest::getRegionId() const {
return regionId_;
}
void CreateErRouteMapRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string CreateErRouteMapRequest::getDestinationCidrBlock() const {
return destinationCidrBlock_;
}
void CreateErRouteMapRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) {
destinationCidrBlock_ = destinationCidrBlock;
setBodyParameter(std::string("DestinationCidrBlock"), destinationCidrBlock);
}
std::string CreateErRouteMapRequest::getErId() const {
return erId_;
}
void CreateErRouteMapRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
int CreateErRouteMapRequest::getRouteMapNum() const {
return routeMapNum_;
}
void CreateErRouteMapRequest::setRouteMapNum(int routeMapNum) {
routeMapNum_ = routeMapNum;
setBodyParameter(std::string("RouteMapNum"), std::to_string(routeMapNum));
}
std::string CreateErRouteMapRequest::getReceptionInstanceOwner() const {
return receptionInstanceOwner_;
}
void CreateErRouteMapRequest::setReceptionInstanceOwner(const std::string &receptionInstanceOwner) {
receptionInstanceOwner_ = receptionInstanceOwner;
setBodyParameter(std::string("ReceptionInstanceOwner"), receptionInstanceOwner);
}
std::string CreateErRouteMapRequest::getTransmissionInstanceOwner() const {
return transmissionInstanceOwner_;
}
void CreateErRouteMapRequest::setTransmissionInstanceOwner(const std::string &transmissionInstanceOwner) {
transmissionInstanceOwner_ = transmissionInstanceOwner;
setBodyParameter(std::string("TransmissionInstanceOwner"), transmissionInstanceOwner);
}
std::string CreateErRouteMapRequest::getTransmissionInstanceId() const {
return transmissionInstanceId_;
}
void CreateErRouteMapRequest::setTransmissionInstanceId(const std::string &transmissionInstanceId) {
transmissionInstanceId_ = transmissionInstanceId;
setBodyParameter(std::string("TransmissionInstanceId"), transmissionInstanceId);
}

View File

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

View File

@@ -43,6 +43,29 @@ void CreateSubnetRequest::setRegionId(const std::string &regionId) {
setBodyParameter(std::string("RegionId"), regionId);
}
std::string CreateSubnetRequest::getCidr() const {
return cidr_;
}
void CreateSubnetRequest::setCidr(const std::string &cidr) {
cidr_ = cidr;
setBodyParameter(std::string("Cidr"), cidr);
}
std::vector<CreateSubnetRequest::Tag> CreateSubnetRequest::getTag() const {
return tag_;
}
void CreateSubnetRequest::setTag(const std::vector<CreateSubnetRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setBodyParameter(tagObjStr + ".Value", tagObj.value);
setBodyParameter(tagObjStr + ".Key", tagObj.key);
}
}
std::string CreateSubnetRequest::getVpdId() const {
return vpdId_;
}
@@ -52,15 +75,6 @@ void CreateSubnetRequest::setVpdId(const std::string &vpdId) {
setBodyParameter(std::string("VpdId"), vpdId);
}
std::string CreateSubnetRequest::getName() const {
return name_;
}
void CreateSubnetRequest::setName(const std::string &name) {
name_ = name;
setBodyParameter(std::string("Name"), name);
}
std::string CreateSubnetRequest::getZoneId() const {
return zoneId_;
}
@@ -70,12 +84,12 @@ void CreateSubnetRequest::setZoneId(const std::string &zoneId) {
setBodyParameter(std::string("ZoneId"), zoneId);
}
std::string CreateSubnetRequest::getCidr() const {
return cidr_;
std::string CreateSubnetRequest::getSubnetName() const {
return subnetName_;
}
void CreateSubnetRequest::setCidr(const std::string &cidr) {
cidr_ = cidr;
setBodyParameter(std::string("Cidr"), cidr);
void CreateSubnetRequest::setSubnetName(const std::string &subnetName) {
subnetName_ = subnetName;
setBodyParameter(std::string("SubnetName"), subnetName);
}

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/eflo/model/CreateVccGrantRuleRequest.h>
using AlibabaCloud::Eflo::Model::CreateVccGrantRuleRequest;
CreateVccGrantRuleRequest::CreateVccGrantRuleRequest()
: RpcServiceRequest("eflo", "2022-05-30", "CreateVccGrantRule") {
setMethod(HttpRequest::Method::Post);
}
CreateVccGrantRuleRequest::~CreateVccGrantRuleRequest() {}
std::string CreateVccGrantRuleRequest::getErId() const {
return erId_;
}
void CreateVccGrantRuleRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string CreateVccGrantRuleRequest::getGrantTenantId() const {
return grantTenantId_;
}
void CreateVccGrantRuleRequest::setGrantTenantId(const std::string &grantTenantId) {
grantTenantId_ = grantTenantId;
setBodyParameter(std::string("GrantTenantId"), grantTenantId);
}
std::string CreateVccGrantRuleRequest::getInstanceId() const {
return instanceId_;
}
void CreateVccGrantRuleRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
}
std::string CreateVccGrantRuleRequest::getRegionId() const {
return regionId_;
}
void CreateVccGrantRuleRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

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

View File

@@ -52,6 +52,15 @@ void CreateVccRequest::setDescription(const std::string &description) {
setBodyParameter(std::string("Description"), description);
}
std::string CreateVccRequest::getCenOwnerId() const {
return cenOwnerId_;
}
void CreateVccRequest::setCenOwnerId(const std::string &cenOwnerId) {
cenOwnerId_ = cenOwnerId;
setBodyParameter(std::string("CenOwnerId"), cenOwnerId);
}
bool CreateVccRequest::getAccessCouldService() const {
return accessCouldService_;
}
@@ -61,6 +70,24 @@ void CreateVccRequest::setAccessCouldService(bool accessCouldService) {
setBodyParameter(std::string("AccessCouldService"), accessCouldService ? "true" : "false");
}
std::string CreateVccRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateVccRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateVccRequest::getVccName() const {
return vccName_;
}
void CreateVccRequest::setVccName(const std::string &vccName) {
vccName_ = vccName;
setBodyParameter(std::string("VccName"), vccName);
}
std::string CreateVccRequest::getRegionId() const {
return regionId_;
}
@@ -70,6 +97,20 @@ void CreateVccRequest::setRegionId(const std::string &regionId) {
setBodyParameter(std::string("RegionId"), regionId);
}
std::vector<CreateVccRequest::Tag> CreateVccRequest::getTag() const {
return tag_;
}
void CreateVccRequest::setTag(const std::vector<CreateVccRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setBodyParameter(tagObjStr + ".Value", tagObj.value);
setBodyParameter(tagObjStr + ".Key", tagObj.key);
}
}
std::string CreateVccRequest::getVccId() const {
return vccId_;
}
@@ -79,6 +120,24 @@ void CreateVccRequest::setVccId(const std::string &vccId) {
setBodyParameter(std::string("VccId"), vccId);
}
std::string CreateVccRequest::getConnectionType() const {
return connectionType_;
}
void CreateVccRequest::setConnectionType(const std::string &connectionType) {
connectionType_ = connectionType;
setBodyParameter(std::string("ConnectionType"), connectionType);
}
int CreateVccRequest::getBandwidth() const {
return bandwidth_;
}
void CreateVccRequest::setBandwidth(int bandwidth) {
bandwidth_ = bandwidth;
setBodyParameter(std::string("Bandwidth"), std::to_string(bandwidth));
}
std::string CreateVccRequest::getVSwitchId() const {
return vSwitchId_;
}
@@ -106,3 +165,12 @@ void CreateVccRequest::setVpcId(const std::string &vpcId) {
setBodyParameter(std::string("VpcId"), vpcId);
}
std::string CreateVccRequest::getZoneId() const {
return zoneId_;
}
void CreateVccRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setBodyParameter(std::string("ZoneId"), zoneId);
}

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/eflo/model/CreateVccRouteEntryRequest.h>
using AlibabaCloud::Eflo::Model::CreateVccRouteEntryRequest;
CreateVccRouteEntryRequest::CreateVccRouteEntryRequest()
: RpcServiceRequest("eflo", "2022-05-30", "CreateVccRouteEntry") {
setMethod(HttpRequest::Method::Post);
}
CreateVccRouteEntryRequest::~CreateVccRouteEntryRequest() {}
std::string CreateVccRouteEntryRequest::getDestinationCidrBlock() const {
return destinationCidrBlock_;
}
void CreateVccRouteEntryRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) {
destinationCidrBlock_ = destinationCidrBlock;
setBodyParameter(std::string("DestinationCidrBlock"), destinationCidrBlock);
}
std::string CreateVccRouteEntryRequest::getRegionId() const {
return regionId_;
}
void CreateVccRouteEntryRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string CreateVccRouteEntryRequest::getVccId() const {
return vccId_;
}
void CreateVccRouteEntryRequest::setVccId(const std::string &vccId) {
vccId_ = vccId;
setBodyParameter(std::string("VccId"), vccId);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/CreateVccRouteEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
CreateVccRouteEntryResult::CreateVccRouteEntryResult() :
ServiceResult()
{}
CreateVccRouteEntryResult::CreateVccRouteEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateVccRouteEntryResult::~CreateVccRouteEntryResult()
{}
void CreateVccRouteEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["VccRouteEntryId"].isNull())
content_.vccRouteEntryId = contentNode["VccRouteEntryId"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CreateVccRouteEntryResult::getMessage()const
{
return message_;
}
CreateVccRouteEntryResult::Content CreateVccRouteEntryResult::getContent()const
{
return content_;
}
int CreateVccRouteEntryResult::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/eflo/model/CreateVpdGrantRuleRequest.h>
using AlibabaCloud::Eflo::Model::CreateVpdGrantRuleRequest;
CreateVpdGrantRuleRequest::CreateVpdGrantRuleRequest()
: RpcServiceRequest("eflo", "2022-05-30", "CreateVpdGrantRule") {
setMethod(HttpRequest::Method::Post);
}
CreateVpdGrantRuleRequest::~CreateVpdGrantRuleRequest() {}
std::string CreateVpdGrantRuleRequest::getErId() const {
return erId_;
}
void CreateVpdGrantRuleRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string CreateVpdGrantRuleRequest::getGrantTenantId() const {
return grantTenantId_;
}
void CreateVpdGrantRuleRequest::setGrantTenantId(const std::string &grantTenantId) {
grantTenantId_ = grantTenantId;
setBodyParameter(std::string("GrantTenantId"), grantTenantId);
}
std::string CreateVpdGrantRuleRequest::getInstanceId() const {
return instanceId_;
}
void CreateVpdGrantRuleRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
}
std::string CreateVpdGrantRuleRequest::getRegionId() const {
return regionId_;
}
void CreateVpdGrantRuleRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

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

View File

@@ -25,6 +25,24 @@ CreateVpdRequest::CreateVpdRequest()
CreateVpdRequest::~CreateVpdRequest() {}
std::string CreateVpdRequest::getVpdName() const {
return vpdName_;
}
void CreateVpdRequest::setVpdName(const std::string &vpdName) {
vpdName_ = vpdName;
setBodyParameter(std::string("VpdName"), vpdName);
}
std::string CreateVpdRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateVpdRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateVpdRequest::getRegionId() const {
return regionId_;
}
@@ -34,15 +52,6 @@ void CreateVpdRequest::setRegionId(const std::string &regionId) {
setBodyParameter(std::string("RegionId"), regionId);
}
std::string CreateVpdRequest::getName() const {
return name_;
}
void CreateVpdRequest::setName(const std::string &name) {
name_ = name;
setBodyParameter(std::string("Name"), name);
}
std::string CreateVpdRequest::getCidr() const {
return cidr_;
}
@@ -62,10 +71,24 @@ void CreateVpdRequest::setSubnets(const std::vector<CreateVpdRequest::Subnets> &
auto subnetsObj = subnets.at(dep1);
std::string subnetsObjStr = std::string("Subnets") + "." + std::to_string(dep1 + 1);
setBodyParameter(subnetsObjStr + ".RegionId", subnetsObj.regionId);
setBodyParameter(subnetsObjStr + ".Name", subnetsObj.name);
setBodyParameter(subnetsObjStr + ".ZoneId", subnetsObj.zoneId);
setBodyParameter(subnetsObjStr + ".Cidr", subnetsObj.cidr);
setBodyParameter(subnetsObjStr + ".SubnetName", subnetsObj.subnetName);
setBodyParameter(subnetsObjStr + ".Type", subnetsObj.type);
}
}
std::vector<CreateVpdRequest::Tag> CreateVpdRequest::getTag() const {
return tag_;
}
void CreateVpdRequest::setTag(const std::vector<CreateVpdRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setBodyParameter(tagObjStr + ".Value", tagObj.value);
setBodyParameter(tagObjStr + ".Key", tagObj.key);
}
}

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/eflo/model/DeleteElasticNetworkInterfaceRequest.h>
using AlibabaCloud::Eflo::Model::DeleteElasticNetworkInterfaceRequest;
DeleteElasticNetworkInterfaceRequest::DeleteElasticNetworkInterfaceRequest()
: RpcServiceRequest("eflo", "2022-05-30", "DeleteElasticNetworkInterface") {
setMethod(HttpRequest::Method::Post);
}
DeleteElasticNetworkInterfaceRequest::~DeleteElasticNetworkInterfaceRequest() {}
std::string DeleteElasticNetworkInterfaceRequest::getRegionId() const {
return regionId_;
}
void DeleteElasticNetworkInterfaceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string DeleteElasticNetworkInterfaceRequest::getElasticNetworkInterfaceId() const {
return elasticNetworkInterfaceId_;
}
void DeleteElasticNetworkInterfaceRequest::setElasticNetworkInterfaceId(const std::string &elasticNetworkInterfaceId) {
elasticNetworkInterfaceId_ = elasticNetworkInterfaceId;
setBodyParameter(std::string("ElasticNetworkInterfaceId"), elasticNetworkInterfaceId);
}

View File

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

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/eflo/model/DeleteErAttachmentRequest.h>
using AlibabaCloud::Eflo::Model::DeleteErAttachmentRequest;
DeleteErAttachmentRequest::DeleteErAttachmentRequest()
: RpcServiceRequest("eflo", "2022-05-30", "DeleteErAttachment") {
setMethod(HttpRequest::Method::Post);
}
DeleteErAttachmentRequest::~DeleteErAttachmentRequest() {}
std::string DeleteErAttachmentRequest::getErId() const {
return erId_;
}
void DeleteErAttachmentRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string DeleteErAttachmentRequest::getErAttachmentId() const {
return erAttachmentId_;
}
void DeleteErAttachmentRequest::setErAttachmentId(const std::string &erAttachmentId) {
erAttachmentId_ = erAttachmentId;
setBodyParameter(std::string("ErAttachmentId"), erAttachmentId);
}
std::string DeleteErAttachmentRequest::getRegionId() const {
return regionId_;
}
void DeleteErAttachmentRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

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/eflo/model/DeleteErAttachmentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
DeleteErAttachmentResult::DeleteErAttachmentResult() :
ServiceResult()
{}
DeleteErAttachmentResult::DeleteErAttachmentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteErAttachmentResult::~DeleteErAttachmentResult()
{}
void DeleteErAttachmentResult::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/eflo/model/DeleteErRequest.h>
using AlibabaCloud::Eflo::Model::DeleteErRequest;
DeleteErRequest::DeleteErRequest()
: RpcServiceRequest("eflo", "2022-05-30", "DeleteEr") {
setMethod(HttpRequest::Method::Post);
}
DeleteErRequest::~DeleteErRequest() {}
std::string DeleteErRequest::getErId() const {
return erId_;
}
void DeleteErRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string DeleteErRequest::getRegionId() const {
return regionId_;
}
void DeleteErRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

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/eflo/model/DeleteErResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
DeleteErResult::DeleteErResult() :
ServiceResult()
{}
DeleteErResult::DeleteErResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteErResult::~DeleteErResult()
{}
void DeleteErResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/DeleteErRouteMapRequest.h>
using AlibabaCloud::Eflo::Model::DeleteErRouteMapRequest;
DeleteErRouteMapRequest::DeleteErRouteMapRequest()
: RpcServiceRequest("eflo", "2022-05-30", "DeleteErRouteMap") {
setMethod(HttpRequest::Method::Post);
}
DeleteErRouteMapRequest::~DeleteErRouteMapRequest() {}
std::string DeleteErRouteMapRequest::getErId() const {
return erId_;
}
void DeleteErRouteMapRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::vector<std::string> DeleteErRouteMapRequest::getErRouteMapIds() const {
return erRouteMapIds_;
}
void DeleteErRouteMapRequest::setErRouteMapIds(const std::vector<std::string> &erRouteMapIds) {
erRouteMapIds_ = erRouteMapIds;
}
std::string DeleteErRouteMapRequest::getRegionId() const {
return regionId_;
}
void DeleteErRouteMapRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

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/eflo/model/DeleteErRouteMapResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
DeleteErRouteMapResult::DeleteErRouteMapResult() :
ServiceResult()
{}
DeleteErRouteMapResult::DeleteErRouteMapResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteErRouteMapResult::~DeleteErRouteMapResult()
{}
void DeleteErRouteMapResult::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/eflo/model/DeleteVccGrantRuleRequest.h>
using AlibabaCloud::Eflo::Model::DeleteVccGrantRuleRequest;
DeleteVccGrantRuleRequest::DeleteVccGrantRuleRequest()
: RpcServiceRequest("eflo", "2022-05-30", "DeleteVccGrantRule") {
setMethod(HttpRequest::Method::Post);
}
DeleteVccGrantRuleRequest::~DeleteVccGrantRuleRequest() {}
std::string DeleteVccGrantRuleRequest::getErId() const {
return erId_;
}
void DeleteVccGrantRuleRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string DeleteVccGrantRuleRequest::getInstanceId() const {
return instanceId_;
}
void DeleteVccGrantRuleRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
}
std::string DeleteVccGrantRuleRequest::getRegionId() const {
return regionId_;
}
void DeleteVccGrantRuleRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string DeleteVccGrantRuleRequest::getGrantRuleId() const {
return grantRuleId_;
}
void DeleteVccGrantRuleRequest::setGrantRuleId(const std::string &grantRuleId) {
grantRuleId_ = grantRuleId;
setBodyParameter(std::string("GrantRuleId"), grantRuleId);
}

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/eflo/model/DeleteVccGrantRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
DeleteVccGrantRuleResult::DeleteVccGrantRuleResult() :
ServiceResult()
{}
DeleteVccGrantRuleResult::DeleteVccGrantRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteVccGrantRuleResult::~DeleteVccGrantRuleResult()
{}
void DeleteVccGrantRuleResult::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/eflo/model/DeleteVccRouteEntryRequest.h>
using AlibabaCloud::Eflo::Model::DeleteVccRouteEntryRequest;
DeleteVccRouteEntryRequest::DeleteVccRouteEntryRequest()
: RpcServiceRequest("eflo", "2022-05-30", "DeleteVccRouteEntry") {
setMethod(HttpRequest::Method::Post);
}
DeleteVccRouteEntryRequest::~DeleteVccRouteEntryRequest() {}
std::string DeleteVccRouteEntryRequest::getDestinationCidrBlock() const {
return destinationCidrBlock_;
}
void DeleteVccRouteEntryRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) {
destinationCidrBlock_ = destinationCidrBlock;
setBodyParameter(std::string("DestinationCidrBlock"), destinationCidrBlock);
}
std::string DeleteVccRouteEntryRequest::getRegionId() const {
return regionId_;
}
void DeleteVccRouteEntryRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string DeleteVccRouteEntryRequest::getVccId() const {
return vccId_;
}
void DeleteVccRouteEntryRequest::setVccId(const std::string &vccId) {
vccId_ = vccId;
setBodyParameter(std::string("VccId"), vccId);
}
std::string DeleteVccRouteEntryRequest::getVccRouteEntryId() const {
return vccRouteEntryId_;
}
void DeleteVccRouteEntryRequest::setVccRouteEntryId(const std::string &vccRouteEntryId) {
vccRouteEntryId_ = vccRouteEntryId;
setBodyParameter(std::string("VccRouteEntryId"), vccRouteEntryId);
}

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/eflo/model/DeleteVccRouteEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
DeleteVccRouteEntryResult::DeleteVccRouteEntryResult() :
ServiceResult()
{}
DeleteVccRouteEntryResult::DeleteVccRouteEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteVccRouteEntryResult::~DeleteVccRouteEntryResult()
{}
void DeleteVccRouteEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/eflo/model/DeleteVpdGrantRuleRequest.h>
using AlibabaCloud::Eflo::Model::DeleteVpdGrantRuleRequest;
DeleteVpdGrantRuleRequest::DeleteVpdGrantRuleRequest()
: RpcServiceRequest("eflo", "2022-05-30", "DeleteVpdGrantRule") {
setMethod(HttpRequest::Method::Post);
}
DeleteVpdGrantRuleRequest::~DeleteVpdGrantRuleRequest() {}
std::string DeleteVpdGrantRuleRequest::getErId() const {
return erId_;
}
void DeleteVpdGrantRuleRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string DeleteVpdGrantRuleRequest::getGrantTenantId() const {
return grantTenantId_;
}
void DeleteVpdGrantRuleRequest::setGrantTenantId(const std::string &grantTenantId) {
grantTenantId_ = grantTenantId;
setBodyParameter(std::string("GrantTenantId"), grantTenantId);
}
std::string DeleteVpdGrantRuleRequest::getInstanceId() const {
return instanceId_;
}
void DeleteVpdGrantRuleRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
}
std::string DeleteVpdGrantRuleRequest::getGrantRuleId() const {
return grantRuleId_;
}
void DeleteVpdGrantRuleRequest::setGrantRuleId(const std::string &grantRuleId) {
grantRuleId_ = grantRuleId;
setBodyParameter(std::string("GrantRuleId"), grantRuleId);
}
std::string DeleteVpdGrantRuleRequest::getRegionId() const {
return regionId_;
}
void DeleteVpdGrantRuleRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

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/eflo/model/DeleteVpdGrantRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
DeleteVpdGrantRuleResult::DeleteVpdGrantRuleResult() :
ServiceResult()
{}
DeleteVpdGrantRuleResult::DeleteVpdGrantRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteVpdGrantRuleResult::~DeleteVpdGrantRuleResult()
{}
void DeleteVpdGrantRuleResult::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/eflo/model/DescribeSlrRequest.h>
using AlibabaCloud::Eflo::Model::DescribeSlrRequest;
DescribeSlrRequest::DescribeSlrRequest()
: RpcServiceRequest("eflo", "2022-05-30", "DescribeSlr") {
setMethod(HttpRequest::Method::Post);
}
DescribeSlrRequest::~DescribeSlrRequest() {}
std::string DescribeSlrRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeSlrRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/DescribeSlrResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
DescribeSlrResult::DescribeSlrResult() :
ServiceResult()
{}
DescribeSlrResult::DescribeSlrResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSlrResult::~DescribeSlrResult()
{}
void DescribeSlrResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["HasRole"].isNull())
content_.hasRole = contentNode["HasRole"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeSlrResult::getMessage()const
{
return message_;
}
DescribeSlrResult::Content DescribeSlrResult::getContent()const
{
return content_;
}
int DescribeSlrResult::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/eflo/model/GetElasticNetworkInterfaceRequest.h>
using AlibabaCloud::Eflo::Model::GetElasticNetworkInterfaceRequest;
GetElasticNetworkInterfaceRequest::GetElasticNetworkInterfaceRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetElasticNetworkInterface") {
setMethod(HttpRequest::Method::Post);
}
GetElasticNetworkInterfaceRequest::~GetElasticNetworkInterfaceRequest() {}
std::string GetElasticNetworkInterfaceRequest::getRegionId() const {
return regionId_;
}
void GetElasticNetworkInterfaceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string GetElasticNetworkInterfaceRequest::getElasticNetworkInterfaceId() const {
return elasticNetworkInterfaceId_;
}
void GetElasticNetworkInterfaceRequest::setElasticNetworkInterfaceId(const std::string &elasticNetworkInterfaceId) {
elasticNetworkInterfaceId_ = elasticNetworkInterfaceId;
setBodyParameter(std::string("ElasticNetworkInterfaceId"), elasticNetworkInterfaceId);
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetElasticNetworkInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetElasticNetworkInterfaceResult::GetElasticNetworkInterfaceResult() :
ServiceResult()
{}
GetElasticNetworkInterfaceResult::GetElasticNetworkInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetElasticNetworkInterfaceResult::~GetElasticNetworkInterfaceResult()
{}
void GetElasticNetworkInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["ZoneId"].isNull())
content_.zoneId = contentNode["ZoneId"].asString();
if(!contentNode["ElasticNetworkInterfaceId"].isNull())
content_.elasticNetworkInterfaceId = contentNode["ElasticNetworkInterfaceId"].asString();
if(!contentNode["NodeId"].isNull())
content_.nodeId = contentNode["NodeId"].asString();
if(!contentNode["Status"].isNull())
content_.status = contentNode["Status"].asString();
if(!contentNode["Ip"].isNull())
content_.ip = contentNode["Ip"].asString();
if(!contentNode["VpcId"].isNull())
content_.vpcId = contentNode["VpcId"].asString();
if(!contentNode["VSwitchId"].isNull())
content_.vSwitchId = contentNode["VSwitchId"].asString();
if(!contentNode["Message"].isNull())
content_.message = contentNode["Message"].asString();
if(!contentNode["Mac"].isNull())
content_.mac = contentNode["Mac"].asString();
if(!contentNode["Type"].isNull())
content_.type = contentNode["Type"].asString();
if(!contentNode["Gateway"].isNull())
content_.gateway = contentNode["Gateway"].asString();
if(!contentNode["Mask"].isNull())
content_.mask = contentNode["Mask"].asString();
if(!contentNode["CreateTime"].isNull())
content_.createTime = contentNode["CreateTime"].asString();
if(!contentNode["GmtModified"].isNull())
content_.gmtModified = contentNode["GmtModified"].asString();
if(!contentNode["Description"].isNull())
content_.description = contentNode["Description"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetElasticNetworkInterfaceResult::getMessage()const
{
return message_;
}
GetElasticNetworkInterfaceResult::Content GetElasticNetworkInterfaceResult::getContent()const
{
return content_;
}
int GetElasticNetworkInterfaceResult::getCode()const
{
return code_;
}

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/eflo/model/GetErAttachmentRequest.h>
using AlibabaCloud::Eflo::Model::GetErAttachmentRequest;
GetErAttachmentRequest::GetErAttachmentRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetErAttachment") {
setMethod(HttpRequest::Method::Post);
}
GetErAttachmentRequest::~GetErAttachmentRequest() {}
std::string GetErAttachmentRequest::getErId() const {
return erId_;
}
void GetErAttachmentRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string GetErAttachmentRequest::getErAttachmentId() const {
return erAttachmentId_;
}
void GetErAttachmentRequest::setErAttachmentId(const std::string &erAttachmentId) {
erAttachmentId_ = erAttachmentId;
setBodyParameter(std::string("ErAttachmentId"), erAttachmentId);
}
std::string GetErAttachmentRequest::getRegionId() const {
return regionId_;
}
void GetErAttachmentRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetErAttachmentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetErAttachmentResult::GetErAttachmentResult() :
ServiceResult()
{}
GetErAttachmentResult::GetErAttachmentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetErAttachmentResult::~GetErAttachmentResult()
{}
void GetErAttachmentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["CreateTime"].isNull())
content_.createTime = contentNode["CreateTime"].asString();
if(!contentNode["GmtModified"].isNull())
content_.gmtModified = contentNode["GmtModified"].asString();
if(!contentNode["Message"].isNull())
content_.message = contentNode["Message"].asString();
if(!contentNode["Status"].isNull())
content_.status = contentNode["Status"].asString();
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["TenantId"].isNull())
content_.tenantId = contentNode["TenantId"].asString();
if(!contentNode["ErAttachmentName"].isNull())
content_.erAttachmentName = contentNode["ErAttachmentName"].asString();
if(!contentNode["ErAttachmentId"].isNull())
content_.erAttachmentId = contentNode["ErAttachmentId"].asString();
if(!contentNode["ErId"].isNull())
content_.erId = contentNode["ErId"].asString();
if(!contentNode["InstanceType"].isNull())
content_.instanceType = contentNode["InstanceType"].asString();
if(!contentNode["InstanceId"].isNull())
content_.instanceId = contentNode["InstanceId"].asString();
if(!contentNode["InstanceName"].isNull())
content_.instanceName = contentNode["InstanceName"].asString();
if(!contentNode["AutoReceiveAllRoute"].isNull())
content_.autoReceiveAllRoute = contentNode["AutoReceiveAllRoute"].asString() == "true";
if(!contentNode["Across"].isNull())
content_.across = contentNode["Across"].asString() == "true";
if(!contentNode["ResourceTenantId"].isNull())
content_.resourceTenantId = contentNode["ResourceTenantId"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetErAttachmentResult::getMessage()const
{
return message_;
}
GetErAttachmentResult::Content GetErAttachmentResult::getContent()const
{
return content_;
}
int GetErAttachmentResult::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/eflo/model/GetErRequest.h>
using AlibabaCloud::Eflo::Model::GetErRequest;
GetErRequest::GetErRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetEr") {
setMethod(HttpRequest::Method::Post);
}
GetErRequest::~GetErRequest() {}
std::string GetErRequest::getErId() const {
return erId_;
}
void GetErRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string GetErRequest::getRegionId() const {
return regionId_;
}
void GetErRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,196 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetErResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetErResult::GetErResult() :
ServiceResult()
{}
GetErResult::GetErResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetErResult::~GetErResult()
{}
void GetErResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["CreateTime"].isNull())
content_.createTime = contentNode["CreateTime"].asString();
if(!contentNode["GmtModified"].isNull())
content_.gmtModified = contentNode["GmtModified"].asString();
if(!contentNode["Message"].isNull())
content_.message = contentNode["Message"].asString();
if(!contentNode["ErId"].isNull())
content_.erId = contentNode["ErId"].asString();
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["TenantId"].isNull())
content_.tenantId = contentNode["TenantId"].asString();
if(!contentNode["Status"].isNull())
content_.status = contentNode["Status"].asString();
if(!contentNode["ErName"].isNull())
content_.erName = contentNode["ErName"].asString();
if(!contentNode["MasterZoneId"].isNull())
content_.masterZoneId = contentNode["MasterZoneId"].asString();
if(!contentNode["Description"].isNull())
content_.description = contentNode["Description"].asString();
auto allErAttachmentsNode = contentNode["ErAttachments"]["ErAttachment"];
for (auto contentNodeErAttachmentsErAttachment : allErAttachmentsNode)
{
Content::ErAttachment erAttachmentObject;
if(!contentNodeErAttachmentsErAttachment["CreateTime"].isNull())
erAttachmentObject.createTime = contentNodeErAttachmentsErAttachment["CreateTime"].asString();
if(!contentNodeErAttachmentsErAttachment["GmtModified"].isNull())
erAttachmentObject.gmtModified = contentNodeErAttachmentsErAttachment["GmtModified"].asString();
if(!contentNodeErAttachmentsErAttachment["Message"].isNull())
erAttachmentObject.message = contentNodeErAttachmentsErAttachment["Message"].asString();
if(!contentNodeErAttachmentsErAttachment["Status"].isNull())
erAttachmentObject.status = contentNodeErAttachmentsErAttachment["Status"].asString();
if(!contentNodeErAttachmentsErAttachment["RegionId"].isNull())
erAttachmentObject.regionId = contentNodeErAttachmentsErAttachment["RegionId"].asString();
if(!contentNodeErAttachmentsErAttachment["TenantId"].isNull())
erAttachmentObject.tenantId = contentNodeErAttachmentsErAttachment["TenantId"].asString();
if(!contentNodeErAttachmentsErAttachment["ErAttachmentName"].isNull())
erAttachmentObject.erAttachmentName = contentNodeErAttachmentsErAttachment["ErAttachmentName"].asString();
if(!contentNodeErAttachmentsErAttachment["ErAttachmentId"].isNull())
erAttachmentObject.erAttachmentId = contentNodeErAttachmentsErAttachment["ErAttachmentId"].asString();
if(!contentNodeErAttachmentsErAttachment["ErId"].isNull())
erAttachmentObject.erId = contentNodeErAttachmentsErAttachment["ErId"].asString();
if(!contentNodeErAttachmentsErAttachment["InstanceType"].isNull())
erAttachmentObject.instanceType = contentNodeErAttachmentsErAttachment["InstanceType"].asString();
if(!contentNodeErAttachmentsErAttachment["InstanceId"].isNull())
erAttachmentObject.instanceId = contentNodeErAttachmentsErAttachment["InstanceId"].asString();
if(!contentNodeErAttachmentsErAttachment["InstanceName"].isNull())
erAttachmentObject.instanceName = contentNodeErAttachmentsErAttachment["InstanceName"].asString();
if(!contentNodeErAttachmentsErAttachment["AutoReceiveAllRoute"].isNull())
erAttachmentObject.autoReceiveAllRoute = contentNodeErAttachmentsErAttachment["AutoReceiveAllRoute"].asString() == "true";
if(!contentNodeErAttachmentsErAttachment["Across"].isNull())
erAttachmentObject.across = contentNodeErAttachmentsErAttachment["Across"].asString() == "true";
if(!contentNodeErAttachmentsErAttachment["ResourceTenantId"].isNull())
erAttachmentObject.resourceTenantId = contentNodeErAttachmentsErAttachment["ResourceTenantId"].asString();
content_.erAttachments.push_back(erAttachmentObject);
}
auto allErRouteMapsNode = contentNode["ErRouteMaps"]["ErRouteMap"];
for (auto contentNodeErRouteMapsErRouteMap : allErRouteMapsNode)
{
Content::ErRouteMap erRouteMapObject;
if(!contentNodeErRouteMapsErRouteMap["RegionId"].isNull())
erRouteMapObject.regionId = contentNodeErRouteMapsErRouteMap["RegionId"].asString();
if(!contentNodeErRouteMapsErRouteMap["TenantId"].isNull())
erRouteMapObject.tenantId = contentNodeErRouteMapsErRouteMap["TenantId"].asString();
if(!contentNodeErRouteMapsErRouteMap["CreateTime"].isNull())
erRouteMapObject.createTime = contentNodeErRouteMapsErRouteMap["CreateTime"].asString();
if(!contentNodeErRouteMapsErRouteMap["GmtModified"].isNull())
erRouteMapObject.gmtModified = contentNodeErRouteMapsErRouteMap["GmtModified"].asString();
if(!contentNodeErRouteMapsErRouteMap["Message"].isNull())
erRouteMapObject.message = contentNodeErRouteMapsErRouteMap["Message"].asString();
if(!contentNodeErRouteMapsErRouteMap["Status"].isNull())
erRouteMapObject.status = contentNodeErRouteMapsErRouteMap["Status"].asString();
if(!contentNodeErRouteMapsErRouteMap["ErRouteMapName"].isNull())
erRouteMapObject.erRouteMapName = contentNodeErRouteMapsErRouteMap["ErRouteMapName"].asString();
if(!contentNodeErRouteMapsErRouteMap["ErRouteMapId"].isNull())
erRouteMapObject.erRouteMapId = contentNodeErRouteMapsErRouteMap["ErRouteMapId"].asString();
if(!contentNodeErRouteMapsErRouteMap["ErId"].isNull())
erRouteMapObject.erId = contentNodeErRouteMapsErRouteMap["ErId"].asString();
if(!contentNodeErRouteMapsErRouteMap["RouteMapNum"].isNull())
erRouteMapObject.routeMapNum = std::stoi(contentNodeErRouteMapsErRouteMap["RouteMapNum"].asString());
if(!contentNodeErRouteMapsErRouteMap["Description"].isNull())
erRouteMapObject.description = contentNodeErRouteMapsErRouteMap["Description"].asString();
if(!contentNodeErRouteMapsErRouteMap["DestinationCidrBlock"].isNull())
erRouteMapObject.destinationCidrBlock = contentNodeErRouteMapsErRouteMap["DestinationCidrBlock"].asString();
if(!contentNodeErRouteMapsErRouteMap["TransmissionInstanceName"].isNull())
erRouteMapObject.transmissionInstanceName = contentNodeErRouteMapsErRouteMap["TransmissionInstanceName"].asString();
if(!contentNodeErRouteMapsErRouteMap["TransmissionInstanceId"].isNull())
erRouteMapObject.transmissionInstanceId = contentNodeErRouteMapsErRouteMap["TransmissionInstanceId"].asString();
if(!contentNodeErRouteMapsErRouteMap["TransmissionInstanceType"].isNull())
erRouteMapObject.transmissionInstanceType = contentNodeErRouteMapsErRouteMap["TransmissionInstanceType"].asString();
if(!contentNodeErRouteMapsErRouteMap["ReceptionInstanceName"].isNull())
erRouteMapObject.receptionInstanceName = contentNodeErRouteMapsErRouteMap["ReceptionInstanceName"].asString();
if(!contentNodeErRouteMapsErRouteMap["ReceptionInstanceId"].isNull())
erRouteMapObject.receptionInstanceId = contentNodeErRouteMapsErRouteMap["ReceptionInstanceId"].asString();
if(!contentNodeErRouteMapsErRouteMap["ReceptionInstanceType"].isNull())
erRouteMapObject.receptionInstanceType = contentNodeErRouteMapsErRouteMap["ReceptionInstanceType"].asString();
if(!contentNodeErRouteMapsErRouteMap["Action"].isNull())
erRouteMapObject.action = contentNodeErRouteMapsErRouteMap["Action"].asString();
if(!contentNodeErRouteMapsErRouteMap["TransmissionInstanceOwner"].isNull())
erRouteMapObject.transmissionInstanceOwner = contentNodeErRouteMapsErRouteMap["TransmissionInstanceOwner"].asString();
if(!contentNodeErRouteMapsErRouteMap["ReceptionInstanceOwner"].isNull())
erRouteMapObject.receptionInstanceOwner = contentNodeErRouteMapsErRouteMap["ReceptionInstanceOwner"].asString();
content_.erRouteMaps.push_back(erRouteMapObject);
}
auto allErRouteEntrysNode = contentNode["ErRouteEntrys"]["ErRouteEntry"];
for (auto contentNodeErRouteEntrysErRouteEntry : allErRouteEntrysNode)
{
Content::ErRouteEntry erRouteEntryObject;
if(!contentNodeErRouteEntrysErRouteEntry["ErId"].isNull())
erRouteEntryObject.erId = contentNodeErRouteEntrysErRouteEntry["ErId"].asString();
if(!contentNodeErRouteEntrysErRouteEntry["TenantId"].isNull())
erRouteEntryObject.tenantId = contentNodeErRouteEntrysErRouteEntry["TenantId"].asString();
if(!contentNodeErRouteEntrysErRouteEntry["ResourceTenantId"].isNull())
erRouteEntryObject.resourceTenantId = contentNodeErRouteEntrysErRouteEntry["ResourceTenantId"].asString();
if(!contentNodeErRouteEntrysErRouteEntry["RegionId"].isNull())
erRouteEntryObject.regionId = contentNodeErRouteEntrysErRouteEntry["RegionId"].asString();
if(!contentNodeErRouteEntrysErRouteEntry["ErRouteEntryId"].isNull())
erRouteEntryObject.erRouteEntryId = contentNodeErRouteEntrysErRouteEntry["ErRouteEntryId"].asString();
if(!contentNodeErRouteEntrysErRouteEntry["DestinationCidrBlock"].isNull())
erRouteEntryObject.destinationCidrBlock = contentNodeErRouteEntrysErRouteEntry["DestinationCidrBlock"].asString();
if(!contentNodeErRouteEntrysErRouteEntry["NextHopType"].isNull())
erRouteEntryObject.nextHopType = contentNodeErRouteEntrysErRouteEntry["NextHopType"].asString();
if(!contentNodeErRouteEntrysErRouteEntry["NextHopId"].isNull())
erRouteEntryObject.nextHopId = contentNodeErRouteEntrysErRouteEntry["NextHopId"].asString();
if(!contentNodeErRouteEntrysErRouteEntry["RouteType"].isNull())
erRouteEntryObject.routeType = contentNodeErRouteEntrysErRouteEntry["RouteType"].asString();
if(!contentNodeErRouteEntrysErRouteEntry["Status"].isNull())
erRouteEntryObject.status = contentNodeErRouteEntrysErRouteEntry["Status"].asString();
if(!contentNodeErRouteEntrysErRouteEntry["GmtModified"].isNull())
erRouteEntryObject.gmtModified = contentNodeErRouteEntrysErRouteEntry["GmtModified"].asString();
content_.erRouteEntrys.push_back(erRouteEntryObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetErResult::getMessage()const
{
return message_;
}
GetErResult::Content GetErResult::getContent()const
{
return content_;
}
int GetErResult::getCode()const
{
return code_;
}

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/eflo/model/GetErRouteEntryRequest.h>
using AlibabaCloud::Eflo::Model::GetErRouteEntryRequest;
GetErRouteEntryRequest::GetErRouteEntryRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetErRouteEntry") {
setMethod(HttpRequest::Method::Post);
}
GetErRouteEntryRequest::~GetErRouteEntryRequest() {}
std::string GetErRouteEntryRequest::getErId() const {
return erId_;
}
void GetErRouteEntryRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string GetErRouteEntryRequest::getRegionId() const {
return regionId_;
}
void GetErRouteEntryRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string GetErRouteEntryRequest::getErRouteEntryId() const {
return erRouteEntryId_;
}
void GetErRouteEntryRequest::setErRouteEntryId(const std::string &erRouteEntryId) {
erRouteEntryId_ = erRouteEntryId;
setBodyParameter(std::string("ErRouteEntryId"), erRouteEntryId);
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetErRouteEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetErRouteEntryResult::GetErRouteEntryResult() :
ServiceResult()
{}
GetErRouteEntryResult::GetErRouteEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetErRouteEntryResult::~GetErRouteEntryResult()
{}
void GetErRouteEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["ErRouteEntryId"].isNull())
content_.erRouteEntryId = contentNode["ErRouteEntryId"].asString();
if(!contentNode["TenantId"].isNull())
content_.tenantId = contentNode["TenantId"].asString();
if(!contentNode["ErId"].isNull())
content_.erId = contentNode["ErId"].asString();
if(!contentNode["DestinationCidrBlock"].isNull())
content_.destinationCidrBlock = contentNode["DestinationCidrBlock"].asString();
if(!contentNode["NextHopType"].isNull())
content_.nextHopType = contentNode["NextHopType"].asString();
if(!contentNode["NextHopId"].isNull())
content_.nextHopId = contentNode["NextHopId"].asString();
if(!contentNode["RouteType"].isNull())
content_.routeType = contentNode["RouteType"].asString();
if(!contentNode["Status"].isNull())
content_.status = contentNode["Status"].asString();
if(!contentNode["GmtModified"].isNull())
content_.gmtModified = contentNode["GmtModified"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetErRouteEntryResult::getMessage()const
{
return message_;
}
GetErRouteEntryResult::Content GetErRouteEntryResult::getContent()const
{
return content_;
}
int GetErRouteEntryResult::getCode()const
{
return code_;
}

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/eflo/model/GetErRouteMapRequest.h>
using AlibabaCloud::Eflo::Model::GetErRouteMapRequest;
GetErRouteMapRequest::GetErRouteMapRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetErRouteMap") {
setMethod(HttpRequest::Method::Post);
}
GetErRouteMapRequest::~GetErRouteMapRequest() {}
std::string GetErRouteMapRequest::getErId() const {
return erId_;
}
void GetErRouteMapRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string GetErRouteMapRequest::getErRouteMapId() const {
return erRouteMapId_;
}
void GetErRouteMapRequest::setErRouteMapId(const std::string &erRouteMapId) {
erRouteMapId_ = erRouteMapId;
setBodyParameter(std::string("ErRouteMapId"), erRouteMapId);
}
std::string GetErRouteMapRequest::getRegionId() const {
return regionId_;
}
void GetErRouteMapRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetErRouteMapResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetErRouteMapResult::GetErRouteMapResult() :
ServiceResult()
{}
GetErRouteMapResult::GetErRouteMapResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetErRouteMapResult::~GetErRouteMapResult()
{}
void GetErRouteMapResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["TenantId"].isNull())
content_.tenantId = contentNode["TenantId"].asString();
if(!contentNode["GmtCreate"].isNull())
content_.gmtCreate = contentNode["GmtCreate"].asString();
if(!contentNode["GmtModified"].isNull())
content_.gmtModified = contentNode["GmtModified"].asString();
if(!contentNode["Message"].isNull())
content_.message = contentNode["Message"].asString();
if(!contentNode["Status"].isNull())
content_.status = contentNode["Status"].asString();
if(!contentNode["ErRouteMapName"].isNull())
content_.erRouteMapName = contentNode["ErRouteMapName"].asString();
if(!contentNode["ErRouteMapId"].isNull())
content_.erRouteMapId = contentNode["ErRouteMapId"].asString();
if(!contentNode["ErId"].isNull())
content_.erId = contentNode["ErId"].asString();
if(!contentNode["RouteMapNum"].isNull())
content_.routeMapNum = std::stoi(contentNode["RouteMapNum"].asString());
if(!contentNode["Description"].isNull())
content_.description = contentNode["Description"].asString();
if(!contentNode["DestinationCidrBlock"].isNull())
content_.destinationCidrBlock = contentNode["DestinationCidrBlock"].asString();
if(!contentNode["TransmissionInstanceName"].isNull())
content_.transmissionInstanceName = contentNode["TransmissionInstanceName"].asString();
if(!contentNode["TransmissionInstanceId"].isNull())
content_.transmissionInstanceId = contentNode["TransmissionInstanceId"].asString();
if(!contentNode["TransmissionInstanceType"].isNull())
content_.transmissionInstanceType = contentNode["TransmissionInstanceType"].asString();
if(!contentNode["ReceptionInstanceName"].isNull())
content_.receptionInstanceName = contentNode["ReceptionInstanceName"].asString();
if(!contentNode["ReceptionInstanceId"].isNull())
content_.receptionInstanceId = contentNode["ReceptionInstanceId"].asString();
if(!contentNode["ReceptionInstanceType"].isNull())
content_.receptionInstanceType = contentNode["ReceptionInstanceType"].asString();
if(!contentNode["Action"].isNull())
content_.action = contentNode["Action"].asString();
if(!contentNode["TransmissionInstanceOwner"].isNull())
content_.transmissionInstanceOwner = contentNode["TransmissionInstanceOwner"].asString();
if(!contentNode["ReceptionInstanceOwner"].isNull())
content_.receptionInstanceOwner = contentNode["ReceptionInstanceOwner"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetErRouteMapResult::getMessage()const
{
return message_;
}
GetErRouteMapResult::Content GetErRouteMapResult::getContent()const
{
return content_;
}
int GetErRouteMapResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetFabricTopologyRequest.h>
using AlibabaCloud::Eflo::Model::GetFabricTopologyRequest;
GetFabricTopologyRequest::GetFabricTopologyRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetFabricTopology") {
setMethod(HttpRequest::Method::Post);
}
GetFabricTopologyRequest::~GetFabricTopologyRequest() {}
std::string GetFabricTopologyRequest::getRegionId() const {
return regionId_;
}
void GetFabricTopologyRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string GetFabricTopologyRequest::getVpdId() const {
return vpdId_;
}
void GetFabricTopologyRequest::setVpdId(const std::string &vpdId) {
vpdId_ = vpdId;
setBodyParameter(std::string("VpdId"), vpdId);
}
std::vector<std::string> GetFabricTopologyRequest::getLniIds() const {
return lniIds_;
}
void GetFabricTopologyRequest::setLniIds(const std::vector<std::string> &lniIds) {
lniIds_ = lniIds;
}
std::vector<std::string> GetFabricTopologyRequest::getNodeIds() const {
return nodeIds_;
}
void GetFabricTopologyRequest::setNodeIds(const std::vector<std::string> &nodeIds) {
nodeIds_ = nodeIds;
}

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/eflo/model/GetFabricTopologyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetFabricTopologyResult::GetFabricTopologyResult() :
ServiceResult()
{}
GetFabricTopologyResult::GetFabricTopologyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetFabricTopologyResult::~GetFabricTopologyResult()
{}
void GetFabricTopologyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["VpdId"].isNull())
content_.vpdId = contentNode["VpdId"].asString();
auto allTopoInfoNode = contentNode["TopoInfo"]["Layer"];
for (auto contentNodeTopoInfoLayer : allTopoInfoNode)
{
Content::Layer layerObject;
if(!contentNodeTopoInfoLayer["LayerType"].isNull())
layerObject.layerType = contentNodeTopoInfoLayer["LayerType"].asString();
if(!contentNodeTopoInfoLayer["LayerName"].isNull())
layerObject.layerName = contentNodeTopoInfoLayer["LayerName"].asString();
auto allNextLayer = value["NextLayer"]["Layer"];
for (auto value : allNextLayer)
layerObject.nextLayer.push_back(value.asString());
content_.topoInfo.push_back(layerObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetFabricTopologyResult::getMessage()const
{
return message_;
}
GetFabricTopologyResult::Content GetFabricTopologyResult::getContent()const
{
return content_;
}
int GetFabricTopologyResult::getCode()const
{
return code_;
}

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/eflo/model/GetLniPrivateIpAddressRequest.h>
using AlibabaCloud::Eflo::Model::GetLniPrivateIpAddressRequest;
GetLniPrivateIpAddressRequest::GetLniPrivateIpAddressRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetLniPrivateIpAddress") {
setMethod(HttpRequest::Method::Post);
}
GetLniPrivateIpAddressRequest::~GetLniPrivateIpAddressRequest() {}
std::string GetLniPrivateIpAddressRequest::getRegionId() const {
return regionId_;
}
void GetLniPrivateIpAddressRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string GetLniPrivateIpAddressRequest::getIpName() const {
return ipName_;
}
void GetLniPrivateIpAddressRequest::setIpName(const std::string &ipName) {
ipName_ = ipName;
setBodyParameter(std::string("IpName"), ipName);
}
std::string GetLniPrivateIpAddressRequest::getNetworkInterfaceId() const {
return networkInterfaceId_;
}
void GetLniPrivateIpAddressRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
networkInterfaceId_ = networkInterfaceId;
setBodyParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetLniPrivateIpAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetLniPrivateIpAddressResult::GetLniPrivateIpAddressResult() :
ServiceResult()
{}
GetLniPrivateIpAddressResult::GetLniPrivateIpAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetLniPrivateIpAddressResult::~GetLniPrivateIpAddressResult()
{}
void GetLniPrivateIpAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["GmtCreate"].isNull())
content_.gmtCreate = contentNode["GmtCreate"].asString();
if(!contentNode["NetworkInterfaceId"].isNull())
content_.networkInterfaceId = contentNode["NetworkInterfaceId"].asString();
if(!contentNode["IpName"].isNull())
content_.ipName = contentNode["IpName"].asString();
if(!contentNode["PrivateIpAddress"].isNull())
content_.privateIpAddress = contentNode["PrivateIpAddress"].asString();
if(!contentNode["IpAddressMac"].isNull())
content_.ipAddressMac = contentNode["IpAddressMac"].asString();
if(!contentNode["Status"].isNull())
content_.status = contentNode["Status"].asString();
if(!contentNode["Description"].isNull())
content_.description = contentNode["Description"].asString();
if(!contentNode["Message"].isNull())
content_.message = contentNode["Message"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetLniPrivateIpAddressResult::getMessage()const
{
return message_;
}
GetLniPrivateIpAddressResult::Content GetLniPrivateIpAddressResult::getContent()const
{
return content_;
}
int GetLniPrivateIpAddressResult::getCode()const
{
return code_;
}

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/eflo/model/GetNetworkInterfaceRequest.h>
using AlibabaCloud::Eflo::Model::GetNetworkInterfaceRequest;
GetNetworkInterfaceRequest::GetNetworkInterfaceRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetNetworkInterface") {
setMethod(HttpRequest::Method::Post);
}
GetNetworkInterfaceRequest::~GetNetworkInterfaceRequest() {}
std::string GetNetworkInterfaceRequest::getSubnetId() const {
return subnetId_;
}
void GetNetworkInterfaceRequest::setSubnetId(const std::string &subnetId) {
subnetId_ = subnetId;
setBodyParameter(std::string("SubnetId"), subnetId);
}
std::string GetNetworkInterfaceRequest::getRegionId() const {
return regionId_;
}
void GetNetworkInterfaceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string GetNetworkInterfaceRequest::getNetworkInterfaceId() const {
return networkInterfaceId_;
}
void GetNetworkInterfaceRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
networkInterfaceId_ = networkInterfaceId;
setBodyParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
}

View File

@@ -0,0 +1,129 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetNetworkInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetNetworkInterfaceResult::GetNetworkInterfaceResult() :
ServiceResult()
{}
GetNetworkInterfaceResult::GetNetworkInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNetworkInterfaceResult::~GetNetworkInterfaceResult()
{}
void GetNetworkInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["TenantId"].isNull())
content_.tenantId = contentNode["TenantId"].asString();
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["NetworkInterfaceId"].isNull())
content_.networkInterfaceId = contentNode["NetworkInterfaceId"].asString();
if(!contentNode["NodeId"].isNull())
content_.nodeId = contentNode["NodeId"].asString();
if(!contentNode["ZoneId"].isNull())
content_.zoneId = contentNode["ZoneId"].asString();
if(!contentNode["Ip"].isNull())
content_.ip = contentNode["Ip"].asString();
if(!contentNode["ServiceMac"].isNull())
content_.serviceMac = contentNode["ServiceMac"].asString();
if(!contentNode["Status"].isNull())
content_.status = contentNode["Status"].asString();
if(!contentNode["Gateway"].isNull())
content_.gateway = contentNode["Gateway"].asString();
if(!contentNode["CreateTime"].isNull())
content_.createTime = contentNode["CreateTime"].asString();
if(!contentNode["Quota"].isNull())
content_.quota = std::stoi(contentNode["Quota"].asString());
if(!contentNode["NcType"].isNull())
content_.ncType = contentNode["NcType"].asString();
if(!contentNode["NetworkInterfaceName"].isNull())
content_.networkInterfaceName = contentNode["NetworkInterfaceName"].asString();
auto allPrivateIpAddressMacGroupNode = contentNode["PrivateIpAddressMacGroup"]["PrivateIpAddressMacGroupItem"];
for (auto contentNodePrivateIpAddressMacGroupPrivateIpAddressMacGroupItem : allPrivateIpAddressMacGroupNode)
{
Content::PrivateIpAddressMacGroupItem privateIpAddressMacGroupItemObject;
if(!contentNodePrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["IpName"].isNull())
privateIpAddressMacGroupItemObject.ipName = contentNodePrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["IpName"].asString();
if(!contentNodePrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["PrivateIpAddress"].isNull())
privateIpAddressMacGroupItemObject.privateIpAddress = contentNodePrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["PrivateIpAddress"].asString();
if(!contentNodePrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["IpAddressMac"].isNull())
privateIpAddressMacGroupItemObject.ipAddressMac = contentNodePrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["IpAddressMac"].asString();
if(!contentNodePrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["Status"].isNull())
privateIpAddressMacGroupItemObject.status = contentNodePrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["Status"].asString();
if(!contentNodePrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["Description"].isNull())
privateIpAddressMacGroupItemObject.description = contentNodePrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["Description"].asString();
if(!contentNodePrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["Message"].isNull())
privateIpAddressMacGroupItemObject.message = contentNodePrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["Message"].asString();
content_.privateIpAddressMacGroup.push_back(privateIpAddressMacGroupItemObject);
}
auto vpdBaseInfoNode = contentNode["VpdBaseInfo"];
if(!vpdBaseInfoNode["VpdId"].isNull())
content_.vpdBaseInfo.vpdId = vpdBaseInfoNode["VpdId"].asString();
if(!vpdBaseInfoNode["VpdName"].isNull())
content_.vpdBaseInfo.vpdName = vpdBaseInfoNode["VpdName"].asString();
if(!vpdBaseInfoNode["Cidr"].isNull())
content_.vpdBaseInfo.cidr = vpdBaseInfoNode["Cidr"].asString();
if(!vpdBaseInfoNode["CreateTime"].isNull())
content_.vpdBaseInfo.createTime = vpdBaseInfoNode["CreateTime"].asString();
auto subnetBaseInfoNode = contentNode["SubnetBaseInfo"];
if(!subnetBaseInfoNode["SubnetId"].isNull())
content_.subnetBaseInfo.subnetId = subnetBaseInfoNode["SubnetId"].asString();
if(!subnetBaseInfoNode["SubnetName"].isNull())
content_.subnetBaseInfo.subnetName = subnetBaseInfoNode["SubnetName"].asString();
if(!subnetBaseInfoNode["Cidr"].isNull())
content_.subnetBaseInfo.cidr = subnetBaseInfoNode["Cidr"].asString();
if(!subnetBaseInfoNode["CreateTime"].isNull())
content_.subnetBaseInfo.createTime = subnetBaseInfoNode["CreateTime"].asString();
auto allEthernet = contentNode["Ethernet"]["Ethernet"];
for (auto value : allEthernet)
content_.ethernet.push_back(value.asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetNetworkInterfaceResult::getMessage()const
{
return message_;
}
GetNetworkInterfaceResult::Content GetNetworkInterfaceResult::getContent()const
{
return content_;
}
int GetNetworkInterfaceResult::getCode()const
{
return code_;
}

View File

@@ -34,3 +34,21 @@ void GetSubnetRequest::setSubnetId(const std::string &subnetId) {
setBodyParameter(std::string("SubnetId"), subnetId);
}
std::string GetSubnetRequest::getRegionId() const {
return regionId_;
}
void GetSubnetRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string GetSubnetRequest::getVpdId() const {
return vpdId_;
}
void GetSubnetRequest::setVpdId(const std::string &vpdId) {
vpdId_ = vpdId;
setBodyParameter(std::string("VpdId"), vpdId);
}

View File

@@ -40,10 +40,8 @@ void GetSubnetResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Id"].isNull())
content_.id = std::stol(contentNode["Id"].asString());
if(!contentNode["GmtCreate"].isNull())
content_.gmtCreate = contentNode["GmtCreate"].asString();
if(!contentNode["CreateTime"].isNull())
content_.createTime = contentNode["CreateTime"].asString();
if(!contentNode["GmtModified"].isNull())
content_.gmtModified = contentNode["GmtModified"].asString();
if(!contentNode["TenantId"].isNull())
@@ -54,12 +52,10 @@ void GetSubnetResult::parse(const std::string &payload)
content_.zoneId = contentNode["ZoneId"].asString();
if(!contentNode["SubnetId"].isNull())
content_.subnetId = contentNode["SubnetId"].asString();
if(!contentNode["Name"].isNull())
content_.name = contentNode["Name"].asString();
if(!contentNode["SubnetName"].isNull())
content_.subnetName = contentNode["SubnetName"].asString();
if(!contentNode["Cidr"].isNull())
content_.cidr = contentNode["Cidr"].asString();
if(!contentNode["Description"].isNull())
content_.description = contentNode["Description"].asString();
if(!contentNode["VpdId"].isNull())
content_.vpdId = contentNode["VpdId"].asString();
if(!contentNode["Type"].isNull())
@@ -69,18 +65,36 @@ void GetSubnetResult::parse(const std::string &payload)
if(!contentNode["Message"].isNull())
content_.message = contentNode["Message"].asString();
if(!contentNode["NcCount"].isNull())
content_.ncCount = std::stol(contentNode["NcCount"].asString());
content_.ncCount = std::stoi(contentNode["NcCount"].asString());
if(!contentNode["NetworkInterfaceCount"].isNull())
content_.networkInterfaceCount = std::stoi(contentNode["NetworkInterfaceCount"].asString());
if(!contentNode["LbCount"].isNull())
content_.lbCount = std::stol(contentNode["LbCount"].asString());
if(!contentNode["ResourceGroupId"].isNull())
content_.resourceGroupId = contentNode["ResourceGroupId"].asString();
if(!contentNode["PrivateIpCount"].isNull())
content_.privateIpCount = std::stol(contentNode["PrivateIpCount"].asString());
if(!contentNode["AvailableIps"].isNull())
content_.availableIps = std::stoi(contentNode["AvailableIps"].asString());
auto allTagsNode = contentNode["Tags"]["Tag"];
for (auto contentNodeTagsTag : allTagsNode)
{
Content::Tag tagObject;
if(!contentNodeTagsTag["TagKey"].isNull())
tagObject.tagKey = contentNodeTagsTag["TagKey"].asString();
if(!contentNodeTagsTag["TagValue"].isNull())
tagObject.tagValue = contentNodeTagsTag["TagValue"].asString();
content_.tags.push_back(tagObject);
}
auto vpdBaseInfoNode = contentNode["VpdBaseInfo"];
if(!vpdBaseInfoNode["VpdId"].isNull())
content_.vpdBaseInfo.vpdId = vpdBaseInfoNode["VpdId"].asString();
if(!vpdBaseInfoNode["Name"].isNull())
content_.vpdBaseInfo.name = vpdBaseInfoNode["Name"].asString();
if(!vpdBaseInfoNode["VpdName"].isNull())
content_.vpdBaseInfo.vpdName = vpdBaseInfoNode["VpdName"].asString();
if(!vpdBaseInfoNode["Cidr"].isNull())
content_.vpdBaseInfo.cidr = vpdBaseInfoNode["Cidr"].asString();
if(!vpdBaseInfoNode["GmtCreate"].isNull())
content_.vpdBaseInfo.gmtCreate = vpdBaseInfoNode["GmtCreate"].asString();
if(!vpdBaseInfoNode["CreateTime"].isNull())
content_.vpdBaseInfo.createTime = vpdBaseInfoNode["CreateTime"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

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/eflo/model/GetVccGrantRuleRequest.h>
using AlibabaCloud::Eflo::Model::GetVccGrantRuleRequest;
GetVccGrantRuleRequest::GetVccGrantRuleRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetVccGrantRule") {
setMethod(HttpRequest::Method::Post);
}
GetVccGrantRuleRequest::~GetVccGrantRuleRequest() {}
std::string GetVccGrantRuleRequest::getErId() const {
return erId_;
}
void GetVccGrantRuleRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string GetVccGrantRuleRequest::getGrantTenantId() const {
return grantTenantId_;
}
void GetVccGrantRuleRequest::setGrantTenantId(const std::string &grantTenantId) {
grantTenantId_ = grantTenantId;
setBodyParameter(std::string("GrantTenantId"), grantTenantId);
}
std::string GetVccGrantRuleRequest::getInstanceId() const {
return instanceId_;
}
void GetVccGrantRuleRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
}
std::string GetVccGrantRuleRequest::getRegionId() const {
return regionId_;
}
void GetVccGrantRuleRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string GetVccGrantRuleRequest::getGrantRuleId() const {
return grantRuleId_;
}
void GetVccGrantRuleRequest::setGrantRuleId(const std::string &grantRuleId) {
grantRuleId_ = grantRuleId;
setBodyParameter(std::string("GrantRuleId"), grantRuleId);
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetVccGrantRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetVccGrantRuleResult::GetVccGrantRuleResult() :
ServiceResult()
{}
GetVccGrantRuleResult::GetVccGrantRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetVccGrantRuleResult::~GetVccGrantRuleResult()
{}
void GetVccGrantRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["TenantId"].isNull())
content_.tenantId = contentNode["TenantId"].asString();
if(!contentNode["InstanceId"].isNull())
content_.instanceId = contentNode["InstanceId"].asString();
if(!contentNode["InstanceName"].isNull())
content_.instanceName = contentNode["InstanceName"].asString();
if(!contentNode["Product"].isNull())
content_.product = contentNode["Product"].asString();
if(!contentNode["ErId"].isNull())
content_.erId = contentNode["ErId"].asString();
if(!contentNode["GrantTenantId"].isNull())
content_.grantTenantId = contentNode["GrantTenantId"].asString();
if(!contentNode["Used"].isNull())
content_.used = contentNode["Used"].asString() == "true";
if(!contentNode["CreateTime"].isNull())
content_.createTime = contentNode["CreateTime"].asString();
if(!contentNode["GrantRuleId"].isNull())
content_.grantRuleId = contentNode["GrantRuleId"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetVccGrantRuleResult::getMessage()const
{
return message_;
}
GetVccGrantRuleResult::Content GetVccGrantRuleResult::getContent()const
{
return content_;
}
int GetVccGrantRuleResult::getCode()const
{
return code_;
}

View File

@@ -25,6 +25,15 @@ GetVccRequest::GetVccRequest()
GetVccRequest::~GetVccRequest() {}
int GetVccRequest::getPageNumber() const {
return pageNumber_;
}
void GetVccRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string GetVccRequest::getRegionId() const {
return regionId_;
}
@@ -34,6 +43,24 @@ void GetVccRequest::setRegionId(const std::string &regionId) {
setBodyParameter(std::string("RegionId"), regionId);
}
bool GetVccRequest::getEnablePage() const {
return enablePage_;
}
void GetVccRequest::setEnablePage(bool enablePage) {
enablePage_ = enablePage;
setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
}
int GetVccRequest::getPageSize() const {
return pageSize_;
}
void GetVccRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string GetVccRequest::getVccId() const {
return vccId_;
}

View File

@@ -44,6 +44,8 @@ void GetVccResult::parse(const std::string &payload)
content_.tenantId = contentNode["TenantId"].asString();
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["ZoneId"].isNull())
content_.zoneId = contentNode["ZoneId"].asString();
if(!contentNode["VccId"].isNull())
content_.vccId = contentNode["VccId"].asString();
if(!contentNode["VpdId"].isNull())
@@ -88,6 +90,46 @@ void GetVccResult::parse(const std::string &payload)
content_.commodityCode = contentNode["CommodityCode"].asString();
if(!contentNode["BgpCidr"].isNull())
content_.bgpCidr = contentNode["BgpCidr"].asString();
if(!contentNode["ExpirationDate"].isNull())
content_.expirationDate = contentNode["ExpirationDate"].asString();
if(!contentNode["AttachErStatus"].isNull())
content_.attachErStatus = contentNode["AttachErStatus"].asString() == "true";
if(!contentNode["ResourceGroupId"].isNull())
content_.resourceGroupId = contentNode["ResourceGroupId"].asString();
if(!contentNode["ConnectionType"].isNull())
content_.connectionType = contentNode["ConnectionType"].asString();
if(!contentNode["CenOwnerId"].isNull())
content_.cenOwnerId = contentNode["CenOwnerId"].asString();
auto allErInfosNode = contentNode["ErInfos"]["ErInfo"];
for (auto contentNodeErInfosErInfo : allErInfosNode)
{
Content::ErInfo erInfoObject;
if(!contentNodeErInfosErInfo["CreateTime"].isNull())
erInfoObject.createTime = contentNodeErInfosErInfo["CreateTime"].asString();
if(!contentNodeErInfosErInfo["GmtModified"].isNull())
erInfoObject.gmtModified = contentNodeErInfosErInfo["GmtModified"].asString();
if(!contentNodeErInfosErInfo["Message"].isNull())
erInfoObject.message = contentNodeErInfosErInfo["Message"].asString();
if(!contentNodeErInfosErInfo["ErId"].isNull())
erInfoObject.erId = contentNodeErInfosErInfo["ErId"].asString();
if(!contentNodeErInfosErInfo["RegionId"].isNull())
erInfoObject.regionId = contentNodeErInfosErInfo["RegionId"].asString();
if(!contentNodeErInfosErInfo["TenantId"].isNull())
erInfoObject.tenantId = contentNodeErInfosErInfo["TenantId"].asString();
if(!contentNodeErInfosErInfo["Status"].isNull())
erInfoObject.status = contentNodeErInfosErInfo["Status"].asString();
if(!contentNodeErInfosErInfo["ErName"].isNull())
erInfoObject.erName = contentNodeErInfosErInfo["ErName"].asString();
if(!contentNodeErInfosErInfo["MasterZoneId"].isNull())
erInfoObject.masterZoneId = contentNodeErInfosErInfo["MasterZoneId"].asString();
if(!contentNodeErInfosErInfo["Description"].isNull())
erInfoObject.description = contentNodeErInfosErInfo["Description"].asString();
if(!contentNodeErInfosErInfo["Connections"].isNull())
erInfoObject.connections = std::stol(contentNodeErInfosErInfo["Connections"].asString());
if(!contentNodeErInfosErInfo["RouteMaps"].isNull())
erInfoObject.routeMaps = std::stol(contentNodeErInfosErInfo["RouteMaps"].asString());
content_.erInfos.push_back(erInfoObject);
}
auto allAliyunRouterInfoNode = contentNode["AliyunRouterInfo"]["AliyunRouterInfoItem"];
for (auto contentNodeAliyunRouterInfoAliyunRouterInfoItem : allAliyunRouterInfoNode)
{
@@ -132,15 +174,25 @@ void GetVccResult::parse(const std::string &payload)
}
content_.cisRouterInfo.push_back(cisRouterInfoItemObject);
}
auto allTagsNode = contentNode["Tags"]["Tag"];
for (auto contentNodeTagsTag : allTagsNode)
{
Content::Tag tagObject;
if(!contentNodeTagsTag["TagKey"].isNull())
tagObject.tagKey = contentNodeTagsTag["TagKey"].asString();
if(!contentNodeTagsTag["TagValue"].isNull())
tagObject.tagValue = contentNodeTagsTag["TagValue"].asString();
content_.tags.push_back(tagObject);
}
auto vpdBaseInfoNode = contentNode["VpdBaseInfo"];
if(!vpdBaseInfoNode["VpdId"].isNull())
content_.vpdBaseInfo.vpdId = vpdBaseInfoNode["VpdId"].asString();
if(!vpdBaseInfoNode["Name"].isNull())
content_.vpdBaseInfo.name = vpdBaseInfoNode["Name"].asString();
if(!vpdBaseInfoNode["VpdName"].isNull())
content_.vpdBaseInfo.vpdName = vpdBaseInfoNode["VpdName"].asString();
if(!vpdBaseInfoNode["Cidr"].isNull())
content_.vpdBaseInfo.cidr = vpdBaseInfoNode["Cidr"].asString();
if(!vpdBaseInfoNode["GmtCreate"].isNull())
content_.vpdBaseInfo.gmtCreate = vpdBaseInfoNode["GmtCreate"].asString();
if(!vpdBaseInfoNode["CreateTime"].isNull())
content_.vpdBaseInfo.createTime = vpdBaseInfoNode["CreateTime"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

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/eflo/model/GetVccRouteEntryRequest.h>
using AlibabaCloud::Eflo::Model::GetVccRouteEntryRequest;
GetVccRouteEntryRequest::GetVccRouteEntryRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetVccRouteEntry") {
setMethod(HttpRequest::Method::Post);
}
GetVccRouteEntryRequest::~GetVccRouteEntryRequest() {}
std::string GetVccRouteEntryRequest::getRegionId() const {
return regionId_;
}
void GetVccRouteEntryRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string GetVccRouteEntryRequest::getVccId() const {
return vccId_;
}
void GetVccRouteEntryRequest::setVccId(const std::string &vccId) {
vccId_ = vccId;
setBodyParameter(std::string("VccId"), vccId);
}
std::string GetVccRouteEntryRequest::getVccRouteEntryId() const {
return vccRouteEntryId_;
}
void GetVccRouteEntryRequest::setVccRouteEntryId(const std::string &vccRouteEntryId) {
vccRouteEntryId_ = vccRouteEntryId;
setBodyParameter(std::string("VccRouteEntryId"), vccRouteEntryId);
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetVccRouteEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetVccRouteEntryResult::GetVccRouteEntryResult() :
ServiceResult()
{}
GetVccRouteEntryResult::GetVccRouteEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetVccRouteEntryResult::~GetVccRouteEntryResult()
{}
void GetVccRouteEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["VccRouteEntryId"].isNull())
content_.vccRouteEntryId = contentNode["VccRouteEntryId"].asString();
if(!contentNode["TenantId"].isNull())
content_.tenantId = contentNode["TenantId"].asString();
if(!contentNode["VccId"].isNull())
content_.vccId = contentNode["VccId"].asString();
if(!contentNode["DestinationCidrBlock"].isNull())
content_.destinationCidrBlock = contentNode["DestinationCidrBlock"].asString();
if(!contentNode["NextHopType"].isNull())
content_.nextHopType = contentNode["NextHopType"].asString();
if(!contentNode["NextHopId"].isNull())
content_.nextHopId = contentNode["NextHopId"].asString();
if(!contentNode["RouteType"].isNull())
content_.routeType = contentNode["RouteType"].asString();
if(!contentNode["Status"].isNull())
content_.status = contentNode["Status"].asString();
if(!contentNode["GmtModified"].isNull())
content_.gmtModified = contentNode["GmtModified"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetVccRouteEntryResult::getMessage()const
{
return message_;
}
GetVccRouteEntryResult::Content GetVccRouteEntryResult::getContent()const
{
return content_;
}
int GetVccRouteEntryResult::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/eflo/model/GetVpdGrantRuleRequest.h>
using AlibabaCloud::Eflo::Model::GetVpdGrantRuleRequest;
GetVpdGrantRuleRequest::GetVpdGrantRuleRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetVpdGrantRule") {
setMethod(HttpRequest::Method::Post);
}
GetVpdGrantRuleRequest::~GetVpdGrantRuleRequest() {}
std::string GetVpdGrantRuleRequest::getErId() const {
return erId_;
}
void GetVpdGrantRuleRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string GetVpdGrantRuleRequest::getGrantTenantId() const {
return grantTenantId_;
}
void GetVpdGrantRuleRequest::setGrantTenantId(const std::string &grantTenantId) {
grantTenantId_ = grantTenantId;
setBodyParameter(std::string("GrantTenantId"), grantTenantId);
}
std::string GetVpdGrantRuleRequest::getInstanceId() const {
return instanceId_;
}
void GetVpdGrantRuleRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
}
std::string GetVpdGrantRuleRequest::getRegionId() const {
return regionId_;
}
void GetVpdGrantRuleRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string GetVpdGrantRuleRequest::getGrantRuleId() const {
return grantRuleId_;
}
void GetVpdGrantRuleRequest::setGrantRuleId(const std::string &grantRuleId) {
grantRuleId_ = grantRuleId;
setBodyParameter(std::string("GrantRuleId"), grantRuleId);
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetVpdGrantRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetVpdGrantRuleResult::GetVpdGrantRuleResult() :
ServiceResult()
{}
GetVpdGrantRuleResult::GetVpdGrantRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetVpdGrantRuleResult::~GetVpdGrantRuleResult()
{}
void GetVpdGrantRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["TenantId"].isNull())
content_.tenantId = contentNode["TenantId"].asString();
if(!contentNode["InstanceId"].isNull())
content_.instanceId = contentNode["InstanceId"].asString();
if(!contentNode["InstanceName"].isNull())
content_.instanceName = contentNode["InstanceName"].asString();
if(!contentNode["Product"].isNull())
content_.product = contentNode["Product"].asString();
if(!contentNode["ErId"].isNull())
content_.erId = contentNode["ErId"].asString();
if(!contentNode["GrantTenantId"].isNull())
content_.grantTenantId = contentNode["GrantTenantId"].asString();
if(!contentNode["Used"].isNull())
content_.used = contentNode["Used"].asString() == "true";
if(!contentNode["CreateTime"].isNull())
content_.createTime = contentNode["CreateTime"].asString();
if(!contentNode["GrantRuleId"].isNull())
content_.grantRuleId = contentNode["GrantRuleId"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetVpdGrantRuleResult::getMessage()const
{
return message_;
}
GetVpdGrantRuleResult::Content GetVpdGrantRuleResult::getContent()const
{
return content_;
}
int GetVpdGrantRuleResult::getCode()const
{
return code_;
}

View File

@@ -25,6 +25,15 @@ GetVpdRequest::GetVpdRequest()
GetVpdRequest::~GetVpdRequest() {}
std::string GetVpdRequest::getRegionId() const {
return regionId_;
}
void GetVpdRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string GetVpdRequest::getVpdId() const {
return vpdId_;
}

View File

@@ -44,32 +44,79 @@ void GetVpdResult::parse(const std::string &payload)
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["VpdId"].isNull())
content_.vpdId = contentNode["VpdId"].asString();
if(!contentNode["Name"].isNull())
content_.name = contentNode["Name"].asString();
if(!contentNode["VpdName"].isNull())
content_.vpdName = contentNode["VpdName"].asString();
if(!contentNode["Cidr"].isNull())
content_.cidr = contentNode["Cidr"].asString();
if(!contentNode["ServiceCidr"].isNull())
content_.serviceCidr = contentNode["ServiceCidr"].asString();
if(!contentNode["Status"].isNull())
content_.status = contentNode["Status"].asString();
if(!contentNode["Description"].isNull())
content_.description = contentNode["Description"].asString();
if(!contentNode["Message"].isNull())
content_.message = contentNode["Message"].asString();
if(!contentNode["Route"].isNull())
content_.route = std::stoi(contentNode["Route"].asString());
if(!contentNode["NcCount"].isNull())
content_.ncCount = std::stol(contentNode["NcCount"].asString());
content_.ncCount = std::stoi(contentNode["NcCount"].asString());
if(!contentNode["NetworkInterfaceCount"].isNull())
content_.networkInterfaceCount = std::stoi(contentNode["NetworkInterfaceCount"].asString());
if(!contentNode["SubnetCount"].isNull())
content_.subnetCount = std::stol(contentNode["SubnetCount"].asString());
if(!contentNode["LbCount"].isNull())
content_.lbCount = std::stol(contentNode["LbCount"].asString());
if(!contentNode["VccCount"].isNull())
content_.vccCount = std::stol(contentNode["VccCount"].asString());
if(!contentNode["GmtCreate"].isNull())
content_.gmtCreate = contentNode["GmtCreate"].asString();
if(!contentNode["CreateTime"].isNull())
content_.createTime = contentNode["CreateTime"].asString();
if(!contentNode["GmtModified"].isNull())
content_.gmtModified = contentNode["GmtModified"].asString();
if(!contentNode["TenantId"].isNull())
content_.tenantId = contentNode["TenantId"].asString();
if(!contentNode["AttachErStatus"].isNull())
content_.attachErStatus = contentNode["AttachErStatus"].asString() == "true";
if(!contentNode["ResourceGroupId"].isNull())
content_.resourceGroupId = contentNode["ResourceGroupId"].asString();
if(!contentNode["Quota"].isNull())
content_.quota = std::stoi(contentNode["Quota"].asString());
if(!contentNode["PrivateIpCount"].isNull())
content_.privateIpCount = std::stol(contentNode["PrivateIpCount"].asString());
auto allErInfosNode = contentNode["ErInfos"]["ErInfo"];
for (auto contentNodeErInfosErInfo : allErInfosNode)
{
Content::ErInfo erInfoObject;
if(!contentNodeErInfosErInfo["CreateTime"].isNull())
erInfoObject.createTime = contentNodeErInfosErInfo["CreateTime"].asString();
if(!contentNodeErInfosErInfo["GmtModified"].isNull())
erInfoObject.gmtModified = contentNodeErInfosErInfo["GmtModified"].asString();
if(!contentNodeErInfosErInfo["Message"].isNull())
erInfoObject.message = contentNodeErInfosErInfo["Message"].asString();
if(!contentNodeErInfosErInfo["ErId"].isNull())
erInfoObject.erId = contentNodeErInfosErInfo["ErId"].asString();
if(!contentNodeErInfosErInfo["RegionId"].isNull())
erInfoObject.regionId = contentNodeErInfosErInfo["RegionId"].asString();
if(!contentNodeErInfosErInfo["TenantId"].isNull())
erInfoObject.tenantId = contentNodeErInfosErInfo["TenantId"].asString();
if(!contentNodeErInfosErInfo["Status"].isNull())
erInfoObject.status = contentNodeErInfosErInfo["Status"].asString();
if(!contentNodeErInfosErInfo["ErName"].isNull())
erInfoObject.erName = contentNodeErInfosErInfo["ErName"].asString();
if(!contentNodeErInfosErInfo["MasterZoneId"].isNull())
erInfoObject.masterZoneId = contentNodeErInfosErInfo["MasterZoneId"].asString();
if(!contentNodeErInfosErInfo["Description"].isNull())
erInfoObject.description = contentNodeErInfosErInfo["Description"].asString();
if(!contentNodeErInfosErInfo["Connections"].isNull())
erInfoObject.connections = std::stol(contentNodeErInfosErInfo["Connections"].asString());
if(!contentNodeErInfosErInfo["RouteMaps"].isNull())
erInfoObject.routeMaps = std::stol(contentNodeErInfosErInfo["RouteMaps"].asString());
content_.erInfos.push_back(erInfoObject);
}
auto allTagsNode = contentNode["Tags"]["Tag"];
for (auto contentNodeTagsTag : allTagsNode)
{
Content::Tag tagObject;
if(!contentNodeTagsTag["TagKey"].isNull())
tagObject.tagKey = contentNodeTagsTag["TagKey"].asString();
if(!contentNodeTagsTag["TagValue"].isNull())
tagObject.tagValue = contentNodeTagsTag["TagValue"].asString();
content_.tags.push_back(tagObject);
}
auto allSecondaryCidrBlocks = contentNode["SecondaryCidrBlocks"]["SecondaryCidrBlock"];
for (auto value : allSecondaryCidrBlocks)
content_.secondaryCidrBlocks.push_back(value.asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

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/eflo/model/GetVpdRouteEntryRequest.h>
using AlibabaCloud::Eflo::Model::GetVpdRouteEntryRequest;
GetVpdRouteEntryRequest::GetVpdRouteEntryRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetVpdRouteEntry") {
setMethod(HttpRequest::Method::Post);
}
GetVpdRouteEntryRequest::~GetVpdRouteEntryRequest() {}
std::string GetVpdRouteEntryRequest::getVpdRouteEntryId() const {
return vpdRouteEntryId_;
}
void GetVpdRouteEntryRequest::setVpdRouteEntryId(const std::string &vpdRouteEntryId) {
vpdRouteEntryId_ = vpdRouteEntryId;
setBodyParameter(std::string("VpdRouteEntryId"), vpdRouteEntryId);
}
std::string GetVpdRouteEntryRequest::getRegionId() const {
return regionId_;
}
void GetVpdRouteEntryRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string GetVpdRouteEntryRequest::getVpdId() const {
return vpdId_;
}
void GetVpdRouteEntryRequest::setVpdId(const std::string &vpdId) {
vpdId_ = vpdId;
setBodyParameter(std::string("VpdId"), vpdId);
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetVpdRouteEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetVpdRouteEntryResult::GetVpdRouteEntryResult() :
ServiceResult()
{}
GetVpdRouteEntryResult::GetVpdRouteEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetVpdRouteEntryResult::~GetVpdRouteEntryResult()
{}
void GetVpdRouteEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["VpdRouteEntryId"].isNull())
content_.vpdRouteEntryId = contentNode["VpdRouteEntryId"].asString();
if(!contentNode["TenantId"].isNull())
content_.tenantId = contentNode["TenantId"].asString();
if(!contentNode["VpdId"].isNull())
content_.vpdId = contentNode["VpdId"].asString();
if(!contentNode["DestinationCidrBlock"].isNull())
content_.destinationCidrBlock = contentNode["DestinationCidrBlock"].asString();
if(!contentNode["NextHopType"].isNull())
content_.nextHopType = contentNode["NextHopType"].asString();
if(!contentNode["NextHopId"].isNull())
content_.nextHopId = contentNode["NextHopId"].asString();
if(!contentNode["RouteType"].isNull())
content_.routeType = contentNode["RouteType"].asString();
if(!contentNode["Status"].isNull())
content_.status = contentNode["Status"].asString();
if(!contentNode["GmtModified"].isNull())
content_.gmtModified = contentNode["GmtModified"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetVpdRouteEntryResult::getMessage()const
{
return message_;
}
GetVpdRouteEntryResult::Content GetVpdRouteEntryResult::getContent()const
{
return content_;
}
int GetVpdRouteEntryResult::getCode()const
{
return code_;
}

View File

@@ -25,3 +25,12 @@ InitializeVccRequest::InitializeVccRequest()
InitializeVccRequest::~InitializeVccRequest() {}
std::string InitializeVccRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void InitializeVccRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
}

View File

@@ -0,0 +1,135 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListElasticNetworkInterfacesRequest.h>
using AlibabaCloud::Eflo::Model::ListElasticNetworkInterfacesRequest;
ListElasticNetworkInterfacesRequest::ListElasticNetworkInterfacesRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListElasticNetworkInterfaces") {
setMethod(HttpRequest::Method::Post);
}
ListElasticNetworkInterfacesRequest::~ListElasticNetworkInterfacesRequest() {}
std::string ListElasticNetworkInterfacesRequest::getNetworkType() const {
return networkType_;
}
void ListElasticNetworkInterfacesRequest::setNetworkType(const std::string &networkType) {
networkType_ = networkType;
setBodyParameter(std::string("NetworkType"), networkType);
}
std::string ListElasticNetworkInterfacesRequest::getType() const {
return type_;
}
void ListElasticNetworkInterfacesRequest::setType(const std::string &type) {
type_ = type;
setBodyParameter(std::string("Type"), type);
}
int ListElasticNetworkInterfacesRequest::getPageNumber() const {
return pageNumber_;
}
void ListElasticNetworkInterfacesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListElasticNetworkInterfacesRequest::getRegionId() const {
return regionId_;
}
void ListElasticNetworkInterfacesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
int ListElasticNetworkInterfacesRequest::getPageSize() const {
return pageSize_;
}
void ListElasticNetworkInterfacesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListElasticNetworkInterfacesRequest::getNodeId() const {
return nodeId_;
}
void ListElasticNetworkInterfacesRequest::setNodeId(const std::string &nodeId) {
nodeId_ = nodeId;
setBodyParameter(std::string("NodeId"), nodeId);
}
std::string ListElasticNetworkInterfacesRequest::getIp() const {
return ip_;
}
void ListElasticNetworkInterfacesRequest::setIp(const std::string &ip) {
ip_ = ip;
setBodyParameter(std::string("Ip"), ip);
}
std::string ListElasticNetworkInterfacesRequest::getVSwitchId() const {
return vSwitchId_;
}
void ListElasticNetworkInterfacesRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setBodyParameter(std::string("VSwitchId"), vSwitchId);
}
std::string ListElasticNetworkInterfacesRequest::getVpcId() const {
return vpcId_;
}
void ListElasticNetworkInterfacesRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setBodyParameter(std::string("VpcId"), vpcId);
}
std::string ListElasticNetworkInterfacesRequest::getZoneId() const {
return zoneId_;
}
void ListElasticNetworkInterfacesRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setBodyParameter(std::string("ZoneId"), zoneId);
}
std::string ListElasticNetworkInterfacesRequest::getElasticNetworkInterfaceId() const {
return elasticNetworkInterfaceId_;
}
void ListElasticNetworkInterfacesRequest::setElasticNetworkInterfaceId(const std::string &elasticNetworkInterfaceId) {
elasticNetworkInterfaceId_ = elasticNetworkInterfaceId;
setBodyParameter(std::string("ElasticNetworkInterfaceId"), elasticNetworkInterfaceId);
}
std::string ListElasticNetworkInterfacesRequest::getStatus() const {
return status_;
}
void ListElasticNetworkInterfacesRequest::setStatus(const std::string &status) {
status_ = status;
setBodyParameter(std::string("Status"), status);
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListElasticNetworkInterfacesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListElasticNetworkInterfacesResult::ListElasticNetworkInterfacesResult() :
ServiceResult()
{}
ListElasticNetworkInterfacesResult::ListElasticNetworkInterfacesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListElasticNetworkInterfacesResult::~ListElasticNetworkInterfacesResult()
{}
void ListElasticNetworkInterfacesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Total"].isNull())
content_.total = std::stol(contentNode["Total"].asString());
auto allDataNode = contentNode["Data"]["DataItem"];
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["ZoneId"].isNull())
dataItemObject.zoneId = contentNodeDataDataItem["ZoneId"].asString();
if(!contentNodeDataDataItem["ElasticNetworkInterfaceId"].isNull())
dataItemObject.elasticNetworkInterfaceId = contentNodeDataDataItem["ElasticNetworkInterfaceId"].asString();
if(!contentNodeDataDataItem["NodeId"].isNull())
dataItemObject.nodeId = contentNodeDataDataItem["NodeId"].asString();
if(!contentNodeDataDataItem["Status"].isNull())
dataItemObject.status = contentNodeDataDataItem["Status"].asString();
if(!contentNodeDataDataItem["Ip"].isNull())
dataItemObject.ip = contentNodeDataDataItem["Ip"].asString();
if(!contentNodeDataDataItem["VpcId"].isNull())
dataItemObject.vpcId = contentNodeDataDataItem["VpcId"].asString();
if(!contentNodeDataDataItem["VSwitchId"].isNull())
dataItemObject.vSwitchId = contentNodeDataDataItem["VSwitchId"].asString();
if(!contentNodeDataDataItem["Message"].isNull())
dataItemObject.message = contentNodeDataDataItem["Message"].asString();
if(!contentNodeDataDataItem["Mac"].isNull())
dataItemObject.mac = contentNodeDataDataItem["Mac"].asString();
if(!contentNodeDataDataItem["Type"].isNull())
dataItemObject.type = contentNodeDataDataItem["Type"].asString();
if(!contentNodeDataDataItem["Gateway"].isNull())
dataItemObject.gateway = contentNodeDataDataItem["Gateway"].asString();
if(!contentNodeDataDataItem["Mask"].isNull())
dataItemObject.mask = contentNodeDataDataItem["Mask"].asString();
if(!contentNodeDataDataItem["CreateTime"].isNull())
dataItemObject.createTime = contentNodeDataDataItem["CreateTime"].asString();
if(!contentNodeDataDataItem["GmtModified"].isNull())
dataItemObject.gmtModified = contentNodeDataDataItem["GmtModified"].asString();
if(!contentNodeDataDataItem["Description"].isNull())
dataItemObject.description = contentNodeDataDataItem["Description"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListElasticNetworkInterfacesResult::getMessage()const
{
return message_;
}
ListElasticNetworkInterfacesResult::Content ListElasticNetworkInterfacesResult::getContent()const
{
return content_;
}
int ListElasticNetworkInterfacesResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,135 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListErAttachmentsRequest.h>
using AlibabaCloud::Eflo::Model::ListErAttachmentsRequest;
ListErAttachmentsRequest::ListErAttachmentsRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListErAttachments") {
setMethod(HttpRequest::Method::Post);
}
ListErAttachmentsRequest::~ListErAttachmentsRequest() {}
int ListErAttachmentsRequest::getPageNumber() const {
return pageNumber_;
}
void ListErAttachmentsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListErAttachmentsRequest::getResourceTenantId() const {
return resourceTenantId_;
}
void ListErAttachmentsRequest::setResourceTenantId(const std::string &resourceTenantId) {
resourceTenantId_ = resourceTenantId;
setBodyParameter(std::string("ResourceTenantId"), resourceTenantId);
}
std::string ListErAttachmentsRequest::getRegionId() const {
return regionId_;
}
void ListErAttachmentsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
bool ListErAttachmentsRequest::getAutoReceiveAllRoute() const {
return autoReceiveAllRoute_;
}
void ListErAttachmentsRequest::setAutoReceiveAllRoute(bool autoReceiveAllRoute) {
autoReceiveAllRoute_ = autoReceiveAllRoute;
setBodyParameter(std::string("AutoReceiveAllRoute"), autoReceiveAllRoute ? "true" : "false");
}
int ListErAttachmentsRequest::getPageSize() const {
return pageSize_;
}
void ListErAttachmentsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListErAttachmentsRequest::getInstanceType() const {
return instanceType_;
}
void ListErAttachmentsRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setBodyParameter(std::string("InstanceType"), instanceType);
}
std::string ListErAttachmentsRequest::getErAttachmentName() const {
return erAttachmentName_;
}
void ListErAttachmentsRequest::setErAttachmentName(const std::string &erAttachmentName) {
erAttachmentName_ = erAttachmentName;
setBodyParameter(std::string("ErAttachmentName"), erAttachmentName);
}
std::string ListErAttachmentsRequest::getErId() const {
return erId_;
}
void ListErAttachmentsRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string ListErAttachmentsRequest::getInstanceId() const {
return instanceId_;
}
void ListErAttachmentsRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
}
std::string ListErAttachmentsRequest::getErAttachmentId() const {
return erAttachmentId_;
}
void ListErAttachmentsRequest::setErAttachmentId(const std::string &erAttachmentId) {
erAttachmentId_ = erAttachmentId;
setBodyParameter(std::string("ErAttachmentId"), erAttachmentId);
}
bool ListErAttachmentsRequest::getEnablePage() const {
return enablePage_;
}
void ListErAttachmentsRequest::setEnablePage(bool enablePage) {
enablePage_ = enablePage;
setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
}
std::string ListErAttachmentsRequest::getStatus() const {
return status_;
}
void ListErAttachmentsRequest::setStatus(const std::string &status) {
status_ = status;
setBodyParameter(std::string("Status"), status);
}

View File

@@ -0,0 +1,102 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListErAttachmentsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListErAttachmentsResult::ListErAttachmentsResult() :
ServiceResult()
{}
ListErAttachmentsResult::ListErAttachmentsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListErAttachmentsResult::~ListErAttachmentsResult()
{}
void ListErAttachmentsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Total"].isNull())
content_.total = std::stol(contentNode["Total"].asString());
auto allDataNode = contentNode["Data"]["DataItem"];
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["CreateTime"].isNull())
dataItemObject.createTime = contentNodeDataDataItem["CreateTime"].asString();
if(!contentNodeDataDataItem["GmtModified"].isNull())
dataItemObject.gmtModified = contentNodeDataDataItem["GmtModified"].asString();
if(!contentNodeDataDataItem["Message"].isNull())
dataItemObject.message = contentNodeDataDataItem["Message"].asString();
if(!contentNodeDataDataItem["Status"].isNull())
dataItemObject.status = contentNodeDataDataItem["Status"].asString();
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["TenantId"].isNull())
dataItemObject.tenantId = contentNodeDataDataItem["TenantId"].asString();
if(!contentNodeDataDataItem["ErAttachmentName"].isNull())
dataItemObject.erAttachmentName = contentNodeDataDataItem["ErAttachmentName"].asString();
if(!contentNodeDataDataItem["ErAttachmentId"].isNull())
dataItemObject.erAttachmentId = contentNodeDataDataItem["ErAttachmentId"].asString();
if(!contentNodeDataDataItem["ErId"].isNull())
dataItemObject.erId = contentNodeDataDataItem["ErId"].asString();
if(!contentNodeDataDataItem["InstanceType"].isNull())
dataItemObject.instanceType = contentNodeDataDataItem["InstanceType"].asString();
if(!contentNodeDataDataItem["InstanceId"].isNull())
dataItemObject.instanceId = contentNodeDataDataItem["InstanceId"].asString();
if(!contentNodeDataDataItem["InstanceName"].isNull())
dataItemObject.instanceName = contentNodeDataDataItem["InstanceName"].asString();
if(!contentNodeDataDataItem["AutoReceiveAllRoute"].isNull())
dataItemObject.autoReceiveAllRoute = contentNodeDataDataItem["AutoReceiveAllRoute"].asString() == "true";
if(!contentNodeDataDataItem["Across"].isNull())
dataItemObject.across = contentNodeDataDataItem["Across"].asString() == "true";
if(!contentNodeDataDataItem["ResourceTenantId"].isNull())
dataItemObject.resourceTenantId = contentNodeDataDataItem["ResourceTenantId"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListErAttachmentsResult::getMessage()const
{
return message_;
}
ListErAttachmentsResult::Content ListErAttachmentsResult::getContent()const
{
return content_;
}
int ListErAttachmentsResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,135 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListErRouteEntriesRequest.h>
using AlibabaCloud::Eflo::Model::ListErRouteEntriesRequest;
ListErRouteEntriesRequest::ListErRouteEntriesRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListErRouteEntries") {
setMethod(HttpRequest::Method::Post);
}
ListErRouteEntriesRequest::~ListErRouteEntriesRequest() {}
bool ListErRouteEntriesRequest::getIgnoreDetailedRouteEntry() const {
return ignoreDetailedRouteEntry_;
}
void ListErRouteEntriesRequest::setIgnoreDetailedRouteEntry(bool ignoreDetailedRouteEntry) {
ignoreDetailedRouteEntry_ = ignoreDetailedRouteEntry;
setBodyParameter(std::string("IgnoreDetailedRouteEntry"), ignoreDetailedRouteEntry ? "true" : "false");
}
int ListErRouteEntriesRequest::getPageNumber() const {
return pageNumber_;
}
void ListErRouteEntriesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListErRouteEntriesRequest::getRouteType() const {
return routeType_;
}
void ListErRouteEntriesRequest::setRouteType(const std::string &routeType) {
routeType_ = routeType;
setBodyParameter(std::string("RouteType"), routeType);
}
std::string ListErRouteEntriesRequest::getRegionId() const {
return regionId_;
}
void ListErRouteEntriesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
int ListErRouteEntriesRequest::getPageSize() const {
return pageSize_;
}
void ListErRouteEntriesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListErRouteEntriesRequest::getNextHopId() const {
return nextHopId_;
}
void ListErRouteEntriesRequest::setNextHopId(const std::string &nextHopId) {
nextHopId_ = nextHopId;
setBodyParameter(std::string("NextHopId"), nextHopId);
}
std::string ListErRouteEntriesRequest::getNextHopType() const {
return nextHopType_;
}
void ListErRouteEntriesRequest::setNextHopType(const std::string &nextHopType) {
nextHopType_ = nextHopType;
setBodyParameter(std::string("NextHopType"), nextHopType);
}
std::string ListErRouteEntriesRequest::getDestinationCidrBlock() const {
return destinationCidrBlock_;
}
void ListErRouteEntriesRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) {
destinationCidrBlock_ = destinationCidrBlock;
setBodyParameter(std::string("DestinationCidrBlock"), destinationCidrBlock);
}
std::string ListErRouteEntriesRequest::getErId() const {
return erId_;
}
void ListErRouteEntriesRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string ListErRouteEntriesRequest::getInstanceId() const {
return instanceId_;
}
void ListErRouteEntriesRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
}
bool ListErRouteEntriesRequest::getEnablePage() const {
return enablePage_;
}
void ListErRouteEntriesRequest::setEnablePage(bool enablePage) {
enablePage_ = enablePage;
setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
}
std::string ListErRouteEntriesRequest::getStatus() const {
return status_;
}
void ListErRouteEntriesRequest::setStatus(const std::string &status) {
status_ = status;
setBodyParameter(std::string("Status"), status);
}

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListErRouteEntriesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListErRouteEntriesResult::ListErRouteEntriesResult() :
ServiceResult()
{}
ListErRouteEntriesResult::ListErRouteEntriesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListErRouteEntriesResult::~ListErRouteEntriesResult()
{}
void ListErRouteEntriesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Total"].isNull())
content_.total = std::stol(contentNode["Total"].asString());
auto allDataNode = contentNode["Data"]["DataItem"];
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["ErId"].isNull())
dataItemObject.erId = contentNodeDataDataItem["ErId"].asString();
if(!contentNodeDataDataItem["TenantId"].isNull())
dataItemObject.tenantId = contentNodeDataDataItem["TenantId"].asString();
if(!contentNodeDataDataItem["ResourceTenantId"].isNull())
dataItemObject.resourceTenantId = contentNodeDataDataItem["ResourceTenantId"].asString();
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["ErRouteEntryId"].isNull())
dataItemObject.erRouteEntryId = contentNodeDataDataItem["ErRouteEntryId"].asString();
if(!contentNodeDataDataItem["DestinationCidrBlock"].isNull())
dataItemObject.destinationCidrBlock = contentNodeDataDataItem["DestinationCidrBlock"].asString();
if(!contentNodeDataDataItem["NextHopType"].isNull())
dataItemObject.nextHopType = contentNodeDataDataItem["NextHopType"].asString();
if(!contentNodeDataDataItem["NextHopId"].isNull())
dataItemObject.nextHopId = contentNodeDataDataItem["NextHopId"].asString();
if(!contentNodeDataDataItem["RouteType"].isNull())
dataItemObject.routeType = contentNodeDataDataItem["RouteType"].asString();
if(!contentNodeDataDataItem["Status"].isNull())
dataItemObject.status = contentNodeDataDataItem["Status"].asString();
if(!contentNodeDataDataItem["GmtModified"].isNull())
dataItemObject.gmtModified = contentNodeDataDataItem["GmtModified"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListErRouteEntriesResult::getMessage()const
{
return message_;
}
ListErRouteEntriesResult::Content ListErRouteEntriesResult::getContent()const
{
return content_;
}
int ListErRouteEntriesResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,162 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListErRouteMapsRequest.h>
using AlibabaCloud::Eflo::Model::ListErRouteMapsRequest;
ListErRouteMapsRequest::ListErRouteMapsRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListErRouteMaps") {
setMethod(HttpRequest::Method::Post);
}
ListErRouteMapsRequest::~ListErRouteMapsRequest() {}
std::string ListErRouteMapsRequest::getReceptionInstanceType() const {
return receptionInstanceType_;
}
void ListErRouteMapsRequest::setReceptionInstanceType(const std::string &receptionInstanceType) {
receptionInstanceType_ = receptionInstanceType;
setBodyParameter(std::string("ReceptionInstanceType"), receptionInstanceType);
}
std::string ListErRouteMapsRequest::getReceptionInstanceId() const {
return receptionInstanceId_;
}
void ListErRouteMapsRequest::setReceptionInstanceId(const std::string &receptionInstanceId) {
receptionInstanceId_ = receptionInstanceId;
setBodyParameter(std::string("ReceptionInstanceId"), receptionInstanceId);
}
int ListErRouteMapsRequest::getErRouteMapNum() const {
return erRouteMapNum_;
}
void ListErRouteMapsRequest::setErRouteMapNum(int erRouteMapNum) {
erRouteMapNum_ = erRouteMapNum;
setBodyParameter(std::string("ErRouteMapNum"), std::to_string(erRouteMapNum));
}
int ListErRouteMapsRequest::getPageNumber() const {
return pageNumber_;
}
void ListErRouteMapsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListErRouteMapsRequest::getRouteMapAction() const {
return routeMapAction_;
}
void ListErRouteMapsRequest::setRouteMapAction(const std::string &routeMapAction) {
routeMapAction_ = routeMapAction;
setBodyParameter(std::string("RouteMapAction"), routeMapAction);
}
std::string ListErRouteMapsRequest::getTransmissionInstanceType() const {
return transmissionInstanceType_;
}
void ListErRouteMapsRequest::setTransmissionInstanceType(const std::string &transmissionInstanceType) {
transmissionInstanceType_ = transmissionInstanceType;
setBodyParameter(std::string("TransmissionInstanceType"), transmissionInstanceType);
}
std::string ListErRouteMapsRequest::getRegionId() const {
return regionId_;
}
void ListErRouteMapsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
int ListErRouteMapsRequest::getPageSize() const {
return pageSize_;
}
void ListErRouteMapsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListErRouteMapsRequest::getTransmissionInstanceName() const {
return transmissionInstanceName_;
}
void ListErRouteMapsRequest::setTransmissionInstanceName(const std::string &transmissionInstanceName) {
transmissionInstanceName_ = transmissionInstanceName;
setBodyParameter(std::string("TransmissionInstanceName"), transmissionInstanceName);
}
std::string ListErRouteMapsRequest::getDestinationCidrBlock() const {
return destinationCidrBlock_;
}
void ListErRouteMapsRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) {
destinationCidrBlock_ = destinationCidrBlock;
setBodyParameter(std::string("DestinationCidrBlock"), destinationCidrBlock);
}
std::string ListErRouteMapsRequest::getErId() const {
return erId_;
}
void ListErRouteMapsRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string ListErRouteMapsRequest::getErRouteMapId() const {
return erRouteMapId_;
}
void ListErRouteMapsRequest::setErRouteMapId(const std::string &erRouteMapId) {
erRouteMapId_ = erRouteMapId;
setBodyParameter(std::string("ErRouteMapId"), erRouteMapId);
}
std::string ListErRouteMapsRequest::getReceptionInstanceName() const {
return receptionInstanceName_;
}
void ListErRouteMapsRequest::setReceptionInstanceName(const std::string &receptionInstanceName) {
receptionInstanceName_ = receptionInstanceName;
setBodyParameter(std::string("ReceptionInstanceName"), receptionInstanceName);
}
bool ListErRouteMapsRequest::getEnablePage() const {
return enablePage_;
}
void ListErRouteMapsRequest::setEnablePage(bool enablePage) {
enablePage_ = enablePage;
setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
}
std::string ListErRouteMapsRequest::getTransmissionInstanceId() const {
return transmissionInstanceId_;
}
void ListErRouteMapsRequest::setTransmissionInstanceId(const std::string &transmissionInstanceId) {
transmissionInstanceId_ = transmissionInstanceId;
setBodyParameter(std::string("TransmissionInstanceId"), transmissionInstanceId);
}

View File

@@ -0,0 +1,112 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListErRouteMapsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListErRouteMapsResult::ListErRouteMapsResult() :
ServiceResult()
{}
ListErRouteMapsResult::ListErRouteMapsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListErRouteMapsResult::~ListErRouteMapsResult()
{}
void ListErRouteMapsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Total"].isNull())
content_.total = std::stol(contentNode["Total"].asString());
auto allDataNode = contentNode["Data"]["DataItem"];
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["TenantId"].isNull())
dataItemObject.tenantId = contentNodeDataDataItem["TenantId"].asString();
if(!contentNodeDataDataItem["CreateTime"].isNull())
dataItemObject.createTime = contentNodeDataDataItem["CreateTime"].asString();
if(!contentNodeDataDataItem["GmtModified"].isNull())
dataItemObject.gmtModified = contentNodeDataDataItem["GmtModified"].asString();
if(!contentNodeDataDataItem["Message"].isNull())
dataItemObject.message = contentNodeDataDataItem["Message"].asString();
if(!contentNodeDataDataItem["Status"].isNull())
dataItemObject.status = contentNodeDataDataItem["Status"].asString();
if(!contentNodeDataDataItem["ErRouteMapId"].isNull())
dataItemObject.erRouteMapId = contentNodeDataDataItem["ErRouteMapId"].asString();
if(!contentNodeDataDataItem["ErId"].isNull())
dataItemObject.erId = contentNodeDataDataItem["ErId"].asString();
if(!contentNodeDataDataItem["RouteMapNum"].isNull())
dataItemObject.routeMapNum = std::stoi(contentNodeDataDataItem["RouteMapNum"].asString());
if(!contentNodeDataDataItem["Description"].isNull())
dataItemObject.description = contentNodeDataDataItem["Description"].asString();
if(!contentNodeDataDataItem["DestinationCidrBlock"].isNull())
dataItemObject.destinationCidrBlock = contentNodeDataDataItem["DestinationCidrBlock"].asString();
if(!contentNodeDataDataItem["TransmissionInstanceName"].isNull())
dataItemObject.transmissionInstanceName = contentNodeDataDataItem["TransmissionInstanceName"].asString();
if(!contentNodeDataDataItem["TransmissionInstanceId"].isNull())
dataItemObject.transmissionInstanceId = contentNodeDataDataItem["TransmissionInstanceId"].asString();
if(!contentNodeDataDataItem["TransmissionInstanceType"].isNull())
dataItemObject.transmissionInstanceType = contentNodeDataDataItem["TransmissionInstanceType"].asString();
if(!contentNodeDataDataItem["ReceptionInstanceName"].isNull())
dataItemObject.receptionInstanceName = contentNodeDataDataItem["ReceptionInstanceName"].asString();
if(!contentNodeDataDataItem["ReceptionInstanceId"].isNull())
dataItemObject.receptionInstanceId = contentNodeDataDataItem["ReceptionInstanceId"].asString();
if(!contentNodeDataDataItem["ReceptionInstanceType"].isNull())
dataItemObject.receptionInstanceType = contentNodeDataDataItem["ReceptionInstanceType"].asString();
if(!contentNodeDataDataItem["Action"].isNull())
dataItemObject.action = contentNodeDataDataItem["Action"].asString();
if(!contentNodeDataDataItem["TransmissionInstanceOwner"].isNull())
dataItemObject.transmissionInstanceOwner = contentNodeDataDataItem["TransmissionInstanceOwner"].asString();
if(!contentNodeDataDataItem["ReceptionInstanceOwner"].isNull())
dataItemObject.receptionInstanceOwner = contentNodeDataDataItem["ReceptionInstanceOwner"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListErRouteMapsResult::getMessage()const
{
return message_;
}
ListErRouteMapsResult::Content ListErRouteMapsResult::getContent()const
{
return content_;
}
int ListErRouteMapsResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListErsRequest.h>
using AlibabaCloud::Eflo::Model::ListErsRequest;
ListErsRequest::ListErsRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListErs") {
setMethod(HttpRequest::Method::Post);
}
ListErsRequest::~ListErsRequest() {}
std::string ListErsRequest::getMasterZoneId() const {
return masterZoneId_;
}
void ListErsRequest::setMasterZoneId(const std::string &masterZoneId) {
masterZoneId_ = masterZoneId;
setBodyParameter(std::string("MasterZoneId"), masterZoneId);
}
int ListErsRequest::getPageNumber() const {
return pageNumber_;
}
void ListErsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListErsRequest::getRegionId() const {
return regionId_;
}
void ListErsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
int ListErsRequest::getPageSize() const {
return pageSize_;
}
void ListErsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListErsRequest::getInstanceType() const {
return instanceType_;
}
void ListErsRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setBodyParameter(std::string("InstanceType"), instanceType);
}
std::string ListErsRequest::getErId() const {
return erId_;
}
void ListErsRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
std::string ListErsRequest::getErName() const {
return erName_;
}
void ListErsRequest::setErName(const std::string &erName) {
erName_ = erName;
setBodyParameter(std::string("ErName"), erName);
}
std::string ListErsRequest::getInstanceId() const {
return instanceId_;
}
void ListErsRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
}
bool ListErsRequest::getEnablePage() const {
return enablePage_;
}
void ListErsRequest::setEnablePage(bool enablePage) {
enablePage_ = enablePage;
setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListErsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListErsResult::ListErsResult() :
ServiceResult()
{}
ListErsResult::ListErsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListErsResult::~ListErsResult()
{}
void ListErsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Total"].isNull())
content_.total = std::stol(contentNode["Total"].asString());
auto allDataNode = contentNode["Data"]["DataItem"];
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["CreateTime"].isNull())
dataItemObject.createTime = contentNodeDataDataItem["CreateTime"].asString();
if(!contentNodeDataDataItem["GmtModified"].isNull())
dataItemObject.gmtModified = contentNodeDataDataItem["GmtModified"].asString();
if(!contentNodeDataDataItem["Message"].isNull())
dataItemObject.message = contentNodeDataDataItem["Message"].asString();
if(!contentNodeDataDataItem["ErId"].isNull())
dataItemObject.erId = contentNodeDataDataItem["ErId"].asString();
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["TenantId"].isNull())
dataItemObject.tenantId = contentNodeDataDataItem["TenantId"].asString();
if(!contentNodeDataDataItem["Status"].isNull())
dataItemObject.status = contentNodeDataDataItem["Status"].asString();
if(!contentNodeDataDataItem["ErName"].isNull())
dataItemObject.erName = contentNodeDataDataItem["ErName"].asString();
if(!contentNodeDataDataItem["MasterZoneId"].isNull())
dataItemObject.masterZoneId = contentNodeDataDataItem["MasterZoneId"].asString();
if(!contentNodeDataDataItem["Description"].isNull())
dataItemObject.description = contentNodeDataDataItem["Description"].asString();
if(!contentNodeDataDataItem["Connections"].isNull())
dataItemObject.connections = std::stol(contentNodeDataDataItem["Connections"].asString());
if(!contentNodeDataDataItem["RouteMaps"].isNull())
dataItemObject.routeMaps = std::stol(contentNodeDataDataItem["RouteMaps"].asString());
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListErsResult::getMessage()const
{
return message_;
}
ListErsResult::Content ListErsResult::getContent()const
{
return content_;
}
int ListErsResult::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/eflo/model/ListInstancesByNcdRequest.h>
using AlibabaCloud::Eflo::Model::ListInstancesByNcdRequest;
ListInstancesByNcdRequest::ListInstancesByNcdRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListInstancesByNcd") {
setMethod(HttpRequest::Method::Post);
}
ListInstancesByNcdRequest::~ListInstancesByNcdRequest() {}
int ListInstancesByNcdRequest::getMaxNcd() const {
return maxNcd_;
}
void ListInstancesByNcdRequest::setMaxNcd(int maxNcd) {
maxNcd_ = maxNcd;
setBodyParameter(std::string("MaxNcd"), std::to_string(maxNcd));
}
std::string ListInstancesByNcdRequest::getInstanceId() const {
return instanceId_;
}
void ListInstancesByNcdRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
}
std::string ListInstancesByNcdRequest::getRegionId() const {
return regionId_;
}
void ListInstancesByNcdRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string ListInstancesByNcdRequest::getInstanceType() const {
return instanceType_;
}
void ListInstancesByNcdRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setBodyParameter(std::string("InstanceType"), instanceType);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListInstancesByNcdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListInstancesByNcdResult::ListInstancesByNcdResult() :
ServiceResult()
{}
ListInstancesByNcdResult::ListInstancesByNcdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstancesByNcdResult::~ListInstancesByNcdResult()
{}
void ListInstancesByNcdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["MaxNcd"].isNull())
content_.maxNcd = std::stoi(contentNode["MaxNcd"].asString());
if(!contentNode["InstanceType"].isNull())
content_.instanceType = contentNode["InstanceType"].asString();
if(!contentNode["SourceInstanceId"].isNull())
content_.sourceInstanceId = contentNode["SourceInstanceId"].asString();
auto allInstanceInfosNode = contentNode["InstanceInfos"]["InstanceInfo"];
for (auto contentNodeInstanceInfosInstanceInfo : allInstanceInfosNode)
{
Content::InstanceInfo instanceInfoObject;
if(!contentNodeInstanceInfosInstanceInfo["InstanceId"].isNull())
instanceInfoObject.instanceId = contentNodeInstanceInfosInstanceInfo["InstanceId"].asString();
if(!contentNodeInstanceInfosInstanceInfo["Ncd"].isNull())
instanceInfoObject.ncd = std::stoi(contentNodeInstanceInfosInstanceInfo["Ncd"].asString());
content_.instanceInfos.push_back(instanceInfoObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListInstancesByNcdResult::getMessage()const
{
return message_;
}
ListInstancesByNcdResult::Content ListInstancesByNcdResult::getContent()const
{
return content_;
}
int ListInstancesByNcdResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,99 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListLniPrivateIpAddressRequest.h>
using AlibabaCloud::Eflo::Model::ListLniPrivateIpAddressRequest;
ListLniPrivateIpAddressRequest::ListLniPrivateIpAddressRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListLniPrivateIpAddress") {
setMethod(HttpRequest::Method::Post);
}
ListLniPrivateIpAddressRequest::~ListLniPrivateIpAddressRequest() {}
std::string ListLniPrivateIpAddressRequest::getDescription() const {
return description_;
}
void ListLniPrivateIpAddressRequest::setDescription(const std::string &description) {
description_ = description;
setBodyParameter(std::string("Description"), description);
}
int ListLniPrivateIpAddressRequest::getPageNumber() const {
return pageNumber_;
}
void ListLniPrivateIpAddressRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListLniPrivateIpAddressRequest::getRegionId() const {
return regionId_;
}
void ListLniPrivateIpAddressRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
int ListLniPrivateIpAddressRequest::getPageSize() const {
return pageSize_;
}
void ListLniPrivateIpAddressRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListLniPrivateIpAddressRequest::getIp() const {
return ip_;
}
void ListLniPrivateIpAddressRequest::setIp(const std::string &ip) {
ip_ = ip;
setBodyParameter(std::string("Ip"), ip);
}
bool ListLniPrivateIpAddressRequest::getEnablePage() const {
return enablePage_;
}
void ListLniPrivateIpAddressRequest::setEnablePage(bool enablePage) {
enablePage_ = enablePage;
setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
}
std::string ListLniPrivateIpAddressRequest::getIpName() const {
return ipName_;
}
void ListLniPrivateIpAddressRequest::setIpName(const std::string &ipName) {
ipName_ = ipName;
setBodyParameter(std::string("IpName"), ipName);
}
std::string ListLniPrivateIpAddressRequest::getNetworkInterfaceId() const {
return networkInterfaceId_;
}
void ListLniPrivateIpAddressRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
networkInterfaceId_ = networkInterfaceId;
setBodyParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
}

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/eflo/model/ListLniPrivateIpAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListLniPrivateIpAddressResult::ListLniPrivateIpAddressResult() :
ServiceResult()
{}
ListLniPrivateIpAddressResult::ListLniPrivateIpAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListLniPrivateIpAddressResult::~ListLniPrivateIpAddressResult()
{}
void ListLniPrivateIpAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Total"].isNull())
content_.total = std::stol(contentNode["Total"].asString());
auto allDataNode = contentNode["Data"]["DataItem"];
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["GmtCreate"].isNull())
dataItemObject.gmtCreate = contentNodeDataDataItem["GmtCreate"].asString();
if(!contentNodeDataDataItem["NetworkInterfaceId"].isNull())
dataItemObject.networkInterfaceId = contentNodeDataDataItem["NetworkInterfaceId"].asString();
if(!contentNodeDataDataItem["IpName"].isNull())
dataItemObject.ipName = contentNodeDataDataItem["IpName"].asString();
if(!contentNodeDataDataItem["PrivateIpAddress"].isNull())
dataItemObject.privateIpAddress = contentNodeDataDataItem["PrivateIpAddress"].asString();
if(!contentNodeDataDataItem["IpAddressMac"].isNull())
dataItemObject.ipAddressMac = contentNodeDataDataItem["IpAddressMac"].asString();
if(!contentNodeDataDataItem["Status"].isNull())
dataItemObject.status = contentNodeDataDataItem["Status"].asString();
if(!contentNodeDataDataItem["Description"].isNull())
dataItemObject.description = contentNodeDataDataItem["Description"].asString();
if(!contentNodeDataDataItem["Message"].isNull())
dataItemObject.message = contentNodeDataDataItem["Message"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListLniPrivateIpAddressResult::getMessage()const
{
return message_;
}
ListLniPrivateIpAddressResult::Content ListLniPrivateIpAddressResult::getContent()const
{
return content_;
}
int ListLniPrivateIpAddressResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListNetworkInterfacesRequest.h>
using AlibabaCloud::Eflo::Model::ListNetworkInterfacesRequest;
ListNetworkInterfacesRequest::ListNetworkInterfacesRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListNetworkInterfaces") {
setMethod(HttpRequest::Method::Post);
}
ListNetworkInterfacesRequest::~ListNetworkInterfacesRequest() {}
int ListNetworkInterfacesRequest::getPageNumber() const {
return pageNumber_;
}
void ListNetworkInterfacesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListNetworkInterfacesRequest::getRegionId() const {
return regionId_;
}
void ListNetworkInterfacesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
int ListNetworkInterfacesRequest::getPageSize() const {
return pageSize_;
}
void ListNetworkInterfacesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListNetworkInterfacesRequest::getNodeId() const {
return nodeId_;
}
void ListNetworkInterfacesRequest::setNodeId(const std::string &nodeId) {
nodeId_ = nodeId;
setBodyParameter(std::string("NodeId"), nodeId);
}
std::string ListNetworkInterfacesRequest::getSubnetId() const {
return subnetId_;
}
void ListNetworkInterfacesRequest::setSubnetId(const std::string &subnetId) {
subnetId_ = subnetId;
setBodyParameter(std::string("SubnetId"), subnetId);
}
std::string ListNetworkInterfacesRequest::getIp() const {
return ip_;
}
void ListNetworkInterfacesRequest::setIp(const std::string &ip) {
ip_ = ip;
setBodyParameter(std::string("Ip"), ip);
}
std::string ListNetworkInterfacesRequest::getVpdId() const {
return vpdId_;
}
void ListNetworkInterfacesRequest::setVpdId(const std::string &vpdId) {
vpdId_ = vpdId;
setBodyParameter(std::string("VpdId"), vpdId);
}
bool ListNetworkInterfacesRequest::getEnablePage() const {
return enablePage_;
}
void ListNetworkInterfacesRequest::setEnablePage(bool enablePage) {
enablePage_ = enablePage;
setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
}
std::string ListNetworkInterfacesRequest::getNetworkInterfaceId() const {
return networkInterfaceId_;
}
void ListNetworkInterfacesRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
networkInterfaceId_ = networkInterfaceId;
setBodyParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
}

View File

@@ -0,0 +1,137 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListNetworkInterfacesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListNetworkInterfacesResult::ListNetworkInterfacesResult() :
ServiceResult()
{}
ListNetworkInterfacesResult::ListNetworkInterfacesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListNetworkInterfacesResult::~ListNetworkInterfacesResult()
{}
void ListNetworkInterfacesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Total"].isNull())
content_.total = std::stol(contentNode["Total"].asString());
auto allDataNode = contentNode["Data"]["DataItem"];
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["TenantId"].isNull())
dataItemObject.tenantId = contentNodeDataDataItem["TenantId"].asString();
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["NetworkInterfaceId"].isNull())
dataItemObject.networkInterfaceId = contentNodeDataDataItem["NetworkInterfaceId"].asString();
if(!contentNodeDataDataItem["NodeId"].isNull())
dataItemObject.nodeId = contentNodeDataDataItem["NodeId"].asString();
if(!contentNodeDataDataItem["ZoneId"].isNull())
dataItemObject.zoneId = contentNodeDataDataItem["ZoneId"].asString();
if(!contentNodeDataDataItem["Ip"].isNull())
dataItemObject.ip = contentNodeDataDataItem["Ip"].asString();
if(!contentNodeDataDataItem["ServiceMac"].isNull())
dataItemObject.serviceMac = contentNodeDataDataItem["ServiceMac"].asString();
if(!contentNodeDataDataItem["Status"].isNull())
dataItemObject.status = contentNodeDataDataItem["Status"].asString();
if(!contentNodeDataDataItem["Gateway"].isNull())
dataItemObject.gateway = contentNodeDataDataItem["Gateway"].asString();
if(!contentNodeDataDataItem["CreateTime"].isNull())
dataItemObject.createTime = contentNodeDataDataItem["CreateTime"].asString();
if(!contentNodeDataDataItem["Quota"].isNull())
dataItemObject.quota = std::stoi(contentNodeDataDataItem["Quota"].asString());
if(!contentNodeDataDataItem["NcType"].isNull())
dataItemObject.ncType = contentNodeDataDataItem["NcType"].asString();
if(!contentNodeDataDataItem["NetworkInterfaceName"].isNull())
dataItemObject.networkInterfaceName = contentNodeDataDataItem["NetworkInterfaceName"].asString();
auto allPrivateIpAddressMacGroupNode = contentNodeDataDataItem["PrivateIpAddressMacGroup"]["PrivateIpAddressMacGroupItem"];
for (auto contentNodeDataDataItemPrivateIpAddressMacGroupPrivateIpAddressMacGroupItem : allPrivateIpAddressMacGroupNode)
{
Content::DataItem::PrivateIpAddressMacGroupItem privateIpAddressMacGroupObject;
if(!contentNodeDataDataItemPrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["IpName"].isNull())
privateIpAddressMacGroupObject.ipName = contentNodeDataDataItemPrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["IpName"].asString();
if(!contentNodeDataDataItemPrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["PrivateIpAddress"].isNull())
privateIpAddressMacGroupObject.privateIpAddress = contentNodeDataDataItemPrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["PrivateIpAddress"].asString();
if(!contentNodeDataDataItemPrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["IpAddressMac"].isNull())
privateIpAddressMacGroupObject.ipAddressMac = contentNodeDataDataItemPrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["IpAddressMac"].asString();
if(!contentNodeDataDataItemPrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["Status"].isNull())
privateIpAddressMacGroupObject.status = contentNodeDataDataItemPrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["Status"].asString();
if(!contentNodeDataDataItemPrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["Description"].isNull())
privateIpAddressMacGroupObject.description = contentNodeDataDataItemPrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["Description"].asString();
if(!contentNodeDataDataItemPrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["Message"].isNull())
privateIpAddressMacGroupObject.message = contentNodeDataDataItemPrivateIpAddressMacGroupPrivateIpAddressMacGroupItem["Message"].asString();
dataItemObject.privateIpAddressMacGroup.push_back(privateIpAddressMacGroupObject);
}
auto vpdBaseInfoNode = value["VpdBaseInfo"];
if(!vpdBaseInfoNode["VpdId"].isNull())
dataItemObject.vpdBaseInfo.vpdId = vpdBaseInfoNode["VpdId"].asString();
if(!vpdBaseInfoNode["VpdName"].isNull())
dataItemObject.vpdBaseInfo.vpdName = vpdBaseInfoNode["VpdName"].asString();
if(!vpdBaseInfoNode["Cidr"].isNull())
dataItemObject.vpdBaseInfo.cidr = vpdBaseInfoNode["Cidr"].asString();
if(!vpdBaseInfoNode["CreateTime"].isNull())
dataItemObject.vpdBaseInfo.createTime = vpdBaseInfoNode["CreateTime"].asString();
auto subnetBaseInfoNode = value["SubnetBaseInfo"];
if(!subnetBaseInfoNode["SubnetId"].isNull())
dataItemObject.subnetBaseInfo.subnetId = subnetBaseInfoNode["SubnetId"].asString();
if(!subnetBaseInfoNode["SubnetName"].isNull())
dataItemObject.subnetBaseInfo.subnetName = subnetBaseInfoNode["SubnetName"].asString();
if(!subnetBaseInfoNode["Cidr"].isNull())
dataItemObject.subnetBaseInfo.cidr = subnetBaseInfoNode["Cidr"].asString();
if(!subnetBaseInfoNode["CreateTime"].isNull())
dataItemObject.subnetBaseInfo.createTime = subnetBaseInfoNode["CreateTime"].asString();
auto allEthernet = value["Ethernet"]["Ethernet"];
for (auto value : allEthernet)
dataItemObject.ethernet.push_back(value.asString());
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListNetworkInterfacesResult::getMessage()const
{
return message_;
}
ListNetworkInterfacesResult::Content ListNetworkInterfacesResult::getContent()const
{
return content_;
}
int ListNetworkInterfacesResult::getCode()const
{
return code_;
}

View File

@@ -43,6 +43,15 @@ void ListSubnetsRequest::setPageNumber(int pageNumber) {
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListSubnetsRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void ListSubnetsRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string ListSubnetsRequest::getRegionId() const {
return regionId_;
}
@@ -61,6 +70,20 @@ void ListSubnetsRequest::setPageSize(int pageSize) {
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::vector<ListSubnetsRequest::Tag> ListSubnetsRequest::getTag() const {
return tag_;
}
void ListSubnetsRequest::setTag(const std::vector<ListSubnetsRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setBodyParameter(tagObjStr + ".Value", tagObj.value);
setBodyParameter(tagObjStr + ".Key", tagObj.key);
}
}
std::string ListSubnetsRequest::getSubnetId() const {
return subnetId_;
}
@@ -88,15 +111,6 @@ void ListSubnetsRequest::setEnablePage(bool enablePage) {
setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
}
std::string ListSubnetsRequest::getName() const {
return name_;
}
void ListSubnetsRequest::setName(const std::string &name) {
name_ = name;
setBodyParameter(std::string("Name"), name);
}
std::string ListSubnetsRequest::getZoneId() const {
return zoneId_;
}
@@ -106,6 +120,15 @@ void ListSubnetsRequest::setZoneId(const std::string &zoneId) {
setBodyParameter(std::string("ZoneId"), zoneId);
}
std::string ListSubnetsRequest::getSubnetName() const {
return subnetName_;
}
void ListSubnetsRequest::setSubnetName(const std::string &subnetName) {
subnetName_ = subnetName;
setBodyParameter(std::string("SubnetName"), subnetName);
}
std::string ListSubnetsRequest::getStatus() const {
return status_;
}

View File

@@ -46,10 +46,8 @@ void ListSubnetsResult::parse(const std::string &payload)
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["Id"].isNull())
dataItemObject.id = std::stol(contentNodeDataDataItem["Id"].asString());
if(!contentNodeDataDataItem["GmtCreate"].isNull())
dataItemObject.gmtCreate = contentNodeDataDataItem["GmtCreate"].asString();
if(!contentNodeDataDataItem["CreateTime"].isNull())
dataItemObject.createTime = contentNodeDataDataItem["CreateTime"].asString();
if(!contentNodeDataDataItem["GmtModified"].isNull())
dataItemObject.gmtModified = contentNodeDataDataItem["GmtModified"].asString();
if(!contentNodeDataDataItem["TenantId"].isNull())
@@ -62,8 +60,8 @@ void ListSubnetsResult::parse(const std::string &payload)
dataItemObject.type = contentNodeDataDataItem["Type"].asString();
if(!contentNodeDataDataItem["SubnetId"].isNull())
dataItemObject.subnetId = contentNodeDataDataItem["SubnetId"].asString();
if(!contentNodeDataDataItem["Name"].isNull())
dataItemObject.name = contentNodeDataDataItem["Name"].asString();
if(!contentNodeDataDataItem["SubnetName"].isNull())
dataItemObject.subnetName = contentNodeDataDataItem["SubnetName"].asString();
if(!contentNodeDataDataItem["Cidr"].isNull())
dataItemObject.cidr = contentNodeDataDataItem["Cidr"].asString();
if(!contentNodeDataDataItem["VpdId"].isNull())
@@ -73,16 +71,30 @@ void ListSubnetsResult::parse(const std::string &payload)
if(!contentNodeDataDataItem["Message"].isNull())
dataItemObject.message = contentNodeDataDataItem["Message"].asString();
if(!contentNodeDataDataItem["NcCount"].isNull())
dataItemObject.ncCount = std::stol(contentNodeDataDataItem["NcCount"].asString());
dataItemObject.ncCount = std::stoi(contentNodeDataDataItem["NcCount"].asString());
if(!contentNodeDataDataItem["NetworkInterfaceCount"].isNull())
dataItemObject.networkInterfaceCount = std::stoi(contentNodeDataDataItem["NetworkInterfaceCount"].asString());
if(!contentNodeDataDataItem["ResourceGroupId"].isNull())
dataItemObject.resourceGroupId = contentNodeDataDataItem["ResourceGroupId"].asString();
auto allTagsNode = contentNodeDataDataItem["Tags"]["Tag"];
for (auto contentNodeDataDataItemTagsTag : allTagsNode)
{
Content::DataItem::Tag tagsObject;
if(!contentNodeDataDataItemTagsTag["TagKey"].isNull())
tagsObject.tagKey = contentNodeDataDataItemTagsTag["TagKey"].asString();
if(!contentNodeDataDataItemTagsTag["TagValue"].isNull())
tagsObject.tagValue = contentNodeDataDataItemTagsTag["TagValue"].asString();
dataItemObject.tags.push_back(tagsObject);
}
auto vpdBaseInfoNode = value["VpdBaseInfo"];
if(!vpdBaseInfoNode["VpdId"].isNull())
dataItemObject.vpdBaseInfo.vpdId = vpdBaseInfoNode["VpdId"].asString();
if(!vpdBaseInfoNode["Name"].isNull())
dataItemObject.vpdBaseInfo.name = vpdBaseInfoNode["Name"].asString();
if(!vpdBaseInfoNode["VpdName"].isNull())
dataItemObject.vpdBaseInfo.vpdName = vpdBaseInfoNode["VpdName"].asString();
if(!vpdBaseInfoNode["Cidr"].isNull())
dataItemObject.vpdBaseInfo.cidr = vpdBaseInfoNode["Cidr"].asString();
if(!vpdBaseInfoNode["GmtCreate"].isNull())
dataItemObject.vpdBaseInfo.gmtCreate = vpdBaseInfoNode["GmtCreate"].asString();
if(!vpdBaseInfoNode["CreateTime"].isNull())
dataItemObject.vpdBaseInfo.createTime = vpdBaseInfoNode["CreateTime"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListVccGrantRulesRequest.h>
using AlibabaCloud::Eflo::Model::ListVccGrantRulesRequest;
ListVccGrantRulesRequest::ListVccGrantRulesRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListVccGrantRules") {
setMethod(HttpRequest::Method::Post);
}
ListVccGrantRulesRequest::~ListVccGrantRulesRequest() {}
std::string ListVccGrantRulesRequest::getGrantTenantId() const {
return grantTenantId_;
}
void ListVccGrantRulesRequest::setGrantTenantId(const std::string &grantTenantId) {
grantTenantId_ = grantTenantId;
setBodyParameter(std::string("GrantTenantId"), grantTenantId);
}
int ListVccGrantRulesRequest::getPageNumber() const {
return pageNumber_;
}
void ListVccGrantRulesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListVccGrantRulesRequest::getRegionId() const {
return regionId_;
}
void ListVccGrantRulesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string ListVccGrantRulesRequest::getGrantRuleId() const {
return grantRuleId_;
}
void ListVccGrantRulesRequest::setGrantRuleId(const std::string &grantRuleId) {
grantRuleId_ = grantRuleId;
setBodyParameter(std::string("GrantRuleId"), grantRuleId);
}
int ListVccGrantRulesRequest::getPageSize() const {
return pageSize_;
}
void ListVccGrantRulesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListVccGrantRulesRequest::getErId() const {
return erId_;
}
void ListVccGrantRulesRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
bool ListVccGrantRulesRequest::getForSelect() const {
return forSelect_;
}
void ListVccGrantRulesRequest::setForSelect(bool forSelect) {
forSelect_ = forSelect;
setBodyParameter(std::string("ForSelect"), forSelect ? "true" : "false");
}
std::string ListVccGrantRulesRequest::getInstanceId() const {
return instanceId_;
}
void ListVccGrantRulesRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
}
std::string ListVccGrantRulesRequest::getInstanceName() const {
return instanceName_;
}
void ListVccGrantRulesRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setBodyParameter(std::string("InstanceName"), instanceName);
}
bool ListVccGrantRulesRequest::getEnablePage() const {
return enablePage_;
}
void ListVccGrantRulesRequest::setEnablePage(bool enablePage) {
enablePage_ = enablePage;
setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
}

View File

@@ -0,0 +1,92 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListVccGrantRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListVccGrantRulesResult::ListVccGrantRulesResult() :
ServiceResult()
{}
ListVccGrantRulesResult::ListVccGrantRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListVccGrantRulesResult::~ListVccGrantRulesResult()
{}
void ListVccGrantRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Total"].isNull())
content_.total = std::stol(contentNode["Total"].asString());
auto allDataNode = contentNode["Data"]["DataItem"];
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["TenantId"].isNull())
dataItemObject.tenantId = contentNodeDataDataItem["TenantId"].asString();
if(!contentNodeDataDataItem["InstanceId"].isNull())
dataItemObject.instanceId = contentNodeDataDataItem["InstanceId"].asString();
if(!contentNodeDataDataItem["InstanceName"].isNull())
dataItemObject.instanceName = contentNodeDataDataItem["InstanceName"].asString();
if(!contentNodeDataDataItem["Product"].isNull())
dataItemObject.product = contentNodeDataDataItem["Product"].asString();
if(!contentNodeDataDataItem["ErId"].isNull())
dataItemObject.erId = contentNodeDataDataItem["ErId"].asString();
if(!contentNodeDataDataItem["GrantTenantId"].isNull())
dataItemObject.grantTenantId = contentNodeDataDataItem["GrantTenantId"].asString();
if(!contentNodeDataDataItem["Used"].isNull())
dataItemObject.used = contentNodeDataDataItem["Used"].asString() == "true";
if(!contentNodeDataDataItem["CreateTime"].isNull())
dataItemObject.createTime = contentNodeDataDataItem["CreateTime"].asString();
if(!contentNodeDataDataItem["GrantRuleId"].isNull())
dataItemObject.grantRuleId = contentNodeDataDataItem["GrantRuleId"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListVccGrantRulesResult::getMessage()const
{
return message_;
}
ListVccGrantRulesResult::Content ListVccGrantRulesResult::getContent()const
{
return content_;
}
int ListVccGrantRulesResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,135 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListVccRouteEntriesRequest.h>
using AlibabaCloud::Eflo::Model::ListVccRouteEntriesRequest;
ListVccRouteEntriesRequest::ListVccRouteEntriesRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListVccRouteEntries") {
setMethod(HttpRequest::Method::Post);
}
ListVccRouteEntriesRequest::~ListVccRouteEntriesRequest() {}
bool ListVccRouteEntriesRequest::getIgnoreDetailedRouteEntry() const {
return ignoreDetailedRouteEntry_;
}
void ListVccRouteEntriesRequest::setIgnoreDetailedRouteEntry(bool ignoreDetailedRouteEntry) {
ignoreDetailedRouteEntry_ = ignoreDetailedRouteEntry;
setBodyParameter(std::string("IgnoreDetailedRouteEntry"), ignoreDetailedRouteEntry ? "true" : "false");
}
int ListVccRouteEntriesRequest::getPageNumber() const {
return pageNumber_;
}
void ListVccRouteEntriesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListVccRouteEntriesRequest::getRouteType() const {
return routeType_;
}
void ListVccRouteEntriesRequest::setRouteType(const std::string &routeType) {
routeType_ = routeType;
setBodyParameter(std::string("RouteType"), routeType);
}
std::string ListVccRouteEntriesRequest::getRegionId() const {
return regionId_;
}
void ListVccRouteEntriesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
int ListVccRouteEntriesRequest::getPageSize() const {
return pageSize_;
}
void ListVccRouteEntriesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListVccRouteEntriesRequest::getNextHopId() const {
return nextHopId_;
}
void ListVccRouteEntriesRequest::setNextHopId(const std::string &nextHopId) {
nextHopId_ = nextHopId;
setBodyParameter(std::string("NextHopId"), nextHopId);
}
std::string ListVccRouteEntriesRequest::getVccId() const {
return vccId_;
}
void ListVccRouteEntriesRequest::setVccId(const std::string &vccId) {
vccId_ = vccId;
setBodyParameter(std::string("VccId"), vccId);
}
std::string ListVccRouteEntriesRequest::getNextHopType() const {
return nextHopType_;
}
void ListVccRouteEntriesRequest::setNextHopType(const std::string &nextHopType) {
nextHopType_ = nextHopType;
setBodyParameter(std::string("NextHopType"), nextHopType);
}
std::string ListVccRouteEntriesRequest::getVpdRouteEntryId() const {
return vpdRouteEntryId_;
}
void ListVccRouteEntriesRequest::setVpdRouteEntryId(const std::string &vpdRouteEntryId) {
vpdRouteEntryId_ = vpdRouteEntryId;
setBodyParameter(std::string("VpdRouteEntryId"), vpdRouteEntryId);
}
std::string ListVccRouteEntriesRequest::getDestinationCidrBlock() const {
return destinationCidrBlock_;
}
void ListVccRouteEntriesRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) {
destinationCidrBlock_ = destinationCidrBlock;
setBodyParameter(std::string("DestinationCidrBlock"), destinationCidrBlock);
}
bool ListVccRouteEntriesRequest::getEnablePage() const {
return enablePage_;
}
void ListVccRouteEntriesRequest::setEnablePage(bool enablePage) {
enablePage_ = enablePage;
setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
}
std::string ListVccRouteEntriesRequest::getStatus() const {
return status_;
}
void ListVccRouteEntriesRequest::setStatus(const std::string &status) {
status_ = status;
setBodyParameter(std::string("Status"), status);
}

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListVccRouteEntriesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListVccRouteEntriesResult::ListVccRouteEntriesResult() :
ServiceResult()
{}
ListVccRouteEntriesResult::ListVccRouteEntriesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListVccRouteEntriesResult::~ListVccRouteEntriesResult()
{}
void ListVccRouteEntriesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Total"].isNull())
content_.total = std::stol(contentNode["Total"].asString());
auto allDataNode = contentNode["Data"]["DataItem"];
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["VccId"].isNull())
dataItemObject.vccId = contentNodeDataDataItem["VccId"].asString();
if(!contentNodeDataDataItem["TenantId"].isNull())
dataItemObject.tenantId = contentNodeDataDataItem["TenantId"].asString();
if(!contentNodeDataDataItem["ResourceTenantId"].isNull())
dataItemObject.resourceTenantId = contentNodeDataDataItem["ResourceTenantId"].asString();
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["VccRouteEntryId"].isNull())
dataItemObject.vccRouteEntryId = contentNodeDataDataItem["VccRouteEntryId"].asString();
if(!contentNodeDataDataItem["DestinationCidrBlock"].isNull())
dataItemObject.destinationCidrBlock = contentNodeDataDataItem["DestinationCidrBlock"].asString();
if(!contentNodeDataDataItem["NextHopType"].isNull())
dataItemObject.nextHopType = contentNodeDataDataItem["NextHopType"].asString();
if(!contentNodeDataDataItem["NextHopId"].isNull())
dataItemObject.nextHopId = contentNodeDataDataItem["NextHopId"].asString();
if(!contentNodeDataDataItem["RouteType"].isNull())
dataItemObject.routeType = contentNodeDataDataItem["RouteType"].asString();
if(!contentNodeDataDataItem["Status"].isNull())
dataItemObject.status = contentNodeDataDataItem["Status"].asString();
if(!contentNodeDataDataItem["GmtModified"].isNull())
dataItemObject.gmtModified = contentNodeDataDataItem["GmtModified"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListVccRouteEntriesResult::getMessage()const
{
return message_;
}
ListVccRouteEntriesResult::Content ListVccRouteEntriesResult::getContent()const
{
return content_;
}
int ListVccRouteEntriesResult::getCode()const
{
return code_;
}

View File

@@ -43,6 +43,15 @@ void ListVccsRequest::setPageNumber(int pageNumber) {
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListVccsRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void ListVccsRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string ListVccsRequest::getRegionId() const {
return regionId_;
}
@@ -61,6 +70,20 @@ void ListVccsRequest::setPageSize(int pageSize) {
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::vector<ListVccsRequest::Tag> ListVccsRequest::getTag() const {
return tag_;
}
void ListVccsRequest::setTag(const std::vector<ListVccsRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setBodyParameter(tagObjStr + ".Value", tagObj.value);
setBodyParameter(tagObjStr + ".Key", tagObj.key);
}
}
std::string ListVccsRequest::getVccId() const {
return vccId_;
}
@@ -88,6 +111,15 @@ void ListVccsRequest::setExStatus(const std::string &exStatus) {
setBodyParameter(std::string("ExStatus"), exStatus);
}
std::string ListVccsRequest::getFilterErId() const {
return filterErId_;
}
void ListVccsRequest::setFilterErId(const std::string &filterErId) {
filterErId_ = filterErId;
setBodyParameter(std::string("FilterErId"), filterErId);
}
std::string ListVccsRequest::getVpdId() const {
return vpdId_;
}

View File

@@ -50,6 +50,8 @@ void ListVccsResult::parse(const std::string &payload)
dataItemObject.tenantId = contentNodeDataDataItem["TenantId"].asString();
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["ZoneId"].isNull())
dataItemObject.zoneId = contentNodeDataDataItem["ZoneId"].asString();
if(!contentNodeDataDataItem["VccId"].isNull())
dataItemObject.vccId = contentNodeDataDataItem["VccId"].asString();
if(!contentNodeDataDataItem["VpdId"].isNull())
@@ -70,27 +72,81 @@ void ListVccsResult::parse(const std::string &payload)
dataItemObject.portType = contentNodeDataDataItem["PortType"].asString();
if(!contentNodeDataDataItem["Status"].isNull())
dataItemObject.status = contentNodeDataDataItem["Status"].asString();
if(!contentNodeDataDataItem["CurrentNode"].isNull())
dataItemObject.currentNode = contentNodeDataDataItem["CurrentNode"].asString();
if(!contentNodeDataDataItem["Message"].isNull())
dataItemObject.message = contentNodeDataDataItem["Message"].asString();
if(!contentNodeDataDataItem["CreateTime"].isNull())
dataItemObject.createTime = contentNodeDataDataItem["CreateTime"].asString();
if(!contentNodeDataDataItem["GmtModified"].isNull())
dataItemObject.gmtModified = contentNodeDataDataItem["GmtModified"].asString();
if(!contentNodeDataDataItem["TaskId"].isNull())
dataItemObject.taskId = contentNodeDataDataItem["TaskId"].asString();
if(!contentNodeDataDataItem["Rate"].isNull())
dataItemObject.rate = contentNodeDataDataItem["Rate"].asString();
if(!contentNodeDataDataItem["BandwidthStr"].isNull())
dataItemObject.bandwidthStr = contentNodeDataDataItem["BandwidthStr"].asString();
if(!contentNodeDataDataItem["CommodityCode"].isNull())
dataItemObject.commodityCode = contentNodeDataDataItem["CommodityCode"].asString();
if(!contentNodeDataDataItem["BgpCidr"].isNull())
dataItemObject.bgpCidr = contentNodeDataDataItem["BgpCidr"].asString();
if(!contentNodeDataDataItem["ExpirationDate"].isNull())
dataItemObject.expirationDate = contentNodeDataDataItem["ExpirationDate"].asString();
if(!contentNodeDataDataItem["ResourceGroupId"].isNull())
dataItemObject.resourceGroupId = contentNodeDataDataItem["ResourceGroupId"].asString();
if(!contentNodeDataDataItem["ConnectionType"].isNull())
dataItemObject.connectionType = contentNodeDataDataItem["ConnectionType"].asString();
if(!contentNodeDataDataItem["CenOwnerId"].isNull())
dataItemObject.cenOwnerId = contentNodeDataDataItem["CenOwnerId"].asString();
auto allErInfosNode = contentNodeDataDataItem["ErInfos"]["ErInfo"];
for (auto contentNodeDataDataItemErInfosErInfo : allErInfosNode)
{
Content::DataItem::ErInfo erInfosObject;
if(!contentNodeDataDataItemErInfosErInfo["CreateTime"].isNull())
erInfosObject.createTime = contentNodeDataDataItemErInfosErInfo["CreateTime"].asString();
if(!contentNodeDataDataItemErInfosErInfo["GmtModified"].isNull())
erInfosObject.gmtModified = contentNodeDataDataItemErInfosErInfo["GmtModified"].asString();
if(!contentNodeDataDataItemErInfosErInfo["Message"].isNull())
erInfosObject.message = contentNodeDataDataItemErInfosErInfo["Message"].asString();
if(!contentNodeDataDataItemErInfosErInfo["ErId"].isNull())
erInfosObject.erId = contentNodeDataDataItemErInfosErInfo["ErId"].asString();
if(!contentNodeDataDataItemErInfosErInfo["RegionId"].isNull())
erInfosObject.regionId = contentNodeDataDataItemErInfosErInfo["RegionId"].asString();
if(!contentNodeDataDataItemErInfosErInfo["TenantId"].isNull())
erInfosObject.tenantId = contentNodeDataDataItemErInfosErInfo["TenantId"].asString();
if(!contentNodeDataDataItemErInfosErInfo["Status"].isNull())
erInfosObject.status = contentNodeDataDataItemErInfosErInfo["Status"].asString();
if(!contentNodeDataDataItemErInfosErInfo["ErName"].isNull())
erInfosObject.erName = contentNodeDataDataItemErInfosErInfo["ErName"].asString();
if(!contentNodeDataDataItemErInfosErInfo["MasterZoneId"].isNull())
erInfosObject.masterZoneId = contentNodeDataDataItemErInfosErInfo["MasterZoneId"].asString();
if(!contentNodeDataDataItemErInfosErInfo["Description"].isNull())
erInfosObject.description = contentNodeDataDataItemErInfosErInfo["Description"].asString();
if(!contentNodeDataDataItemErInfosErInfo["Connections"].isNull())
erInfosObject.connections = std::stol(contentNodeDataDataItemErInfosErInfo["Connections"].asString());
if(!contentNodeDataDataItemErInfosErInfo["RouteMaps"].isNull())
erInfosObject.routeMaps = std::stol(contentNodeDataDataItemErInfosErInfo["RouteMaps"].asString());
dataItemObject.erInfos.push_back(erInfosObject);
}
auto allTagsNode = contentNodeDataDataItem["Tags"]["Tag"];
for (auto contentNodeDataDataItemTagsTag : allTagsNode)
{
Content::DataItem::Tag tagsObject;
if(!contentNodeDataDataItemTagsTag["TagKey"].isNull())
tagsObject.tagKey = contentNodeDataDataItemTagsTag["TagKey"].asString();
if(!contentNodeDataDataItemTagsTag["TagValue"].isNull())
tagsObject.tagValue = contentNodeDataDataItemTagsTag["TagValue"].asString();
dataItemObject.tags.push_back(tagsObject);
}
auto vpdBaseInfoNode = value["VpdBaseInfo"];
if(!vpdBaseInfoNode["VpdId"].isNull())
dataItemObject.vpdBaseInfo.vpdId = vpdBaseInfoNode["VpdId"].asString();
if(!vpdBaseInfoNode["Name"].isNull())
dataItemObject.vpdBaseInfo.name = vpdBaseInfoNode["Name"].asString();
if(!vpdBaseInfoNode["VpdName"].isNull())
dataItemObject.vpdBaseInfo.vpdName = vpdBaseInfoNode["VpdName"].asString();
if(!vpdBaseInfoNode["Cidr"].isNull())
dataItemObject.vpdBaseInfo.cidr = vpdBaseInfoNode["Cidr"].asString();
if(!vpdBaseInfoNode["GmtCreate"].isNull())
dataItemObject.vpdBaseInfo.gmtCreate = vpdBaseInfoNode["GmtCreate"].asString();
if(!vpdBaseInfoNode["CreateTime"].isNull())
dataItemObject.vpdBaseInfo.createTime = vpdBaseInfoNode["CreateTime"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListVpdGrantRulesRequest.h>
using AlibabaCloud::Eflo::Model::ListVpdGrantRulesRequest;
ListVpdGrantRulesRequest::ListVpdGrantRulesRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListVpdGrantRules") {
setMethod(HttpRequest::Method::Post);
}
ListVpdGrantRulesRequest::~ListVpdGrantRulesRequest() {}
std::string ListVpdGrantRulesRequest::getGrantTenantId() const {
return grantTenantId_;
}
void ListVpdGrantRulesRequest::setGrantTenantId(const std::string &grantTenantId) {
grantTenantId_ = grantTenantId;
setBodyParameter(std::string("GrantTenantId"), grantTenantId);
}
int ListVpdGrantRulesRequest::getPageNumber() const {
return pageNumber_;
}
void ListVpdGrantRulesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListVpdGrantRulesRequest::getRegionId() const {
return regionId_;
}
void ListVpdGrantRulesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string ListVpdGrantRulesRequest::getGrantRuleId() const {
return grantRuleId_;
}
void ListVpdGrantRulesRequest::setGrantRuleId(const std::string &grantRuleId) {
grantRuleId_ = grantRuleId;
setBodyParameter(std::string("GrantRuleId"), grantRuleId);
}
int ListVpdGrantRulesRequest::getPageSize() const {
return pageSize_;
}
void ListVpdGrantRulesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListVpdGrantRulesRequest::getErId() const {
return erId_;
}
void ListVpdGrantRulesRequest::setErId(const std::string &erId) {
erId_ = erId;
setBodyParameter(std::string("ErId"), erId);
}
bool ListVpdGrantRulesRequest::getForSelect() const {
return forSelect_;
}
void ListVpdGrantRulesRequest::setForSelect(bool forSelect) {
forSelect_ = forSelect;
setBodyParameter(std::string("ForSelect"), forSelect ? "true" : "false");
}
std::string ListVpdGrantRulesRequest::getInstanceId() const {
return instanceId_;
}
void ListVpdGrantRulesRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
}
std::string ListVpdGrantRulesRequest::getInstanceName() const {
return instanceName_;
}
void ListVpdGrantRulesRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setBodyParameter(std::string("InstanceName"), instanceName);
}
bool ListVpdGrantRulesRequest::getEnablePage() const {
return enablePage_;
}
void ListVpdGrantRulesRequest::setEnablePage(bool enablePage) {
enablePage_ = enablePage;
setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
}

View File

@@ -0,0 +1,92 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListVpdGrantRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListVpdGrantRulesResult::ListVpdGrantRulesResult() :
ServiceResult()
{}
ListVpdGrantRulesResult::ListVpdGrantRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListVpdGrantRulesResult::~ListVpdGrantRulesResult()
{}
void ListVpdGrantRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Total"].isNull())
content_.total = std::stol(contentNode["Total"].asString());
auto allDataNode = contentNode["Data"]["DataItem"];
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["TenantId"].isNull())
dataItemObject.tenantId = contentNodeDataDataItem["TenantId"].asString();
if(!contentNodeDataDataItem["InstanceId"].isNull())
dataItemObject.instanceId = contentNodeDataDataItem["InstanceId"].asString();
if(!contentNodeDataDataItem["InstanceName"].isNull())
dataItemObject.instanceName = contentNodeDataDataItem["InstanceName"].asString();
if(!contentNodeDataDataItem["Product"].isNull())
dataItemObject.product = contentNodeDataDataItem["Product"].asString();
if(!contentNodeDataDataItem["ErId"].isNull())
dataItemObject.erId = contentNodeDataDataItem["ErId"].asString();
if(!contentNodeDataDataItem["GrantTenantId"].isNull())
dataItemObject.grantTenantId = contentNodeDataDataItem["GrantTenantId"].asString();
if(!contentNodeDataDataItem["Used"].isNull())
dataItemObject.used = contentNodeDataDataItem["Used"].asString() == "true";
if(!contentNodeDataDataItem["CreateTime"].isNull())
dataItemObject.createTime = contentNodeDataDataItem["CreateTime"].asString();
if(!contentNodeDataDataItem["GrantRuleId"].isNull())
dataItemObject.grantRuleId = contentNodeDataDataItem["GrantRuleId"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListVpdGrantRulesResult::getMessage()const
{
return message_;
}
ListVpdGrantRulesResult::Content ListVpdGrantRulesResult::getContent()const
{
return content_;
}
int ListVpdGrantRulesResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,135 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListVpdRouteEntriesRequest.h>
using AlibabaCloud::Eflo::Model::ListVpdRouteEntriesRequest;
ListVpdRouteEntriesRequest::ListVpdRouteEntriesRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListVpdRouteEntries") {
setMethod(HttpRequest::Method::Post);
}
ListVpdRouteEntriesRequest::~ListVpdRouteEntriesRequest() {}
bool ListVpdRouteEntriesRequest::getIgnoreDetailedRouteEntry() const {
return ignoreDetailedRouteEntry_;
}
void ListVpdRouteEntriesRequest::setIgnoreDetailedRouteEntry(bool ignoreDetailedRouteEntry) {
ignoreDetailedRouteEntry_ = ignoreDetailedRouteEntry;
setBodyParameter(std::string("IgnoreDetailedRouteEntry"), ignoreDetailedRouteEntry ? "true" : "false");
}
int ListVpdRouteEntriesRequest::getPageNumber() const {
return pageNumber_;
}
void ListVpdRouteEntriesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListVpdRouteEntriesRequest::getRouteType() const {
return routeType_;
}
void ListVpdRouteEntriesRequest::setRouteType(const std::string &routeType) {
routeType_ = routeType;
setBodyParameter(std::string("RouteType"), routeType);
}
std::string ListVpdRouteEntriesRequest::getRegionId() const {
return regionId_;
}
void ListVpdRouteEntriesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
int ListVpdRouteEntriesRequest::getPageSize() const {
return pageSize_;
}
void ListVpdRouteEntriesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListVpdRouteEntriesRequest::getNextHopId() const {
return nextHopId_;
}
void ListVpdRouteEntriesRequest::setNextHopId(const std::string &nextHopId) {
nextHopId_ = nextHopId;
setBodyParameter(std::string("NextHopId"), nextHopId);
}
std::string ListVpdRouteEntriesRequest::getNextHopType() const {
return nextHopType_;
}
void ListVpdRouteEntriesRequest::setNextHopType(const std::string &nextHopType) {
nextHopType_ = nextHopType;
setBodyParameter(std::string("NextHopType"), nextHopType);
}
std::string ListVpdRouteEntriesRequest::getVpdRouteEntryId() const {
return vpdRouteEntryId_;
}
void ListVpdRouteEntriesRequest::setVpdRouteEntryId(const std::string &vpdRouteEntryId) {
vpdRouteEntryId_ = vpdRouteEntryId;
setBodyParameter(std::string("VpdRouteEntryId"), vpdRouteEntryId);
}
std::string ListVpdRouteEntriesRequest::getDestinationCidrBlock() const {
return destinationCidrBlock_;
}
void ListVpdRouteEntriesRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) {
destinationCidrBlock_ = destinationCidrBlock;
setBodyParameter(std::string("DestinationCidrBlock"), destinationCidrBlock);
}
std::string ListVpdRouteEntriesRequest::getVpdId() const {
return vpdId_;
}
void ListVpdRouteEntriesRequest::setVpdId(const std::string &vpdId) {
vpdId_ = vpdId;
setBodyParameter(std::string("VpdId"), vpdId);
}
bool ListVpdRouteEntriesRequest::getEnablePage() const {
return enablePage_;
}
void ListVpdRouteEntriesRequest::setEnablePage(bool enablePage) {
enablePage_ = enablePage;
setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
}
std::string ListVpdRouteEntriesRequest::getStatus() const {
return status_;
}
void ListVpdRouteEntriesRequest::setStatus(const std::string &status) {
status_ = status;
setBodyParameter(std::string("Status"), status);
}

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListVpdRouteEntriesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListVpdRouteEntriesResult::ListVpdRouteEntriesResult() :
ServiceResult()
{}
ListVpdRouteEntriesResult::ListVpdRouteEntriesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListVpdRouteEntriesResult::~ListVpdRouteEntriesResult()
{}
void ListVpdRouteEntriesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Total"].isNull())
content_.total = std::stol(contentNode["Total"].asString());
auto allDataNode = contentNode["Data"]["DataItem"];
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["VpdId"].isNull())
dataItemObject.vpdId = contentNodeDataDataItem["VpdId"].asString();
if(!contentNodeDataDataItem["TenantId"].isNull())
dataItemObject.tenantId = contentNodeDataDataItem["TenantId"].asString();
if(!contentNodeDataDataItem["ResourceTenantId"].isNull())
dataItemObject.resourceTenantId = contentNodeDataDataItem["ResourceTenantId"].asString();
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["VpdRouteEntryId"].isNull())
dataItemObject.vpdRouteEntryId = contentNodeDataDataItem["VpdRouteEntryId"].asString();
if(!contentNodeDataDataItem["DestinationCidrBlock"].isNull())
dataItemObject.destinationCidrBlock = contentNodeDataDataItem["DestinationCidrBlock"].asString();
if(!contentNodeDataDataItem["NextHopType"].isNull())
dataItemObject.nextHopType = contentNodeDataDataItem["NextHopType"].asString();
if(!contentNodeDataDataItem["NextHopId"].isNull())
dataItemObject.nextHopId = contentNodeDataDataItem["NextHopId"].asString();
if(!contentNodeDataDataItem["RouteType"].isNull())
dataItemObject.routeType = contentNodeDataDataItem["RouteType"].asString();
if(!contentNodeDataDataItem["Status"].isNull())
dataItemObject.status = contentNodeDataDataItem["Status"].asString();
if(!contentNodeDataDataItem["GmtModified"].isNull())
dataItemObject.gmtModified = contentNodeDataDataItem["GmtModified"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListVpdRouteEntriesResult::getMessage()const
{
return message_;
}
ListVpdRouteEntriesResult::Content ListVpdRouteEntriesResult::getContent()const
{
return content_;
}
int ListVpdRouteEntriesResult::getCode()const
{
return code_;
}

View File

@@ -25,6 +25,15 @@ ListVpdsRequest::ListVpdsRequest()
ListVpdsRequest::~ListVpdsRequest() {}
std::string ListVpdsRequest::getVpdName() const {
return vpdName_;
}
void ListVpdsRequest::setVpdName(const std::string &vpdName) {
vpdName_ = vpdName;
setBodyParameter(std::string("VpdName"), vpdName);
}
int ListVpdsRequest::getPageNumber() const {
return pageNumber_;
}
@@ -43,6 +52,15 @@ void ListVpdsRequest::setWithDependence(bool withDependence) {
setBodyParameter(std::string("WithDependence"), withDependence ? "true" : "false");
}
std::string ListVpdsRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void ListVpdsRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string ListVpdsRequest::getRegionId() const {
return regionId_;
}
@@ -70,6 +88,20 @@ void ListVpdsRequest::setPageSize(int pageSize) {
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::vector<ListVpdsRequest::Tag> ListVpdsRequest::getTag() const {
return tag_;
}
void ListVpdsRequest::setTag(const std::vector<ListVpdsRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setBodyParameter(tagObjStr + ".Value", tagObj.value);
setBodyParameter(tagObjStr + ".Key", tagObj.key);
}
}
bool ListVpdsRequest::getForSelect() const {
return forSelect_;
}
@@ -106,15 +138,6 @@ void ListVpdsRequest::setEnablePage(bool enablePage) {
setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
}
std::string ListVpdsRequest::getName() const {
return name_;
}
void ListVpdsRequest::setName(const std::string &name) {
name_ = name;
setBodyParameter(std::string("Name"), name);
}
std::string ListVpdsRequest::getStatus() const {
return status_;
}

View File

@@ -46,12 +46,14 @@ void ListVpdsResult::parse(const std::string &payload)
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["TenantId"].isNull())
dataItemObject.tenantId = contentNodeDataDataItem["TenantId"].asString();
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["VpdId"].isNull())
dataItemObject.vpdId = contentNodeDataDataItem["VpdId"].asString();
if(!contentNodeDataDataItem["Name"].isNull())
dataItemObject.name = contentNodeDataDataItem["Name"].asString();
if(!contentNodeDataDataItem["VpdName"].isNull())
dataItemObject.vpdName = contentNodeDataDataItem["VpdName"].asString();
if(!contentNodeDataDataItem["Cidr"].isNull())
dataItemObject.cidr = contentNodeDataDataItem["Cidr"].asString();
if(!contentNodeDataDataItem["ServiceCidr"].isNull())
@@ -60,18 +62,63 @@ void ListVpdsResult::parse(const std::string &payload)
dataItemObject.status = contentNodeDataDataItem["Status"].asString();
if(!contentNodeDataDataItem["Message"].isNull())
dataItemObject.message = contentNodeDataDataItem["Message"].asString();
if(!contentNodeDataDataItem["Route"].isNull())
dataItemObject.route = std::stoi(contentNodeDataDataItem["Route"].asString());
if(!contentNodeDataDataItem["NcCount"].isNull())
dataItemObject.ncCount = std::stoi(contentNodeDataDataItem["NcCount"].asString());
if(!contentNodeDataDataItem["NetworkInterfaceCount"].isNull())
dataItemObject.networkInterfaceCount = std::stoi(contentNodeDataDataItem["NetworkInterfaceCount"].asString());
if(!contentNodeDataDataItem["SubnetCount"].isNull())
dataItemObject.subnetCount = std::stoi(contentNodeDataDataItem["SubnetCount"].asString());
if(!contentNodeDataDataItem["GmtCreate"].isNull())
dataItemObject.gmtCreate = contentNodeDataDataItem["GmtCreate"].asString();
if(!contentNodeDataDataItem["CreateTime"].isNull())
dataItemObject.createTime = contentNodeDataDataItem["CreateTime"].asString();
if(!contentNodeDataDataItem["GmtModified"].isNull())
dataItemObject.gmtModified = contentNodeDataDataItem["GmtModified"].asString();
if(!contentNodeDataDataItem["Dependence"].isNull())
dataItemObject.dependence = contentNodeDataDataItem["Dependence"].asString();
if(!contentNodeDataDataItem["ResourceGroupId"].isNull())
dataItemObject.resourceGroupId = contentNodeDataDataItem["ResourceGroupId"].asString();
auto allErInfosNode = contentNodeDataDataItem["ErInfos"]["ErInfo"];
for (auto contentNodeDataDataItemErInfosErInfo : allErInfosNode)
{
Content::DataItem::ErInfo erInfosObject;
if(!contentNodeDataDataItemErInfosErInfo["CreateTime"].isNull())
erInfosObject.createTime = contentNodeDataDataItemErInfosErInfo["CreateTime"].asString();
if(!contentNodeDataDataItemErInfosErInfo["GmtModified"].isNull())
erInfosObject.gmtModified = contentNodeDataDataItemErInfosErInfo["GmtModified"].asString();
if(!contentNodeDataDataItemErInfosErInfo["Message"].isNull())
erInfosObject.message = contentNodeDataDataItemErInfosErInfo["Message"].asString();
if(!contentNodeDataDataItemErInfosErInfo["ErId"].isNull())
erInfosObject.erId = contentNodeDataDataItemErInfosErInfo["ErId"].asString();
if(!contentNodeDataDataItemErInfosErInfo["RegionId"].isNull())
erInfosObject.regionId = contentNodeDataDataItemErInfosErInfo["RegionId"].asString();
if(!contentNodeDataDataItemErInfosErInfo["TenantId"].isNull())
erInfosObject.tenantId = contentNodeDataDataItemErInfosErInfo["TenantId"].asString();
if(!contentNodeDataDataItemErInfosErInfo["Status"].isNull())
erInfosObject.status = contentNodeDataDataItemErInfosErInfo["Status"].asString();
if(!contentNodeDataDataItemErInfosErInfo["ErName"].isNull())
erInfosObject.erName = contentNodeDataDataItemErInfosErInfo["ErName"].asString();
if(!contentNodeDataDataItemErInfosErInfo["MasterZoneId"].isNull())
erInfosObject.masterZoneId = contentNodeDataDataItemErInfosErInfo["MasterZoneId"].asString();
if(!contentNodeDataDataItemErInfosErInfo["Description"].isNull())
erInfosObject.description = contentNodeDataDataItemErInfosErInfo["Description"].asString();
if(!contentNodeDataDataItemErInfosErInfo["Connections"].isNull())
erInfosObject.connections = std::stol(contentNodeDataDataItemErInfosErInfo["Connections"].asString());
if(!contentNodeDataDataItemErInfosErInfo["RouteMaps"].isNull())
erInfosObject.routeMaps = std::stol(contentNodeDataDataItemErInfosErInfo["RouteMaps"].asString());
dataItemObject.erInfos.push_back(erInfosObject);
}
auto allTagsNode = contentNodeDataDataItem["Tags"]["Tag"];
for (auto contentNodeDataDataItemTagsTag : allTagsNode)
{
Content::DataItem::Tag tagsObject;
if(!contentNodeDataDataItemTagsTag["TagKey"].isNull())
tagsObject.tagKey = contentNodeDataDataItemTagsTag["TagKey"].asString();
if(!contentNodeDataDataItemTagsTag["TagValue"].isNull())
tagsObject.tagValue = contentNodeDataDataItemTagsTag["TagValue"].asString();
dataItemObject.tags.push_back(tagsObject);
}
auto allSecondaryCidrBlocks = value["SecondaryCidrBlocks"]["SecondaryCidrBlock"];
for (auto value : allSecondaryCidrBlocks)
dataItemObject.secondaryCidrBlocks.push_back(value.asString());
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())

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/eflo/model/QueryInstanceNcdRequest.h>
using AlibabaCloud::Eflo::Model::QueryInstanceNcdRequest;
QueryInstanceNcdRequest::QueryInstanceNcdRequest()
: RpcServiceRequest("eflo", "2022-05-30", "QueryInstanceNcd") {
setMethod(HttpRequest::Method::Post);
}
QueryInstanceNcdRequest::~QueryInstanceNcdRequest() {}
std::string QueryInstanceNcdRequest::getInstanceId2() const {
return instanceId2_;
}
void QueryInstanceNcdRequest::setInstanceId2(const std::string &instanceId2) {
instanceId2_ = instanceId2;
setBodyParameter(std::string("InstanceId2"), instanceId2);
}
std::string QueryInstanceNcdRequest::getRegionId() const {
return regionId_;
}
void QueryInstanceNcdRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string QueryInstanceNcdRequest::getInstanceId1() const {
return instanceId1_;
}
void QueryInstanceNcdRequest::setInstanceId1(const std::string &instanceId1) {
instanceId1_ = instanceId1;
setBodyParameter(std::string("InstanceId1"), instanceId1);
}
std::string QueryInstanceNcdRequest::getInstanceType() const {
return instanceType_;
}
void QueryInstanceNcdRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setBodyParameter(std::string("InstanceType"), instanceType);
}

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/eflo/model/QueryInstanceNcdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
QueryInstanceNcdResult::QueryInstanceNcdResult() :
ServiceResult()
{}
QueryInstanceNcdResult::QueryInstanceNcdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryInstanceNcdResult::~QueryInstanceNcdResult()
{}
void QueryInstanceNcdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Ncd"].isNull())
content_.ncd = std::stoi(contentNode["Ncd"].asString());
if(!contentNode["InstanceId1"].isNull())
content_.instanceId1 = contentNode["InstanceId1"].asString();
if(!contentNode["InstanceId2"].isNull())
content_.instanceId2 = contentNode["InstanceId2"].asString();
if(!contentNode["InstanceType"].isNull())
content_.instanceType = contentNode["InstanceType"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryInstanceNcdResult::getMessage()const
{
return message_;
}
QueryInstanceNcdResult::Content QueryInstanceNcdResult::getContent()const
{
return content_;
}
int QueryInstanceNcdResult::getCode()const
{
return code_;
}

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