Support Vpn-Attachment.
This commit is contained in:
202
cbn/src/model/CreateTransitRouterVpnAttachmentRequest.cc
Normal file
202
cbn/src/model/CreateTransitRouterVpnAttachmentRequest.cc
Normal file
@@ -0,0 +1,202 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateTransitRouterVpnAttachmentRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::CreateTransitRouterVpnAttachmentRequest;
|
||||
|
||||
CreateTransitRouterVpnAttachmentRequest::CreateTransitRouterVpnAttachmentRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "CreateTransitRouterVpnAttachment") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTransitRouterVpnAttachmentRequest::~CreateTransitRouterVpnAttachmentRequest() {}
|
||||
|
||||
long CreateTransitRouterVpnAttachmentRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpnAttachmentRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpnAttachmentRequest::getCenId() const {
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setCenId(const std::string &cenId) {
|
||||
cenId_ = cenId;
|
||||
setParameter(std::string("CenId"), cenId);
|
||||
}
|
||||
|
||||
bool CreateTransitRouterVpnAttachmentRequest::getRouteTableAssociationEnabled() const {
|
||||
return routeTableAssociationEnabled_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setRouteTableAssociationEnabled(bool routeTableAssociationEnabled) {
|
||||
routeTableAssociationEnabled_ = routeTableAssociationEnabled;
|
||||
setParameter(std::string("RouteTableAssociationEnabled"), routeTableAssociationEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpnAttachmentRequest::getTransitRouterAttachmentName() const {
|
||||
return transitRouterAttachmentName_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setTransitRouterAttachmentName(const std::string &transitRouterAttachmentName) {
|
||||
transitRouterAttachmentName_ = transitRouterAttachmentName;
|
||||
setParameter(std::string("TransitRouterAttachmentName"), transitRouterAttachmentName);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpnAttachmentRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateTransitRouterVpnAttachmentRequest::Zone> CreateTransitRouterVpnAttachmentRequest::getZone() const {
|
||||
return zone_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setZone(const std::vector<CreateTransitRouterVpnAttachmentRequest::Zone> &zone) {
|
||||
zone_ = zone;
|
||||
for(int dep1 = 0; dep1 != zone.size(); dep1++) {
|
||||
auto zoneObj = zone.at(dep1);
|
||||
std::string zoneObjStr = std::string("Zone") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(zoneObjStr + ".ZoneId", zoneObj.zoneId);
|
||||
}
|
||||
}
|
||||
|
||||
bool CreateTransitRouterVpnAttachmentRequest::getAutoPublishRouteEnabled() const {
|
||||
return autoPublishRouteEnabled_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setAutoPublishRouteEnabled(bool autoPublishRouteEnabled) {
|
||||
autoPublishRouteEnabled_ = autoPublishRouteEnabled;
|
||||
setParameter(std::string("AutoPublishRouteEnabled"), autoPublishRouteEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTransitRouterVpnAttachmentRequest::getRouteTablePropagationEnabled() const {
|
||||
return routeTablePropagationEnabled_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setRouteTablePropagationEnabled(bool routeTablePropagationEnabled) {
|
||||
routeTablePropagationEnabled_ = routeTablePropagationEnabled;
|
||||
setParameter(std::string("RouteTablePropagationEnabled"), routeTablePropagationEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTransitRouterVpnAttachmentRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpnAttachmentRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpnAttachmentRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long CreateTransitRouterVpnAttachmentRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpnAttachmentRequest::getTransitRouterId() const {
|
||||
return transitRouterId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setTransitRouterId(const std::string &transitRouterId) {
|
||||
transitRouterId_ = transitRouterId;
|
||||
setParameter(std::string("TransitRouterId"), transitRouterId);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpnAttachmentRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpnAttachmentRequest::getTransitRouterAttachmentDescription() const {
|
||||
return transitRouterAttachmentDescription_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setTransitRouterAttachmentDescription(const std::string &transitRouterAttachmentDescription) {
|
||||
transitRouterAttachmentDescription_ = transitRouterAttachmentDescription;
|
||||
setParameter(std::string("TransitRouterAttachmentDescription"), transitRouterAttachmentDescription);
|
||||
}
|
||||
|
||||
long CreateTransitRouterVpnAttachmentRequest::getVpnOwnerId() const {
|
||||
return vpnOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setVpnOwnerId(long vpnOwnerId) {
|
||||
vpnOwnerId_ = vpnOwnerId;
|
||||
setParameter(std::string("VpnOwnerId"), std::to_string(vpnOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpnAttachmentRequest::getChargeType() const {
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setChargeType(const std::string &chargeType) {
|
||||
chargeType_ = chargeType;
|
||||
setParameter(std::string("ChargeType"), chargeType);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpnAttachmentRequest::getVpnId() const {
|
||||
return vpnId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setVpnId(const std::string &vpnId) {
|
||||
vpnId_ = vpnId;
|
||||
setParameter(std::string("VpnId"), vpnId);
|
||||
}
|
||||
|
||||
51
cbn/src/model/CreateTransitRouterVpnAttachmentResult.cc
Normal file
51
cbn/src/model/CreateTransitRouterVpnAttachmentResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/CreateTransitRouterVpnAttachmentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
CreateTransitRouterVpnAttachmentResult::CreateTransitRouterVpnAttachmentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTransitRouterVpnAttachmentResult::CreateTransitRouterVpnAttachmentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTransitRouterVpnAttachmentResult::~CreateTransitRouterVpnAttachmentResult()
|
||||
{}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TransitRouterAttachmentId"].isNull())
|
||||
transitRouterAttachmentId_ = value["TransitRouterAttachmentId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpnAttachmentResult::getTransitRouterAttachmentId()const
|
||||
{
|
||||
return transitRouterAttachmentId_;
|
||||
}
|
||||
|
||||
99
cbn/src/model/DeleteTransitRouterVpnAttachmentRequest.cc
Normal file
99
cbn/src/model/DeleteTransitRouterVpnAttachmentRequest.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/DeleteTransitRouterVpnAttachmentRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DeleteTransitRouterVpnAttachmentRequest;
|
||||
|
||||
DeleteTransitRouterVpnAttachmentRequest::DeleteTransitRouterVpnAttachmentRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "DeleteTransitRouterVpnAttachment") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTransitRouterVpnAttachmentRequest::~DeleteTransitRouterVpnAttachmentRequest() {}
|
||||
|
||||
long DeleteTransitRouterVpnAttachmentRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterVpnAttachmentRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterVpnAttachmentRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterVpnAttachmentRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool DeleteTransitRouterVpnAttachmentRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterVpnAttachmentRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterVpnAttachmentRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterVpnAttachmentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterVpnAttachmentRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterVpnAttachmentRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteTransitRouterVpnAttachmentRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterVpnAttachmentRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterVpnAttachmentRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterVpnAttachmentRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterVpnAttachmentRequest::getTransitRouterAttachmentId() const {
|
||||
return transitRouterAttachmentId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterVpnAttachmentRequest::setTransitRouterAttachmentId(const std::string &transitRouterAttachmentId) {
|
||||
transitRouterAttachmentId_ = transitRouterAttachmentId;
|
||||
setParameter(std::string("TransitRouterAttachmentId"), transitRouterAttachmentId);
|
||||
}
|
||||
|
||||
44
cbn/src/model/DeleteTransitRouterVpnAttachmentResult.cc
Normal file
44
cbn/src/model/DeleteTransitRouterVpnAttachmentResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DeleteTransitRouterVpnAttachmentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DeleteTransitRouterVpnAttachmentResult::DeleteTransitRouterVpnAttachmentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTransitRouterVpnAttachmentResult::DeleteTransitRouterVpnAttachmentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTransitRouterVpnAttachmentResult::~DeleteTransitRouterVpnAttachmentResult()
|
||||
{}
|
||||
|
||||
void DeleteTransitRouterVpnAttachmentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
81
cbn/src/model/DescribeCenVpcFlowStatisticSwitchRequest.cc
Normal file
81
cbn/src/model/DescribeCenVpcFlowStatisticSwitchRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenVpcFlowStatisticSwitchRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCenVpcFlowStatisticSwitchRequest;
|
||||
|
||||
DescribeCenVpcFlowStatisticSwitchRequest::DescribeCenVpcFlowStatisticSwitchRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "DescribeCenVpcFlowStatisticSwitch") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCenVpcFlowStatisticSwitchRequest::~DescribeCenVpcFlowStatisticSwitchRequest() {}
|
||||
|
||||
long DescribeCenVpcFlowStatisticSwitchRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchRequest::getCenId() const {
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchRequest::setCenId(const std::string &cenId) {
|
||||
cenId_ = cenId;
|
||||
setParameter(std::string("CenId"), cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeCenVpcFlowStatisticSwitchRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
72
cbn/src/model/DescribeCenVpcFlowStatisticSwitchResult.cc
Normal file
72
cbn/src/model/DescribeCenVpcFlowStatisticSwitchResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenVpcFlowStatisticSwitchResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCenVpcFlowStatisticSwitchResult::DescribeCenVpcFlowStatisticSwitchResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCenVpcFlowStatisticSwitchResult::DescribeCenVpcFlowStatisticSwitchResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCenVpcFlowStatisticSwitchResult::~DescribeCenVpcFlowStatisticSwitchResult()
|
||||
{}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["InvalidDate"].isNull())
|
||||
invalidDate_ = value["InvalidDate"].asString();
|
||||
if(!value["State"].isNull())
|
||||
state_ = value["State"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["CenId"].isNull())
|
||||
cenId_ = value["CenId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchResult::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchResult::getInvalidDate()const
|
||||
{
|
||||
return invalidDate_;
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchResult::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
90
cbn/src/model/DisableCenVpcFlowStatisticRequest.cc
Normal file
90
cbn/src/model/DisableCenVpcFlowStatisticRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DisableCenVpcFlowStatisticRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DisableCenVpcFlowStatisticRequest;
|
||||
|
||||
DisableCenVpcFlowStatisticRequest::DisableCenVpcFlowStatisticRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "DisableCenVpcFlowStatistic") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableCenVpcFlowStatisticRequest::~DisableCenVpcFlowStatisticRequest() {}
|
||||
|
||||
long DisableCenVpcFlowStatisticRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DisableCenVpcFlowStatisticRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DisableCenVpcFlowStatisticRequest::getCenId() const {
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setCenId(const std::string &cenId) {
|
||||
cenId_ = cenId;
|
||||
setParameter(std::string("CenId"), cenId);
|
||||
}
|
||||
|
||||
std::string DisableCenVpcFlowStatisticRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DisableCenVpcFlowStatisticRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DisableCenVpcFlowStatisticRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DisableCenVpcFlowStatisticRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
cbn/src/model/DisableCenVpcFlowStatisticResult.cc
Normal file
44
cbn/src/model/DisableCenVpcFlowStatisticResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DisableCenVpcFlowStatisticResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DisableCenVpcFlowStatisticResult::DisableCenVpcFlowStatisticResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableCenVpcFlowStatisticResult::DisableCenVpcFlowStatisticResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableCenVpcFlowStatisticResult::~DisableCenVpcFlowStatisticResult()
|
||||
{}
|
||||
|
||||
void DisableCenVpcFlowStatisticResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
99
cbn/src/model/EnableCenVpcFlowStatisticRequest.cc
Normal file
99
cbn/src/model/EnableCenVpcFlowStatisticRequest.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/EnableCenVpcFlowStatisticRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::EnableCenVpcFlowStatisticRequest;
|
||||
|
||||
EnableCenVpcFlowStatisticRequest::EnableCenVpcFlowStatisticRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "EnableCenVpcFlowStatistic") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableCenVpcFlowStatisticRequest::~EnableCenVpcFlowStatisticRequest() {}
|
||||
|
||||
long EnableCenVpcFlowStatisticRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string EnableCenVpcFlowStatisticRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string EnableCenVpcFlowStatisticRequest::getCenId() const {
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setCenId(const std::string &cenId) {
|
||||
cenId_ = cenId;
|
||||
setParameter(std::string("CenId"), cenId);
|
||||
}
|
||||
|
||||
std::string EnableCenVpcFlowStatisticRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string EnableCenVpcFlowStatisticRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string EnableCenVpcFlowStatisticRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long EnableCenVpcFlowStatisticRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int EnableCenVpcFlowStatisticRequest::getDays() const {
|
||||
return days_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setDays(int days) {
|
||||
days_ = days;
|
||||
setParameter(std::string("Days"), std::to_string(days));
|
||||
}
|
||||
|
||||
44
cbn/src/model/EnableCenVpcFlowStatisticResult.cc
Normal file
44
cbn/src/model/EnableCenVpcFlowStatisticResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/EnableCenVpcFlowStatisticResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
EnableCenVpcFlowStatisticResult::EnableCenVpcFlowStatisticResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableCenVpcFlowStatisticResult::EnableCenVpcFlowStatisticResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableCenVpcFlowStatisticResult::~EnableCenVpcFlowStatisticResult()
|
||||
{}
|
||||
|
||||
void EnableCenVpcFlowStatisticResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
126
cbn/src/model/ListTransitRouterVpnAttachmentsRequest.cc
Normal file
126
cbn/src/model/ListTransitRouterVpnAttachmentsRequest.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/ListTransitRouterVpnAttachmentsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::ListTransitRouterVpnAttachmentsRequest;
|
||||
|
||||
ListTransitRouterVpnAttachmentsRequest::ListTransitRouterVpnAttachmentsRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "ListTransitRouterVpnAttachments") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTransitRouterVpnAttachmentsRequest::~ListTransitRouterVpnAttachmentsRequest() {}
|
||||
|
||||
long ListTransitRouterVpnAttachmentsRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVpnAttachmentsRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ListTransitRouterVpnAttachmentsRequest::getCenId() const {
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVpnAttachmentsRequest::setCenId(const std::string &cenId) {
|
||||
cenId_ = cenId;
|
||||
setParameter(std::string("CenId"), cenId);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterVpnAttachmentsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVpnAttachmentsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterVpnAttachmentsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVpnAttachmentsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterVpnAttachmentsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVpnAttachmentsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterVpnAttachmentsRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVpnAttachmentsRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long ListTransitRouterVpnAttachmentsRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVpnAttachmentsRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ListTransitRouterVpnAttachmentsRequest::getTransitRouterId() const {
|
||||
return transitRouterId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVpnAttachmentsRequest::setTransitRouterId(const std::string &transitRouterId) {
|
||||
transitRouterId_ = transitRouterId;
|
||||
setParameter(std::string("TransitRouterId"), transitRouterId);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterVpnAttachmentsRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVpnAttachmentsRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterVpnAttachmentsRequest::getTransitRouterAttachmentId() const {
|
||||
return transitRouterAttachmentId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVpnAttachmentsRequest::setTransitRouterAttachmentId(const std::string &transitRouterAttachmentId) {
|
||||
transitRouterAttachmentId_ = transitRouterAttachmentId;
|
||||
setParameter(std::string("TransitRouterAttachmentId"), transitRouterAttachmentId);
|
||||
}
|
||||
|
||||
int ListTransitRouterVpnAttachmentsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVpnAttachmentsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
106
cbn/src/model/ListTransitRouterVpnAttachmentsResult.cc
Normal file
106
cbn/src/model/ListTransitRouterVpnAttachmentsResult.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/ListTransitRouterVpnAttachmentsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
ListTransitRouterVpnAttachmentsResult::ListTransitRouterVpnAttachmentsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTransitRouterVpnAttachmentsResult::ListTransitRouterVpnAttachmentsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTransitRouterVpnAttachmentsResult::~ListTransitRouterVpnAttachmentsResult()
|
||||
{}
|
||||
|
||||
void ListTransitRouterVpnAttachmentsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTransitRouterAttachmentsNode = value["TransitRouterAttachments"]["TransitRouterAttachment"];
|
||||
for (auto valueTransitRouterAttachmentsTransitRouterAttachment : allTransitRouterAttachmentsNode)
|
||||
{
|
||||
TransitRouterAttachment transitRouterAttachmentsObject;
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["CreationTime"].isNull())
|
||||
transitRouterAttachmentsObject.creationTime = valueTransitRouterAttachmentsTransitRouterAttachment["CreationTime"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["Status"].isNull())
|
||||
transitRouterAttachmentsObject.status = valueTransitRouterAttachmentsTransitRouterAttachment["Status"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentId"].isNull())
|
||||
transitRouterAttachmentsObject.transitRouterAttachmentId = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterId"].isNull())
|
||||
transitRouterAttachmentsObject.transitRouterId = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["ResourceType"].isNull())
|
||||
transitRouterAttachmentsObject.resourceType = std::stoi(valueTransitRouterAttachmentsTransitRouterAttachment["ResourceType"].asString());
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["VpnOwnerId"].isNull())
|
||||
transitRouterAttachmentsObject.vpnOwnerId = std::stol(valueTransitRouterAttachmentsTransitRouterAttachment["VpnOwnerId"].asString());
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["VpnId"].isNull())
|
||||
transitRouterAttachmentsObject.vpnId = valueTransitRouterAttachmentsTransitRouterAttachment["VpnId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentDescription"].isNull())
|
||||
transitRouterAttachmentsObject.transitRouterAttachmentDescription = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentDescription"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["VpnRegionId"].isNull())
|
||||
transitRouterAttachmentsObject.vpnRegionId = valueTransitRouterAttachmentsTransitRouterAttachment["VpnRegionId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["AutoPublishRouteEnabled"].isNull())
|
||||
transitRouterAttachmentsObject.autoPublishRouteEnabled = valueTransitRouterAttachmentsTransitRouterAttachment["AutoPublishRouteEnabled"].asString() == "true";
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].isNull())
|
||||
transitRouterAttachmentsObject.transitRouterAttachmentName = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].asString();
|
||||
auto allZonesNode = valueTransitRouterAttachmentsTransitRouterAttachment["Zones"]["Zone"];
|
||||
for (auto valueTransitRouterAttachmentsTransitRouterAttachmentZonesZone : allZonesNode)
|
||||
{
|
||||
TransitRouterAttachment::Zone zonesObject;
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachmentZonesZone["ZoneId"].isNull())
|
||||
zonesObject.zoneId = valueTransitRouterAttachmentsTransitRouterAttachmentZonesZone["ZoneId"].asString();
|
||||
transitRouterAttachmentsObject.zones.push_back(zonesObject);
|
||||
}
|
||||
transitRouterAttachments_.push_back(transitRouterAttachmentsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListTransitRouterVpnAttachmentsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListTransitRouterVpnAttachmentsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListTransitRouterVpnAttachmentsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<ListTransitRouterVpnAttachmentsResult::TransitRouterAttachment> ListTransitRouterVpnAttachmentsResult::getTransitRouterAttachments()const
|
||||
{
|
||||
return transitRouterAttachments_;
|
||||
}
|
||||
|
||||
@@ -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/UpdateTransitRouterVpnAttachmentAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::UpdateTransitRouterVpnAttachmentAttributeRequest;
|
||||
|
||||
UpdateTransitRouterVpnAttachmentAttributeRequest::UpdateTransitRouterVpnAttachmentAttributeRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "UpdateTransitRouterVpnAttachmentAttribute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateTransitRouterVpnAttachmentAttributeRequest::~UpdateTransitRouterVpnAttachmentAttributeRequest() {}
|
||||
|
||||
long UpdateTransitRouterVpnAttachmentAttributeRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterVpnAttachmentAttributeRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterVpnAttachmentAttributeRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterVpnAttachmentAttributeRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterVpnAttachmentAttributeRequest::getTransitRouterAttachmentName() const {
|
||||
return transitRouterAttachmentName_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterVpnAttachmentAttributeRequest::setTransitRouterAttachmentName(const std::string &transitRouterAttachmentName) {
|
||||
transitRouterAttachmentName_ = transitRouterAttachmentName;
|
||||
setParameter(std::string("TransitRouterAttachmentName"), transitRouterAttachmentName);
|
||||
}
|
||||
|
||||
bool UpdateTransitRouterVpnAttachmentAttributeRequest::getAutoPublishRouteEnabled() const {
|
||||
return autoPublishRouteEnabled_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterVpnAttachmentAttributeRequest::setAutoPublishRouteEnabled(bool autoPublishRouteEnabled) {
|
||||
autoPublishRouteEnabled_ = autoPublishRouteEnabled;
|
||||
setParameter(std::string("AutoPublishRouteEnabled"), autoPublishRouteEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
bool UpdateTransitRouterVpnAttachmentAttributeRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterVpnAttachmentAttributeRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterVpnAttachmentAttributeRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterVpnAttachmentAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterVpnAttachmentAttributeRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterVpnAttachmentAttributeRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long UpdateTransitRouterVpnAttachmentAttributeRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterVpnAttachmentAttributeRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterVpnAttachmentAttributeRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterVpnAttachmentAttributeRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterVpnAttachmentAttributeRequest::getTransitRouterAttachmentId() const {
|
||||
return transitRouterAttachmentId_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterVpnAttachmentAttributeRequest::setTransitRouterAttachmentId(const std::string &transitRouterAttachmentId) {
|
||||
transitRouterAttachmentId_ = transitRouterAttachmentId;
|
||||
setParameter(std::string("TransitRouterAttachmentId"), transitRouterAttachmentId);
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterVpnAttachmentAttributeRequest::getTransitRouterAttachmentDescription() const {
|
||||
return transitRouterAttachmentDescription_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterVpnAttachmentAttributeRequest::setTransitRouterAttachmentDescription(const std::string &transitRouterAttachmentDescription) {
|
||||
transitRouterAttachmentDescription_ = transitRouterAttachmentDescription;
|
||||
setParameter(std::string("TransitRouterAttachmentDescription"), transitRouterAttachmentDescription);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/UpdateTransitRouterVpnAttachmentAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
UpdateTransitRouterVpnAttachmentAttributeResult::UpdateTransitRouterVpnAttachmentAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateTransitRouterVpnAttachmentAttributeResult::UpdateTransitRouterVpnAttachmentAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateTransitRouterVpnAttachmentAttributeResult::~UpdateTransitRouterVpnAttachmentAttributeResult()
|
||||
{}
|
||||
|
||||
void UpdateTransitRouterVpnAttachmentAttributeResult::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