CBN SDK Auto Released By shenshi,Version:1.34.16
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
93
cbn/src/model/AssociateCenBandwidthPackageRequest.cc
Normal file
93
cbn/src/model/AssociateCenBandwidthPackageRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/AssociateCenBandwidthPackageRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::AssociateCenBandwidthPackageRequest;
|
||||
|
||||
AssociateCenBandwidthPackageRequest::AssociateCenBandwidthPackageRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "AssociateCenBandwidthPackage")
|
||||
{}
|
||||
|
||||
AssociateCenBandwidthPackageRequest::~AssociateCenBandwidthPackageRequest()
|
||||
{}
|
||||
|
||||
long AssociateCenBandwidthPackageRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AssociateCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AssociateCenBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AssociateCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AssociateCenBandwidthPackageRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void AssociateCenBandwidthPackageRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string AssociateCenBandwidthPackageRequest::getCenBandwidthPackageId()const
|
||||
{
|
||||
return cenBandwidthPackageId_;
|
||||
}
|
||||
|
||||
void AssociateCenBandwidthPackageRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId)
|
||||
{
|
||||
cenBandwidthPackageId_ = cenBandwidthPackageId;
|
||||
setParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string AssociateCenBandwidthPackageRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void AssociateCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long AssociateCenBandwidthPackageRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AssociateCenBandwidthPackageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
45
cbn/src/model/AssociateCenBandwidthPackageResult.cc
Normal file
45
cbn/src/model/AssociateCenBandwidthPackageResult.cc
Normal 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/cbn/model/AssociateCenBandwidthPackageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
AssociateCenBandwidthPackageResult::AssociateCenBandwidthPackageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AssociateCenBandwidthPackageResult::AssociateCenBandwidthPackageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AssociateCenBandwidthPackageResult::~AssociateCenBandwidthPackageResult()
|
||||
{}
|
||||
|
||||
void AssociateCenBandwidthPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
126
cbn/src/model/AttachCenChildInstanceRequest.cc
Normal file
126
cbn/src/model/AttachCenChildInstanceRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/AttachCenChildInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::AttachCenChildInstanceRequest;
|
||||
|
||||
AttachCenChildInstanceRequest::AttachCenChildInstanceRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "AttachCenChildInstance")
|
||||
{}
|
||||
|
||||
AttachCenChildInstanceRequest::~AttachCenChildInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string AttachCenChildInstanceRequest::getChildInstanceId()const
|
||||
{
|
||||
return childInstanceId_;
|
||||
}
|
||||
|
||||
void AttachCenChildInstanceRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long AttachCenChildInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AttachCenChildInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AttachCenChildInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AttachCenChildInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AttachCenChildInstanceRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void AttachCenChildInstanceRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string AttachCenChildInstanceRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void AttachCenChildInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long AttachCenChildInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AttachCenChildInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AttachCenChildInstanceRequest::getChildInstanceType()const
|
||||
{
|
||||
return childInstanceType_;
|
||||
}
|
||||
|
||||
void AttachCenChildInstanceRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
long AttachCenChildInstanceRequest::getChildInstanceOwnerId()const
|
||||
{
|
||||
return childInstanceOwnerId_;
|
||||
}
|
||||
|
||||
void AttachCenChildInstanceRequest::setChildInstanceOwnerId(long childInstanceOwnerId)
|
||||
{
|
||||
childInstanceOwnerId_ = childInstanceOwnerId;
|
||||
setParameter("ChildInstanceOwnerId", std::to_string(childInstanceOwnerId));
|
||||
}
|
||||
|
||||
std::string AttachCenChildInstanceRequest::getChildInstanceRegionId()const
|
||||
{
|
||||
return childInstanceRegionId_;
|
||||
}
|
||||
|
||||
void AttachCenChildInstanceRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
45
cbn/src/model/AttachCenChildInstanceResult.cc
Normal file
45
cbn/src/model/AttachCenChildInstanceResult.cc
Normal 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/cbn/model/AttachCenChildInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
AttachCenChildInstanceResult::AttachCenChildInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachCenChildInstanceResult::AttachCenChildInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachCenChildInstanceResult::~AttachCenChildInstanceResult()
|
||||
{}
|
||||
|
||||
void AttachCenChildInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
181
cbn/src/model/CreateCenBandwidthPackageRequest.cc
Normal file
181
cbn/src/model/CreateCenBandwidthPackageRequest.cc
Normal file
@@ -0,0 +1,181 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/CreateCenBandwidthPackageRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::CreateCenBandwidthPackageRequest;
|
||||
|
||||
CreateCenBandwidthPackageRequest::CreateCenBandwidthPackageRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "CreateCenBandwidthPackage")
|
||||
{}
|
||||
|
||||
CreateCenBandwidthPackageRequest::~CreateCenBandwidthPackageRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getGeographicRegionBId()const
|
||||
{
|
||||
return geographicRegionBId_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setGeographicRegionBId(const std::string& geographicRegionBId)
|
||||
{
|
||||
geographicRegionBId_ = geographicRegionBId;
|
||||
setParameter("GeographicRegionBId", geographicRegionBId);
|
||||
}
|
||||
|
||||
long CreateCenBandwidthPackageRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CreateCenBandwidthPackageRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getGeographicRegionAId()const
|
||||
{
|
||||
return geographicRegionAId_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setGeographicRegionAId(const std::string& geographicRegionAId)
|
||||
{
|
||||
geographicRegionAId_ = geographicRegionAId;
|
||||
setParameter("GeographicRegionAId", geographicRegionAId);
|
||||
}
|
||||
|
||||
bool CreateCenBandwidthPackageRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", std::to_string(autoPay));
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int CreateCenBandwidthPackageRequest::getBandwidth()const
|
||||
{
|
||||
return bandwidth_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateCenBandwidthPackageRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getBandwidthPackageChargeType()const
|
||||
{
|
||||
return bandwidthPackageChargeType_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setBandwidthPackageChargeType(const std::string& bandwidthPackageChargeType)
|
||||
{
|
||||
bandwidthPackageChargeType_ = bandwidthPackageChargeType;
|
||||
setParameter("BandwidthPackageChargeType", bandwidthPackageChargeType);
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getPricingCycle()const
|
||||
{
|
||||
return pricingCycle_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
59
cbn/src/model/CreateCenBandwidthPackageResult.cc
Normal file
59
cbn/src/model/CreateCenBandwidthPackageResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/CreateCenBandwidthPackageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
CreateCenBandwidthPackageResult::CreateCenBandwidthPackageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCenBandwidthPackageResult::CreateCenBandwidthPackageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCenBandwidthPackageResult::~CreateCenBandwidthPackageResult()
|
||||
{}
|
||||
|
||||
void CreateCenBandwidthPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CenBandwidthPackageId"].isNull())
|
||||
cenBandwidthPackageId_ = value["CenBandwidthPackageId"].asString();
|
||||
if(!value["CenBandwidthPackageOrderId"].isNull())
|
||||
cenBandwidthPackageOrderId_ = value["CenBandwidthPackageOrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageResult::getCenBandwidthPackageId()const
|
||||
{
|
||||
return cenBandwidthPackageId_;
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageResult::getCenBandwidthPackageOrderId()const
|
||||
{
|
||||
return cenBandwidthPackageOrderId_;
|
||||
}
|
||||
|
||||
115
cbn/src/model/CreateCenRequest.cc
Normal file
115
cbn/src/model/CreateCenRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/CreateCenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::CreateCenRequest;
|
||||
|
||||
CreateCenRequest::CreateCenRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "CreateCen")
|
||||
{}
|
||||
|
||||
CreateCenRequest::~CreateCenRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCenRequest::getProtectionLevel()const
|
||||
{
|
||||
return protectionLevel_;
|
||||
}
|
||||
|
||||
void CreateCenRequest::setProtectionLevel(const std::string& protectionLevel)
|
||||
{
|
||||
protectionLevel_ = protectionLevel;
|
||||
setParameter("ProtectionLevel", protectionLevel);
|
||||
}
|
||||
|
||||
long CreateCenRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateCenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateCenRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCenRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateCenRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateCenRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateCenRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCenRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateCenRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateCenRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateCenRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateCenRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateCenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
52
cbn/src/model/CreateCenResult.cc
Normal file
52
cbn/src/model/CreateCenResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/CreateCenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
CreateCenResult::CreateCenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCenResult::CreateCenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCenResult::~CreateCenResult()
|
||||
{}
|
||||
|
||||
void CreateCenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CenId"].isNull())
|
||||
cenId_ = value["CenId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCenResult::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
82
cbn/src/model/DeleteCenBandwidthPackageRequest.cc
Normal file
82
cbn/src/model/DeleteCenBandwidthPackageRequest.cc
Normal 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/cbn/model/DeleteCenBandwidthPackageRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DeleteCenBandwidthPackageRequest;
|
||||
|
||||
DeleteCenBandwidthPackageRequest::DeleteCenBandwidthPackageRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DeleteCenBandwidthPackage")
|
||||
{}
|
||||
|
||||
DeleteCenBandwidthPackageRequest::~DeleteCenBandwidthPackageRequest()
|
||||
{}
|
||||
|
||||
long DeleteCenBandwidthPackageRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteCenBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteCenBandwidthPackageRequest::getCenBandwidthPackageId()const
|
||||
{
|
||||
return cenBandwidthPackageId_;
|
||||
}
|
||||
|
||||
void DeleteCenBandwidthPackageRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId)
|
||||
{
|
||||
cenBandwidthPackageId_ = cenBandwidthPackageId;
|
||||
setParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string DeleteCenBandwidthPackageRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteCenBandwidthPackageRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteCenBandwidthPackageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
45
cbn/src/model/DeleteCenBandwidthPackageResult.cc
Normal file
45
cbn/src/model/DeleteCenBandwidthPackageResult.cc
Normal 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/cbn/model/DeleteCenBandwidthPackageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DeleteCenBandwidthPackageResult::DeleteCenBandwidthPackageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteCenBandwidthPackageResult::DeleteCenBandwidthPackageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteCenBandwidthPackageResult::~DeleteCenBandwidthPackageResult()
|
||||
{}
|
||||
|
||||
void DeleteCenBandwidthPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
82
cbn/src/model/DeleteCenRequest.cc
Normal file
82
cbn/src/model/DeleteCenRequest.cc
Normal 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/cbn/model/DeleteCenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DeleteCenRequest;
|
||||
|
||||
DeleteCenRequest::DeleteCenRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DeleteCen")
|
||||
{}
|
||||
|
||||
DeleteCenRequest::~DeleteCenRequest()
|
||||
{}
|
||||
|
||||
long DeleteCenRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteCenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteCenRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteCenRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DeleteCenRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DeleteCenRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteCenRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteCenRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteCenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
45
cbn/src/model/DeleteCenResult.cc
Normal file
45
cbn/src/model/DeleteCenResult.cc
Normal 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/cbn/model/DeleteCenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DeleteCenResult::DeleteCenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteCenResult::DeleteCenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteCenResult::~DeleteCenResult()
|
||||
{}
|
||||
|
||||
void DeleteCenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
115
cbn/src/model/DeleteRouteServiceInCenRequest.cc
Normal file
115
cbn/src/model/DeleteRouteServiceInCenRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DeleteRouteServiceInCenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DeleteRouteServiceInCenRequest;
|
||||
|
||||
DeleteRouteServiceInCenRequest::DeleteRouteServiceInCenRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DeleteRouteServiceInCen")
|
||||
{}
|
||||
|
||||
DeleteRouteServiceInCenRequest::~DeleteRouteServiceInCenRequest()
|
||||
{}
|
||||
|
||||
long DeleteRouteServiceInCenRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteRouteServiceInCenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteRouteServiceInCenRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteRouteServiceInCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteRouteServiceInCenRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DeleteRouteServiceInCenRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DeleteRouteServiceInCenRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteRouteServiceInCenRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteRouteServiceInCenRequest::getHost()const
|
||||
{
|
||||
return host_;
|
||||
}
|
||||
|
||||
void DeleteRouteServiceInCenRequest::setHost(const std::string& host)
|
||||
{
|
||||
host_ = host;
|
||||
setParameter("Host", host);
|
||||
}
|
||||
|
||||
std::string DeleteRouteServiceInCenRequest::getHostRegionId()const
|
||||
{
|
||||
return hostRegionId_;
|
||||
}
|
||||
|
||||
void DeleteRouteServiceInCenRequest::setHostRegionId(const std::string& hostRegionId)
|
||||
{
|
||||
hostRegionId_ = hostRegionId;
|
||||
setParameter("HostRegionId", hostRegionId);
|
||||
}
|
||||
|
||||
std::string DeleteRouteServiceInCenRequest::getAccessRegionId()const
|
||||
{
|
||||
return accessRegionId_;
|
||||
}
|
||||
|
||||
void DeleteRouteServiceInCenRequest::setAccessRegionId(const std::string& accessRegionId)
|
||||
{
|
||||
accessRegionId_ = accessRegionId;
|
||||
setParameter("AccessRegionId", accessRegionId);
|
||||
}
|
||||
|
||||
long DeleteRouteServiceInCenRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteRouteServiceInCenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
45
cbn/src/model/DeleteRouteServiceInCenResult.cc
Normal file
45
cbn/src/model/DeleteRouteServiceInCenResult.cc
Normal 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/cbn/model/DeleteRouteServiceInCenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DeleteRouteServiceInCenResult::DeleteRouteServiceInCenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRouteServiceInCenResult::DeleteRouteServiceInCenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRouteServiceInCenResult::~DeleteRouteServiceInCenResult()
|
||||
{}
|
||||
|
||||
void DeleteRouteServiceInCenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCenAttachedChildInstanceAttributeRequest;
|
||||
|
||||
DescribeCenAttachedChildInstanceAttributeRequest::DescribeCenAttachedChildInstanceAttributeRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeCenAttachedChildInstanceAttribute")
|
||||
{}
|
||||
|
||||
DescribeCenAttachedChildInstanceAttributeRequest::~DescribeCenAttachedChildInstanceAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceId()const
|
||||
{
|
||||
return childInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long DescribeCenAttachedChildInstanceAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeCenAttachedChildInstanceAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceType()const
|
||||
{
|
||||
return childInstanceType_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceRegionId()const
|
||||
{
|
||||
return childInstanceRegionId_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
101
cbn/src/model/DescribeCenAttachedChildInstanceAttributeResult.cc
Normal file
101
cbn/src/model/DescribeCenAttachedChildInstanceAttributeResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCenAttachedChildInstanceAttributeResult::DescribeCenAttachedChildInstanceAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCenAttachedChildInstanceAttributeResult::DescribeCenAttachedChildInstanceAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCenAttachedChildInstanceAttributeResult::~DescribeCenAttachedChildInstanceAttributeResult()
|
||||
{}
|
||||
|
||||
void DescribeCenAttachedChildInstanceAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CenId"].isNull())
|
||||
cenId_ = value["CenId"].asString();
|
||||
if(!value["ChildInstanceId"].isNull())
|
||||
childInstanceId_ = value["ChildInstanceId"].asString();
|
||||
if(!value["ChildInstanceType"].isNull())
|
||||
childInstanceType_ = value["ChildInstanceType"].asString();
|
||||
if(!value["ChildInstanceRegionId"].isNull())
|
||||
childInstanceRegionId_ = value["ChildInstanceRegionId"].asString();
|
||||
if(!value["ChildInstanceOwnerId"].isNull())
|
||||
childInstanceOwnerId_ = std::stol(value["ChildInstanceOwnerId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["ChildInstanceName"].isNull())
|
||||
childInstanceName_ = value["ChildInstanceName"].asString();
|
||||
if(!value["ChildInstanceAttachTime"].isNull())
|
||||
childInstanceAttachTime_ = value["ChildInstanceAttachTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceType()const
|
||||
{
|
||||
return childInstanceType_;
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeResult::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceAttachTime()const
|
||||
{
|
||||
return childInstanceAttachTime_;
|
||||
}
|
||||
|
||||
long DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceOwnerId()const
|
||||
{
|
||||
return childInstanceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceName()const
|
||||
{
|
||||
return childInstanceName_;
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceId()const
|
||||
{
|
||||
return childInstanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceRegionId()const
|
||||
{
|
||||
return childInstanceRegionId_;
|
||||
}
|
||||
|
||||
126
cbn/src/model/DescribeCenAttachedChildInstancesRequest.cc
Normal file
126
cbn/src/model/DescribeCenAttachedChildInstancesRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenAttachedChildInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCenAttachedChildInstancesRequest;
|
||||
|
||||
DescribeCenAttachedChildInstancesRequest::DescribeCenAttachedChildInstancesRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeCenAttachedChildInstances")
|
||||
{}
|
||||
|
||||
DescribeCenAttachedChildInstancesRequest::~DescribeCenAttachedChildInstancesRequest()
|
||||
{}
|
||||
|
||||
long DescribeCenAttachedChildInstancesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstancesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstancesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstancesRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstancesRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstancesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstancesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeCenAttachedChildInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenAttachedChildInstancesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstancesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstancesRequest::getChildInstanceType()const
|
||||
{
|
||||
return childInstanceType_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstancesRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
int DescribeCenAttachedChildInstancesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstancesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstancesRequest::getChildInstanceRegionId()const
|
||||
{
|
||||
return childInstanceRegionId_;
|
||||
}
|
||||
|
||||
void DescribeCenAttachedChildInstancesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
91
cbn/src/model/DescribeCenAttachedChildInstancesResult.cc
Normal file
91
cbn/src/model/DescribeCenAttachedChildInstancesResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenAttachedChildInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCenAttachedChildInstancesResult::DescribeCenAttachedChildInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCenAttachedChildInstancesResult::DescribeCenAttachedChildInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCenAttachedChildInstancesResult::~DescribeCenAttachedChildInstancesResult()
|
||||
{}
|
||||
|
||||
void DescribeCenAttachedChildInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allChildInstances = value["ChildInstances"]["ChildInstance"];
|
||||
for (auto value : allChildInstances)
|
||||
{
|
||||
ChildInstance childInstancesObject;
|
||||
if(!value["CenId"].isNull())
|
||||
childInstancesObject.cenId = value["CenId"].asString();
|
||||
if(!value["ChildInstanceId"].isNull())
|
||||
childInstancesObject.childInstanceId = value["ChildInstanceId"].asString();
|
||||
if(!value["ChildInstanceType"].isNull())
|
||||
childInstancesObject.childInstanceType = value["ChildInstanceType"].asString();
|
||||
if(!value["ChildInstanceRegionId"].isNull())
|
||||
childInstancesObject.childInstanceRegionId = value["ChildInstanceRegionId"].asString();
|
||||
if(!value["ChildInstanceOwnerId"].isNull())
|
||||
childInstancesObject.childInstanceOwnerId = std::stol(value["ChildInstanceOwnerId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
childInstancesObject.status = value["Status"].asString();
|
||||
if(!value["ChildInstanceAttachTime"].isNull())
|
||||
childInstancesObject.childInstanceAttachTime = value["ChildInstanceAttachTime"].asString();
|
||||
childInstances_.push_back(childInstancesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCenAttachedChildInstancesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCenAttachedChildInstancesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCenAttachedChildInstancesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCenAttachedChildInstancesResult::ChildInstance> DescribeCenAttachedChildInstancesResult::getChildInstances()const
|
||||
{
|
||||
return childInstances_;
|
||||
}
|
||||
|
||||
121
cbn/src/model/DescribeCenBandwidthPackagesRequest.cc
Normal file
121
cbn/src/model/DescribeCenBandwidthPackagesRequest.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenBandwidthPackagesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCenBandwidthPackagesRequest;
|
||||
|
||||
DescribeCenBandwidthPackagesRequest::DescribeCenBandwidthPackagesRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeCenBandwidthPackages")
|
||||
{}
|
||||
|
||||
DescribeCenBandwidthPackagesRequest::~DescribeCenBandwidthPackagesRequest()
|
||||
{}
|
||||
|
||||
std::vector<DescribeCenBandwidthPackagesRequest::Filter> DescribeCenBandwidthPackagesRequest::getFilter()const
|
||||
{
|
||||
return filter_;
|
||||
}
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setFilter(const std::vector<Filter>& filter)
|
||||
{
|
||||
filter_ = filter;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= filter.size(); i++) {
|
||||
auto obj = filter.at(i);
|
||||
std::string str ="Filter."+ std::to_string(i);
|
||||
for(int i = 0; i!= obj.value.size(); i++)
|
||||
setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i));
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
long DescribeCenBandwidthPackagesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenBandwidthPackagesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenBandwidthPackagesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeCenBandwidthPackagesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenBandwidthPackagesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCenBandwidthPackagesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
bool DescribeCenBandwidthPackagesRequest::getIsOrKey()const
|
||||
{
|
||||
return isOrKey_;
|
||||
}
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setIsOrKey(bool isOrKey)
|
||||
{
|
||||
isOrKey_ = isOrKey;
|
||||
setParameter("IsOrKey", std::to_string(isOrKey));
|
||||
}
|
||||
106
cbn/src/model/DescribeCenBandwidthPackagesResult.cc
Normal file
106
cbn/src/model/DescribeCenBandwidthPackagesResult.cc
Normal 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/cbn/model/DescribeCenBandwidthPackagesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCenBandwidthPackagesResult::DescribeCenBandwidthPackagesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCenBandwidthPackagesResult::DescribeCenBandwidthPackagesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCenBandwidthPackagesResult::~DescribeCenBandwidthPackagesResult()
|
||||
{}
|
||||
|
||||
void DescribeCenBandwidthPackagesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCenBandwidthPackages = value["CenBandwidthPackages"]["CenBandwidthPackage"];
|
||||
for (auto value : allCenBandwidthPackages)
|
||||
{
|
||||
CenBandwidthPackage cenBandwidthPackagesObject;
|
||||
if(!value["CenBandwidthPackageId"].isNull())
|
||||
cenBandwidthPackagesObject.cenBandwidthPackageId = value["CenBandwidthPackageId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
cenBandwidthPackagesObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
cenBandwidthPackagesObject.description = value["Description"].asString();
|
||||
if(!value["Bandwidth"].isNull())
|
||||
cenBandwidthPackagesObject.bandwidth = std::stol(value["Bandwidth"].asString());
|
||||
if(!value["BandwidthPackageChargeType"].isNull())
|
||||
cenBandwidthPackagesObject.bandwidthPackageChargeType = value["BandwidthPackageChargeType"].asString();
|
||||
if(!value["GeographicRegionAId"].isNull())
|
||||
cenBandwidthPackagesObject.geographicRegionAId = value["GeographicRegionAId"].asString();
|
||||
if(!value["GeographicRegionBId"].isNull())
|
||||
cenBandwidthPackagesObject.geographicRegionBId = value["GeographicRegionBId"].asString();
|
||||
if(!value["GeographicSpanId"].isNull())
|
||||
cenBandwidthPackagesObject.geographicSpanId = value["GeographicSpanId"].asString();
|
||||
if(!value["BusinessStatus"].isNull())
|
||||
cenBandwidthPackagesObject.businessStatus = value["BusinessStatus"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
cenBandwidthPackagesObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["ExpiredTime"].isNull())
|
||||
cenBandwidthPackagesObject.expiredTime = value["ExpiredTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
cenBandwidthPackagesObject.status = value["Status"].asString();
|
||||
if(!value["IsCrossBorder"].isNull())
|
||||
cenBandwidthPackagesObject.isCrossBorder = value["IsCrossBorder"].asString() == "true";
|
||||
auto allCenIds = value["CenIds"]["CenId"];
|
||||
for (auto value : allCenIds)
|
||||
cenBandwidthPackagesObject.cenIds.push_back(value.asString());
|
||||
cenBandwidthPackages_.push_back(cenBandwidthPackagesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCenBandwidthPackagesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCenBandwidthPackagesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCenBandwidthPackagesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCenBandwidthPackagesResult::CenBandwidthPackage> DescribeCenBandwidthPackagesResult::getCenBandwidthPackages()const
|
||||
{
|
||||
return cenBandwidthPackages_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenGeographicSpanRemainingBandwidthRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCenGeographicSpanRemainingBandwidthRequest;
|
||||
|
||||
DescribeCenGeographicSpanRemainingBandwidthRequest::DescribeCenGeographicSpanRemainingBandwidthRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeCenGeographicSpanRemainingBandwidth")
|
||||
{}
|
||||
|
||||
DescribeCenGeographicSpanRemainingBandwidthRequest::~DescribeCenGeographicSpanRemainingBandwidthRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getGeographicRegionBId()const
|
||||
{
|
||||
return geographicRegionBId_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setGeographicRegionBId(const std::string& geographicRegionBId)
|
||||
{
|
||||
geographicRegionBId_ = geographicRegionBId;
|
||||
setParameter("GeographicRegionBId", geographicRegionBId);
|
||||
}
|
||||
|
||||
long DescribeCenGeographicSpanRemainingBandwidthRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getGeographicRegionAId()const
|
||||
{
|
||||
return geographicRegionAId_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setGeographicRegionAId(const std::string& geographicRegionAId)
|
||||
{
|
||||
geographicRegionAId_ = geographicRegionAId;
|
||||
setParameter("GeographicRegionAId", geographicRegionAId);
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeCenGeographicSpanRemainingBandwidthRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenGeographicSpanRemainingBandwidthRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCenGeographicSpanRemainingBandwidthRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenGeographicSpanRemainingBandwidthResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCenGeographicSpanRemainingBandwidthResult::DescribeCenGeographicSpanRemainingBandwidthResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCenGeographicSpanRemainingBandwidthResult::DescribeCenGeographicSpanRemainingBandwidthResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCenGeographicSpanRemainingBandwidthResult::~DescribeCenGeographicSpanRemainingBandwidthResult()
|
||||
{}
|
||||
|
||||
void DescribeCenGeographicSpanRemainingBandwidthResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RemainingBandwidth"].isNull())
|
||||
remainingBandwidth_ = std::stol(value["RemainingBandwidth"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeCenGeographicSpanRemainingBandwidthResult::getRemainingBandwidth()const
|
||||
{
|
||||
return remainingBandwidth_;
|
||||
}
|
||||
|
||||
104
cbn/src/model/DescribeCenGeographicSpansRequest.cc
Normal file
104
cbn/src/model/DescribeCenGeographicSpansRequest.cc
Normal 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/cbn/model/DescribeCenGeographicSpansRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCenGeographicSpansRequest;
|
||||
|
||||
DescribeCenGeographicSpansRequest::DescribeCenGeographicSpansRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeCenGeographicSpans")
|
||||
{}
|
||||
|
||||
DescribeCenGeographicSpansRequest::~DescribeCenGeographicSpansRequest()
|
||||
{}
|
||||
|
||||
long DescribeCenGeographicSpansRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpansRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpansRequest::getGeographicSpanId()const
|
||||
{
|
||||
return geographicSpanId_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpansRequest::setGeographicSpanId(const std::string& geographicSpanId)
|
||||
{
|
||||
geographicSpanId_ = geographicSpanId;
|
||||
setParameter("GeographicSpanId", geographicSpanId);
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpansRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpansRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpansRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpansRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeCenGeographicSpansRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpansRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenGeographicSpansRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpansRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCenGeographicSpansRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCenGeographicSpansRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
83
cbn/src/model/DescribeCenGeographicSpansResult.cc
Normal file
83
cbn/src/model/DescribeCenGeographicSpansResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenGeographicSpansResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCenGeographicSpansResult::DescribeCenGeographicSpansResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCenGeographicSpansResult::DescribeCenGeographicSpansResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCenGeographicSpansResult::~DescribeCenGeographicSpansResult()
|
||||
{}
|
||||
|
||||
void DescribeCenGeographicSpansResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allGeographicSpanModels = value["GeographicSpanModels"]["GeographicSpanModel"];
|
||||
for (auto value : allGeographicSpanModels)
|
||||
{
|
||||
GeographicSpanModel geographicSpanModelsObject;
|
||||
if(!value["GeographicSpanId"].isNull())
|
||||
geographicSpanModelsObject.geographicSpanId = value["GeographicSpanId"].asString();
|
||||
if(!value["LocalGeoRegionId"].isNull())
|
||||
geographicSpanModelsObject.localGeoRegionId = value["LocalGeoRegionId"].asString();
|
||||
if(!value["OppositeGeoRegionId"].isNull())
|
||||
geographicSpanModelsObject.oppositeGeoRegionId = value["OppositeGeoRegionId"].asString();
|
||||
geographicSpanModels_.push_back(geographicSpanModelsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCenGeographicSpansResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCenGeographicSpansResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCenGeographicSpansResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCenGeographicSpansResult::GeographicSpanModel> DescribeCenGeographicSpansResult::getGeographicSpanModels()const
|
||||
{
|
||||
return geographicSpanModels_;
|
||||
}
|
||||
|
||||
104
cbn/src/model/DescribeCenInterRegionBandwidthLimitsRequest.cc
Normal file
104
cbn/src/model/DescribeCenInterRegionBandwidthLimitsRequest.cc
Normal 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/cbn/model/DescribeCenInterRegionBandwidthLimitsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCenInterRegionBandwidthLimitsRequest;
|
||||
|
||||
DescribeCenInterRegionBandwidthLimitsRequest::DescribeCenInterRegionBandwidthLimitsRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeCenInterRegionBandwidthLimits")
|
||||
{}
|
||||
|
||||
DescribeCenInterRegionBandwidthLimitsRequest::~DescribeCenInterRegionBandwidthLimitsRequest()
|
||||
{}
|
||||
|
||||
long DescribeCenInterRegionBandwidthLimitsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenInterRegionBandwidthLimitsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenInterRegionBandwidthLimitsRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenInterRegionBandwidthLimitsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeCenInterRegionBandwidthLimitsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenInterRegionBandwidthLimitsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCenInterRegionBandwidthLimitsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
89
cbn/src/model/DescribeCenInterRegionBandwidthLimitsResult.cc
Normal file
89
cbn/src/model/DescribeCenInterRegionBandwidthLimitsResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCenInterRegionBandwidthLimitsResult::DescribeCenInterRegionBandwidthLimitsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCenInterRegionBandwidthLimitsResult::DescribeCenInterRegionBandwidthLimitsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCenInterRegionBandwidthLimitsResult::~DescribeCenInterRegionBandwidthLimitsResult()
|
||||
{}
|
||||
|
||||
void DescribeCenInterRegionBandwidthLimitsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCenInterRegionBandwidthLimits = value["CenInterRegionBandwidthLimits"]["CenInterRegionBandwidthLimit"];
|
||||
for (auto value : allCenInterRegionBandwidthLimits)
|
||||
{
|
||||
CenInterRegionBandwidthLimit cenInterRegionBandwidthLimitsObject;
|
||||
if(!value["CenId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.cenId = value["CenId"].asString();
|
||||
if(!value["LocalRegionId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.localRegionId = value["LocalRegionId"].asString();
|
||||
if(!value["OppositeRegionId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.oppositeRegionId = value["OppositeRegionId"].asString();
|
||||
if(!value["GeographicSpanId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.geographicSpanId = value["GeographicSpanId"].asString();
|
||||
if(!value["BandwidthLimit"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.bandwidthLimit = std::stol(value["BandwidthLimit"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.status = value["Status"].asString();
|
||||
cenInterRegionBandwidthLimits_.push_back(cenInterRegionBandwidthLimitsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCenInterRegionBandwidthLimitsResult::CenInterRegionBandwidthLimit> DescribeCenInterRegionBandwidthLimitsResult::getCenInterRegionBandwidthLimits()const
|
||||
{
|
||||
return cenInterRegionBandwidthLimits_;
|
||||
}
|
||||
|
||||
int DescribeCenInterRegionBandwidthLimitsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCenInterRegionBandwidthLimitsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCenInterRegionBandwidthLimitsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
104
cbn/src/model/DescribeCenPrivateZoneRoutesRequest.cc
Normal file
104
cbn/src/model/DescribeCenPrivateZoneRoutesRequest.cc
Normal 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/cbn/model/DescribeCenPrivateZoneRoutesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCenPrivateZoneRoutesRequest;
|
||||
|
||||
DescribeCenPrivateZoneRoutesRequest::DescribeCenPrivateZoneRoutesRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeCenPrivateZoneRoutes")
|
||||
{}
|
||||
|
||||
DescribeCenPrivateZoneRoutesRequest::~DescribeCenPrivateZoneRoutesRequest()
|
||||
{}
|
||||
|
||||
long DescribeCenPrivateZoneRoutesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenPrivateZoneRoutesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenPrivateZoneRoutesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenPrivateZoneRoutesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenPrivateZoneRoutesRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeCenPrivateZoneRoutesRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
int DescribeCenPrivateZoneRoutesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCenPrivateZoneRoutesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCenPrivateZoneRoutesRequest::getHostRegionId()const
|
||||
{
|
||||
return hostRegionId_;
|
||||
}
|
||||
|
||||
void DescribeCenPrivateZoneRoutesRequest::setHostRegionId(const std::string& hostRegionId)
|
||||
{
|
||||
hostRegionId_ = hostRegionId;
|
||||
setParameter("HostRegionId", hostRegionId);
|
||||
}
|
||||
|
||||
std::string DescribeCenPrivateZoneRoutesRequest::getAccessRegionId()const
|
||||
{
|
||||
return accessRegionId_;
|
||||
}
|
||||
|
||||
void DescribeCenPrivateZoneRoutesRequest::setAccessRegionId(const std::string& accessRegionId)
|
||||
{
|
||||
accessRegionId_ = accessRegionId;
|
||||
setParameter("AccessRegionId", accessRegionId);
|
||||
}
|
||||
|
||||
int DescribeCenPrivateZoneRoutesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCenPrivateZoneRoutesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
99
cbn/src/model/DescribeCenPrivateZoneRoutesResult.cc
Normal file
99
cbn/src/model/DescribeCenPrivateZoneRoutesResult.cc
Normal 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/cbn/model/DescribeCenPrivateZoneRoutesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCenPrivateZoneRoutesResult::DescribeCenPrivateZoneRoutesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCenPrivateZoneRoutesResult::DescribeCenPrivateZoneRoutesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCenPrivateZoneRoutesResult::~DescribeCenPrivateZoneRoutesResult()
|
||||
{}
|
||||
|
||||
void DescribeCenPrivateZoneRoutesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPrivateZoneInfos = value["PrivateZoneInfos"]["PrivateZoneInfo"];
|
||||
for (auto value : allPrivateZoneInfos)
|
||||
{
|
||||
PrivateZoneInfo privateZoneInfosObject;
|
||||
if(!value["AccessRegionId"].isNull())
|
||||
privateZoneInfosObject.accessRegionId = value["AccessRegionId"].asString();
|
||||
if(!value["HostRegionId"].isNull())
|
||||
privateZoneInfosObject.hostRegionId = value["HostRegionId"].asString();
|
||||
if(!value["HostVpcId"].isNull())
|
||||
privateZoneInfosObject.hostVpcId = value["HostVpcId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
privateZoneInfosObject.status = value["Status"].asString();
|
||||
privateZoneInfos_.push_back(privateZoneInfosObject);
|
||||
}
|
||||
if(!value["CenId"].isNull())
|
||||
cenId_ = value["CenId"].asString();
|
||||
if(!value["PrivateZoneDnsServers"].isNull())
|
||||
privateZoneDnsServers_ = value["PrivateZoneDnsServers"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCenPrivateZoneRoutesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCenPrivateZoneRoutesResult::PrivateZoneInfo> DescribeCenPrivateZoneRoutesResult::getPrivateZoneInfos()const
|
||||
{
|
||||
return privateZoneInfos_;
|
||||
}
|
||||
|
||||
int DescribeCenPrivateZoneRoutesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCenPrivateZoneRoutesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeCenPrivateZoneRoutesResult::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
std::string DescribeCenPrivateZoneRoutesResult::getPrivateZoneDnsServers()const
|
||||
{
|
||||
return privateZoneDnsServers_;
|
||||
}
|
||||
|
||||
115
cbn/src/model/DescribeCenRegionDomainRouteEntriesRequest.cc
Normal file
115
cbn/src/model/DescribeCenRegionDomainRouteEntriesRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCenRegionDomainRouteEntriesRequest;
|
||||
|
||||
DescribeCenRegionDomainRouteEntriesRequest::DescribeCenRegionDomainRouteEntriesRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeCenRegionDomainRouteEntries")
|
||||
{}
|
||||
|
||||
DescribeCenRegionDomainRouteEntriesRequest::~DescribeCenRegionDomainRouteEntriesRequest()
|
||||
{}
|
||||
|
||||
long DescribeCenRegionDomainRouteEntriesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenRegionDomainRouteEntriesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenRegionDomainRouteEntriesRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenRegionDomainRouteEntriesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenRegionDomainRouteEntriesRequest::getCenRegionId()const
|
||||
{
|
||||
return cenRegionId_;
|
||||
}
|
||||
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setCenRegionId(const std::string& cenRegionId)
|
||||
{
|
||||
cenRegionId_ = cenRegionId;
|
||||
setParameter("CenRegionId", cenRegionId);
|
||||
}
|
||||
|
||||
int DescribeCenRegionDomainRouteEntriesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenRegionDomainRouteEntriesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCenRegionDomainRouteEntriesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
87
cbn/src/model/DescribeCenRegionDomainRouteEntriesResult.cc
Normal file
87
cbn/src/model/DescribeCenRegionDomainRouteEntriesResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCenRegionDomainRouteEntriesResult::DescribeCenRegionDomainRouteEntriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCenRegionDomainRouteEntriesResult::DescribeCenRegionDomainRouteEntriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCenRegionDomainRouteEntriesResult::~DescribeCenRegionDomainRouteEntriesResult()
|
||||
{}
|
||||
|
||||
void DescribeCenRegionDomainRouteEntriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCenRouteEntries = value["CenRouteEntries"]["CenRouteEntry"];
|
||||
for (auto value : allCenRouteEntries)
|
||||
{
|
||||
CenRouteEntry cenRouteEntriesObject;
|
||||
if(!value["DestinationCidrBlock"].isNull())
|
||||
cenRouteEntriesObject.destinationCidrBlock = value["DestinationCidrBlock"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
cenRouteEntriesObject.type = value["Type"].asString();
|
||||
if(!value["NextHopInstanceId"].isNull())
|
||||
cenRouteEntriesObject.nextHopInstanceId = value["NextHopInstanceId"].asString();
|
||||
if(!value["NextHopType"].isNull())
|
||||
cenRouteEntriesObject.nextHopType = value["NextHopType"].asString();
|
||||
if(!value["NextHopRegionId"].isNull())
|
||||
cenRouteEntriesObject.nextHopRegionId = value["NextHopRegionId"].asString();
|
||||
cenRouteEntries_.push_back(cenRouteEntriesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCenRegionDomainRouteEntriesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCenRegionDomainRouteEntriesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCenRegionDomainRouteEntriesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCenRegionDomainRouteEntriesResult::CenRouteEntry> DescribeCenRegionDomainRouteEntriesResult::getCenRouteEntries()const
|
||||
{
|
||||
return cenRouteEntries_;
|
||||
}
|
||||
|
||||
137
cbn/src/model/DescribeCenVbrHealthCheckRequest.cc
Normal file
137
cbn/src/model/DescribeCenVbrHealthCheckRequest.cc
Normal 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/cbn/model/DescribeCenVbrHealthCheckRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCenVbrHealthCheckRequest;
|
||||
|
||||
DescribeCenVbrHealthCheckRequest::DescribeCenVbrHealthCheckRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeCenVbrHealthCheck")
|
||||
{}
|
||||
|
||||
DescribeCenVbrHealthCheckRequest::~DescribeCenVbrHealthCheckRequest()
|
||||
{}
|
||||
|
||||
long DescribeCenVbrHealthCheckRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenVbrHealthCheckRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenVbrHealthCheckRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeCenVbrHealthCheckRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
long DescribeCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const
|
||||
{
|
||||
return vbrInstanceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId)
|
||||
{
|
||||
vbrInstanceOwnerId_ = vbrInstanceOwnerId;
|
||||
setParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenVbrHealthCheckRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenVbrHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenVbrHealthCheckRequest::getVbrInstanceId()const
|
||||
{
|
||||
return vbrInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeCenVbrHealthCheckRequest::setVbrInstanceId(const std::string& vbrInstanceId)
|
||||
{
|
||||
vbrInstanceId_ = vbrInstanceId;
|
||||
setParameter("VbrInstanceId", vbrInstanceId);
|
||||
}
|
||||
|
||||
int DescribeCenVbrHealthCheckRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCenVbrHealthCheckRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenVbrHealthCheckRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCenVbrHealthCheckRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenVbrHealthCheckRequest::getVbrInstanceRegionId()const
|
||||
{
|
||||
return vbrInstanceRegionId_;
|
||||
}
|
||||
|
||||
void DescribeCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string& vbrInstanceRegionId)
|
||||
{
|
||||
vbrInstanceRegionId_ = vbrInstanceRegionId;
|
||||
setParameter("VbrInstanceRegionId", vbrInstanceRegionId);
|
||||
}
|
||||
|
||||
int DescribeCenVbrHealthCheckRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCenVbrHealthCheckRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
91
cbn/src/model/DescribeCenVbrHealthCheckResult.cc
Normal file
91
cbn/src/model/DescribeCenVbrHealthCheckResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenVbrHealthCheckResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCenVbrHealthCheckResult::DescribeCenVbrHealthCheckResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCenVbrHealthCheckResult::DescribeCenVbrHealthCheckResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCenVbrHealthCheckResult::~DescribeCenVbrHealthCheckResult()
|
||||
{}
|
||||
|
||||
void DescribeCenVbrHealthCheckResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVbrHealthChecks = value["VbrHealthChecks"]["VbrHealthCheck"];
|
||||
for (auto value : allVbrHealthChecks)
|
||||
{
|
||||
VbrHealthCheck vbrHealthChecksObject;
|
||||
if(!value["CenId"].isNull())
|
||||
vbrHealthChecksObject.cenId = value["CenId"].asString();
|
||||
if(!value["VbrInstanceId"].isNull())
|
||||
vbrHealthChecksObject.vbrInstanceId = value["VbrInstanceId"].asString();
|
||||
if(!value["LinkStatus"].isNull())
|
||||
vbrHealthChecksObject.linkStatus = value["LinkStatus"].asString();
|
||||
if(!value["PacketLoss"].isNull())
|
||||
vbrHealthChecksObject.packetLoss = std::stol(value["PacketLoss"].asString());
|
||||
if(!value["HealthCheckSourceIp"].isNull())
|
||||
vbrHealthChecksObject.healthCheckSourceIp = value["HealthCheckSourceIp"].asString();
|
||||
if(!value["HealthCheckTargetIp"].isNull())
|
||||
vbrHealthChecksObject.healthCheckTargetIp = value["HealthCheckTargetIp"].asString();
|
||||
if(!value["Delay"].isNull())
|
||||
vbrHealthChecksObject.delay = std::stol(value["Delay"].asString());
|
||||
vbrHealthChecks_.push_back(vbrHealthChecksObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCenVbrHealthCheckResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCenVbrHealthCheckResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCenVbrHealthCheckResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCenVbrHealthCheckResult::VbrHealthCheck> DescribeCenVbrHealthCheckResult::getVbrHealthChecks()const
|
||||
{
|
||||
return vbrHealthChecks_;
|
||||
}
|
||||
|
||||
127
cbn/src/model/DescribeCensRequest.cc
Normal file
127
cbn/src/model/DescribeCensRequest.cc
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCensRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCensRequest;
|
||||
|
||||
DescribeCensRequest::DescribeCensRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeCens")
|
||||
{}
|
||||
|
||||
DescribeCensRequest::~DescribeCensRequest()
|
||||
{}
|
||||
|
||||
std::vector<DescribeCensRequest::Filter> DescribeCensRequest::getFilter()const
|
||||
{
|
||||
return filter_;
|
||||
}
|
||||
|
||||
void DescribeCensRequest::setFilter(const std::vector<Filter>& filter)
|
||||
{
|
||||
filter_ = filter;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= filter.size(); i++) {
|
||||
auto obj = filter.at(i);
|
||||
std::string str ="Filter."+ std::to_string(i);
|
||||
for(int i = 0; i!= obj.value.size(); i++)
|
||||
setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i));
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
long DescribeCensRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCensRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCensRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCensRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCensRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCensRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeCensRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCensRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<DescribeCensRequest::Tag> DescribeCensRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeCensRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= tag.size(); i++) {
|
||||
auto obj = tag.at(i);
|
||||
std::string str ="Tag."+ std::to_string(i);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
long DescribeCensRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCensRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCensRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCensRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
102
cbn/src/model/DescribeCensResult.cc
Normal file
102
cbn/src/model/DescribeCensResult.cc
Normal 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/cbn/model/DescribeCensResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCensResult::DescribeCensResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCensResult::DescribeCensResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCensResult::~DescribeCensResult()
|
||||
{}
|
||||
|
||||
void DescribeCensResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCens = value["Cens"]["Cen"];
|
||||
for (auto value : allCens)
|
||||
{
|
||||
Cen censObject;
|
||||
if(!value["CenId"].isNull())
|
||||
censObject.cenId = value["CenId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
censObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
censObject.description = value["Description"].asString();
|
||||
if(!value["ProtectionLevel"].isNull())
|
||||
censObject.protectionLevel = value["ProtectionLevel"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
censObject.status = value["Status"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
censObject.creationTime = value["CreationTime"].asString();
|
||||
auto allTags = value["Tags"]["Tag"];
|
||||
for (auto value : allTags)
|
||||
{
|
||||
Cen::Tag tagsObject;
|
||||
if(!value["Key"].isNull())
|
||||
tagsObject.key = value["Key"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
tagsObject.value = value["Value"].asString();
|
||||
censObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto allCenBandwidthPackageIds = value["CenBandwidthPackageIds"]["CenBandwidthPackageId"];
|
||||
for (auto value : allCenBandwidthPackageIds)
|
||||
censObject.cenBandwidthPackageIds.push_back(value.asString());
|
||||
cens_.push_back(censObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCensResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCensResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCensResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCensResult::Cen> DescribeCensResult::getCens()const
|
||||
{
|
||||
return cens_;
|
||||
}
|
||||
|
||||
82
cbn/src/model/DescribeChildInstanceRegionsRequest.cc
Normal file
82
cbn/src/model/DescribeChildInstanceRegionsRequest.cc
Normal 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/cbn/model/DescribeChildInstanceRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeChildInstanceRegionsRequest;
|
||||
|
||||
DescribeChildInstanceRegionsRequest::DescribeChildInstanceRegionsRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeChildInstanceRegions")
|
||||
{}
|
||||
|
||||
DescribeChildInstanceRegionsRequest::~DescribeChildInstanceRegionsRequest()
|
||||
{}
|
||||
|
||||
long DescribeChildInstanceRegionsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeChildInstanceRegionsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeChildInstanceRegionsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeChildInstanceRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeChildInstanceRegionsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeChildInstanceRegionsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeChildInstanceRegionsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeChildInstanceRegionsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeChildInstanceRegionsRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void DescribeChildInstanceRegionsRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
60
cbn/src/model/DescribeChildInstanceRegionsResult.cc
Normal file
60
cbn/src/model/DescribeChildInstanceRegionsResult.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeChildInstanceRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeChildInstanceRegionsResult::DescribeChildInstanceRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeChildInstanceRegionsResult::DescribeChildInstanceRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeChildInstanceRegionsResult::~DescribeChildInstanceRegionsResult()
|
||||
{}
|
||||
|
||||
void DescribeChildInstanceRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegions = value["Regions"]["Region"];
|
||||
for (auto value : allRegions)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
regionsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["LocalName"].isNull())
|
||||
regionsObject.localName = value["LocalName"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeChildInstanceRegionsResult::Region> DescribeChildInstanceRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
104
cbn/src/model/DescribeGeographicRegionMembershipRequest.cc
Normal file
104
cbn/src/model/DescribeGeographicRegionMembershipRequest.cc
Normal 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/cbn/model/DescribeGeographicRegionMembershipRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeGeographicRegionMembershipRequest;
|
||||
|
||||
DescribeGeographicRegionMembershipRequest::DescribeGeographicRegionMembershipRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeGeographicRegionMembership")
|
||||
{}
|
||||
|
||||
DescribeGeographicRegionMembershipRequest::~DescribeGeographicRegionMembershipRequest()
|
||||
{}
|
||||
|
||||
long DescribeGeographicRegionMembershipRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeGeographicRegionMembershipRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeGeographicRegionMembershipRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeGeographicRegionMembershipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeGeographicRegionMembershipRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeGeographicRegionMembershipRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeGeographicRegionMembershipRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeGeographicRegionMembershipRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeGeographicRegionMembershipRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeGeographicRegionMembershipRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeGeographicRegionMembershipRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeGeographicRegionMembershipRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeGeographicRegionMembershipRequest::getGeographicRegionId()const
|
||||
{
|
||||
return geographicRegionId_;
|
||||
}
|
||||
|
||||
void DescribeGeographicRegionMembershipRequest::setGeographicRegionId(const std::string& geographicRegionId)
|
||||
{
|
||||
geographicRegionId_ = geographicRegionId;
|
||||
setParameter("GeographicRegionId", geographicRegionId);
|
||||
}
|
||||
|
||||
79
cbn/src/model/DescribeGeographicRegionMembershipResult.cc
Normal file
79
cbn/src/model/DescribeGeographicRegionMembershipResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeGeographicRegionMembershipResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeGeographicRegionMembershipResult::DescribeGeographicRegionMembershipResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeGeographicRegionMembershipResult::DescribeGeographicRegionMembershipResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeGeographicRegionMembershipResult::~DescribeGeographicRegionMembershipResult()
|
||||
{}
|
||||
|
||||
void DescribeGeographicRegionMembershipResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionIds = value["RegionIds"]["RegionId"];
|
||||
for (auto value : allRegionIds)
|
||||
{
|
||||
RegionId regionIdsObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
regionIdsObject.regionId = value["RegionId"].asString();
|
||||
regionIds_.push_back(regionIdsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeGeographicRegionMembershipResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeGeographicRegionMembershipResult::RegionId> DescribeGeographicRegionMembershipResult::getRegionIds()const
|
||||
{
|
||||
return regionIds_;
|
||||
}
|
||||
|
||||
int DescribeGeographicRegionMembershipResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeGeographicRegionMembershipResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
104
cbn/src/model/DescribeGrantRulesToCenRequest.cc
Normal file
104
cbn/src/model/DescribeGrantRulesToCenRequest.cc
Normal 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/cbn/model/DescribeGrantRulesToCenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeGrantRulesToCenRequest;
|
||||
|
||||
DescribeGrantRulesToCenRequest::DescribeGrantRulesToCenRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeGrantRulesToCen")
|
||||
{}
|
||||
|
||||
DescribeGrantRulesToCenRequest::~DescribeGrantRulesToCenRequest()
|
||||
{}
|
||||
|
||||
long DescribeGrantRulesToCenRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeGrantRulesToCenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeGrantRulesToCenRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeGrantRulesToCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeGrantRulesToCenRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeGrantRulesToCenRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeGrantRulesToCenRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeGrantRulesToCenRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeGrantRulesToCenRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeGrantRulesToCenRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeGrantRulesToCenRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeGrantRulesToCenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeGrantRulesToCenRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void DescribeGrantRulesToCenRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
66
cbn/src/model/DescribeGrantRulesToCenResult.cc
Normal file
66
cbn/src/model/DescribeGrantRulesToCenResult.cc
Normal 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/cbn/model/DescribeGrantRulesToCenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeGrantRulesToCenResult::DescribeGrantRulesToCenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeGrantRulesToCenResult::DescribeGrantRulesToCenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeGrantRulesToCenResult::~DescribeGrantRulesToCenResult()
|
||||
{}
|
||||
|
||||
void DescribeGrantRulesToCenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allGrantRules = value["GrantRules"]["GrantRule"];
|
||||
for (auto value : allGrantRules)
|
||||
{
|
||||
GrantRule grantRulesObject;
|
||||
if(!value["CenId"].isNull())
|
||||
grantRulesObject.cenId = value["CenId"].asString();
|
||||
if(!value["ChildInstanceRegionId"].isNull())
|
||||
grantRulesObject.childInstanceRegionId = value["ChildInstanceRegionId"].asString();
|
||||
if(!value["ChildInstanceType"].isNull())
|
||||
grantRulesObject.childInstanceType = value["ChildInstanceType"].asString();
|
||||
if(!value["ChildInstanceId"].isNull())
|
||||
grantRulesObject.childInstanceId = value["ChildInstanceId"].asString();
|
||||
if(!value["ChildInstanceOwnerId"].isNull())
|
||||
grantRulesObject.childInstanceOwnerId = std::stol(value["ChildInstanceOwnerId"].asString());
|
||||
grantRules_.push_back(grantRulesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeGrantRulesToCenResult::GrantRule> DescribeGrantRulesToCenResult::getGrantRules()const
|
||||
{
|
||||
return grantRules_;
|
||||
}
|
||||
|
||||
137
cbn/src/model/DescribePublishedRouteEntriesRequest.cc
Normal file
137
cbn/src/model/DescribePublishedRouteEntriesRequest.cc
Normal 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/cbn/model/DescribePublishedRouteEntriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribePublishedRouteEntriesRequest;
|
||||
|
||||
DescribePublishedRouteEntriesRequest::DescribePublishedRouteEntriesRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribePublishedRouteEntries")
|
||||
{}
|
||||
|
||||
DescribePublishedRouteEntriesRequest::~DescribePublishedRouteEntriesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePublishedRouteEntriesRequest::getChildInstanceId()const
|
||||
{
|
||||
return childInstanceId_;
|
||||
}
|
||||
|
||||
void DescribePublishedRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long DescribePublishedRouteEntriesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribePublishedRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribePublishedRouteEntriesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribePublishedRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribePublishedRouteEntriesRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribePublishedRouteEntriesRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribePublishedRouteEntriesRequest::getDestinationCidrBlock()const
|
||||
{
|
||||
return destinationCidrBlock_;
|
||||
}
|
||||
|
||||
void DescribePublishedRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
|
||||
{
|
||||
destinationCidrBlock_ = destinationCidrBlock;
|
||||
setParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
}
|
||||
|
||||
int DescribePublishedRouteEntriesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePublishedRouteEntriesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribePublishedRouteEntriesRequest::getChildInstanceType()const
|
||||
{
|
||||
return childInstanceType_;
|
||||
}
|
||||
|
||||
void DescribePublishedRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
std::string DescribePublishedRouteEntriesRequest::getChildInstanceRouteTableId()const
|
||||
{
|
||||
return childInstanceRouteTableId_;
|
||||
}
|
||||
|
||||
void DescribePublishedRouteEntriesRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId)
|
||||
{
|
||||
childInstanceRouteTableId_ = childInstanceRouteTableId;
|
||||
setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId);
|
||||
}
|
||||
|
||||
int DescribePublishedRouteEntriesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribePublishedRouteEntriesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribePublishedRouteEntriesRequest::getChildInstanceRegionId()const
|
||||
{
|
||||
return childInstanceRegionId_;
|
||||
}
|
||||
|
||||
void DescribePublishedRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
107
cbn/src/model/DescribePublishedRouteEntriesResult.cc
Normal file
107
cbn/src/model/DescribePublishedRouteEntriesResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribePublishedRouteEntriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribePublishedRouteEntriesResult::DescribePublishedRouteEntriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePublishedRouteEntriesResult::DescribePublishedRouteEntriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePublishedRouteEntriesResult::~DescribePublishedRouteEntriesResult()
|
||||
{}
|
||||
|
||||
void DescribePublishedRouteEntriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPublishedRouteEntries = value["PublishedRouteEntries"]["PublishedRouteEntry"];
|
||||
for (auto value : allPublishedRouteEntries)
|
||||
{
|
||||
PublishedRouteEntry publishedRouteEntriesObject;
|
||||
if(!value["DestinationCidrBlock"].isNull())
|
||||
publishedRouteEntriesObject.destinationCidrBlock = value["DestinationCidrBlock"].asString();
|
||||
if(!value["ChildInstanceRouteTableId"].isNull())
|
||||
publishedRouteEntriesObject.childInstanceRouteTableId = value["ChildInstanceRouteTableId"].asString();
|
||||
if(!value["NextHopType"].isNull())
|
||||
publishedRouteEntriesObject.nextHopType = value["NextHopType"].asString();
|
||||
if(!value["RouteType"].isNull())
|
||||
publishedRouteEntriesObject.routeType = value["RouteType"].asString();
|
||||
if(!value["NextHopId"].isNull())
|
||||
publishedRouteEntriesObject.nextHopId = value["NextHopId"].asString();
|
||||
if(!value["OperationalMode"].isNull())
|
||||
publishedRouteEntriesObject.operationalMode = value["OperationalMode"].asString() == "true";
|
||||
if(!value["PublishStatus"].isNull())
|
||||
publishedRouteEntriesObject.publishStatus = value["PublishStatus"].asString();
|
||||
auto allConflicts = value["Conflicts"]["Conflict"];
|
||||
for (auto value : allConflicts)
|
||||
{
|
||||
PublishedRouteEntry::Conflict conflictsObject;
|
||||
if(!value["DestinationCidrBlock"].isNull())
|
||||
conflictsObject.destinationCidrBlock = value["DestinationCidrBlock"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
conflictsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
conflictsObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["InstanceType"].isNull())
|
||||
conflictsObject.instanceType = value["InstanceType"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
conflictsObject.status = value["Status"].asString();
|
||||
publishedRouteEntriesObject.conflicts.push_back(conflictsObject);
|
||||
}
|
||||
publishedRouteEntries_.push_back(publishedRouteEntriesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribePublishedRouteEntriesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribePublishedRouteEntriesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribePublishedRouteEntriesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribePublishedRouteEntriesResult::PublishedRouteEntry> DescribePublishedRouteEntriesResult::getPublishedRouteEntries()const
|
||||
{
|
||||
return publishedRouteEntries_;
|
||||
}
|
||||
|
||||
148
cbn/src/model/DescribeRouteConflictRequest.cc
Normal file
148
cbn/src/model/DescribeRouteConflictRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeRouteConflictRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeRouteConflictRequest;
|
||||
|
||||
DescribeRouteConflictRequest::DescribeRouteConflictRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeRouteConflict")
|
||||
{}
|
||||
|
||||
DescribeRouteConflictRequest::~DescribeRouteConflictRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRouteConflictRequest::getChildInstanceId()const
|
||||
{
|
||||
return childInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeRouteConflictRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long DescribeRouteConflictRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRouteConflictRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRouteConflictRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRouteConflictRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRouteConflictRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRouteConflictRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRouteConflictRequest::getDestinationCidrBlock()const
|
||||
{
|
||||
return destinationCidrBlock_;
|
||||
}
|
||||
|
||||
void DescribeRouteConflictRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
|
||||
{
|
||||
destinationCidrBlock_ = destinationCidrBlock;
|
||||
setParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
}
|
||||
|
||||
int DescribeRouteConflictRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRouteConflictRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeRouteConflictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRouteConflictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRouteConflictRequest::getChildInstanceType()const
|
||||
{
|
||||
return childInstanceType_;
|
||||
}
|
||||
|
||||
void DescribeRouteConflictRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
std::string DescribeRouteConflictRequest::getChildInstanceRouteTableId()const
|
||||
{
|
||||
return childInstanceRouteTableId_;
|
||||
}
|
||||
|
||||
void DescribeRouteConflictRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId)
|
||||
{
|
||||
childInstanceRouteTableId_ = childInstanceRouteTableId;
|
||||
setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId);
|
||||
}
|
||||
|
||||
int DescribeRouteConflictRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRouteConflictRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeRouteConflictRequest::getChildInstanceRegionId()const
|
||||
{
|
||||
return childInstanceRegionId_;
|
||||
}
|
||||
|
||||
void DescribeRouteConflictRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
87
cbn/src/model/DescribeRouteConflictResult.cc
Normal file
87
cbn/src/model/DescribeRouteConflictResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeRouteConflictResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeRouteConflictResult::DescribeRouteConflictResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRouteConflictResult::DescribeRouteConflictResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRouteConflictResult::~DescribeRouteConflictResult()
|
||||
{}
|
||||
|
||||
void DescribeRouteConflictResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRouteConflicts = value["RouteConflicts"]["RouteConflict"];
|
||||
for (auto value : allRouteConflicts)
|
||||
{
|
||||
RouteConflict routeConflictsObject;
|
||||
if(!value["DestinationCidrBlock"].isNull())
|
||||
routeConflictsObject.destinationCidrBlock = value["DestinationCidrBlock"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
routeConflictsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
routeConflictsObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["InstanceType"].isNull())
|
||||
routeConflictsObject.instanceType = value["InstanceType"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
routeConflictsObject.status = value["Status"].asString();
|
||||
routeConflicts_.push_back(routeConflictsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeRouteConflictResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeRouteConflictResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeRouteConflictResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRouteConflictResult::RouteConflict> DescribeRouteConflictResult::getRouteConflicts()const
|
||||
{
|
||||
return routeConflicts_;
|
||||
}
|
||||
|
||||
137
cbn/src/model/DescribeRouteServicesInCenRequest.cc
Normal file
137
cbn/src/model/DescribeRouteServicesInCenRequest.cc
Normal 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/cbn/model/DescribeRouteServicesInCenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeRouteServicesInCenRequest;
|
||||
|
||||
DescribeRouteServicesInCenRequest::DescribeRouteServicesInCenRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeRouteServicesInCen")
|
||||
{}
|
||||
|
||||
DescribeRouteServicesInCenRequest::~DescribeRouteServicesInCenRequest()
|
||||
{}
|
||||
|
||||
long DescribeRouteServicesInCenRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRouteServicesInCenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRouteServicesInCenRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRouteServicesInCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRouteServicesInCenRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeRouteServicesInCenRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeRouteServicesInCenRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRouteServicesInCenRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeRouteServicesInCenRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRouteServicesInCenRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRouteServicesInCenRequest::getHost()const
|
||||
{
|
||||
return host_;
|
||||
}
|
||||
|
||||
void DescribeRouteServicesInCenRequest::setHost(const std::string& host)
|
||||
{
|
||||
host_ = host;
|
||||
setParameter("Host", host);
|
||||
}
|
||||
|
||||
std::string DescribeRouteServicesInCenRequest::getHostRegionId()const
|
||||
{
|
||||
return hostRegionId_;
|
||||
}
|
||||
|
||||
void DescribeRouteServicesInCenRequest::setHostRegionId(const std::string& hostRegionId)
|
||||
{
|
||||
hostRegionId_ = hostRegionId;
|
||||
setParameter("HostRegionId", hostRegionId);
|
||||
}
|
||||
|
||||
std::string DescribeRouteServicesInCenRequest::getAccessRegionId()const
|
||||
{
|
||||
return accessRegionId_;
|
||||
}
|
||||
|
||||
void DescribeRouteServicesInCenRequest::setAccessRegionId(const std::string& accessRegionId)
|
||||
{
|
||||
accessRegionId_ = accessRegionId;
|
||||
setParameter("AccessRegionId", accessRegionId);
|
||||
}
|
||||
|
||||
long DescribeRouteServicesInCenRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRouteServicesInCenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeRouteServicesInCenRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRouteServicesInCenRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
92
cbn/src/model/DescribeRouteServicesInCenResult.cc
Normal file
92
cbn/src/model/DescribeRouteServicesInCenResult.cc
Normal 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/cbn/model/DescribeRouteServicesInCenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeRouteServicesInCenResult::DescribeRouteServicesInCenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRouteServicesInCenResult::DescribeRouteServicesInCenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRouteServicesInCenResult::~DescribeRouteServicesInCenResult()
|
||||
{}
|
||||
|
||||
void DescribeRouteServicesInCenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRouteServiceEntries = value["RouteServiceEntries"]["RouteServiceEntry"];
|
||||
for (auto value : allRouteServiceEntries)
|
||||
{
|
||||
RouteServiceEntry routeServiceEntriesObject;
|
||||
if(!value["CenId"].isNull())
|
||||
routeServiceEntriesObject.cenId = value["CenId"].asString();
|
||||
if(!value["Host"].isNull())
|
||||
routeServiceEntriesObject.host = value["Host"].asString();
|
||||
if(!value["HostRegionId"].isNull())
|
||||
routeServiceEntriesObject.hostRegionId = value["HostRegionId"].asString();
|
||||
if(!value["AccessRegionId"].isNull())
|
||||
routeServiceEntriesObject.accessRegionId = value["AccessRegionId"].asString();
|
||||
if(!value["UpdateInterval"].isNull())
|
||||
routeServiceEntriesObject.updateInterval = value["UpdateInterval"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
routeServiceEntriesObject.status = value["Status"].asString();
|
||||
auto allCidrs = value["Cidrs"]["Cidr"];
|
||||
for (auto value : allCidrs)
|
||||
routeServiceEntriesObject.cidrs.push_back(value.asString());
|
||||
routeServiceEntries_.push_back(routeServiceEntriesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeRouteServicesInCenResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeRouteServicesInCenResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeRouteServicesInCenResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRouteServicesInCenResult::RouteServiceEntry> DescribeRouteServicesInCenResult::getRouteServiceEntries()const
|
||||
{
|
||||
return routeServiceEntries_;
|
||||
}
|
||||
|
||||
137
cbn/src/model/DetachCenChildInstanceRequest.cc
Normal file
137
cbn/src/model/DetachCenChildInstanceRequest.cc
Normal 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/cbn/model/DetachCenChildInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DetachCenChildInstanceRequest;
|
||||
|
||||
DetachCenChildInstanceRequest::DetachCenChildInstanceRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DetachCenChildInstance")
|
||||
{}
|
||||
|
||||
DetachCenChildInstanceRequest::~DetachCenChildInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string DetachCenChildInstanceRequest::getChildInstanceId()const
|
||||
{
|
||||
return childInstanceId_;
|
||||
}
|
||||
|
||||
void DetachCenChildInstanceRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long DetachCenChildInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DetachCenChildInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DetachCenChildInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DetachCenChildInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DetachCenChildInstanceRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DetachCenChildInstanceRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DetachCenChildInstanceRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DetachCenChildInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DetachCenChildInstanceRequest::getCenOwnerId()const
|
||||
{
|
||||
return cenOwnerId_;
|
||||
}
|
||||
|
||||
void DetachCenChildInstanceRequest::setCenOwnerId(long cenOwnerId)
|
||||
{
|
||||
cenOwnerId_ = cenOwnerId;
|
||||
setParameter("CenOwnerId", std::to_string(cenOwnerId));
|
||||
}
|
||||
|
||||
long DetachCenChildInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DetachCenChildInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DetachCenChildInstanceRequest::getChildInstanceType()const
|
||||
{
|
||||
return childInstanceType_;
|
||||
}
|
||||
|
||||
void DetachCenChildInstanceRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
long DetachCenChildInstanceRequest::getChildInstanceOwnerId()const
|
||||
{
|
||||
return childInstanceOwnerId_;
|
||||
}
|
||||
|
||||
void DetachCenChildInstanceRequest::setChildInstanceOwnerId(long childInstanceOwnerId)
|
||||
{
|
||||
childInstanceOwnerId_ = childInstanceOwnerId;
|
||||
setParameter("ChildInstanceOwnerId", std::to_string(childInstanceOwnerId));
|
||||
}
|
||||
|
||||
std::string DetachCenChildInstanceRequest::getChildInstanceRegionId()const
|
||||
{
|
||||
return childInstanceRegionId_;
|
||||
}
|
||||
|
||||
void DetachCenChildInstanceRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
45
cbn/src/model/DetachCenChildInstanceResult.cc
Normal file
45
cbn/src/model/DetachCenChildInstanceResult.cc
Normal 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/cbn/model/DetachCenChildInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DetachCenChildInstanceResult::DetachCenChildInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetachCenChildInstanceResult::DetachCenChildInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetachCenChildInstanceResult::~DetachCenChildInstanceResult()
|
||||
{}
|
||||
|
||||
void DetachCenChildInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
115
cbn/src/model/DisableCenVbrHealthCheckRequest.cc
Normal file
115
cbn/src/model/DisableCenVbrHealthCheckRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DisableCenVbrHealthCheckRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DisableCenVbrHealthCheckRequest;
|
||||
|
||||
DisableCenVbrHealthCheckRequest::DisableCenVbrHealthCheckRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DisableCenVbrHealthCheck")
|
||||
{}
|
||||
|
||||
DisableCenVbrHealthCheckRequest::~DisableCenVbrHealthCheckRequest()
|
||||
{}
|
||||
|
||||
long DisableCenVbrHealthCheckRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DisableCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DisableCenVbrHealthCheckRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DisableCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DisableCenVbrHealthCheckRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DisableCenVbrHealthCheckRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
long DisableCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const
|
||||
{
|
||||
return vbrInstanceOwnerId_;
|
||||
}
|
||||
|
||||
void DisableCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId)
|
||||
{
|
||||
vbrInstanceOwnerId_ = vbrInstanceOwnerId;
|
||||
setParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId));
|
||||
}
|
||||
|
||||
std::string DisableCenVbrHealthCheckRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DisableCenVbrHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DisableCenVbrHealthCheckRequest::getVbrInstanceId()const
|
||||
{
|
||||
return vbrInstanceId_;
|
||||
}
|
||||
|
||||
void DisableCenVbrHealthCheckRequest::setVbrInstanceId(const std::string& vbrInstanceId)
|
||||
{
|
||||
vbrInstanceId_ = vbrInstanceId;
|
||||
setParameter("VbrInstanceId", vbrInstanceId);
|
||||
}
|
||||
|
||||
long DisableCenVbrHealthCheckRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DisableCenVbrHealthCheckRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DisableCenVbrHealthCheckRequest::getVbrInstanceRegionId()const
|
||||
{
|
||||
return vbrInstanceRegionId_;
|
||||
}
|
||||
|
||||
void DisableCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string& vbrInstanceRegionId)
|
||||
{
|
||||
vbrInstanceRegionId_ = vbrInstanceRegionId;
|
||||
setParameter("VbrInstanceRegionId", vbrInstanceRegionId);
|
||||
}
|
||||
|
||||
45
cbn/src/model/DisableCenVbrHealthCheckResult.cc
Normal file
45
cbn/src/model/DisableCenVbrHealthCheckResult.cc
Normal 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/cbn/model/DisableCenVbrHealthCheckResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DisableCenVbrHealthCheckResult::DisableCenVbrHealthCheckResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableCenVbrHealthCheckResult::DisableCenVbrHealthCheckResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableCenVbrHealthCheckResult::~DisableCenVbrHealthCheckResult()
|
||||
{}
|
||||
|
||||
void DisableCenVbrHealthCheckResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
137
cbn/src/model/EnableCenVbrHealthCheckRequest.cc
Normal file
137
cbn/src/model/EnableCenVbrHealthCheckRequest.cc
Normal 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/cbn/model/EnableCenVbrHealthCheckRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::EnableCenVbrHealthCheckRequest;
|
||||
|
||||
EnableCenVbrHealthCheckRequest::EnableCenVbrHealthCheckRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "EnableCenVbrHealthCheck")
|
||||
{}
|
||||
|
||||
EnableCenVbrHealthCheckRequest::~EnableCenVbrHealthCheckRequest()
|
||||
{}
|
||||
|
||||
long EnableCenVbrHealthCheckRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void EnableCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void EnableCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void EnableCenVbrHealthCheckRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getHealthCheckSourceIp()const
|
||||
{
|
||||
return healthCheckSourceIp_;
|
||||
}
|
||||
|
||||
void EnableCenVbrHealthCheckRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp)
|
||||
{
|
||||
healthCheckSourceIp_ = healthCheckSourceIp;
|
||||
setParameter("HealthCheckSourceIp", healthCheckSourceIp);
|
||||
}
|
||||
|
||||
long EnableCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const
|
||||
{
|
||||
return vbrInstanceOwnerId_;
|
||||
}
|
||||
|
||||
void EnableCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId)
|
||||
{
|
||||
vbrInstanceOwnerId_ = vbrInstanceOwnerId;
|
||||
setParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId));
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void EnableCenVbrHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getVbrInstanceId()const
|
||||
{
|
||||
return vbrInstanceId_;
|
||||
}
|
||||
|
||||
void EnableCenVbrHealthCheckRequest::setVbrInstanceId(const std::string& vbrInstanceId)
|
||||
{
|
||||
vbrInstanceId_ = vbrInstanceId;
|
||||
setParameter("VbrInstanceId", vbrInstanceId);
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getHealthCheckTargetIp()const
|
||||
{
|
||||
return healthCheckTargetIp_;
|
||||
}
|
||||
|
||||
void EnableCenVbrHealthCheckRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp)
|
||||
{
|
||||
healthCheckTargetIp_ = healthCheckTargetIp;
|
||||
setParameter("HealthCheckTargetIp", healthCheckTargetIp);
|
||||
}
|
||||
|
||||
long EnableCenVbrHealthCheckRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void EnableCenVbrHealthCheckRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getVbrInstanceRegionId()const
|
||||
{
|
||||
return vbrInstanceRegionId_;
|
||||
}
|
||||
|
||||
void EnableCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string& vbrInstanceRegionId)
|
||||
{
|
||||
vbrInstanceRegionId_ = vbrInstanceRegionId;
|
||||
setParameter("VbrInstanceRegionId", vbrInstanceRegionId);
|
||||
}
|
||||
|
||||
45
cbn/src/model/EnableCenVbrHealthCheckResult.cc
Normal file
45
cbn/src/model/EnableCenVbrHealthCheckResult.cc
Normal 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/cbn/model/EnableCenVbrHealthCheckResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
EnableCenVbrHealthCheckResult::EnableCenVbrHealthCheckResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableCenVbrHealthCheckResult::EnableCenVbrHealthCheckResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableCenVbrHealthCheckResult::~EnableCenVbrHealthCheckResult()
|
||||
{}
|
||||
|
||||
void EnableCenVbrHealthCheckResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
115
cbn/src/model/ModifyCenAttributeRequest.cc
Normal file
115
cbn/src/model/ModifyCenAttributeRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/ModifyCenAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::ModifyCenAttributeRequest;
|
||||
|
||||
ModifyCenAttributeRequest::ModifyCenAttributeRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "ModifyCenAttribute")
|
||||
{}
|
||||
|
||||
ModifyCenAttributeRequest::~ModifyCenAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyCenAttributeRequest::getProtectionLevel()const
|
||||
{
|
||||
return protectionLevel_;
|
||||
}
|
||||
|
||||
void ModifyCenAttributeRequest::setProtectionLevel(const std::string& protectionLevel)
|
||||
{
|
||||
protectionLevel_ = protectionLevel;
|
||||
setParameter("ProtectionLevel", protectionLevel);
|
||||
}
|
||||
|
||||
long ModifyCenAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyCenAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyCenAttributeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyCenAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyCenAttributeRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void ModifyCenAttributeRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string ModifyCenAttributeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyCenAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyCenAttributeRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ModifyCenAttributeRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ModifyCenAttributeRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ModifyCenAttributeRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
long ModifyCenAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyCenAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
45
cbn/src/model/ModifyCenAttributeResult.cc
Normal file
45
cbn/src/model/ModifyCenAttributeResult.cc
Normal 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/cbn/model/ModifyCenAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
ModifyCenAttributeResult::ModifyCenAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyCenAttributeResult::ModifyCenAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyCenAttributeResult::~ModifyCenAttributeResult()
|
||||
{}
|
||||
|
||||
void ModifyCenAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
104
cbn/src/model/ModifyCenBandwidthPackageAttributeRequest.cc
Normal file
104
cbn/src/model/ModifyCenBandwidthPackageAttributeRequest.cc
Normal 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/cbn/model/ModifyCenBandwidthPackageAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::ModifyCenBandwidthPackageAttributeRequest;
|
||||
|
||||
ModifyCenBandwidthPackageAttributeRequest::ModifyCenBandwidthPackageAttributeRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "ModifyCenBandwidthPackageAttribute")
|
||||
{}
|
||||
|
||||
ModifyCenBandwidthPackageAttributeRequest::~ModifyCenBandwidthPackageAttributeRequest()
|
||||
{}
|
||||
|
||||
long ModifyCenBandwidthPackageAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageAttributeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageAttributeRequest::getCenBandwidthPackageId()const
|
||||
{
|
||||
return cenBandwidthPackageId_;
|
||||
}
|
||||
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId)
|
||||
{
|
||||
cenBandwidthPackageId_ = cenBandwidthPackageId;
|
||||
setParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageAttributeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageAttributeRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageAttributeRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
long ModifyCenBandwidthPackageAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
45
cbn/src/model/ModifyCenBandwidthPackageAttributeResult.cc
Normal file
45
cbn/src/model/ModifyCenBandwidthPackageAttributeResult.cc
Normal 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/cbn/model/ModifyCenBandwidthPackageAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
ModifyCenBandwidthPackageAttributeResult::ModifyCenBandwidthPackageAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyCenBandwidthPackageAttributeResult::ModifyCenBandwidthPackageAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyCenBandwidthPackageAttributeResult::~ModifyCenBandwidthPackageAttributeResult()
|
||||
{}
|
||||
|
||||
void ModifyCenBandwidthPackageAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
93
cbn/src/model/ModifyCenBandwidthPackageSpecRequest.cc
Normal file
93
cbn/src/model/ModifyCenBandwidthPackageSpecRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/ModifyCenBandwidthPackageSpecRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::ModifyCenBandwidthPackageSpecRequest;
|
||||
|
||||
ModifyCenBandwidthPackageSpecRequest::ModifyCenBandwidthPackageSpecRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "ModifyCenBandwidthPackageSpec")
|
||||
{}
|
||||
|
||||
ModifyCenBandwidthPackageSpecRequest::~ModifyCenBandwidthPackageSpecRequest()
|
||||
{}
|
||||
|
||||
long ModifyCenBandwidthPackageSpecRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyCenBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageSpecRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyCenBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int ModifyCenBandwidthPackageSpecRequest::getBandwidth()const
|
||||
{
|
||||
return bandwidth_;
|
||||
}
|
||||
|
||||
void ModifyCenBandwidthPackageSpecRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageSpecRequest::getCenBandwidthPackageId()const
|
||||
{
|
||||
return cenBandwidthPackageId_;
|
||||
}
|
||||
|
||||
void ModifyCenBandwidthPackageSpecRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId)
|
||||
{
|
||||
cenBandwidthPackageId_ = cenBandwidthPackageId;
|
||||
setParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageSpecRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyCenBandwidthPackageSpecRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyCenBandwidthPackageSpecRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyCenBandwidthPackageSpecRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
45
cbn/src/model/ModifyCenBandwidthPackageSpecResult.cc
Normal file
45
cbn/src/model/ModifyCenBandwidthPackageSpecResult.cc
Normal 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/cbn/model/ModifyCenBandwidthPackageSpecResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
ModifyCenBandwidthPackageSpecResult::ModifyCenBandwidthPackageSpecResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyCenBandwidthPackageSpecResult::ModifyCenBandwidthPackageSpecResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyCenBandwidthPackageSpecResult::~ModifyCenBandwidthPackageSpecResult()
|
||||
{}
|
||||
|
||||
void ModifyCenBandwidthPackageSpecResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
115
cbn/src/model/PublishRouteEntriesRequest.cc
Normal file
115
cbn/src/model/PublishRouteEntriesRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/PublishRouteEntriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::PublishRouteEntriesRequest;
|
||||
|
||||
PublishRouteEntriesRequest::PublishRouteEntriesRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "PublishRouteEntries")
|
||||
{}
|
||||
|
||||
PublishRouteEntriesRequest::~PublishRouteEntriesRequest()
|
||||
{}
|
||||
|
||||
std::string PublishRouteEntriesRequest::getChildInstanceId()const
|
||||
{
|
||||
return childInstanceId_;
|
||||
}
|
||||
|
||||
void PublishRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long PublishRouteEntriesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void PublishRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string PublishRouteEntriesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void PublishRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string PublishRouteEntriesRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void PublishRouteEntriesRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string PublishRouteEntriesRequest::getDestinationCidrBlock()const
|
||||
{
|
||||
return destinationCidrBlock_;
|
||||
}
|
||||
|
||||
void PublishRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
|
||||
{
|
||||
destinationCidrBlock_ = destinationCidrBlock;
|
||||
setParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
}
|
||||
|
||||
std::string PublishRouteEntriesRequest::getChildInstanceType()const
|
||||
{
|
||||
return childInstanceType_;
|
||||
}
|
||||
|
||||
void PublishRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
std::string PublishRouteEntriesRequest::getChildInstanceRouteTableId()const
|
||||
{
|
||||
return childInstanceRouteTableId_;
|
||||
}
|
||||
|
||||
void PublishRouteEntriesRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId)
|
||||
{
|
||||
childInstanceRouteTableId_ = childInstanceRouteTableId;
|
||||
setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId);
|
||||
}
|
||||
|
||||
std::string PublishRouteEntriesRequest::getChildInstanceRegionId()const
|
||||
{
|
||||
return childInstanceRegionId_;
|
||||
}
|
||||
|
||||
void PublishRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
45
cbn/src/model/PublishRouteEntriesResult.cc
Normal file
45
cbn/src/model/PublishRouteEntriesResult.cc
Normal 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/cbn/model/PublishRouteEntriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
PublishRouteEntriesResult::PublishRouteEntriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PublishRouteEntriesResult::PublishRouteEntriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PublishRouteEntriesResult::~PublishRouteEntriesResult()
|
||||
{}
|
||||
|
||||
void PublishRouteEntriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
137
cbn/src/model/ResolveAndRouteServiceInCenRequest.cc
Normal file
137
cbn/src/model/ResolveAndRouteServiceInCenRequest.cc
Normal 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/cbn/model/ResolveAndRouteServiceInCenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::ResolveAndRouteServiceInCenRequest;
|
||||
|
||||
ResolveAndRouteServiceInCenRequest::ResolveAndRouteServiceInCenRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "ResolveAndRouteServiceInCen")
|
||||
{}
|
||||
|
||||
ResolveAndRouteServiceInCenRequest::~ResolveAndRouteServiceInCenRequest()
|
||||
{}
|
||||
|
||||
long ResolveAndRouteServiceInCenRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ResolveAndRouteServiceInCenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ResolveAndRouteServiceInCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ResolveAndRouteServiceInCenRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void ResolveAndRouteServiceInCenRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ResolveAndRouteServiceInCenRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getHost()const
|
||||
{
|
||||
return host_;
|
||||
}
|
||||
|
||||
void ResolveAndRouteServiceInCenRequest::setHost(const std::string& host)
|
||||
{
|
||||
host_ = host;
|
||||
setParameter("Host", host);
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getHostRegionId()const
|
||||
{
|
||||
return hostRegionId_;
|
||||
}
|
||||
|
||||
void ResolveAndRouteServiceInCenRequest::setHostRegionId(const std::string& hostRegionId)
|
||||
{
|
||||
hostRegionId_ = hostRegionId;
|
||||
setParameter("HostRegionId", hostRegionId);
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getAccessRegionId()const
|
||||
{
|
||||
return accessRegionId_;
|
||||
}
|
||||
|
||||
void ResolveAndRouteServiceInCenRequest::setAccessRegionId(const std::string& accessRegionId)
|
||||
{
|
||||
accessRegionId_ = accessRegionId;
|
||||
setParameter("AccessRegionId", accessRegionId);
|
||||
}
|
||||
|
||||
long ResolveAndRouteServiceInCenRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ResolveAndRouteServiceInCenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long ResolveAndRouteServiceInCenRequest::getUpdateInterval()const
|
||||
{
|
||||
return updateInterval_;
|
||||
}
|
||||
|
||||
void ResolveAndRouteServiceInCenRequest::setUpdateInterval(long updateInterval)
|
||||
{
|
||||
updateInterval_ = updateInterval;
|
||||
setParameter("UpdateInterval", std::to_string(updateInterval));
|
||||
}
|
||||
|
||||
45
cbn/src/model/ResolveAndRouteServiceInCenResult.cc
Normal file
45
cbn/src/model/ResolveAndRouteServiceInCenResult.cc
Normal 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/cbn/model/ResolveAndRouteServiceInCenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
ResolveAndRouteServiceInCenResult::ResolveAndRouteServiceInCenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResolveAndRouteServiceInCenResult::ResolveAndRouteServiceInCenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResolveAndRouteServiceInCenResult::~ResolveAndRouteServiceInCenResult()
|
||||
{}
|
||||
|
||||
void ResolveAndRouteServiceInCenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
115
cbn/src/model/RoutePrivateZoneInCenToVpcRequest.cc
Normal file
115
cbn/src/model/RoutePrivateZoneInCenToVpcRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/RoutePrivateZoneInCenToVpcRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::RoutePrivateZoneInCenToVpcRequest;
|
||||
|
||||
RoutePrivateZoneInCenToVpcRequest::RoutePrivateZoneInCenToVpcRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "RoutePrivateZoneInCenToVpc")
|
||||
{}
|
||||
|
||||
RoutePrivateZoneInCenToVpcRequest::~RoutePrivateZoneInCenToVpcRequest()
|
||||
{}
|
||||
|
||||
long RoutePrivateZoneInCenToVpcRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void RoutePrivateZoneInCenToVpcRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string RoutePrivateZoneInCenToVpcRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void RoutePrivateZoneInCenToVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string RoutePrivateZoneInCenToVpcRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void RoutePrivateZoneInCenToVpcRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string RoutePrivateZoneInCenToVpcRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void RoutePrivateZoneInCenToVpcRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string RoutePrivateZoneInCenToVpcRequest::getHostRegionId()const
|
||||
{
|
||||
return hostRegionId_;
|
||||
}
|
||||
|
||||
void RoutePrivateZoneInCenToVpcRequest::setHostRegionId(const std::string& hostRegionId)
|
||||
{
|
||||
hostRegionId_ = hostRegionId;
|
||||
setParameter("HostRegionId", hostRegionId);
|
||||
}
|
||||
|
||||
std::string RoutePrivateZoneInCenToVpcRequest::getAccessRegionId()const
|
||||
{
|
||||
return accessRegionId_;
|
||||
}
|
||||
|
||||
void RoutePrivateZoneInCenToVpcRequest::setAccessRegionId(const std::string& accessRegionId)
|
||||
{
|
||||
accessRegionId_ = accessRegionId;
|
||||
setParameter("AccessRegionId", accessRegionId);
|
||||
}
|
||||
|
||||
long RoutePrivateZoneInCenToVpcRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RoutePrivateZoneInCenToVpcRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string RoutePrivateZoneInCenToVpcRequest::getHostVpcId()const
|
||||
{
|
||||
return hostVpcId_;
|
||||
}
|
||||
|
||||
void RoutePrivateZoneInCenToVpcRequest::setHostVpcId(const std::string& hostVpcId)
|
||||
{
|
||||
hostVpcId_ = hostVpcId;
|
||||
setParameter("HostVpcId", hostVpcId);
|
||||
}
|
||||
|
||||
45
cbn/src/model/RoutePrivateZoneInCenToVpcResult.cc
Normal file
45
cbn/src/model/RoutePrivateZoneInCenToVpcResult.cc
Normal 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/cbn/model/RoutePrivateZoneInCenToVpcResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
RoutePrivateZoneInCenToVpcResult::RoutePrivateZoneInCenToVpcResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RoutePrivateZoneInCenToVpcResult::RoutePrivateZoneInCenToVpcResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RoutePrivateZoneInCenToVpcResult::~RoutePrivateZoneInCenToVpcResult()
|
||||
{}
|
||||
|
||||
void RoutePrivateZoneInCenToVpcResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
115
cbn/src/model/SetCenInterRegionBandwidthLimitRequest.cc
Normal file
115
cbn/src/model/SetCenInterRegionBandwidthLimitRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::SetCenInterRegionBandwidthLimitRequest;
|
||||
|
||||
SetCenInterRegionBandwidthLimitRequest::SetCenInterRegionBandwidthLimitRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "SetCenInterRegionBandwidthLimit")
|
||||
{}
|
||||
|
||||
SetCenInterRegionBandwidthLimitRequest::~SetCenInterRegionBandwidthLimitRequest()
|
||||
{}
|
||||
|
||||
std::string SetCenInterRegionBandwidthLimitRequest::getLocalRegionId()const
|
||||
{
|
||||
return localRegionId_;
|
||||
}
|
||||
|
||||
void SetCenInterRegionBandwidthLimitRequest::setLocalRegionId(const std::string& localRegionId)
|
||||
{
|
||||
localRegionId_ = localRegionId;
|
||||
setParameter("LocalRegionId", localRegionId);
|
||||
}
|
||||
|
||||
long SetCenInterRegionBandwidthLimitRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SetCenInterRegionBandwidthLimitRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SetCenInterRegionBandwidthLimitRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SetCenInterRegionBandwidthLimitRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SetCenInterRegionBandwidthLimitRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void SetCenInterRegionBandwidthLimitRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string SetCenInterRegionBandwidthLimitRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void SetCenInterRegionBandwidthLimitRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string SetCenInterRegionBandwidthLimitRequest::getOppositeRegionId()const
|
||||
{
|
||||
return oppositeRegionId_;
|
||||
}
|
||||
|
||||
void SetCenInterRegionBandwidthLimitRequest::setOppositeRegionId(const std::string& oppositeRegionId)
|
||||
{
|
||||
oppositeRegionId_ = oppositeRegionId;
|
||||
setParameter("OppositeRegionId", oppositeRegionId);
|
||||
}
|
||||
|
||||
long SetCenInterRegionBandwidthLimitRequest::getBandwidthLimit()const
|
||||
{
|
||||
return bandwidthLimit_;
|
||||
}
|
||||
|
||||
void SetCenInterRegionBandwidthLimitRequest::setBandwidthLimit(long bandwidthLimit)
|
||||
{
|
||||
bandwidthLimit_ = bandwidthLimit;
|
||||
setParameter("BandwidthLimit", std::to_string(bandwidthLimit));
|
||||
}
|
||||
|
||||
long SetCenInterRegionBandwidthLimitRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SetCenInterRegionBandwidthLimitRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
45
cbn/src/model/SetCenInterRegionBandwidthLimitResult.cc
Normal file
45
cbn/src/model/SetCenInterRegionBandwidthLimitResult.cc
Normal 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/cbn/model/SetCenInterRegionBandwidthLimitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
SetCenInterRegionBandwidthLimitResult::SetCenInterRegionBandwidthLimitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetCenInterRegionBandwidthLimitResult::SetCenInterRegionBandwidthLimitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetCenInterRegionBandwidthLimitResult::~SetCenInterRegionBandwidthLimitResult()
|
||||
{}
|
||||
|
||||
void SetCenInterRegionBandwidthLimitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
93
cbn/src/model/UnassociateCenBandwidthPackageRequest.cc
Normal file
93
cbn/src/model/UnassociateCenBandwidthPackageRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/UnassociateCenBandwidthPackageRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::UnassociateCenBandwidthPackageRequest;
|
||||
|
||||
UnassociateCenBandwidthPackageRequest::UnassociateCenBandwidthPackageRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "UnassociateCenBandwidthPackage")
|
||||
{}
|
||||
|
||||
UnassociateCenBandwidthPackageRequest::~UnassociateCenBandwidthPackageRequest()
|
||||
{}
|
||||
|
||||
long UnassociateCenBandwidthPackageRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UnassociateCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UnassociateCenBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UnassociateCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UnassociateCenBandwidthPackageRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void UnassociateCenBandwidthPackageRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string UnassociateCenBandwidthPackageRequest::getCenBandwidthPackageId()const
|
||||
{
|
||||
return cenBandwidthPackageId_;
|
||||
}
|
||||
|
||||
void UnassociateCenBandwidthPackageRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId)
|
||||
{
|
||||
cenBandwidthPackageId_ = cenBandwidthPackageId;
|
||||
setParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string UnassociateCenBandwidthPackageRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void UnassociateCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long UnassociateCenBandwidthPackageRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UnassociateCenBandwidthPackageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
45
cbn/src/model/UnassociateCenBandwidthPackageResult.cc
Normal file
45
cbn/src/model/UnassociateCenBandwidthPackageResult.cc
Normal 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/cbn/model/UnassociateCenBandwidthPackageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
UnassociateCenBandwidthPackageResult::UnassociateCenBandwidthPackageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnassociateCenBandwidthPackageResult::UnassociateCenBandwidthPackageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnassociateCenBandwidthPackageResult::~UnassociateCenBandwidthPackageResult()
|
||||
{}
|
||||
|
||||
void UnassociateCenBandwidthPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
93
cbn/src/model/UnroutePrivateZoneInCenToVpcRequest.cc
Normal file
93
cbn/src/model/UnroutePrivateZoneInCenToVpcRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::UnroutePrivateZoneInCenToVpcRequest;
|
||||
|
||||
UnroutePrivateZoneInCenToVpcRequest::UnroutePrivateZoneInCenToVpcRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "UnroutePrivateZoneInCenToVpc")
|
||||
{}
|
||||
|
||||
UnroutePrivateZoneInCenToVpcRequest::~UnroutePrivateZoneInCenToVpcRequest()
|
||||
{}
|
||||
|
||||
long UnroutePrivateZoneInCenToVpcRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UnroutePrivateZoneInCenToVpcRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UnroutePrivateZoneInCenToVpcRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UnroutePrivateZoneInCenToVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UnroutePrivateZoneInCenToVpcRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void UnroutePrivateZoneInCenToVpcRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string UnroutePrivateZoneInCenToVpcRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void UnroutePrivateZoneInCenToVpcRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string UnroutePrivateZoneInCenToVpcRequest::getAccessRegionId()const
|
||||
{
|
||||
return accessRegionId_;
|
||||
}
|
||||
|
||||
void UnroutePrivateZoneInCenToVpcRequest::setAccessRegionId(const std::string& accessRegionId)
|
||||
{
|
||||
accessRegionId_ = accessRegionId;
|
||||
setParameter("AccessRegionId", accessRegionId);
|
||||
}
|
||||
|
||||
long UnroutePrivateZoneInCenToVpcRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UnroutePrivateZoneInCenToVpcRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
45
cbn/src/model/UnroutePrivateZoneInCenToVpcResult.cc
Normal file
45
cbn/src/model/UnroutePrivateZoneInCenToVpcResult.cc
Normal 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/cbn/model/UnroutePrivateZoneInCenToVpcResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
UnroutePrivateZoneInCenToVpcResult::UnroutePrivateZoneInCenToVpcResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnroutePrivateZoneInCenToVpcResult::UnroutePrivateZoneInCenToVpcResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnroutePrivateZoneInCenToVpcResult::~UnroutePrivateZoneInCenToVpcResult()
|
||||
{}
|
||||
|
||||
void UnroutePrivateZoneInCenToVpcResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
128
cbn/src/model/UntagResourcesRequest.cc
Normal file
128
cbn/src/model/UntagResourcesRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/UntagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::UntagResourcesRequest;
|
||||
|
||||
UntagResourcesRequest::UntagResourcesRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "UntagResources")
|
||||
{}
|
||||
|
||||
UntagResourcesRequest::~UntagResourcesRequest()
|
||||
{}
|
||||
|
||||
long UntagResourcesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int i = 0; i!= resourceId.size(); i++)
|
||||
setParameter("ResourceId."+ std::to_string(i), resourceId.at(i));
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long UntagResourcesRequest::getTagOwnerUid()const
|
||||
{
|
||||
return tagOwnerUid_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setTagOwnerUid(long tagOwnerUid)
|
||||
{
|
||||
tagOwnerUid_ = tagOwnerUid;
|
||||
setParameter("TagOwnerUid", std::to_string(tagOwnerUid));
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getTagOwnerBid()const
|
||||
{
|
||||
return tagOwnerBid_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setTagOwnerBid(const std::string& tagOwnerBid)
|
||||
{
|
||||
tagOwnerBid_ = tagOwnerBid;
|
||||
setParameter("TagOwnerBid", tagOwnerBid);
|
||||
}
|
||||
|
||||
long UntagResourcesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getTagKey()const
|
||||
{
|
||||
return tagKey_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
for(int i = 0; i!= tagKey.size(); i++)
|
||||
setParameter("TagKey."+ std::to_string(i), tagKey.at(i));
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
45
cbn/src/model/UntagResourcesResult.cc
Normal file
45
cbn/src/model/UntagResourcesResult.cc
Normal 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/cbn/model/UntagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UntagResourcesResult::~UntagResourcesResult()
|
||||
{}
|
||||
|
||||
void UntagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
115
cbn/src/model/WithdrawPublishedRouteEntriesRequest.cc
Normal file
115
cbn/src/model/WithdrawPublishedRouteEntriesRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/WithdrawPublishedRouteEntriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::WithdrawPublishedRouteEntriesRequest;
|
||||
|
||||
WithdrawPublishedRouteEntriesRequest::WithdrawPublishedRouteEntriesRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "WithdrawPublishedRouteEntries")
|
||||
{}
|
||||
|
||||
WithdrawPublishedRouteEntriesRequest::~WithdrawPublishedRouteEntriesRequest()
|
||||
{}
|
||||
|
||||
std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceId()const
|
||||
{
|
||||
return childInstanceId_;
|
||||
}
|
||||
|
||||
void WithdrawPublishedRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long WithdrawPublishedRouteEntriesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void WithdrawPublishedRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string WithdrawPublishedRouteEntriesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void WithdrawPublishedRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string WithdrawPublishedRouteEntriesRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void WithdrawPublishedRouteEntriesRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string WithdrawPublishedRouteEntriesRequest::getDestinationCidrBlock()const
|
||||
{
|
||||
return destinationCidrBlock_;
|
||||
}
|
||||
|
||||
void WithdrawPublishedRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
|
||||
{
|
||||
destinationCidrBlock_ = destinationCidrBlock;
|
||||
setParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
}
|
||||
|
||||
std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceType()const
|
||||
{
|
||||
return childInstanceType_;
|
||||
}
|
||||
|
||||
void WithdrawPublishedRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceRouteTableId()const
|
||||
{
|
||||
return childInstanceRouteTableId_;
|
||||
}
|
||||
|
||||
void WithdrawPublishedRouteEntriesRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId)
|
||||
{
|
||||
childInstanceRouteTableId_ = childInstanceRouteTableId;
|
||||
setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId);
|
||||
}
|
||||
|
||||
std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceRegionId()const
|
||||
{
|
||||
return childInstanceRegionId_;
|
||||
}
|
||||
|
||||
void WithdrawPublishedRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
45
cbn/src/model/WithdrawPublishedRouteEntriesResult.cc
Normal file
45
cbn/src/model/WithdrawPublishedRouteEntriesResult.cc
Normal 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/cbn/model/WithdrawPublishedRouteEntriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
WithdrawPublishedRouteEntriesResult::WithdrawPublishedRouteEntriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
WithdrawPublishedRouteEntriesResult::WithdrawPublishedRouteEntriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
WithdrawPublishedRouteEntriesResult::~WithdrawPublishedRouteEntriesResult()
|
||||
{}
|
||||
|
||||
void WithdrawPublishedRouteEntriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user