VPC SDK Auto Released By shenshi,Version:1.34.13
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
2610
vpc/src/VpcClient.cc
2610
vpc/src/VpcClient.cc
File diff suppressed because it is too large
Load Diff
93
vpc/src/model/ActiveFlowLogRequest.cc
Normal file
93
vpc/src/model/ActiveFlowLogRequest.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/vpc/model/ActiveFlowLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::ActiveFlowLogRequest;
|
||||
|
||||
ActiveFlowLogRequest::ActiveFlowLogRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "ActiveFlowLog")
|
||||
{}
|
||||
|
||||
ActiveFlowLogRequest::~ActiveFlowLogRequest()
|
||||
{}
|
||||
|
||||
long ActiveFlowLogRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ActiveFlowLogRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getFlowLogId()const
|
||||
{
|
||||
return flowLogId_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setFlowLogId(const std::string& flowLogId)
|
||||
{
|
||||
flowLogId_ = flowLogId;
|
||||
setParameter("FlowLogId", flowLogId);
|
||||
}
|
||||
|
||||
52
vpc/src/model/ActiveFlowLogResult.cc
Normal file
52
vpc/src/model/ActiveFlowLogResult.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/vpc/model/ActiveFlowLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
ActiveFlowLogResult::ActiveFlowLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ActiveFlowLogResult::ActiveFlowLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ActiveFlowLogResult::~ActiveFlowLogResult()
|
||||
{}
|
||||
|
||||
void ActiveFlowLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
115
vpc/src/model/AddIPv6TranslatorAclListEntryRequest.cc
Normal file
115
vpc/src/model/AddIPv6TranslatorAclListEntryRequest.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/vpc/model/AddIPv6TranslatorAclListEntryRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::AddIPv6TranslatorAclListEntryRequest;
|
||||
|
||||
AddIPv6TranslatorAclListEntryRequest::AddIPv6TranslatorAclListEntryRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "AddIPv6TranslatorAclListEntry")
|
||||
{}
|
||||
|
||||
AddIPv6TranslatorAclListEntryRequest::~AddIPv6TranslatorAclListEntryRequest()
|
||||
{}
|
||||
|
||||
std::string AddIPv6TranslatorAclListEntryRequest::getAclId()const
|
||||
{
|
||||
return aclId_;
|
||||
}
|
||||
|
||||
void AddIPv6TranslatorAclListEntryRequest::setAclId(const std::string& aclId)
|
||||
{
|
||||
aclId_ = aclId;
|
||||
setParameter("AclId", aclId);
|
||||
}
|
||||
|
||||
long AddIPv6TranslatorAclListEntryRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddIPv6TranslatorAclListEntryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryIp()const
|
||||
{
|
||||
return aclEntryIp_;
|
||||
}
|
||||
|
||||
void AddIPv6TranslatorAclListEntryRequest::setAclEntryIp(const std::string& aclEntryIp)
|
||||
{
|
||||
aclEntryIp_ = aclEntryIp;
|
||||
setParameter("AclEntryIp", aclEntryIp);
|
||||
}
|
||||
|
||||
std::string AddIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AddIPv6TranslatorAclListEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AddIPv6TranslatorAclListEntryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddIPv6TranslatorAclListEntryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddIPv6TranslatorAclListEntryRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void AddIPv6TranslatorAclListEntryRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryComment()const
|
||||
{
|
||||
return aclEntryComment_;
|
||||
}
|
||||
|
||||
void AddIPv6TranslatorAclListEntryRequest::setAclEntryComment(const std::string& aclEntryComment)
|
||||
{
|
||||
aclEntryComment_ = aclEntryComment;
|
||||
setParameter("AclEntryComment", aclEntryComment);
|
||||
}
|
||||
|
||||
long AddIPv6TranslatorAclListEntryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddIPv6TranslatorAclListEntryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
52
vpc/src/model/AddIPv6TranslatorAclListEntryResult.cc
Normal file
52
vpc/src/model/AddIPv6TranslatorAclListEntryResult.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/vpc/model/AddIPv6TranslatorAclListEntryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
AddIPv6TranslatorAclListEntryResult::AddIPv6TranslatorAclListEntryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddIPv6TranslatorAclListEntryResult::AddIPv6TranslatorAclListEntryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddIPv6TranslatorAclListEntryResult::~AddIPv6TranslatorAclListEntryResult()
|
||||
{}
|
||||
|
||||
void AddIPv6TranslatorAclListEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AclEntryId"].isNull())
|
||||
aclEntryId_ = value["AclEntryId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddIPv6TranslatorAclListEntryResult::getAclEntryId()const
|
||||
{
|
||||
return aclEntryId_;
|
||||
}
|
||||
|
||||
@@ -40,34 +40,34 @@ void AllocateEipAddressResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AllocationId"].isNull())
|
||||
allocationId_ = value["AllocationId"].asString();
|
||||
if(!value["EipAddress"].isNull())
|
||||
eipAddress_ = value["EipAddress"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = std::stol(value["OrderId"].asString());
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
if(!value["AllocationId"].isNull())
|
||||
allocationId_ = value["AllocationId"].asString();
|
||||
if(!value["EipAddress"].isNull())
|
||||
eipAddress_ = value["EipAddress"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = std::stol(value["OrderId"].asString());
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressResult::getAllocationId()const
|
||||
{
|
||||
return allocationId_;
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressResult::getEipAddress()const
|
||||
{
|
||||
return eipAddress_;
|
||||
}
|
||||
|
||||
long AllocateEipAddressResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressResult::getAllocationId()const
|
||||
{
|
||||
return allocationId_;
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressResult::getEipAddress()const
|
||||
{
|
||||
return eipAddress_;
|
||||
}
|
||||
|
||||
long AllocateEipAddressResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
|
||||
346
vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc
Normal file
346
vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc
Normal file
@@ -0,0 +1,346 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/AllocateIpv6InternetBandwidthRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::AllocateIpv6InternetBandwidthRequest;
|
||||
|
||||
AllocateIpv6InternetBandwidthRequest::AllocateIpv6InternetBandwidthRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "AllocateIpv6InternetBandwidth")
|
||||
{}
|
||||
|
||||
AllocateIpv6InternetBandwidthRequest::~AllocateIpv6InternetBandwidthRequest()
|
||||
{}
|
||||
|
||||
long AllocateIpv6InternetBandwidthRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long AllocateIpv6InternetBandwidthRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool AllocateIpv6InternetBandwidthRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool AllocateIpv6InternetBandwidthRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long AllocateIpv6InternetBandwidthRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
int AllocateIpv6InternetBandwidthRequest::getBandwidth()const
|
||||
{
|
||||
return bandwidth_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long AllocateIpv6InternetBandwidthRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool AllocateIpv6InternetBandwidthRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool AllocateIpv6InternetBandwidthRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool AllocateIpv6InternetBandwidthRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getIpv6AddressId()const
|
||||
{
|
||||
return ipv6AddressId_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setIpv6AddressId(const std::string& ipv6AddressId)
|
||||
{
|
||||
ipv6AddressId_ = ipv6AddressId;
|
||||
setParameter("Ipv6AddressId", ipv6AddressId);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getInternetChargeType()const
|
||||
{
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setInternetChargeType(const std::string& internetChargeType)
|
||||
{
|
||||
internetChargeType_ = internetChargeType;
|
||||
setParameter("InternetChargeType", internetChargeType);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getIpv6GatewayId()const
|
||||
{
|
||||
return ipv6GatewayId_;
|
||||
}
|
||||
|
||||
void AllocateIpv6InternetBandwidthRequest::setIpv6GatewayId(const std::string& ipv6GatewayId)
|
||||
{
|
||||
ipv6GatewayId_ = ipv6GatewayId;
|
||||
setParameter("Ipv6GatewayId", ipv6GatewayId);
|
||||
}
|
||||
|
||||
59
vpc/src/model/AllocateIpv6InternetBandwidthResult.cc
Normal file
59
vpc/src/model/AllocateIpv6InternetBandwidthResult.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/vpc/model/AllocateIpv6InternetBandwidthResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
AllocateIpv6InternetBandwidthResult::AllocateIpv6InternetBandwidthResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocateIpv6InternetBandwidthResult::AllocateIpv6InternetBandwidthResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocateIpv6InternetBandwidthResult::~AllocateIpv6InternetBandwidthResult()
|
||||
{}
|
||||
|
||||
void AllocateIpv6InternetBandwidthResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Ipv6AddressId"].isNull())
|
||||
ipv6AddressId_ = value["Ipv6AddressId"].asString();
|
||||
if(!value["InternetBandwidthId"].isNull())
|
||||
internetBandwidthId_ = value["InternetBandwidthId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthResult::getInternetBandwidthId()const
|
||||
{
|
||||
return internetBandwidthId_;
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthResult::getIpv6AddressId()const
|
||||
{
|
||||
return ipv6AddressId_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,17 @@ AssociateEipAddressRequest::AssociateEipAddressRequest() :
|
||||
AssociateEipAddressRequest::~AssociateEipAddressRequest()
|
||||
{}
|
||||
|
||||
std::string AssociateEipAddressRequest::getPrivateIpAddress()const
|
||||
{
|
||||
return privateIpAddress_;
|
||||
}
|
||||
|
||||
void AssociateEipAddressRequest::setPrivateIpAddress(const std::string& privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setParameter("PrivateIpAddress", privateIpAddress);
|
||||
}
|
||||
|
||||
long AssociateEipAddressRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
324
vpc/src/model/AssociateRouteTableRequest.cc
Normal file
324
vpc/src/model/AssociateRouteTableRequest.cc
Normal file
@@ -0,0 +1,324 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/AssociateRouteTableRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::AssociateRouteTableRequest;
|
||||
|
||||
AssociateRouteTableRequest::AssociateRouteTableRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "AssociateRouteTable")
|
||||
{}
|
||||
|
||||
AssociateRouteTableRequest::~AssociateRouteTableRequest()
|
||||
{}
|
||||
|
||||
long AssociateRouteTableRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long AssociateRouteTableRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool AssociateRouteTableRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool AssociateRouteTableRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getRouteTableId()const
|
||||
{
|
||||
return routeTableId_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setRouteTableId(const std::string& routeTableId)
|
||||
{
|
||||
routeTableId_ = routeTableId;
|
||||
setParameter("RouteTableId", routeTableId);
|
||||
}
|
||||
|
||||
long AssociateRouteTableRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long AssociateRouteTableRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool AssociateRouteTableRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool AssociateRouteTableRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
bool AssociateRouteTableRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void AssociateRouteTableRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
45
vpc/src/model/AssociateRouteTableResult.cc
Normal file
45
vpc/src/model/AssociateRouteTableResult.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/vpc/model/AssociateRouteTableResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
AssociateRouteTableResult::AssociateRouteTableResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AssociateRouteTableResult::AssociateRouteTableResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AssociateRouteTableResult::~AssociateRouteTableResult()
|
||||
{}
|
||||
|
||||
void AssociateRouteTableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
291
vpc/src/model/ConvertBandwidthPackageRequest.cc
Normal file
291
vpc/src/model/ConvertBandwidthPackageRequest.cc
Normal file
@@ -0,0 +1,291 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/ConvertBandwidthPackageRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::ConvertBandwidthPackageRequest;
|
||||
|
||||
ConvertBandwidthPackageRequest::ConvertBandwidthPackageRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "ConvertBandwidthPackage")
|
||||
{}
|
||||
|
||||
ConvertBandwidthPackageRequest::~ConvertBandwidthPackageRequest()
|
||||
{}
|
||||
|
||||
long ConvertBandwidthPackageRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long ConvertBandwidthPackageRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool ConvertBandwidthPackageRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool ConvertBandwidthPackageRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long ConvertBandwidthPackageRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getBandwidthPackageId()const
|
||||
{
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
|
||||
{
|
||||
bandwidthPackageId_ = bandwidthPackageId;
|
||||
setParameter("BandwidthPackageId", bandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long ConvertBandwidthPackageRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool ConvertBandwidthPackageRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool ConvertBandwidthPackageRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool ConvertBandwidthPackageRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void ConvertBandwidthPackageRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
52
vpc/src/model/ConvertBandwidthPackageResult.cc
Normal file
52
vpc/src/model/ConvertBandwidthPackageResult.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/vpc/model/ConvertBandwidthPackageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
ConvertBandwidthPackageResult::ConvertBandwidthPackageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConvertBandwidthPackageResult::ConvertBandwidthPackageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConvertBandwidthPackageResult::~ConvertBandwidthPackageResult()
|
||||
{}
|
||||
|
||||
void ConvertBandwidthPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ConvertInstanceId"].isNull())
|
||||
convertInstanceId_ = value["ConvertInstanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageResult::getConvertInstanceId()const
|
||||
{
|
||||
return convertInstanceId_;
|
||||
}
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateBandwidthPackageResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BandwidthPackageId"].isNull())
|
||||
bandwidthPackageId_ = value["BandwidthPackageId"].asString();
|
||||
if(!value["BandwidthPackageId"].isNull())
|
||||
bandwidthPackageId_ = value["BandwidthPackageId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBandwidthPackageResult::getBandwidthPackageId()const
|
||||
{
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
std::string CreateBandwidthPackageResult::getBandwidthPackageId()const
|
||||
{
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateBgpGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BgpGroupId"].isNull())
|
||||
bgpGroupId_ = value["BgpGroupId"].asString();
|
||||
if(!value["BgpGroupId"].isNull())
|
||||
bgpGroupId_ = value["BgpGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBgpGroupResult::getBgpGroupId()const
|
||||
{
|
||||
return bgpGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateBgpGroupResult::getBgpGroupId()const
|
||||
{
|
||||
return bgpGroupId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateBgpPeerResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BgpPeerId"].isNull())
|
||||
bgpPeerId_ = value["BgpPeerId"].asString();
|
||||
if(!value["BgpPeerId"].isNull())
|
||||
bgpPeerId_ = value["BgpPeerId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBgpPeerResult::getBgpPeerId()const
|
||||
{
|
||||
return bgpPeerId_;
|
||||
}
|
||||
|
||||
std::string CreateBgpPeerResult::getBgpPeerId()const
|
||||
{
|
||||
return bgpPeerId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,17 +47,6 @@ void CreateCommonBandwidthPackageRequest::setResourceOwnerAccount(const std::str
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateCommonBandwidthPackageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
@@ -80,17 +69,6 @@ void CreateCommonBandwidthPackageRequest::setBandwidth(int bandwidth)
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getInternetChargeType()const
|
||||
{
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
void CreateCommonBandwidthPackageRequest::setInternetChargeType(const std::string& internetChargeType)
|
||||
{
|
||||
internetChargeType_ = internetChargeType;
|
||||
setParameter("InternetChargeType", internetChargeType);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
@@ -102,15 +80,15 @@ void CreateCommonBandwidthPackageRequest::setOwnerAccount(const std::string& own
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getName()const
|
||||
std::string CreateCommonBandwidthPackageRequest::getISP()const
|
||||
{
|
||||
return name_;
|
||||
return iSP_;
|
||||
}
|
||||
|
||||
void CreateCommonBandwidthPackageRequest::setName(const std::string& name)
|
||||
void CreateCommonBandwidthPackageRequest::setISP(const std::string& iSP)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
iSP_ = iSP;
|
||||
setParameter("ISP", iSP);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getDescription()const
|
||||
@@ -135,6 +113,61 @@ void CreateCommonBandwidthPackageRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateCommonBandwidthPackageRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateCommonBandwidthPackageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getZone()const
|
||||
{
|
||||
return zone_;
|
||||
}
|
||||
|
||||
void CreateCommonBandwidthPackageRequest::setZone(const std::string& zone)
|
||||
{
|
||||
zone_ = zone;
|
||||
setParameter("Zone", zone);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getInternetChargeType()const
|
||||
{
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
void CreateCommonBandwidthPackageRequest::setInternetChargeType(const std::string& internetChargeType)
|
||||
{
|
||||
internetChargeType_ = internetChargeType;
|
||||
setParameter("InternetChargeType", internetChargeType);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateCommonBandwidthPackageRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int CreateCommonBandwidthPackageRequest::getRatio()const
|
||||
{
|
||||
return ratio_;
|
||||
|
||||
@@ -40,13 +40,20 @@ void CreateCommonBandwidthPackageResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BandwidthPackageId"].isNull())
|
||||
bandwidthPackageId_ = value["BandwidthPackageId"].asString();
|
||||
if(!value["BandwidthPackageId"].isNull())
|
||||
bandwidthPackageId_ = value["BandwidthPackageId"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageResult::getBandwidthPackageId()const
|
||||
{
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageResult::getBandwidthPackageId()const
|
||||
{
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,41 +40,41 @@ void CreateCustomerGatewayResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CustomerGatewayId"].isNull())
|
||||
customerGatewayId_ = value["CustomerGatewayId"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
ipAddress_ = value["IpAddress"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = std::stol(value["CreateTime"].asString());
|
||||
if(!value["CustomerGatewayId"].isNull())
|
||||
customerGatewayId_ = value["CustomerGatewayId"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
ipAddress_ = value["IpAddress"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = std::stol(value["CreateTime"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayResult::getCustomerGatewayId()const
|
||||
{
|
||||
return customerGatewayId_;
|
||||
}
|
||||
|
||||
long CreateCustomerGatewayResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayResult::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayResult::getCustomerGatewayId()const
|
||||
{
|
||||
return customerGatewayId_;
|
||||
}
|
||||
|
||||
long CreateCustomerGatewayResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayResult::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
|
||||
159
vpc/src/model/CreateFlowLogRequest.cc
Normal file
159
vpc/src/model/CreateFlowLogRequest.cc
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/CreateFlowLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CreateFlowLogRequest;
|
||||
|
||||
CreateFlowLogRequest::CreateFlowLogRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CreateFlowLog")
|
||||
{}
|
||||
|
||||
CreateFlowLogRequest::~CreateFlowLogRequest()
|
||||
{}
|
||||
|
||||
long CreateFlowLogRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void CreateFlowLogRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void CreateFlowLogRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getLogStoreName()const
|
||||
{
|
||||
return logStoreName_;
|
||||
}
|
||||
|
||||
void CreateFlowLogRequest::setLogStoreName(const std::string& logStoreName)
|
||||
{
|
||||
logStoreName_ = logStoreName;
|
||||
setParameter("LogStoreName", logStoreName);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateFlowLogRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateFlowLogRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateFlowLogRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void CreateFlowLogRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateFlowLogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getTrafficType()const
|
||||
{
|
||||
return trafficType_;
|
||||
}
|
||||
|
||||
void CreateFlowLogRequest::setTrafficType(const std::string& trafficType)
|
||||
{
|
||||
trafficType_ = trafficType;
|
||||
setParameter("TrafficType", trafficType);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getFlowLogName()const
|
||||
{
|
||||
return flowLogName_;
|
||||
}
|
||||
|
||||
void CreateFlowLogRequest::setFlowLogName(const std::string& flowLogName)
|
||||
{
|
||||
flowLogName_ = flowLogName;
|
||||
setParameter("FlowLogName", flowLogName);
|
||||
}
|
||||
|
||||
59
vpc/src/model/CreateFlowLogResult.cc
Normal file
59
vpc/src/model/CreateFlowLogResult.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/vpc/model/CreateFlowLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CreateFlowLogResult::CreateFlowLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFlowLogResult::CreateFlowLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFlowLogResult::~CreateFlowLogResult()
|
||||
{}
|
||||
|
||||
void CreateFlowLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["FlowLogId"].isNull())
|
||||
flowLogId_ = value["FlowLogId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateFlowLogResult::getFlowLogId()const
|
||||
{
|
||||
return flowLogId_;
|
||||
}
|
||||
|
||||
std::string CreateFlowLogResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -47,17 +47,6 @@ void CreateForwardEntryRequest::setResourceOwnerAccount(const std::string& resou
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getIpProtocol()const
|
||||
{
|
||||
return ipProtocol_;
|
||||
@@ -69,15 +58,15 @@ void CreateForwardEntryRequest::setIpProtocol(const std::string& ipProtocol)
|
||||
setParameter("IpProtocol", ipProtocol);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getInternalPort()const
|
||||
std::string CreateForwardEntryRequest::getForwardEntryName()const
|
||||
{
|
||||
return internalPort_;
|
||||
return forwardEntryName_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setInternalPort(const std::string& internalPort)
|
||||
void CreateForwardEntryRequest::setForwardEntryName(const std::string& forwardEntryName)
|
||||
{
|
||||
internalPort_ = internalPort;
|
||||
setParameter("InternalPort", internalPort);
|
||||
forwardEntryName_ = forwardEntryName;
|
||||
setParameter("ForwardEntryName", forwardEntryName);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getOwnerAccount()const
|
||||
@@ -113,6 +102,39 @@ void CreateForwardEntryRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getInternalIp()const
|
||||
{
|
||||
return internalIp_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setInternalIp(const std::string& internalIp)
|
||||
{
|
||||
internalIp_ = internalIp;
|
||||
setParameter("InternalIp", internalIp);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getInternalPort()const
|
||||
{
|
||||
return internalPort_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setInternalPort(const std::string& internalPort)
|
||||
{
|
||||
internalPort_ = internalPort;
|
||||
setParameter("InternalPort", internalPort);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getExternalIp()const
|
||||
{
|
||||
return externalIp_;
|
||||
@@ -135,14 +157,3 @@ void CreateForwardEntryRequest::setExternalPort(const std::string& externalPort)
|
||||
setParameter("ExternalPort", externalPort);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getInternalIp()const
|
||||
{
|
||||
return internalIp_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setInternalIp(const std::string& internalIp)
|
||||
{
|
||||
internalIp_ = internalIp;
|
||||
setParameter("InternalIp", internalIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateForwardEntryResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ForwardEntryId"].isNull())
|
||||
forwardEntryId_ = value["ForwardEntryId"].asString();
|
||||
if(!value["ForwardEntryId"].isNull())
|
||||
forwardEntryId_ = value["ForwardEntryId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryResult::getForwardEntryId()const
|
||||
{
|
||||
return forwardEntryId_;
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryResult::getForwardEntryId()const
|
||||
{
|
||||
return forwardEntryId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,20 +40,20 @@ void CreateGlobalAccelerationInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["GlobalAccelerationInstanceId"].isNull())
|
||||
globalAccelerationInstanceId_ = value["GlobalAccelerationInstanceId"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
ipAddress_ = value["IpAddress"].asString();
|
||||
if(!value["GlobalAccelerationInstanceId"].isNull())
|
||||
globalAccelerationInstanceId_ = value["GlobalAccelerationInstanceId"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
ipAddress_ = value["IpAddress"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceResult::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceResult::getGlobalAccelerationInstanceId()const
|
||||
{
|
||||
return globalAccelerationInstanceId_;
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceResult::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceResult::getGlobalAccelerationInstanceId()const
|
||||
{
|
||||
return globalAccelerationInstanceId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateHaVipResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HaVipId"].isNull())
|
||||
haVipId_ = value["HaVipId"].asString();
|
||||
if(!value["HaVipId"].isNull())
|
||||
haVipId_ = value["HaVipId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateHaVipResult::getHaVipId()const
|
||||
{
|
||||
return haVipId_;
|
||||
}
|
||||
|
||||
std::string CreateHaVipResult::getHaVipId()const
|
||||
{
|
||||
return haVipId_;
|
||||
}
|
||||
|
||||
|
||||
104
vpc/src/model/CreateIPv6TranslatorAclListRequest.cc
Normal file
104
vpc/src/model/CreateIPv6TranslatorAclListRequest.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/vpc/model/CreateIPv6TranslatorAclListRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CreateIPv6TranslatorAclListRequest;
|
||||
|
||||
CreateIPv6TranslatorAclListRequest::CreateIPv6TranslatorAclListRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CreateIPv6TranslatorAclList")
|
||||
{}
|
||||
|
||||
CreateIPv6TranslatorAclListRequest::~CreateIPv6TranslatorAclListRequest()
|
||||
{}
|
||||
|
||||
long CreateIPv6TranslatorAclListRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorAclListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorAclListRequest::getAclName()const
|
||||
{
|
||||
return aclName_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorAclListRequest::setAclName(const std::string& aclName)
|
||||
{
|
||||
aclName_ = aclName;
|
||||
setParameter("AclName", aclName);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorAclListRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorAclListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorAclListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorAclListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorAclListRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorAclListRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorAclListRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorAclListRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreateIPv6TranslatorAclListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorAclListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
52
vpc/src/model/CreateIPv6TranslatorAclListResult.cc
Normal file
52
vpc/src/model/CreateIPv6TranslatorAclListResult.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/vpc/model/CreateIPv6TranslatorAclListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CreateIPv6TranslatorAclListResult::CreateIPv6TranslatorAclListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateIPv6TranslatorAclListResult::CreateIPv6TranslatorAclListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateIPv6TranslatorAclListResult::~CreateIPv6TranslatorAclListResult()
|
||||
{}
|
||||
|
||||
void CreateIPv6TranslatorAclListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AclId"].isNull())
|
||||
aclId_ = value["AclId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorAclListResult::getAclId()const
|
||||
{
|
||||
return aclId_;
|
||||
}
|
||||
|
||||
203
vpc/src/model/CreateIPv6TranslatorEntryRequest.cc
Normal file
203
vpc/src/model/CreateIPv6TranslatorEntryRequest.cc
Normal file
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/CreateIPv6TranslatorEntryRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CreateIPv6TranslatorEntryRequest;
|
||||
|
||||
CreateIPv6TranslatorEntryRequest::CreateIPv6TranslatorEntryRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CreateIPv6TranslatorEntry")
|
||||
{}
|
||||
|
||||
CreateIPv6TranslatorEntryRequest::~CreateIPv6TranslatorEntryRequest()
|
||||
{}
|
||||
|
||||
int CreateIPv6TranslatorEntryRequest::getBackendIpv4Port()const
|
||||
{
|
||||
return backendIpv4Port_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setBackendIpv4Port(int backendIpv4Port)
|
||||
{
|
||||
backendIpv4Port_ = backendIpv4Port;
|
||||
setParameter("BackendIpv4Port", std::to_string(backendIpv4Port));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getAclId()const
|
||||
{
|
||||
return aclId_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setAclId(const std::string& aclId)
|
||||
{
|
||||
aclId_ = aclId;
|
||||
setParameter("AclId", aclId);
|
||||
}
|
||||
|
||||
long CreateIPv6TranslatorEntryRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getEntryName()const
|
||||
{
|
||||
return entryName_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setEntryName(const std::string& entryName)
|
||||
{
|
||||
entryName_ = entryName;
|
||||
setParameter("EntryName", entryName);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreateIPv6TranslatorEntryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getAclStatus()const
|
||||
{
|
||||
return aclStatus_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setAclStatus(const std::string& aclStatus)
|
||||
{
|
||||
aclStatus_ = aclStatus;
|
||||
setParameter("AclStatus", aclStatus);
|
||||
}
|
||||
|
||||
int CreateIPv6TranslatorEntryRequest::getEntryBandwidth()const
|
||||
{
|
||||
return entryBandwidth_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setEntryBandwidth(int entryBandwidth)
|
||||
{
|
||||
entryBandwidth_ = entryBandwidth;
|
||||
setParameter("EntryBandwidth", std::to_string(entryBandwidth));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getAclType()const
|
||||
{
|
||||
return aclType_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setAclType(const std::string& aclType)
|
||||
{
|
||||
aclType_ = aclType;
|
||||
setParameter("AclType", aclType);
|
||||
}
|
||||
|
||||
int CreateIPv6TranslatorEntryRequest::getAllocateIpv6Port()const
|
||||
{
|
||||
return allocateIpv6Port_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setAllocateIpv6Port(int allocateIpv6Port)
|
||||
{
|
||||
allocateIpv6Port_ = allocateIpv6Port;
|
||||
setParameter("AllocateIpv6Port", std::to_string(allocateIpv6Port));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getEntryDescription()const
|
||||
{
|
||||
return entryDescription_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setEntryDescription(const std::string& entryDescription)
|
||||
{
|
||||
entryDescription_ = entryDescription;
|
||||
setParameter("EntryDescription", entryDescription);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getBackendIpv4Addr()const
|
||||
{
|
||||
return backendIpv4Addr_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setBackendIpv4Addr(const std::string& backendIpv4Addr)
|
||||
{
|
||||
backendIpv4Addr_ = backendIpv4Addr;
|
||||
setParameter("BackendIpv4Addr", backendIpv4Addr);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getTransProtocol()const
|
||||
{
|
||||
return transProtocol_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setTransProtocol(const std::string& transProtocol)
|
||||
{
|
||||
transProtocol_ = transProtocol;
|
||||
setParameter("TransProtocol", transProtocol);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getIpv6TranslatorId()const
|
||||
{
|
||||
return ipv6TranslatorId_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorEntryRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId)
|
||||
{
|
||||
ipv6TranslatorId_ = ipv6TranslatorId;
|
||||
setParameter("Ipv6TranslatorId", ipv6TranslatorId);
|
||||
}
|
||||
|
||||
52
vpc/src/model/CreateIPv6TranslatorEntryResult.cc
Normal file
52
vpc/src/model/CreateIPv6TranslatorEntryResult.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/vpc/model/CreateIPv6TranslatorEntryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CreateIPv6TranslatorEntryResult::CreateIPv6TranslatorEntryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateIPv6TranslatorEntryResult::CreateIPv6TranslatorEntryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateIPv6TranslatorEntryResult::~CreateIPv6TranslatorEntryResult()
|
||||
{}
|
||||
|
||||
void CreateIPv6TranslatorEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Ipv6TranslatorEntryId"].isNull())
|
||||
ipv6TranslatorEntryId_ = value["Ipv6TranslatorEntryId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryResult::getIpv6TranslatorEntryId()const
|
||||
{
|
||||
return ipv6TranslatorEntryId_;
|
||||
}
|
||||
|
||||
170
vpc/src/model/CreateIPv6TranslatorRequest.cc
Normal file
170
vpc/src/model/CreateIPv6TranslatorRequest.cc
Normal file
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/CreateIPv6TranslatorRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CreateIPv6TranslatorRequest;
|
||||
|
||||
CreateIPv6TranslatorRequest::CreateIPv6TranslatorRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CreateIPv6Translator")
|
||||
{}
|
||||
|
||||
CreateIPv6TranslatorRequest::~CreateIPv6TranslatorRequest()
|
||||
{}
|
||||
|
||||
long CreateIPv6TranslatorRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
bool CreateIPv6TranslatorRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", std::to_string(autoPay));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int CreateIPv6TranslatorRequest::getBandwidth()const
|
||||
{
|
||||
return bandwidth_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreateIPv6TranslatorRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getSpec()const
|
||||
{
|
||||
return spec_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorRequest::setSpec(const std::string& spec)
|
||||
{
|
||||
spec_ = spec;
|
||||
setParameter("Spec", spec);
|
||||
}
|
||||
|
||||
int CreateIPv6TranslatorRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorRequest::setDuration(int duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getPricingCycle()const
|
||||
{
|
||||
return pricingCycle_;
|
||||
}
|
||||
|
||||
void CreateIPv6TranslatorRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
73
vpc/src/model/CreateIPv6TranslatorResult.cc
Normal file
73
vpc/src/model/CreateIPv6TranslatorResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/CreateIPv6TranslatorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CreateIPv6TranslatorResult::CreateIPv6TranslatorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateIPv6TranslatorResult::CreateIPv6TranslatorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateIPv6TranslatorResult::~CreateIPv6TranslatorResult()
|
||||
{}
|
||||
|
||||
void CreateIPv6TranslatorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Ipv6TranslatorId"].isNull())
|
||||
ipv6TranslatorId_ = value["Ipv6TranslatorId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Spec"].isNull())
|
||||
spec_ = value["Spec"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = std::stol(value["OrderId"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorResult::getIpv6TranslatorId()const
|
||||
{
|
||||
return ipv6TranslatorId_;
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorResult::getSpec()const
|
||||
{
|
||||
return spec_;
|
||||
}
|
||||
|
||||
long CreateIPv6TranslatorResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
357
vpc/src/model/CreateIpv6EgressOnlyRuleRequest.cc
Normal file
357
vpc/src/model/CreateIpv6EgressOnlyRuleRequest.cc
Normal file
@@ -0,0 +1,357 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/CreateIpv6EgressOnlyRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CreateIpv6EgressOnlyRuleRequest;
|
||||
|
||||
CreateIpv6EgressOnlyRuleRequest::CreateIpv6EgressOnlyRuleRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CreateIpv6EgressOnlyRule")
|
||||
{}
|
||||
|
||||
CreateIpv6EgressOnlyRuleRequest::~CreateIpv6EgressOnlyRuleRequest()
|
||||
{}
|
||||
|
||||
long CreateIpv6EgressOnlyRuleRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long CreateIpv6EgressOnlyRuleRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
bool CreateIpv6EgressOnlyRuleRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool CreateIpv6EgressOnlyRuleRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setInstanceType(const std::string& instanceType)
|
||||
{
|
||||
instanceType_ = instanceType;
|
||||
setParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateIpv6EgressOnlyRuleRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateIpv6EgressOnlyRuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CreateIpv6EgressOnlyRuleRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool CreateIpv6EgressOnlyRuleRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool CreateIpv6EgressOnlyRuleRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getIpv6GatewayId()const
|
||||
{
|
||||
return ipv6GatewayId_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setIpv6GatewayId(const std::string& ipv6GatewayId)
|
||||
{
|
||||
ipv6GatewayId_ = ipv6GatewayId;
|
||||
setParameter("Ipv6GatewayId", ipv6GatewayId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
52
vpc/src/model/CreateIpv6EgressOnlyRuleResult.cc
Normal file
52
vpc/src/model/CreateIpv6EgressOnlyRuleResult.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/vpc/model/CreateIpv6EgressOnlyRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CreateIpv6EgressOnlyRuleResult::CreateIpv6EgressOnlyRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateIpv6EgressOnlyRuleResult::CreateIpv6EgressOnlyRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateIpv6EgressOnlyRuleResult::~CreateIpv6EgressOnlyRuleResult()
|
||||
{}
|
||||
|
||||
void CreateIpv6EgressOnlyRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Ipv6EgressRuleId"].isNull())
|
||||
ipv6EgressRuleId_ = value["Ipv6EgressRuleId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleResult::getIpv6EgressRuleId()const
|
||||
{
|
||||
return ipv6EgressRuleId_;
|
||||
}
|
||||
|
||||
346
vpc/src/model/CreateIpv6GatewayRequest.cc
Normal file
346
vpc/src/model/CreateIpv6GatewayRequest.cc
Normal file
@@ -0,0 +1,346 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/CreateIpv6GatewayRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CreateIpv6GatewayRequest;
|
||||
|
||||
CreateIpv6GatewayRequest::CreateIpv6GatewayRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CreateIpv6Gateway")
|
||||
{}
|
||||
|
||||
CreateIpv6GatewayRequest::~CreateIpv6GatewayRequest()
|
||||
{}
|
||||
|
||||
long CreateIpv6GatewayRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long CreateIpv6GatewayRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
bool CreateIpv6GatewayRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getSpec()const
|
||||
{
|
||||
return spec_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setSpec(const std::string& spec)
|
||||
{
|
||||
spec_ = spec;
|
||||
setParameter("Spec", spec);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool CreateIpv6GatewayRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateIpv6GatewayRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateIpv6GatewayRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CreateIpv6GatewayRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool CreateIpv6GatewayRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool CreateIpv6GatewayRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateIpv6GatewayRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
52
vpc/src/model/CreateIpv6GatewayResult.cc
Normal file
52
vpc/src/model/CreateIpv6GatewayResult.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/vpc/model/CreateIpv6GatewayResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CreateIpv6GatewayResult::CreateIpv6GatewayResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateIpv6GatewayResult::CreateIpv6GatewayResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateIpv6GatewayResult::~CreateIpv6GatewayResult()
|
||||
{}
|
||||
|
||||
void CreateIpv6GatewayResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Ipv6GatewayId"].isNull())
|
||||
ipv6GatewayId_ = value["Ipv6GatewayId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayResult::getIpv6GatewayId()const
|
||||
{
|
||||
return ipv6GatewayId_;
|
||||
}
|
||||
|
||||
@@ -36,6 +36,17 @@ void CreateNatGatewayRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
bool CreateNatGatewayRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", std::to_string(autoPay));
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -47,17 +58,6 @@ void CreateNatGatewayRequest::setResourceOwnerAccount(const std::string& resourc
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
@@ -80,28 +80,6 @@ void CreateNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
@@ -124,6 +102,61 @@ void CreateNatGatewayRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getSpec()const
|
||||
{
|
||||
return spec_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setSpec(const std::string& spec)
|
||||
{
|
||||
spec_ = spec;
|
||||
setParameter("Spec", spec);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setDuration(const std::string& duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", duration);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::vector<CreateNatGatewayRequest::BandwidthPackage> CreateNatGatewayRequest::getBandwidthPackage()const
|
||||
{
|
||||
return bandwidthPackage_;
|
||||
@@ -136,22 +169,33 @@ void CreateNatGatewayRequest::setBandwidthPackage(const std::vector<BandwidthPac
|
||||
for(int i = 0; i!= bandwidthPackage.size(); i++) {
|
||||
auto obj = bandwidthPackage.at(i);
|
||||
std::string str ="BandwidthPackage."+ std::to_string(i);
|
||||
setParameter(str + ".IpCount", std::to_string(obj.ipCount));
|
||||
setParameter(str + ".Bandwidth", std::to_string(obj.bandwidth));
|
||||
setParameter(str + ".Zone", obj.zone);
|
||||
setParameter(str + ".ISP", obj.iSP);
|
||||
setParameter(str + ".InternetChargeType", obj.internetChargeType);
|
||||
setParameter(str + ".ISP", obj.iSP);
|
||||
setParameter(str + ".IpCount", std::to_string(obj.ipCount));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getSpec()const
|
||||
std::string CreateNatGatewayRequest::getInstanceChargeType()const
|
||||
{
|
||||
return spec_;
|
||||
return instanceChargeType_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setSpec(const std::string& spec)
|
||||
void CreateNatGatewayRequest::setInstanceChargeType(const std::string& instanceChargeType)
|
||||
{
|
||||
spec_ = spec;
|
||||
setParameter("Spec", spec);
|
||||
instanceChargeType_ = instanceChargeType;
|
||||
setParameter("InstanceChargeType", instanceChargeType);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getPricingCycle()const
|
||||
{
|
||||
return pricingCycle_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,37 +40,37 @@ void CreateNatGatewayResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"];
|
||||
for (const auto &item : allForwardTableIds)
|
||||
forwardTableIds_.push_back(item.asString());
|
||||
auto allSnatTableIds = value["SnatTableIds"]["SnatTableId"];
|
||||
for (const auto &item : allSnatTableIds)
|
||||
snatTableIds_.push_back(item.asString());
|
||||
auto allBandwidthPackageIds = value["BandwidthPackageIds"]["BandwidthPackageId"];
|
||||
for (const auto &item : allBandwidthPackageIds)
|
||||
bandwidthPackageIds_.push_back(item.asString());
|
||||
if(!value["NatGatewayId"].isNull())
|
||||
natGatewayId_ = value["NatGatewayId"].asString();
|
||||
auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"];
|
||||
for (const auto &item : allForwardTableIds)
|
||||
forwardTableIds_.push_back(item.asString());
|
||||
auto allSnatTableIds = value["SnatTableIds"]["SnatTableId"];
|
||||
for (const auto &item : allSnatTableIds)
|
||||
snatTableIds_.push_back(item.asString());
|
||||
auto allBandwidthPackageIds = value["BandwidthPackageIds"]["BandwidthPackageId"];
|
||||
for (const auto &item : allBandwidthPackageIds)
|
||||
bandwidthPackageIds_.push_back(item.asString());
|
||||
if(!value["NatGatewayId"].isNull())
|
||||
natGatewayId_ = value["NatGatewayId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateNatGatewayResult::getSnatTableIds()const
|
||||
{
|
||||
return snatTableIds_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateNatGatewayResult::getForwardTableIds()const
|
||||
{
|
||||
return forwardTableIds_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateNatGatewayResult::getBandwidthPackageIds()const
|
||||
{
|
||||
return bandwidthPackageIds_;
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayResult::getNatGatewayId()const
|
||||
{
|
||||
return natGatewayId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateNatGatewayResult::getSnatTableIds()const
|
||||
{
|
||||
return snatTableIds_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateNatGatewayResult::getForwardTableIds()const
|
||||
{
|
||||
return forwardTableIds_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateNatGatewayResult::getBandwidthPackageIds()const
|
||||
{
|
||||
return bandwidthPackageIds_;
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayResult::getNatGatewayId()const
|
||||
{
|
||||
return natGatewayId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateNqaResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["NqaId"].isNull())
|
||||
nqaId_ = value["NqaId"].asString();
|
||||
if(!value["NqaId"].isNull())
|
||||
nqaId_ = value["NqaId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNqaResult::getNqaId()const
|
||||
{
|
||||
return nqaId_;
|
||||
}
|
||||
|
||||
std::string CreateNqaResult::getNqaId()const
|
||||
{
|
||||
return nqaId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreatePhysicalConnectionNewResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PhysicalConnectionId"].isNull())
|
||||
physicalConnectionId_ = value["PhysicalConnectionId"].asString();
|
||||
if(!value["PhysicalConnectionId"].isNull())
|
||||
physicalConnectionId_ = value["PhysicalConnectionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionNewResult::getPhysicalConnectionId()const
|
||||
{
|
||||
return physicalConnectionId_;
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionNewResult::getPhysicalConnectionId()const
|
||||
{
|
||||
return physicalConnectionId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreatePhysicalConnectionResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PhysicalConnectionId"].isNull())
|
||||
physicalConnectionId_ = value["PhysicalConnectionId"].asString();
|
||||
if(!value["PhysicalConnectionId"].isNull())
|
||||
physicalConnectionId_ = value["PhysicalConnectionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionResult::getPhysicalConnectionId()const
|
||||
{
|
||||
return physicalConnectionId_;
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionResult::getPhysicalConnectionId()const
|
||||
{
|
||||
return physicalConnectionId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,17 @@ void CreateRouteEntryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getRouteEntryName()const
|
||||
{
|
||||
return routeEntryName_;
|
||||
}
|
||||
|
||||
void CreateRouteEntryRequest::setRouteEntryName(const std::string& routeEntryName)
|
||||
{
|
||||
routeEntryName_ = routeEntryName;
|
||||
setParameter("RouteEntryName", routeEntryName);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -47,17 +58,6 @@ void CreateRouteEntryRequest::setResourceOwnerAccount(const std::string& resourc
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateRouteEntryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
@@ -91,17 +91,6 @@ void CreateRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getNextHopId()const
|
||||
{
|
||||
return nextHopId_;
|
||||
}
|
||||
|
||||
void CreateRouteEntryRequest::setNextHopId(const std::string& nextHopId)
|
||||
{
|
||||
nextHopId_ = nextHopId;
|
||||
setParameter("NextHopId", nextHopId);
|
||||
}
|
||||
|
||||
long CreateRouteEntryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -113,6 +102,39 @@ void CreateRouteEntryRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getPrivateIpAddress()const
|
||||
{
|
||||
return privateIpAddress_;
|
||||
}
|
||||
|
||||
void CreateRouteEntryRequest::setPrivateIpAddress(const std::string& privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setParameter("PrivateIpAddress", privateIpAddress);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateRouteEntryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getNextHopId()const
|
||||
{
|
||||
return nextHopId_;
|
||||
}
|
||||
|
||||
void CreateRouteEntryRequest::setNextHopId(const std::string& nextHopId)
|
||||
{
|
||||
nextHopId_ = nextHopId;
|
||||
setParameter("NextHopId", nextHopId);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getNextHopType()const
|
||||
{
|
||||
return nextHopType_;
|
||||
@@ -136,9 +158,9 @@ void CreateRouteEntryRequest::setNextHopList(const std::vector<NextHopList>& nex
|
||||
for(int i = 0; i!= nextHopList.size(); i++) {
|
||||
auto obj = nextHopList.at(i);
|
||||
std::string str ="NextHopList."+ std::to_string(i);
|
||||
setParameter(str + ".NextHopType", obj.nextHopType);
|
||||
setParameter(str + ".NextHopId", obj.nextHopId);
|
||||
setParameter(str + ".Weight", std::to_string(obj.weight));
|
||||
setParameter(str + ".NextHopId", obj.nextHopId);
|
||||
setParameter(str + ".NextHopType", obj.nextHopType);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
335
vpc/src/model/CreateRouteTableRequest.cc
Normal file
335
vpc/src/model/CreateRouteTableRequest.cc
Normal file
@@ -0,0 +1,335 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/CreateRouteTableRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CreateRouteTableRequest;
|
||||
|
||||
CreateRouteTableRequest::CreateRouteTableRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CreateRouteTable")
|
||||
{}
|
||||
|
||||
CreateRouteTableRequest::~CreateRouteTableRequest()
|
||||
{}
|
||||
|
||||
long CreateRouteTableRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long CreateRouteTableRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
bool CreateRouteTableRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getRouteTableName()const
|
||||
{
|
||||
return routeTableName_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setRouteTableName(const std::string& routeTableName)
|
||||
{
|
||||
routeTableName_ = routeTableName;
|
||||
setParameter("RouteTableName", routeTableName);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool CreateRouteTableRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateRouteTableRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateRouteTableRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CreateRouteTableRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool CreateRouteTableRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool CreateRouteTableRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateRouteTableRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
52
vpc/src/model/CreateRouteTableResult.cc
Normal file
52
vpc/src/model/CreateRouteTableResult.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/vpc/model/CreateRouteTableResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CreateRouteTableResult::CreateRouteTableResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRouteTableResult::CreateRouteTableResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRouteTableResult::~CreateRouteTableResult()
|
||||
{}
|
||||
|
||||
void CreateRouteTableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RouteTableId"].isNull())
|
||||
routeTableId_ = value["RouteTableId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRouteTableResult::getRouteTableId()const
|
||||
{
|
||||
return routeTableId_;
|
||||
}
|
||||
|
||||
@@ -91,6 +91,94 @@ void CreateRouterInterfaceRequest::setClientToken(const std::string& clientToken
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const
|
||||
{
|
||||
return healthCheckTargetIp_;
|
||||
}
|
||||
|
||||
void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp)
|
||||
{
|
||||
healthCheckTargetIp_ = healthCheckTargetIp;
|
||||
setParameter("HealthCheckTargetIp", healthCheckTargetIp);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateRouterInterfaceRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getSpec()const
|
||||
{
|
||||
return spec_;
|
||||
}
|
||||
|
||||
void CreateRouterInterfaceRequest::setSpec(const std::string& spec)
|
||||
{
|
||||
spec_ = spec;
|
||||
setParameter("Spec", spec);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const
|
||||
{
|
||||
return oppositeInterfaceId_;
|
||||
}
|
||||
|
||||
void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId)
|
||||
{
|
||||
oppositeInterfaceId_ = oppositeInterfaceId;
|
||||
setParameter("OppositeInterfaceId", oppositeInterfaceId);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getInstanceChargeType()const
|
||||
{
|
||||
return instanceChargeType_;
|
||||
}
|
||||
|
||||
void CreateRouterInterfaceRequest::setInstanceChargeType(const std::string& instanceChargeType)
|
||||
{
|
||||
instanceChargeType_ = instanceChargeType;
|
||||
setParameter("InstanceChargeType", instanceChargeType);
|
||||
}
|
||||
|
||||
int CreateRouterInterfaceRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateRouterInterfaceRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
bool CreateRouterInterfaceRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void CreateRouterInterfaceRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", std::to_string(autoPay));
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -124,28 +212,6 @@ void CreateRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccou
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const
|
||||
{
|
||||
return healthCheckTargetIp_;
|
||||
}
|
||||
|
||||
void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp)
|
||||
{
|
||||
healthCheckTargetIp_ = healthCheckTargetIp;
|
||||
setParameter("HealthCheckTargetIp", healthCheckTargetIp);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateRouterInterfaceRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateRouterInterfaceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -157,17 +223,6 @@ void CreateRouterInterfaceRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getSpec()const
|
||||
{
|
||||
return spec_;
|
||||
}
|
||||
|
||||
void CreateRouterInterfaceRequest::setSpec(const std::string& spec)
|
||||
{
|
||||
spec_ = spec;
|
||||
setParameter("Spec", spec);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const
|
||||
{
|
||||
return oppositeInterfaceOwnerId_;
|
||||
@@ -190,17 +245,6 @@ void CreateRouterInterfaceRequest::setRouterType(const std::string& routerType)
|
||||
setParameter("RouterType", routerType);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const
|
||||
{
|
||||
return healthCheckSourceIp_;
|
||||
@@ -245,14 +289,14 @@ void CreateRouterInterfaceRequest::setName(const std::string& name)
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const
|
||||
std::string CreateRouterInterfaceRequest::getPricingCycle()const
|
||||
{
|
||||
return oppositeInterfaceId_;
|
||||
return pricingCycle_;
|
||||
}
|
||||
|
||||
void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId)
|
||||
void CreateRouterInterfaceRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
oppositeInterfaceId_ = oppositeInterfaceId;
|
||||
setParameter("OppositeInterfaceId", oppositeInterfaceId);
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,20 @@ void CreateRouterInterfaceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RouterInterfaceId"].isNull())
|
||||
routerInterfaceId_ = value["RouterInterfaceId"].asString();
|
||||
if(!value["RouterInterfaceId"].isNull())
|
||||
routerInterfaceId_ = value["RouterInterfaceId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = std::stol(value["OrderId"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceResult::getRouterInterfaceId()const
|
||||
{
|
||||
return routerInterfaceId_;
|
||||
}
|
||||
|
||||
long CreateRouterInterfaceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceResult::getRouterInterfaceId()const
|
||||
{
|
||||
return routerInterfaceId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -80,6 +80,17 @@ void CreateSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSnatEntryName()const
|
||||
{
|
||||
return snatEntryName_;
|
||||
}
|
||||
|
||||
void CreateSnatEntryRequest::setSnatEntryName(const std::string& snatEntryName)
|
||||
{
|
||||
snatEntryName_ = snatEntryName;
|
||||
setParameter("SnatEntryName", snatEntryName);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSourceCIDR()const
|
||||
{
|
||||
return sourceCIDR_;
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateSnatEntryResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SnatEntryId"].isNull())
|
||||
snatEntryId_ = value["SnatEntryId"].asString();
|
||||
if(!value["SnatEntryId"].isNull())
|
||||
snatEntryId_ = value["SnatEntryId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryResult::getSnatEntryId()const
|
||||
{
|
||||
return snatEntryId_;
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryResult::getSnatEntryId()const
|
||||
{
|
||||
return snatEntryId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,20 +40,20 @@ void CreateSslVpnClientCertResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["SslVpnClientCertId"].isNull())
|
||||
sslVpnClientCertId_ = value["SslVpnClientCertId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["SslVpnClientCertId"].isNull())
|
||||
sslVpnClientCertId_ = value["SslVpnClientCertId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateSslVpnClientCertResult::getSslVpnClientCertId()const
|
||||
{
|
||||
return sslVpnClientCertId_;
|
||||
}
|
||||
|
||||
std::string CreateSslVpnClientCertResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string CreateSslVpnClientCertResult::getSslVpnClientCertId()const
|
||||
{
|
||||
return sslVpnClientCertId_;
|
||||
}
|
||||
|
||||
std::string CreateSslVpnClientCertResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,20 +40,20 @@ void CreateSslVpnServerResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SslVpnServerId"].isNull())
|
||||
sslVpnServerId_ = value["SslVpnServerId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["SslVpnServerId"].isNull())
|
||||
sslVpnServerId_ = value["SslVpnServerId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateSslVpnServerResult::getSslVpnServerId()const
|
||||
{
|
||||
return sslVpnServerId_;
|
||||
}
|
||||
|
||||
std::string CreateSslVpnServerResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string CreateSslVpnServerResult::getSslVpnServerId()const
|
||||
{
|
||||
return sslVpnServerId_;
|
||||
}
|
||||
|
||||
std::string CreateSslVpnServerResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,28 +58,6 @@ void CreateVSwitchRequest::setClientToken(const std::string& clientToken)
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateVSwitchRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getVSwitchName()const
|
||||
{
|
||||
return vSwitchName_;
|
||||
}
|
||||
|
||||
void CreateVSwitchRequest::setVSwitchName(const std::string& vSwitchName)
|
||||
{
|
||||
vSwitchName_ = vSwitchName;
|
||||
setParameter("VSwitchName", vSwitchName);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
@@ -91,28 +69,6 @@ void CreateVSwitchRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getCidrBlock()const
|
||||
{
|
||||
return cidrBlock_;
|
||||
}
|
||||
|
||||
void CreateVSwitchRequest::setCidrBlock(const std::string& cidrBlock)
|
||||
{
|
||||
cidrBlock_ = cidrBlock;
|
||||
setParameter("CidrBlock", cidrBlock);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateVSwitchRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
@@ -135,3 +91,69 @@ void CreateVSwitchRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int CreateVSwitchRequest::getIpv6CidrBlock()const
|
||||
{
|
||||
return ipv6CidrBlock_;
|
||||
}
|
||||
|
||||
void CreateVSwitchRequest::setIpv6CidrBlock(int ipv6CidrBlock)
|
||||
{
|
||||
ipv6CidrBlock_ = ipv6CidrBlock;
|
||||
setParameter("Ipv6CidrBlock", std::to_string(ipv6CidrBlock));
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateVSwitchRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateVSwitchRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getVSwitchName()const
|
||||
{
|
||||
return vSwitchName_;
|
||||
}
|
||||
|
||||
void CreateVSwitchRequest::setVSwitchName(const std::string& vSwitchName)
|
||||
{
|
||||
vSwitchName_ = vSwitchName;
|
||||
setParameter("VSwitchName", vSwitchName);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getCidrBlock()const
|
||||
{
|
||||
return cidrBlock_;
|
||||
}
|
||||
|
||||
void CreateVSwitchRequest::setCidrBlock(const std::string& cidrBlock)
|
||||
{
|
||||
cidrBlock_ = cidrBlock;
|
||||
setParameter("CidrBlock", cidrBlock);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateVSwitchRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateVSwitchResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["VSwitchId"].isNull())
|
||||
vSwitchId_ = value["VSwitchId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
vSwitchId_ = value["VSwitchId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVSwitchResult::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
std::string CreateVSwitchResult::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateVirtualBorderRouterResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["VbrId"].isNull())
|
||||
vbrId_ = value["VbrId"].asString();
|
||||
if(!value["VbrId"].isNull())
|
||||
vbrId_ = value["VbrId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVirtualBorderRouterResult::getVbrId()const
|
||||
{
|
||||
return vbrId_;
|
||||
}
|
||||
|
||||
std::string CreateVirtualBorderRouterResult::getVbrId()const
|
||||
{
|
||||
return vbrId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,28 +25,6 @@ CreateVpcRequest::CreateVpcRequest() :
|
||||
CreateVpcRequest::~CreateVpcRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVpcRequest::getVpcName()const
|
||||
{
|
||||
return vpcName_;
|
||||
}
|
||||
|
||||
void CreateVpcRequest::setVpcName(const std::string& vpcName)
|
||||
{
|
||||
vpcName_ = vpcName;
|
||||
setParameter("VpcName", vpcName);
|
||||
}
|
||||
|
||||
std::string CreateVpcRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateVpcRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
long CreateVpcRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
@@ -69,17 +47,6 @@ void CreateVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerA
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateVpcRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateVpcRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateVpcRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
@@ -102,15 +69,15 @@ void CreateVpcRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateVpcRequest::getCidrBlock()const
|
||||
bool CreateVpcRequest::getEnableIpv6()const
|
||||
{
|
||||
return cidrBlock_;
|
||||
return enableIpv6_;
|
||||
}
|
||||
|
||||
void CreateVpcRequest::setCidrBlock(const std::string& cidrBlock)
|
||||
void CreateVpcRequest::setEnableIpv6(bool enableIpv6)
|
||||
{
|
||||
cidrBlock_ = cidrBlock;
|
||||
setParameter("CidrBlock", cidrBlock);
|
||||
enableIpv6_ = enableIpv6;
|
||||
setParameter("EnableIpv6", std::to_string(enableIpv6));
|
||||
}
|
||||
|
||||
std::string CreateVpcRequest::getDescription()const
|
||||
@@ -124,17 +91,6 @@ void CreateVpcRequest::setDescription(const std::string& description)
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateVpcRequest::getUserCidr()const
|
||||
{
|
||||
return userCidr_;
|
||||
}
|
||||
|
||||
void CreateVpcRequest::setUserCidr(const std::string& userCidr)
|
||||
{
|
||||
userCidr_ = userCidr;
|
||||
setParameter("UserCidr", userCidr);
|
||||
}
|
||||
|
||||
long CreateVpcRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -146,3 +102,69 @@ void CreateVpcRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateVpcRequest::getIpv6CidrBlock()const
|
||||
{
|
||||
return ipv6CidrBlock_;
|
||||
}
|
||||
|
||||
void CreateVpcRequest::setIpv6CidrBlock(const std::string& ipv6CidrBlock)
|
||||
{
|
||||
ipv6CidrBlock_ = ipv6CidrBlock;
|
||||
setParameter("Ipv6CidrBlock", ipv6CidrBlock);
|
||||
}
|
||||
|
||||
std::string CreateVpcRequest::getVpcName()const
|
||||
{
|
||||
return vpcName_;
|
||||
}
|
||||
|
||||
void CreateVpcRequest::setVpcName(const std::string& vpcName)
|
||||
{
|
||||
vpcName_ = vpcName;
|
||||
setParameter("VpcName", vpcName);
|
||||
}
|
||||
|
||||
std::string CreateVpcRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateVpcRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateVpcRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateVpcRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateVpcRequest::getCidrBlock()const
|
||||
{
|
||||
return cidrBlock_;
|
||||
}
|
||||
|
||||
void CreateVpcRequest::setCidrBlock(const std::string& cidrBlock)
|
||||
{
|
||||
cidrBlock_ = cidrBlock;
|
||||
setParameter("CidrBlock", cidrBlock);
|
||||
}
|
||||
|
||||
std::string CreateVpcRequest::getUserCidr()const
|
||||
{
|
||||
return userCidr_;
|
||||
}
|
||||
|
||||
void CreateVpcRequest::setUserCidr(const std::string& userCidr)
|
||||
{
|
||||
userCidr_ = userCidr;
|
||||
setParameter("UserCidr", userCidr);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,34 +40,34 @@ void CreateVpcResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["VpcId"].isNull())
|
||||
vpcId_ = value["VpcId"].asString();
|
||||
if(!value["VRouterId"].isNull())
|
||||
vRouterId_ = value["VRouterId"].asString();
|
||||
if(!value["RouteTableId"].isNull())
|
||||
routeTableId_ = value["RouteTableId"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
if(!value["VpcId"].isNull())
|
||||
vpcId_ = value["VpcId"].asString();
|
||||
if(!value["VRouterId"].isNull())
|
||||
vRouterId_ = value["VRouterId"].asString();
|
||||
if(!value["RouteTableId"].isNull())
|
||||
routeTableId_ = value["RouteTableId"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVpcResult::getVRouterId()const
|
||||
{
|
||||
return vRouterId_;
|
||||
}
|
||||
|
||||
std::string CreateVpcResult::getRouteTableId()const
|
||||
{
|
||||
return routeTableId_;
|
||||
}
|
||||
|
||||
std::string CreateVpcResult::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
std::string CreateVpcResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateVpcResult::getVRouterId()const
|
||||
{
|
||||
return vRouterId_;
|
||||
}
|
||||
|
||||
std::string CreateVpcResult::getRouteTableId()const
|
||||
{
|
||||
return routeTableId_;
|
||||
}
|
||||
|
||||
std::string CreateVpcResult::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
std::string CreateVpcResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,27 +40,27 @@ void CreateVpnConnectionResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["VpnConnectionId"].isNull())
|
||||
vpnConnectionId_ = value["VpnConnectionId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = std::stol(value["CreateTime"].asString());
|
||||
if(!value["VpnConnectionId"].isNull())
|
||||
vpnConnectionId_ = value["VpnConnectionId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = std::stol(value["CreateTime"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateVpnConnectionResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string CreateVpnConnectionResult::getVpnConnectionId()const
|
||||
{
|
||||
return vpnConnectionId_;
|
||||
}
|
||||
|
||||
std::string CreateVpnConnectionResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
long CreateVpnConnectionResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string CreateVpnConnectionResult::getVpnConnectionId()const
|
||||
{
|
||||
return vpnConnectionId_;
|
||||
}
|
||||
|
||||
std::string CreateVpnConnectionResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
|
||||
181
vpc/src/model/CreateVpnGatewayRequest.cc
Normal file
181
vpc/src/model/CreateVpnGatewayRequest.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/vpc/model/CreateVpnGatewayRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CreateVpnGatewayRequest;
|
||||
|
||||
CreateVpnGatewayRequest::CreateVpnGatewayRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CreateVpnGateway")
|
||||
{}
|
||||
|
||||
CreateVpnGatewayRequest::~CreateVpnGatewayRequest()
|
||||
{}
|
||||
|
||||
long CreateVpnGatewayRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CreateVpnGatewayRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
bool CreateVpnGatewayRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", std::to_string(autoPay));
|
||||
}
|
||||
|
||||
std::string CreateVpnGatewayRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int CreateVpnGatewayRequest::getBandwidth()const
|
||||
{
|
||||
return bandwidth_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
bool CreateVpnGatewayRequest::getEnableIpsec()const
|
||||
{
|
||||
return enableIpsec_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setEnableIpsec(bool enableIpsec)
|
||||
{
|
||||
enableIpsec_ = enableIpsec;
|
||||
setParameter("EnableIpsec", std::to_string(enableIpsec));
|
||||
}
|
||||
|
||||
std::string CreateVpnGatewayRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreateVpnGatewayRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CreateVpnGatewayRequest::getEnableSsl()const
|
||||
{
|
||||
return enableSsl_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setEnableSsl(bool enableSsl)
|
||||
{
|
||||
enableSsl_ = enableSsl;
|
||||
setParameter("EnableSsl", std::to_string(enableSsl));
|
||||
}
|
||||
|
||||
int CreateVpnGatewayRequest::getSslConnections()const
|
||||
{
|
||||
return sslConnections_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setSslConnections(int sslConnections)
|
||||
{
|
||||
sslConnections_ = sslConnections;
|
||||
setParameter("SslConnections", std::to_string(sslConnections));
|
||||
}
|
||||
|
||||
std::string CreateVpnGatewayRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateVpnGatewayRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateVpnGatewayRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateVpnGatewayRequest::getInstanceChargeType()const
|
||||
{
|
||||
return instanceChargeType_;
|
||||
}
|
||||
|
||||
void CreateVpnGatewayRequest::setInstanceChargeType(const std::string& instanceChargeType)
|
||||
{
|
||||
instanceChargeType_ = instanceChargeType;
|
||||
setParameter("InstanceChargeType", instanceChargeType);
|
||||
}
|
||||
|
||||
66
vpc/src/model/CreateVpnGatewayResult.cc
Normal file
66
vpc/src/model/CreateVpnGatewayResult.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/vpc/model/CreateVpnGatewayResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CreateVpnGatewayResult::CreateVpnGatewayResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVpnGatewayResult::CreateVpnGatewayResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVpnGatewayResult::~CreateVpnGatewayResult()
|
||||
{}
|
||||
|
||||
void CreateVpnGatewayResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["VpnGatewayId"].isNull())
|
||||
vpnGatewayId_ = value["VpnGatewayId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = std::stol(value["OrderId"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVpnGatewayResult::getVpnGatewayId()const
|
||||
{
|
||||
return vpnGatewayId_;
|
||||
}
|
||||
|
||||
long CreateVpnGatewayResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string CreateVpnGatewayResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
93
vpc/src/model/DeactiveFlowLogRequest.cc
Normal file
93
vpc/src/model/DeactiveFlowLogRequest.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/vpc/model/DeactiveFlowLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::DeactiveFlowLogRequest;
|
||||
|
||||
DeactiveFlowLogRequest::DeactiveFlowLogRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "DeactiveFlowLog")
|
||||
{}
|
||||
|
||||
DeactiveFlowLogRequest::~DeactiveFlowLogRequest()
|
||||
{}
|
||||
|
||||
long DeactiveFlowLogRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeactiveFlowLogRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeactiveFlowLogRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeactiveFlowLogRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeactiveFlowLogRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeactiveFlowLogRequest::getFlowLogId()const
|
||||
{
|
||||
return flowLogId_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setFlowLogId(const std::string& flowLogId)
|
||||
{
|
||||
flowLogId_ = flowLogId;
|
||||
setParameter("FlowLogId", flowLogId);
|
||||
}
|
||||
|
||||
52
vpc/src/model/DeactiveFlowLogResult.cc
Normal file
52
vpc/src/model/DeactiveFlowLogResult.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/vpc/model/DeactiveFlowLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
DeactiveFlowLogResult::DeactiveFlowLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeactiveFlowLogResult::DeactiveFlowLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeactiveFlowLogResult::~DeactiveFlowLogResult()
|
||||
{}
|
||||
|
||||
void DeactiveFlowLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeactiveFlowLogResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
93
vpc/src/model/DeleteFlowLogRequest.cc
Normal file
93
vpc/src/model/DeleteFlowLogRequest.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/vpc/model/DeleteFlowLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::DeleteFlowLogRequest;
|
||||
|
||||
DeleteFlowLogRequest::DeleteFlowLogRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "DeleteFlowLog")
|
||||
{}
|
||||
|
||||
DeleteFlowLogRequest::~DeleteFlowLogRequest()
|
||||
{}
|
||||
|
||||
long DeleteFlowLogRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteFlowLogRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteFlowLogRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteFlowLogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowLogRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteFlowLogRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteFlowLogRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteFlowLogRequest::getFlowLogId()const
|
||||
{
|
||||
return flowLogId_;
|
||||
}
|
||||
|
||||
void DeleteFlowLogRequest::setFlowLogId(const std::string& flowLogId)
|
||||
{
|
||||
flowLogId_ = flowLogId;
|
||||
setParameter("FlowLogId", flowLogId);
|
||||
}
|
||||
|
||||
52
vpc/src/model/DeleteFlowLogResult.cc
Normal file
52
vpc/src/model/DeleteFlowLogResult.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/vpc/model/DeleteFlowLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
DeleteFlowLogResult::DeleteFlowLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteFlowLogResult::DeleteFlowLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteFlowLogResult::~DeleteFlowLogResult()
|
||||
{}
|
||||
|
||||
void DeleteFlowLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteFlowLogResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
104
vpc/src/model/DeleteIPv6TranslatorAclListRequest.cc
Normal file
104
vpc/src/model/DeleteIPv6TranslatorAclListRequest.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/vpc/model/DeleteIPv6TranslatorAclListRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::DeleteIPv6TranslatorAclListRequest;
|
||||
|
||||
DeleteIPv6TranslatorAclListRequest::DeleteIPv6TranslatorAclListRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "DeleteIPv6TranslatorAclList")
|
||||
{}
|
||||
|
||||
DeleteIPv6TranslatorAclListRequest::~DeleteIPv6TranslatorAclListRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteIPv6TranslatorAclListRequest::getAclId()const
|
||||
{
|
||||
return aclId_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorAclListRequest::setAclId(const std::string& aclId)
|
||||
{
|
||||
aclId_ = aclId;
|
||||
setParameter("AclId", aclId);
|
||||
}
|
||||
|
||||
long DeleteIPv6TranslatorAclListRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorAclListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorAclListRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorAclListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorAclListRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorAclListRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorAclListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorAclListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorAclListRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorAclListRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteIPv6TranslatorAclListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorAclListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
45
vpc/src/model/DeleteIPv6TranslatorAclListResult.cc
Normal file
45
vpc/src/model/DeleteIPv6TranslatorAclListResult.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/vpc/model/DeleteIPv6TranslatorAclListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
DeleteIPv6TranslatorAclListResult::DeleteIPv6TranslatorAclListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteIPv6TranslatorAclListResult::DeleteIPv6TranslatorAclListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteIPv6TranslatorAclListResult::~DeleteIPv6TranslatorAclListResult()
|
||||
{}
|
||||
|
||||
void DeleteIPv6TranslatorAclListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
115
vpc/src/model/DeleteIPv6TranslatorEntryRequest.cc
Normal file
115
vpc/src/model/DeleteIPv6TranslatorEntryRequest.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/vpc/model/DeleteIPv6TranslatorEntryRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::DeleteIPv6TranslatorEntryRequest;
|
||||
|
||||
DeleteIPv6TranslatorEntryRequest::DeleteIPv6TranslatorEntryRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "DeleteIPv6TranslatorEntry")
|
||||
{}
|
||||
|
||||
DeleteIPv6TranslatorEntryRequest::~DeleteIPv6TranslatorEntryRequest()
|
||||
{}
|
||||
|
||||
long DeleteIPv6TranslatorEntryRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorEntryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorEntryRequest::getIpv6TranslatorEntryId()const
|
||||
{
|
||||
return ipv6TranslatorEntryId_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorEntryRequest::setIpv6TranslatorEntryId(const std::string& ipv6TranslatorEntryId)
|
||||
{
|
||||
ipv6TranslatorEntryId_ = ipv6TranslatorEntryId;
|
||||
setParameter("Ipv6TranslatorEntryId", ipv6TranslatorEntryId);
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorEntryRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorEntryRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorEntryRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorEntryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorEntryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorEntryRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorEntryRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorEntryRequest::getIpv6TranslatorId()const
|
||||
{
|
||||
return ipv6TranslatorId_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorEntryRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId)
|
||||
{
|
||||
ipv6TranslatorId_ = ipv6TranslatorId;
|
||||
setParameter("Ipv6TranslatorId", ipv6TranslatorId);
|
||||
}
|
||||
|
||||
long DeleteIPv6TranslatorEntryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorEntryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
45
vpc/src/model/DeleteIPv6TranslatorEntryResult.cc
Normal file
45
vpc/src/model/DeleteIPv6TranslatorEntryResult.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/vpc/model/DeleteIPv6TranslatorEntryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
DeleteIPv6TranslatorEntryResult::DeleteIPv6TranslatorEntryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteIPv6TranslatorEntryResult::DeleteIPv6TranslatorEntryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteIPv6TranslatorEntryResult::~DeleteIPv6TranslatorEntryResult()
|
||||
{}
|
||||
|
||||
void DeleteIPv6TranslatorEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
104
vpc/src/model/DeleteIPv6TranslatorRequest.cc
Normal file
104
vpc/src/model/DeleteIPv6TranslatorRequest.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/vpc/model/DeleteIPv6TranslatorRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::DeleteIPv6TranslatorRequest;
|
||||
|
||||
DeleteIPv6TranslatorRequest::DeleteIPv6TranslatorRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "DeleteIPv6Translator")
|
||||
{}
|
||||
|
||||
DeleteIPv6TranslatorRequest::~DeleteIPv6TranslatorRequest()
|
||||
{}
|
||||
|
||||
long DeleteIPv6TranslatorRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteIPv6TranslatorRequest::getIpv6TranslatorId()const
|
||||
{
|
||||
return ipv6TranslatorId_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId)
|
||||
{
|
||||
ipv6TranslatorId_ = ipv6TranslatorId;
|
||||
setParameter("Ipv6TranslatorId", ipv6TranslatorId);
|
||||
}
|
||||
|
||||
long DeleteIPv6TranslatorRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteIPv6TranslatorRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
45
vpc/src/model/DeleteIPv6TranslatorResult.cc
Normal file
45
vpc/src/model/DeleteIPv6TranslatorResult.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/vpc/model/DeleteIPv6TranslatorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
DeleteIPv6TranslatorResult::DeleteIPv6TranslatorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteIPv6TranslatorResult::DeleteIPv6TranslatorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteIPv6TranslatorResult::~DeleteIPv6TranslatorResult()
|
||||
{}
|
||||
|
||||
void DeleteIPv6TranslatorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
313
vpc/src/model/DeleteIpv6EgressOnlyRuleRequest.cc
Normal file
313
vpc/src/model/DeleteIpv6EgressOnlyRuleRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/DeleteIpv6EgressOnlyRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::DeleteIpv6EgressOnlyRuleRequest;
|
||||
|
||||
DeleteIpv6EgressOnlyRuleRequest::DeleteIpv6EgressOnlyRuleRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "DeleteIpv6EgressOnlyRule")
|
||||
{}
|
||||
|
||||
DeleteIpv6EgressOnlyRuleRequest::~DeleteIpv6EgressOnlyRuleRequest()
|
||||
{}
|
||||
|
||||
long DeleteIpv6EgressOnlyRuleRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long DeleteIpv6EgressOnlyRuleRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteIpv6EgressOnlyRuleRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getIpv6EgressOnlyRuleId()const
|
||||
{
|
||||
return ipv6EgressOnlyRuleId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setIpv6EgressOnlyRuleId(const std::string& ipv6EgressOnlyRuleId)
|
||||
{
|
||||
ipv6EgressOnlyRuleId_ = ipv6EgressOnlyRuleId;
|
||||
setParameter("Ipv6EgressOnlyRuleId", ipv6EgressOnlyRuleId);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool DeleteIpv6EgressOnlyRuleRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeleteIpv6EgressOnlyRuleRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteIpv6EgressOnlyRuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool DeleteIpv6EgressOnlyRuleRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool DeleteIpv6EgressOnlyRuleRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool DeleteIpv6EgressOnlyRuleRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string DeleteIpv6EgressOnlyRuleRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
45
vpc/src/model/DeleteIpv6EgressOnlyRuleResult.cc
Normal file
45
vpc/src/model/DeleteIpv6EgressOnlyRuleResult.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/vpc/model/DeleteIpv6EgressOnlyRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
DeleteIpv6EgressOnlyRuleResult::DeleteIpv6EgressOnlyRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteIpv6EgressOnlyRuleResult::DeleteIpv6EgressOnlyRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteIpv6EgressOnlyRuleResult::~DeleteIpv6EgressOnlyRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteIpv6EgressOnlyRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
302
vpc/src/model/DeleteIpv6GatewayRequest.cc
Normal file
302
vpc/src/model/DeleteIpv6GatewayRequest.cc
Normal file
@@ -0,0 +1,302 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/DeleteIpv6GatewayRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::DeleteIpv6GatewayRequest;
|
||||
|
||||
DeleteIpv6GatewayRequest::DeleteIpv6GatewayRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "DeleteIpv6Gateway")
|
||||
{}
|
||||
|
||||
DeleteIpv6GatewayRequest::~DeleteIpv6GatewayRequest()
|
||||
{}
|
||||
|
||||
long DeleteIpv6GatewayRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DeleteIpv6GatewayRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteIpv6GatewayRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool DeleteIpv6GatewayRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeleteIpv6GatewayRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteIpv6GatewayRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool DeleteIpv6GatewayRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool DeleteIpv6GatewayRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool DeleteIpv6GatewayRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6GatewayRequest::getIpv6GatewayId()const
|
||||
{
|
||||
return ipv6GatewayId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6GatewayRequest::setIpv6GatewayId(const std::string& ipv6GatewayId)
|
||||
{
|
||||
ipv6GatewayId_ = ipv6GatewayId;
|
||||
setParameter("Ipv6GatewayId", ipv6GatewayId);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/MoveResourceGroupResult.h>
|
||||
#include <alibabacloud/vpc/model/DeleteIpv6GatewayResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
MoveResourceGroupResult::MoveResourceGroupResult() :
|
||||
DeleteIpv6GatewayResult::DeleteIpv6GatewayResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
MoveResourceGroupResult::MoveResourceGroupResult(const std::string &payload) :
|
||||
DeleteIpv6GatewayResult::DeleteIpv6GatewayResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
MoveResourceGroupResult::~MoveResourceGroupResult()
|
||||
DeleteIpv6GatewayResult::~DeleteIpv6GatewayResult()
|
||||
{}
|
||||
|
||||
void MoveResourceGroupResult::parse(const std::string &payload)
|
||||
void DeleteIpv6GatewayResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
313
vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc
Normal file
313
vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/DeleteIpv6InternetBandwidthRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::DeleteIpv6InternetBandwidthRequest;
|
||||
|
||||
DeleteIpv6InternetBandwidthRequest::DeleteIpv6InternetBandwidthRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "DeleteIpv6InternetBandwidth")
|
||||
{}
|
||||
|
||||
DeleteIpv6InternetBandwidthRequest::~DeleteIpv6InternetBandwidthRequest()
|
||||
{}
|
||||
|
||||
long DeleteIpv6InternetBandwidthRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DeleteIpv6InternetBandwidthRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteIpv6InternetBandwidthRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getIpv6InternetBandwidthId()const
|
||||
{
|
||||
return ipv6InternetBandwidthId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setIpv6InternetBandwidthId(const std::string& ipv6InternetBandwidthId)
|
||||
{
|
||||
ipv6InternetBandwidthId_ = ipv6InternetBandwidthId;
|
||||
setParameter("Ipv6InternetBandwidthId", ipv6InternetBandwidthId);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool DeleteIpv6InternetBandwidthRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeleteIpv6InternetBandwidthRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteIpv6InternetBandwidthRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool DeleteIpv6InternetBandwidthRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool DeleteIpv6InternetBandwidthRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool DeleteIpv6InternetBandwidthRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getIpv6AddressId()const
|
||||
{
|
||||
return ipv6AddressId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setIpv6AddressId(const std::string& ipv6AddressId)
|
||||
{
|
||||
ipv6AddressId_ = ipv6AddressId;
|
||||
setParameter("Ipv6AddressId", ipv6AddressId);
|
||||
}
|
||||
|
||||
std::string DeleteIpv6InternetBandwidthRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteIpv6InternetBandwidthRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
45
vpc/src/model/DeleteIpv6InternetBandwidthResult.cc
Normal file
45
vpc/src/model/DeleteIpv6InternetBandwidthResult.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/vpc/model/DeleteIpv6InternetBandwidthResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
DeleteIpv6InternetBandwidthResult::DeleteIpv6InternetBandwidthResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteIpv6InternetBandwidthResult::DeleteIpv6InternetBandwidthResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteIpv6InternetBandwidthResult::~DeleteIpv6InternetBandwidthResult()
|
||||
{}
|
||||
|
||||
void DeleteIpv6InternetBandwidthResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -58,6 +58,17 @@ void DeleteRouteEntryRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteRouteEntryRequest::getRouteEntryId()const
|
||||
{
|
||||
return routeEntryId_;
|
||||
}
|
||||
|
||||
void DeleteRouteEntryRequest::setRouteEntryId(const std::string& routeEntryId)
|
||||
{
|
||||
routeEntryId_ = routeEntryId;
|
||||
setParameter("RouteEntryId", routeEntryId);
|
||||
}
|
||||
|
||||
std::string DeleteRouteEntryRequest::getDestinationCidrBlock()const
|
||||
{
|
||||
return destinationCidrBlock_;
|
||||
@@ -114,8 +125,8 @@ void DeleteRouteEntryRequest::setNextHopList(const std::vector<NextHopList>& nex
|
||||
for(int i = 0; i!= nextHopList.size(); i++) {
|
||||
auto obj = nextHopList.at(i);
|
||||
std::string str ="NextHopList."+ std::to_string(i);
|
||||
setParameter(str + ".NextHopType", obj.nextHopType);
|
||||
setParameter(str + ".NextHopId", obj.nextHopId);
|
||||
setParameter(str + ".NextHopType", obj.nextHopType);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
302
vpc/src/model/DeleteRouteTableRequest.cc
Normal file
302
vpc/src/model/DeleteRouteTableRequest.cc
Normal file
@@ -0,0 +1,302 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/DeleteRouteTableRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::DeleteRouteTableRequest;
|
||||
|
||||
DeleteRouteTableRequest::DeleteRouteTableRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "DeleteRouteTable")
|
||||
{}
|
||||
|
||||
DeleteRouteTableRequest::~DeleteRouteTableRequest()
|
||||
{}
|
||||
|
||||
long DeleteRouteTableRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DeleteRouteTableRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteRouteTableRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool DeleteRouteTableRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getRouteTableId()const
|
||||
{
|
||||
return routeTableId_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setRouteTableId(const std::string& routeTableId)
|
||||
{
|
||||
routeTableId_ = routeTableId;
|
||||
setParameter("RouteTableId", routeTableId);
|
||||
}
|
||||
|
||||
long DeleteRouteTableRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteRouteTableRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool DeleteRouteTableRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool DeleteRouteTableRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool DeleteRouteTableRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string DeleteRouteTableRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteRouteTableRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
45
vpc/src/model/DeleteRouteTableResult.cc
Normal file
45
vpc/src/model/DeleteRouteTableResult.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/vpc/model/DeleteRouteTableResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
DeleteRouteTableResult::DeleteRouteTableResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRouteTableResult::DeleteRouteTableResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRouteTableResult::~DeleteRouteTableResult()
|
||||
{}
|
||||
|
||||
void DeleteRouteTableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -58,6 +58,17 @@ void DeleteVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOw
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteVSwitchRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteVSwitchRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteVSwitchRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
|
||||
@@ -47,6 +47,17 @@ void DeleteVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerA
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteVpcRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteVpcRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteVpcRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
|
||||
@@ -37,8 +37,8 @@ void DescribeAccessPointsRequest::setFilter(const std::vector<Filter>& filter)
|
||||
for(int i = 0; i!= filter.size(); i++) {
|
||||
auto obj = filter.at(i);
|
||||
std::string str ="Filter."+ std::to_string(i);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,54 +40,54 @@ void DescribeAccessPointsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAccessPointSet = value["AccessPointSet"]["AccessPointType"];
|
||||
for (auto value : allAccessPointSet)
|
||||
{
|
||||
AccessPointType accessPointSetObject;
|
||||
if(!value["AccessPointId"].isNull())
|
||||
accessPointSetObject.accessPointId = value["AccessPointId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
accessPointSetObject.status = value["Status"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
accessPointSetObject.type = value["Type"].asString();
|
||||
if(!value["AttachedRegionNo"].isNull())
|
||||
accessPointSetObject.attachedRegionNo = value["AttachedRegionNo"].asString();
|
||||
if(!value["Location"].isNull())
|
||||
accessPointSetObject.location = value["Location"].asString();
|
||||
if(!value["HostOperator"].isNull())
|
||||
accessPointSetObject.hostOperator = value["HostOperator"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
accessPointSetObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
accessPointSetObject.description = value["Description"].asString();
|
||||
accessPointSet_.push_back(accessPointSetObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
auto allAccessPointSet = value["AccessPointSet"]["AccessPointType"];
|
||||
for (auto value : allAccessPointSet)
|
||||
{
|
||||
AccessPointType accessPointSetObject;
|
||||
if(!value["AccessPointId"].isNull())
|
||||
accessPointSetObject.accessPointId = value["AccessPointId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
accessPointSetObject.status = value["Status"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
accessPointSetObject.type = value["Type"].asString();
|
||||
if(!value["AttachedRegionNo"].isNull())
|
||||
accessPointSetObject.attachedRegionNo = value["AttachedRegionNo"].asString();
|
||||
if(!value["Location"].isNull())
|
||||
accessPointSetObject.location = value["Location"].asString();
|
||||
if(!value["HostOperator"].isNull())
|
||||
accessPointSetObject.hostOperator = value["HostOperator"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
accessPointSetObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
accessPointSetObject.description = value["Description"].asString();
|
||||
accessPointSet_.push_back(accessPointSetObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAccessPointsResult::AccessPointType> DescribeAccessPointsResult::getAccessPointSet()const
|
||||
{
|
||||
return accessPointSet_;
|
||||
}
|
||||
|
||||
int DescribeAccessPointsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeAccessPointsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeAccessPointsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAccessPointsResult::AccessPointType> DescribeAccessPointsResult::getAccessPointSet()const
|
||||
{
|
||||
return accessPointSet_;
|
||||
}
|
||||
|
||||
int DescribeAccessPointsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeAccessPointsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeAccessPointsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,126 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/DescribeBandwidthPackagePublicIpMonitorDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::DescribeBandwidthPackagePublicIpMonitorDataRequest;
|
||||
|
||||
DescribeBandwidthPackagePublicIpMonitorDataRequest::DescribeBandwidthPackagePublicIpMonitorDataRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "DescribeBandwidthPackagePublicIpMonitorData")
|
||||
{}
|
||||
|
||||
DescribeBandwidthPackagePublicIpMonitorDataRequest::~DescribeBandwidthPackagePublicIpMonitorDataRequest()
|
||||
{}
|
||||
|
||||
long DescribeBandwidthPackagePublicIpMonitorDataRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeBandwidthPackagePublicIpMonitorDataRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeBandwidthPackagePublicIpMonitorDataRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void DescribeBandwidthPackagePublicIpMonitorDataRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string DescribeBandwidthPackagePublicIpMonitorDataRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeBandwidthPackagePublicIpMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeBandwidthPackagePublicIpMonitorDataRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeBandwidthPackagePublicIpMonitorDataRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeBandwidthPackagePublicIpMonitorDataRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeBandwidthPackagePublicIpMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeBandwidthPackagePublicIpMonitorDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeBandwidthPackagePublicIpMonitorDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeBandwidthPackagePublicIpMonitorDataRequest::getAllocationId()const
|
||||
{
|
||||
return allocationId_;
|
||||
}
|
||||
|
||||
void DescribeBandwidthPackagePublicIpMonitorDataRequest::setAllocationId(const std::string& allocationId)
|
||||
{
|
||||
allocationId_ = allocationId;
|
||||
setParameter("AllocationId", allocationId);
|
||||
}
|
||||
|
||||
std::string DescribeBandwidthPackagePublicIpMonitorDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeBandwidthPackagePublicIpMonitorDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeBandwidthPackagePublicIpMonitorDataRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBandwidthPackagePublicIpMonitorDataRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/DescribeBandwidthPackagePublicIpMonitorDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
DescribeBandwidthPackagePublicIpMonitorDataResult::DescribeBandwidthPackagePublicIpMonitorDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBandwidthPackagePublicIpMonitorDataResult::DescribeBandwidthPackagePublicIpMonitorDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBandwidthPackagePublicIpMonitorDataResult::~DescribeBandwidthPackagePublicIpMonitorDataResult()
|
||||
{}
|
||||
|
||||
void DescribeBandwidthPackagePublicIpMonitorDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMonitorDatas = value["MonitorDatas"]["MonitorData"];
|
||||
for (auto value : allMonitorDatas)
|
||||
{
|
||||
MonitorData monitorDatasObject;
|
||||
if(!value["RX"].isNull())
|
||||
monitorDatasObject.rX = std::stol(value["RX"].asString());
|
||||
if(!value["TX"].isNull())
|
||||
monitorDatasObject.tX = std::stol(value["TX"].asString());
|
||||
if(!value["ReceivedBandwidth"].isNull())
|
||||
monitorDatasObject.receivedBandwidth = std::stol(value["ReceivedBandwidth"].asString());
|
||||
if(!value["TransportedBandwidth"].isNull())
|
||||
monitorDatasObject.transportedBandwidth = std::stol(value["TransportedBandwidth"].asString());
|
||||
if(!value["Flow"].isNull())
|
||||
monitorDatasObject.flow = std::stol(value["Flow"].asString());
|
||||
if(!value["Bandwidth"].isNull())
|
||||
monitorDatasObject.bandwidth = std::stol(value["Bandwidth"].asString());
|
||||
if(!value["Packets"].isNull())
|
||||
monitorDatasObject.packets = std::stol(value["Packets"].asString());
|
||||
if(!value["TimeStamp"].isNull())
|
||||
monitorDatasObject.timeStamp = value["TimeStamp"].asString();
|
||||
monitorDatas_.push_back(monitorDatasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeBandwidthPackagePublicIpMonitorDataResult::MonitorData> DescribeBandwidthPackagePublicIpMonitorDataResult::getMonitorDatas()const
|
||||
{
|
||||
return monitorDatas_;
|
||||
}
|
||||
|
||||
@@ -40,80 +40,80 @@ void DescribeBandwidthPackagesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBandwidthPackages = value["BandwidthPackages"]["BandwidthPackage"];
|
||||
for (auto value : allBandwidthPackages)
|
||||
{
|
||||
BandwidthPackage bandwidthPackagesObject;
|
||||
if(!value["BandwidthPackageId"].isNull())
|
||||
bandwidthPackagesObject.bandwidthPackageId = value["BandwidthPackageId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
bandwidthPackagesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
bandwidthPackagesObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
bandwidthPackagesObject.description = value["Description"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
bandwidthPackagesObject.zoneId = value["ZoneId"].asString();
|
||||
if(!value["NatGatewayId"].isNull())
|
||||
bandwidthPackagesObject.natGatewayId = value["NatGatewayId"].asString();
|
||||
if(!value["Bandwidth"].isNull())
|
||||
bandwidthPackagesObject.bandwidth = value["Bandwidth"].asString();
|
||||
if(!value["InstanceChargeType"].isNull())
|
||||
bandwidthPackagesObject.instanceChargeType = value["InstanceChargeType"].asString();
|
||||
if(!value["InternetChargeType"].isNull())
|
||||
bandwidthPackagesObject.internetChargeType = value["InternetChargeType"].asString();
|
||||
if(!value["BusinessStatus"].isNull())
|
||||
bandwidthPackagesObject.businessStatus = value["BusinessStatus"].asString();
|
||||
if(!value["IpCount"].isNull())
|
||||
bandwidthPackagesObject.ipCount = value["IpCount"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
bandwidthPackagesObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
bandwidthPackagesObject.status = value["Status"].asString();
|
||||
if(!value["ISP"].isNull())
|
||||
bandwidthPackagesObject.iSP = value["ISP"].asString();
|
||||
auto allPublicIpAddresses = value["PublicIpAddresses"]["PublicIpAddresse"];
|
||||
for (auto value : allPublicIpAddresses)
|
||||
{
|
||||
BandwidthPackage::PublicIpAddresse publicIpAddressesObject;
|
||||
if(!value["AllocationId"].isNull())
|
||||
publicIpAddressesObject.allocationId = value["AllocationId"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
publicIpAddressesObject.ipAddress = value["IpAddress"].asString();
|
||||
if(!value["UsingStatus"].isNull())
|
||||
publicIpAddressesObject.usingStatus = value["UsingStatus"].asString();
|
||||
if(!value["ApAccessEnabled"].isNull())
|
||||
publicIpAddressesObject.apAccessEnabled = value["ApAccessEnabled"].asString() == "true";
|
||||
bandwidthPackagesObject.publicIpAddresses.push_back(publicIpAddressesObject);
|
||||
}
|
||||
bandwidthPackages_.push_back(bandwidthPackagesObject);
|
||||
}
|
||||
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());
|
||||
auto allBandwidthPackages = value["BandwidthPackages"]["BandwidthPackage"];
|
||||
for (auto value : allBandwidthPackages)
|
||||
{
|
||||
BandwidthPackage bandwidthPackagesObject;
|
||||
if(!value["BandwidthPackageId"].isNull())
|
||||
bandwidthPackagesObject.bandwidthPackageId = value["BandwidthPackageId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
bandwidthPackagesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
bandwidthPackagesObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
bandwidthPackagesObject.description = value["Description"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
bandwidthPackagesObject.zoneId = value["ZoneId"].asString();
|
||||
if(!value["NatGatewayId"].isNull())
|
||||
bandwidthPackagesObject.natGatewayId = value["NatGatewayId"].asString();
|
||||
if(!value["Bandwidth"].isNull())
|
||||
bandwidthPackagesObject.bandwidth = value["Bandwidth"].asString();
|
||||
if(!value["InstanceChargeType"].isNull())
|
||||
bandwidthPackagesObject.instanceChargeType = value["InstanceChargeType"].asString();
|
||||
if(!value["InternetChargeType"].isNull())
|
||||
bandwidthPackagesObject.internetChargeType = value["InternetChargeType"].asString();
|
||||
if(!value["BusinessStatus"].isNull())
|
||||
bandwidthPackagesObject.businessStatus = value["BusinessStatus"].asString();
|
||||
if(!value["IpCount"].isNull())
|
||||
bandwidthPackagesObject.ipCount = value["IpCount"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
bandwidthPackagesObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
bandwidthPackagesObject.status = value["Status"].asString();
|
||||
if(!value["ISP"].isNull())
|
||||
bandwidthPackagesObject.iSP = value["ISP"].asString();
|
||||
auto allPublicIpAddresses = value["PublicIpAddresses"]["PublicIpAddresse"];
|
||||
for (auto value : allPublicIpAddresses)
|
||||
{
|
||||
BandwidthPackage::PublicIpAddresse publicIpAddressesObject;
|
||||
if(!value["AllocationId"].isNull())
|
||||
publicIpAddressesObject.allocationId = value["AllocationId"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
publicIpAddressesObject.ipAddress = value["IpAddress"].asString();
|
||||
if(!value["UsingStatus"].isNull())
|
||||
publicIpAddressesObject.usingStatus = value["UsingStatus"].asString();
|
||||
if(!value["ApAccessEnabled"].isNull())
|
||||
publicIpAddressesObject.apAccessEnabled = value["ApAccessEnabled"].asString() == "true";
|
||||
bandwidthPackagesObject.publicIpAddresses.push_back(publicIpAddressesObject);
|
||||
}
|
||||
bandwidthPackages_.push_back(bandwidthPackagesObject);
|
||||
}
|
||||
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 DescribeBandwidthPackagesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeBandwidthPackagesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeBandwidthPackagesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBandwidthPackagesResult::BandwidthPackage> DescribeBandwidthPackagesResult::getBandwidthPackages()const
|
||||
{
|
||||
return bandwidthPackages_;
|
||||
}
|
||||
|
||||
int DescribeBandwidthPackagesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeBandwidthPackagesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeBandwidthPackagesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBandwidthPackagesResult::BandwidthPackage> DescribeBandwidthPackagesResult::getBandwidthPackages()const
|
||||
{
|
||||
return bandwidthPackages_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,64 +40,64 @@ void DescribeBgpGroupsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBgpGroups = value["BgpGroups"]["BgpGroup"];
|
||||
for (auto value : allBgpGroups)
|
||||
{
|
||||
BgpGroup bgpGroupsObject;
|
||||
if(!value["Name"].isNull())
|
||||
bgpGroupsObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
bgpGroupsObject.description = value["Description"].asString();
|
||||
if(!value["BgpGroupId"].isNull())
|
||||
bgpGroupsObject.bgpGroupId = value["BgpGroupId"].asString();
|
||||
if(!value["PeerAsn"].isNull())
|
||||
bgpGroupsObject.peerAsn = value["PeerAsn"].asString();
|
||||
if(!value["AuthKey"].isNull())
|
||||
bgpGroupsObject.authKey = value["AuthKey"].asString();
|
||||
if(!value["RouterId"].isNull())
|
||||
bgpGroupsObject.routerId = value["RouterId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
bgpGroupsObject.status = value["Status"].asString();
|
||||
if(!value["Keepalive"].isNull())
|
||||
bgpGroupsObject.keepalive = value["Keepalive"].asString();
|
||||
if(!value["LocalAsn"].isNull())
|
||||
bgpGroupsObject.localAsn = value["LocalAsn"].asString();
|
||||
if(!value["Hold"].isNull())
|
||||
bgpGroupsObject.hold = value["Hold"].asString();
|
||||
if(!value["IsFake"].isNull())
|
||||
bgpGroupsObject.isFake = value["IsFake"].asString();
|
||||
if(!value["RouteLimit"].isNull())
|
||||
bgpGroupsObject.routeLimit = value["RouteLimit"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
bgpGroupsObject.regionId = value["RegionId"].asString();
|
||||
bgpGroups_.push_back(bgpGroupsObject);
|
||||
}
|
||||
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());
|
||||
auto allBgpGroups = value["BgpGroups"]["BgpGroup"];
|
||||
for (auto value : allBgpGroups)
|
||||
{
|
||||
BgpGroup bgpGroupsObject;
|
||||
if(!value["Name"].isNull())
|
||||
bgpGroupsObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
bgpGroupsObject.description = value["Description"].asString();
|
||||
if(!value["BgpGroupId"].isNull())
|
||||
bgpGroupsObject.bgpGroupId = value["BgpGroupId"].asString();
|
||||
if(!value["PeerAsn"].isNull())
|
||||
bgpGroupsObject.peerAsn = value["PeerAsn"].asString();
|
||||
if(!value["AuthKey"].isNull())
|
||||
bgpGroupsObject.authKey = value["AuthKey"].asString();
|
||||
if(!value["RouterId"].isNull())
|
||||
bgpGroupsObject.routerId = value["RouterId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
bgpGroupsObject.status = value["Status"].asString();
|
||||
if(!value["Keepalive"].isNull())
|
||||
bgpGroupsObject.keepalive = value["Keepalive"].asString();
|
||||
if(!value["LocalAsn"].isNull())
|
||||
bgpGroupsObject.localAsn = value["LocalAsn"].asString();
|
||||
if(!value["Hold"].isNull())
|
||||
bgpGroupsObject.hold = value["Hold"].asString();
|
||||
if(!value["IsFake"].isNull())
|
||||
bgpGroupsObject.isFake = value["IsFake"].asString();
|
||||
if(!value["RouteLimit"].isNull())
|
||||
bgpGroupsObject.routeLimit = value["RouteLimit"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
bgpGroupsObject.regionId = value["RegionId"].asString();
|
||||
bgpGroups_.push_back(bgpGroupsObject);
|
||||
}
|
||||
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 DescribeBgpGroupsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeBgpGroupsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBgpGroupsResult::BgpGroup> DescribeBgpGroupsResult::getBgpGroups()const
|
||||
{
|
||||
return bgpGroups_;
|
||||
}
|
||||
|
||||
int DescribeBgpGroupsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeBgpGroupsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeBgpGroupsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBgpGroupsResult::BgpGroup> DescribeBgpGroupsResult::getBgpGroups()const
|
||||
{
|
||||
return bgpGroups_;
|
||||
}
|
||||
|
||||
int DescribeBgpGroupsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
|
||||
115
vpc/src/model/DescribeBgpNetworksRequest.cc
Normal file
115
vpc/src/model/DescribeBgpNetworksRequest.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/vpc/model/DescribeBgpNetworksRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::DescribeBgpNetworksRequest;
|
||||
|
||||
DescribeBgpNetworksRequest::DescribeBgpNetworksRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "DescribeBgpNetworks")
|
||||
{}
|
||||
|
||||
DescribeBgpNetworksRequest::~DescribeBgpNetworksRequest()
|
||||
{}
|
||||
|
||||
long DescribeBgpNetworksRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeBgpNetworksRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeBgpNetworksRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeBgpNetworksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeBgpNetworksRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeBgpNetworksRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeBgpNetworksRequest::getRouterId()const
|
||||
{
|
||||
return routerId_;
|
||||
}
|
||||
|
||||
void DescribeBgpNetworksRequest::setRouterId(const std::string& routerId)
|
||||
{
|
||||
routerId_ = routerId;
|
||||
setParameter("RouterId", routerId);
|
||||
}
|
||||
|
||||
std::string DescribeBgpNetworksRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeBgpNetworksRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeBgpNetworksRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeBgpNetworksRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeBgpNetworksRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBgpNetworksRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeBgpNetworksRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeBgpNetworksRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
83
vpc/src/model/DescribeBgpNetworksResult.cc
Normal file
83
vpc/src/model/DescribeBgpNetworksResult.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/vpc/model/DescribeBgpNetworksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
DescribeBgpNetworksResult::DescribeBgpNetworksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBgpNetworksResult::DescribeBgpNetworksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBgpNetworksResult::~DescribeBgpNetworksResult()
|
||||
{}
|
||||
|
||||
void DescribeBgpNetworksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBgpNetworks = value["BgpNetworks"]["BgpNetwork"];
|
||||
for (auto value : allBgpNetworks)
|
||||
{
|
||||
BgpNetwork bgpNetworksObject;
|
||||
if(!value["VpcId"].isNull())
|
||||
bgpNetworksObject.vpcId = value["VpcId"].asString();
|
||||
if(!value["DstCidrBlock"].isNull())
|
||||
bgpNetworksObject.dstCidrBlock = value["DstCidrBlock"].asString();
|
||||
if(!value["RouterId"].isNull())
|
||||
bgpNetworksObject.routerId = value["RouterId"].asString();
|
||||
bgpNetworks_.push_back(bgpNetworksObject);
|
||||
}
|
||||
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 DescribeBgpNetworksResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeBgpNetworksResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeBgpNetworksResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBgpNetworksResult::BgpNetwork> DescribeBgpNetworksResult::getBgpNetworks()const
|
||||
{
|
||||
return bgpNetworks_;
|
||||
}
|
||||
|
||||
@@ -40,70 +40,70 @@ void DescribeBgpPeersResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBgpPeers = value["BgpPeers"]["BgpPeer"];
|
||||
for (auto value : allBgpPeers)
|
||||
{
|
||||
BgpPeer bgpPeersObject;
|
||||
if(!value["Name"].isNull())
|
||||
bgpPeersObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
bgpPeersObject.description = value["Description"].asString();
|
||||
if(!value["BgpPeerId"].isNull())
|
||||
bgpPeersObject.bgpPeerId = value["BgpPeerId"].asString();
|
||||
if(!value["BgpGroupId"].isNull())
|
||||
bgpPeersObject.bgpGroupId = value["BgpGroupId"].asString();
|
||||
if(!value["PeerIpAddress"].isNull())
|
||||
bgpPeersObject.peerIpAddress = value["PeerIpAddress"].asString();
|
||||
if(!value["PeerAsn"].isNull())
|
||||
bgpPeersObject.peerAsn = value["PeerAsn"].asString();
|
||||
if(!value["AuthKey"].isNull())
|
||||
bgpPeersObject.authKey = value["AuthKey"].asString();
|
||||
if(!value["RouterId"].isNull())
|
||||
bgpPeersObject.routerId = value["RouterId"].asString();
|
||||
if(!value["BgpStatus"].isNull())
|
||||
bgpPeersObject.bgpStatus = value["BgpStatus"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
bgpPeersObject.status = value["Status"].asString();
|
||||
if(!value["Keepalive"].isNull())
|
||||
bgpPeersObject.keepalive = value["Keepalive"].asString();
|
||||
if(!value["LocalAsn"].isNull())
|
||||
bgpPeersObject.localAsn = value["LocalAsn"].asString();
|
||||
if(!value["Hold"].isNull())
|
||||
bgpPeersObject.hold = value["Hold"].asString();
|
||||
if(!value["IsFake"].isNull())
|
||||
bgpPeersObject.isFake = value["IsFake"].asString();
|
||||
if(!value["RouteLimit"].isNull())
|
||||
bgpPeersObject.routeLimit = value["RouteLimit"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
bgpPeersObject.regionId = value["RegionId"].asString();
|
||||
bgpPeers_.push_back(bgpPeersObject);
|
||||
}
|
||||
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());
|
||||
auto allBgpPeers = value["BgpPeers"]["BgpPeer"];
|
||||
for (auto value : allBgpPeers)
|
||||
{
|
||||
BgpPeer bgpPeersObject;
|
||||
if(!value["Name"].isNull())
|
||||
bgpPeersObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
bgpPeersObject.description = value["Description"].asString();
|
||||
if(!value["BgpPeerId"].isNull())
|
||||
bgpPeersObject.bgpPeerId = value["BgpPeerId"].asString();
|
||||
if(!value["BgpGroupId"].isNull())
|
||||
bgpPeersObject.bgpGroupId = value["BgpGroupId"].asString();
|
||||
if(!value["PeerIpAddress"].isNull())
|
||||
bgpPeersObject.peerIpAddress = value["PeerIpAddress"].asString();
|
||||
if(!value["PeerAsn"].isNull())
|
||||
bgpPeersObject.peerAsn = value["PeerAsn"].asString();
|
||||
if(!value["AuthKey"].isNull())
|
||||
bgpPeersObject.authKey = value["AuthKey"].asString();
|
||||
if(!value["RouterId"].isNull())
|
||||
bgpPeersObject.routerId = value["RouterId"].asString();
|
||||
if(!value["BgpStatus"].isNull())
|
||||
bgpPeersObject.bgpStatus = value["BgpStatus"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
bgpPeersObject.status = value["Status"].asString();
|
||||
if(!value["Keepalive"].isNull())
|
||||
bgpPeersObject.keepalive = value["Keepalive"].asString();
|
||||
if(!value["LocalAsn"].isNull())
|
||||
bgpPeersObject.localAsn = value["LocalAsn"].asString();
|
||||
if(!value["Hold"].isNull())
|
||||
bgpPeersObject.hold = value["Hold"].asString();
|
||||
if(!value["IsFake"].isNull())
|
||||
bgpPeersObject.isFake = value["IsFake"].asString();
|
||||
if(!value["RouteLimit"].isNull())
|
||||
bgpPeersObject.routeLimit = value["RouteLimit"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
bgpPeersObject.regionId = value["RegionId"].asString();
|
||||
bgpPeers_.push_back(bgpPeersObject);
|
||||
}
|
||||
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<DescribeBgpPeersResult::BgpPeer> DescribeBgpPeersResult::getBgpPeers()const
|
||||
{
|
||||
return bgpPeers_;
|
||||
}
|
||||
|
||||
int DescribeBgpPeersResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeBgpPeersResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeBgpPeersResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBgpPeersResult::BgpPeer> DescribeBgpPeersResult::getBgpPeers()const
|
||||
{
|
||||
return bgpPeers_;
|
||||
}
|
||||
|
||||
int DescribeBgpPeersResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeBgpPeersResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeBgpPeersResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,17 @@ DescribeCommonBandwidthPackagesRequest::DescribeCommonBandwidthPackagesRequest()
|
||||
DescribeCommonBandwidthPackagesRequest::~DescribeCommonBandwidthPackagesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCommonBandwidthPackagesRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeCommonBandwidthPackagesRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
long DescribeCommonBandwidthPackagesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
@@ -113,6 +124,17 @@ void DescribeCommonBandwidthPackagesRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool DescribeCommonBandwidthPackagesRequest::getIncludeReservationData()const
|
||||
{
|
||||
return includeReservationData_;
|
||||
}
|
||||
|
||||
void DescribeCommonBandwidthPackagesRequest::setIncludeReservationData(bool includeReservationData)
|
||||
{
|
||||
includeReservationData_ = includeReservationData;
|
||||
setParameter("IncludeReservationData", std::to_string(includeReservationData));
|
||||
}
|
||||
|
||||
int DescribeCommonBandwidthPackagesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
|
||||
@@ -40,72 +40,86 @@ void DescribeCommonBandwidthPackagesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCommonBandwidthPackages = value["CommonBandwidthPackages"]["CommonBandwidthPackage"];
|
||||
for (auto value : allCommonBandwidthPackages)
|
||||
{
|
||||
CommonBandwidthPackage commonBandwidthPackagesObject;
|
||||
if(!value["BandwidthPackageId"].isNull())
|
||||
commonBandwidthPackagesObject.bandwidthPackageId = value["BandwidthPackageId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
commonBandwidthPackagesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
commonBandwidthPackagesObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
commonBandwidthPackagesObject.description = value["Description"].asString();
|
||||
if(!value["Bandwidth"].isNull())
|
||||
commonBandwidthPackagesObject.bandwidth = value["Bandwidth"].asString();
|
||||
if(!value["InstanceChargeType"].isNull())
|
||||
commonBandwidthPackagesObject.instanceChargeType = value["InstanceChargeType"].asString();
|
||||
if(!value["InternetChargeType"].isNull())
|
||||
commonBandwidthPackagesObject.internetChargeType = value["InternetChargeType"].asString();
|
||||
if(!value["BusinessStatus"].isNull())
|
||||
commonBandwidthPackagesObject.businessStatus = value["BusinessStatus"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
commonBandwidthPackagesObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["ExpiredTime"].isNull())
|
||||
commonBandwidthPackagesObject.expiredTime = value["ExpiredTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
commonBandwidthPackagesObject.status = value["Status"].asString();
|
||||
if(!value["Ratio"].isNull())
|
||||
commonBandwidthPackagesObject.ratio = std::stoi(value["Ratio"].asString());
|
||||
auto allPublicIpAddresses = value["PublicIpAddresses"]["PublicIpAddresse"];
|
||||
for (auto value : allPublicIpAddresses)
|
||||
{
|
||||
CommonBandwidthPackage::PublicIpAddresse publicIpAddressesObject;
|
||||
if(!value["AllocationId"].isNull())
|
||||
publicIpAddressesObject.allocationId = value["AllocationId"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
publicIpAddressesObject.ipAddress = value["IpAddress"].asString();
|
||||
commonBandwidthPackagesObject.publicIpAddresses.push_back(publicIpAddressesObject);
|
||||
}
|
||||
commonBandwidthPackages_.push_back(commonBandwidthPackagesObject);
|
||||
}
|
||||
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());
|
||||
auto allCommonBandwidthPackages = value["CommonBandwidthPackages"]["CommonBandwidthPackage"];
|
||||
for (auto value : allCommonBandwidthPackages)
|
||||
{
|
||||
CommonBandwidthPackage commonBandwidthPackagesObject;
|
||||
if(!value["BandwidthPackageId"].isNull())
|
||||
commonBandwidthPackagesObject.bandwidthPackageId = value["BandwidthPackageId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
commonBandwidthPackagesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
commonBandwidthPackagesObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
commonBandwidthPackagesObject.description = value["Description"].asString();
|
||||
if(!value["Bandwidth"].isNull())
|
||||
commonBandwidthPackagesObject.bandwidth = value["Bandwidth"].asString();
|
||||
if(!value["InstanceChargeType"].isNull())
|
||||
commonBandwidthPackagesObject.instanceChargeType = value["InstanceChargeType"].asString();
|
||||
if(!value["InternetChargeType"].isNull())
|
||||
commonBandwidthPackagesObject.internetChargeType = value["InternetChargeType"].asString();
|
||||
if(!value["BusinessStatus"].isNull())
|
||||
commonBandwidthPackagesObject.businessStatus = value["BusinessStatus"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
commonBandwidthPackagesObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["ExpiredTime"].isNull())
|
||||
commonBandwidthPackagesObject.expiredTime = value["ExpiredTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
commonBandwidthPackagesObject.status = value["Status"].asString();
|
||||
if(!value["Ratio"].isNull())
|
||||
commonBandwidthPackagesObject.ratio = std::stoi(value["Ratio"].asString());
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
commonBandwidthPackagesObject.resourceGroupId = value["ResourceGroupId"].asString();
|
||||
if(!value["HasReservationData"].isNull())
|
||||
commonBandwidthPackagesObject.hasReservationData = value["HasReservationData"].asString();
|
||||
if(!value["ReservationBandwidth"].isNull())
|
||||
commonBandwidthPackagesObject.reservationBandwidth = value["ReservationBandwidth"].asString();
|
||||
if(!value["ReservationInternetChargeType"].isNull())
|
||||
commonBandwidthPackagesObject.reservationInternetChargeType = value["ReservationInternetChargeType"].asString();
|
||||
if(!value["ReservationActiveTime"].isNull())
|
||||
commonBandwidthPackagesObject.reservationActiveTime = value["ReservationActiveTime"].asString();
|
||||
if(!value["ReservationOrderType"].isNull())
|
||||
commonBandwidthPackagesObject.reservationOrderType = value["ReservationOrderType"].asString();
|
||||
if(!value["ISP"].isNull())
|
||||
commonBandwidthPackagesObject.iSP = value["ISP"].asString();
|
||||
auto allPublicIpAddresses = value["PublicIpAddresses"]["PublicIpAddresse"];
|
||||
for (auto value : allPublicIpAddresses)
|
||||
{
|
||||
CommonBandwidthPackage::PublicIpAddresse publicIpAddressesObject;
|
||||
if(!value["AllocationId"].isNull())
|
||||
publicIpAddressesObject.allocationId = value["AllocationId"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
publicIpAddressesObject.ipAddress = value["IpAddress"].asString();
|
||||
commonBandwidthPackagesObject.publicIpAddresses.push_back(publicIpAddressesObject);
|
||||
}
|
||||
commonBandwidthPackages_.push_back(commonBandwidthPackagesObject);
|
||||
}
|
||||
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 DescribeCommonBandwidthPackagesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCommonBandwidthPackagesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCommonBandwidthPackagesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCommonBandwidthPackagesResult::CommonBandwidthPackage> DescribeCommonBandwidthPackagesResult::getCommonBandwidthPackages()const
|
||||
{
|
||||
return commonBandwidthPackages_;
|
||||
}
|
||||
|
||||
int DescribeCommonBandwidthPackagesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCommonBandwidthPackagesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCommonBandwidthPackagesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCommonBandwidthPackagesResult::CommonBandwidthPackage> DescribeCommonBandwidthPackagesResult::getCommonBandwidthPackages()const
|
||||
{
|
||||
return commonBandwidthPackages_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,41 +40,41 @@ void DescribeCustomerGatewayResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CustomerGatewayId"].isNull())
|
||||
customerGatewayId_ = value["CustomerGatewayId"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
ipAddress_ = value["IpAddress"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = std::stol(value["CreateTime"].asString());
|
||||
if(!value["CustomerGatewayId"].isNull())
|
||||
customerGatewayId_ = value["CustomerGatewayId"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
ipAddress_ = value["IpAddress"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = std::stol(value["CreateTime"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeCustomerGatewayResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeCustomerGatewayResult::getCustomerGatewayId()const
|
||||
{
|
||||
return customerGatewayId_;
|
||||
}
|
||||
|
||||
long DescribeCustomerGatewayResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string DescribeCustomerGatewayResult::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
std::string DescribeCustomerGatewayResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string DescribeCustomerGatewayResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeCustomerGatewayResult::getCustomerGatewayId()const
|
||||
{
|
||||
return customerGatewayId_;
|
||||
}
|
||||
|
||||
long DescribeCustomerGatewayResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string DescribeCustomerGatewayResult::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
std::string DescribeCustomerGatewayResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,48 +40,48 @@ void DescribeCustomerGatewaysResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCustomerGateways = value["CustomerGateways"]["CustomerGateway"];
|
||||
for (auto value : allCustomerGateways)
|
||||
{
|
||||
CustomerGateway customerGatewaysObject;
|
||||
if(!value["CustomerGatewayId"].isNull())
|
||||
customerGatewaysObject.customerGatewayId = value["CustomerGatewayId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
customerGatewaysObject.name = value["Name"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
customerGatewaysObject.ipAddress = value["IpAddress"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
customerGatewaysObject.description = value["Description"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
customerGatewaysObject.createTime = std::stol(value["CreateTime"].asString());
|
||||
customerGateways_.push_back(customerGatewaysObject);
|
||||
}
|
||||
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());
|
||||
auto allCustomerGateways = value["CustomerGateways"]["CustomerGateway"];
|
||||
for (auto value : allCustomerGateways)
|
||||
{
|
||||
CustomerGateway customerGatewaysObject;
|
||||
if(!value["CustomerGatewayId"].isNull())
|
||||
customerGatewaysObject.customerGatewayId = value["CustomerGatewayId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
customerGatewaysObject.name = value["Name"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
customerGatewaysObject.ipAddress = value["IpAddress"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
customerGatewaysObject.description = value["Description"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
customerGatewaysObject.createTime = std::stol(value["CreateTime"].asString());
|
||||
customerGateways_.push_back(customerGatewaysObject);
|
||||
}
|
||||
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 DescribeCustomerGatewaysResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCustomerGatewaysResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCustomerGatewaysResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCustomerGatewaysResult::CustomerGateway> DescribeCustomerGatewaysResult::getCustomerGateways()const
|
||||
{
|
||||
return customerGateways_;
|
||||
}
|
||||
|
||||
int DescribeCustomerGatewaysResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCustomerGatewaysResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCustomerGatewaysResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCustomerGatewaysResult::CustomerGateway> DescribeCustomerGatewaysResult::getCustomerGateways()const
|
||||
{
|
||||
return customerGateways_;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,6 +58,17 @@ void DescribeEipAddressesRequest::setFilter2Value(const std::string& filter2Valu
|
||||
setParameter("Filter2Value", filter2Value);
|
||||
}
|
||||
|
||||
std::string DescribeEipAddressesRequest::getISP()const
|
||||
{
|
||||
return iSP_;
|
||||
}
|
||||
|
||||
void DescribeEipAddressesRequest::setISP(const std::string& iSP)
|
||||
{
|
||||
iSP_ = iSP;
|
||||
setParameter("ISP", iSP);
|
||||
}
|
||||
|
||||
std::string DescribeEipAddressesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
@@ -113,6 +124,17 @@ void DescribeEipAddressesRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool DescribeEipAddressesRequest::getIncludeReservationData()const
|
||||
{
|
||||
return includeReservationData_;
|
||||
}
|
||||
|
||||
void DescribeEipAddressesRequest::setIncludeReservationData(bool includeReservationData)
|
||||
{
|
||||
includeReservationData_ = includeReservationData;
|
||||
setParameter("IncludeReservationData", std::to_string(includeReservationData));
|
||||
}
|
||||
|
||||
std::string DescribeEipAddressesRequest::getEipAddress()const
|
||||
{
|
||||
return eipAddress_;
|
||||
@@ -201,6 +223,23 @@ void DescribeEipAddressesRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<DescribeEipAddressesRequest::Tag> DescribeEipAddressesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeEipAddressesRequest::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);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeEipAddressesRequest::getChargeType()const
|
||||
{
|
||||
return chargeType_;
|
||||
|
||||
@@ -40,85 +40,113 @@ void DescribeEipAddressesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEipAddresses = value["EipAddresses"]["EipAddress"];
|
||||
for (auto value : allEipAddresses)
|
||||
{
|
||||
EipAddress eipAddressesObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
eipAddressesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
eipAddressesObject.ipAddress = value["IpAddress"].asString();
|
||||
if(!value["AllocationId"].isNull())
|
||||
eipAddressesObject.allocationId = value["AllocationId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
eipAddressesObject.status = value["Status"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
eipAddressesObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["Bandwidth"].isNull())
|
||||
eipAddressesObject.bandwidth = value["Bandwidth"].asString();
|
||||
if(!value["EipBandwidth"].isNull())
|
||||
eipAddressesObject.eipBandwidth = value["EipBandwidth"].asString();
|
||||
if(!value["InternetChargeType"].isNull())
|
||||
eipAddressesObject.internetChargeType = value["InternetChargeType"].asString();
|
||||
if(!value["AllocationTime"].isNull())
|
||||
eipAddressesObject.allocationTime = value["AllocationTime"].asString();
|
||||
if(!value["InstanceType"].isNull())
|
||||
eipAddressesObject.instanceType = value["InstanceType"].asString();
|
||||
if(!value["InstanceRegionId"].isNull())
|
||||
eipAddressesObject.instanceRegionId = value["InstanceRegionId"].asString();
|
||||
if(!value["ChargeType"].isNull())
|
||||
eipAddressesObject.chargeType = value["ChargeType"].asString();
|
||||
if(!value["ExpiredTime"].isNull())
|
||||
eipAddressesObject.expiredTime = value["ExpiredTime"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
eipAddressesObject.name = value["Name"].asString();
|
||||
if(!value["Descritpion"].isNull())
|
||||
eipAddressesObject.descritpion = value["Descritpion"].asString();
|
||||
if(!value["BandwidthPackageId"].isNull())
|
||||
eipAddressesObject.bandwidthPackageId = value["BandwidthPackageId"].asString();
|
||||
if(!value["BandwidthPackageType"].isNull())
|
||||
eipAddressesObject.bandwidthPackageType = value["BandwidthPackageType"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
eipAddressesObject.resourceGroupId = value["ResourceGroupId"].asString();
|
||||
auto allOperationLocks = value["OperationLocks"]["LockReason"];
|
||||
for (auto value : allOperationLocks)
|
||||
{
|
||||
EipAddress::LockReason operationLocksObject;
|
||||
if(!value["LockReason"].isNull())
|
||||
operationLocksObject.lockReason = value["LockReason"].asString();
|
||||
eipAddressesObject.operationLocks.push_back(operationLocksObject);
|
||||
}
|
||||
auto allAvailableRegions = value["AvailableRegions"]["AvailableRegion"];
|
||||
for (auto value : allAvailableRegions)
|
||||
eipAddressesObject.availableRegions.push_back(value.asString());
|
||||
eipAddresses_.push_back(eipAddressesObject);
|
||||
}
|
||||
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());
|
||||
auto allEipAddresses = value["EipAddresses"]["EipAddress"];
|
||||
for (auto value : allEipAddresses)
|
||||
{
|
||||
EipAddress eipAddressesObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
eipAddressesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
eipAddressesObject.ipAddress = value["IpAddress"].asString();
|
||||
if(!value["PrivateIpAddress"].isNull())
|
||||
eipAddressesObject.privateIpAddress = value["PrivateIpAddress"].asString();
|
||||
if(!value["AllocationId"].isNull())
|
||||
eipAddressesObject.allocationId = value["AllocationId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
eipAddressesObject.status = value["Status"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
eipAddressesObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["Bandwidth"].isNull())
|
||||
eipAddressesObject.bandwidth = value["Bandwidth"].asString();
|
||||
if(!value["EipBandwidth"].isNull())
|
||||
eipAddressesObject.eipBandwidth = value["EipBandwidth"].asString();
|
||||
if(!value["InternetChargeType"].isNull())
|
||||
eipAddressesObject.internetChargeType = value["InternetChargeType"].asString();
|
||||
if(!value["AllocationTime"].isNull())
|
||||
eipAddressesObject.allocationTime = value["AllocationTime"].asString();
|
||||
if(!value["InstanceType"].isNull())
|
||||
eipAddressesObject.instanceType = value["InstanceType"].asString();
|
||||
if(!value["InstanceRegionId"].isNull())
|
||||
eipAddressesObject.instanceRegionId = value["InstanceRegionId"].asString();
|
||||
if(!value["ChargeType"].isNull())
|
||||
eipAddressesObject.chargeType = value["ChargeType"].asString();
|
||||
if(!value["ExpiredTime"].isNull())
|
||||
eipAddressesObject.expiredTime = value["ExpiredTime"].asString();
|
||||
if(!value["HDMonitorStatus"].isNull())
|
||||
eipAddressesObject.hDMonitorStatus = value["HDMonitorStatus"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
eipAddressesObject.name = value["Name"].asString();
|
||||
if(!value["ISP"].isNull())
|
||||
eipAddressesObject.iSP = value["ISP"].asString();
|
||||
if(!value["Descritpion"].isNull())
|
||||
eipAddressesObject.descritpion = value["Descritpion"].asString();
|
||||
if(!value["BandwidthPackageId"].isNull())
|
||||
eipAddressesObject.bandwidthPackageId = value["BandwidthPackageId"].asString();
|
||||
if(!value["BandwidthPackageType"].isNull())
|
||||
eipAddressesObject.bandwidthPackageType = value["BandwidthPackageType"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
eipAddressesObject.resourceGroupId = value["ResourceGroupId"].asString();
|
||||
if(!value["HasReservationData"].isNull())
|
||||
eipAddressesObject.hasReservationData = value["HasReservationData"].asString();
|
||||
if(!value["ReservationBandwidth"].isNull())
|
||||
eipAddressesObject.reservationBandwidth = value["ReservationBandwidth"].asString();
|
||||
if(!value["ReservationInternetChargeType"].isNull())
|
||||
eipAddressesObject.reservationInternetChargeType = value["ReservationInternetChargeType"].asString();
|
||||
if(!value["ReservationActiveTime"].isNull())
|
||||
eipAddressesObject.reservationActiveTime = value["ReservationActiveTime"].asString();
|
||||
if(!value["ReservationOrderType"].isNull())
|
||||
eipAddressesObject.reservationOrderType = value["ReservationOrderType"].asString();
|
||||
if(!value["Mode"].isNull())
|
||||
eipAddressesObject.mode = value["Mode"].asString();
|
||||
auto allOperationLocks = value["OperationLocks"]["LockReason"];
|
||||
for (auto value : allOperationLocks)
|
||||
{
|
||||
EipAddress::LockReason operationLocksObject;
|
||||
if(!value["LockReason"].isNull())
|
||||
operationLocksObject.lockReason = value["LockReason"].asString();
|
||||
eipAddressesObject.operationLocks.push_back(operationLocksObject);
|
||||
}
|
||||
auto allTags = value["Tags"]["Tag"];
|
||||
for (auto value : allTags)
|
||||
{
|
||||
EipAddress::Tag tagsObject;
|
||||
if(!value["Key"].isNull())
|
||||
tagsObject.key = value["Key"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
tagsObject.value = value["Value"].asString();
|
||||
eipAddressesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto allAvailableRegions = value["AvailableRegions"]["AvailableRegion"];
|
||||
for (auto value : allAvailableRegions)
|
||||
eipAddressesObject.availableRegions.push_back(value.asString());
|
||||
eipAddresses_.push_back(eipAddressesObject);
|
||||
}
|
||||
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 DescribeEipAddressesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeEipAddressesResult::EipAddress> DescribeEipAddressesResult::getEipAddresses()const
|
||||
{
|
||||
return eipAddresses_;
|
||||
}
|
||||
|
||||
int DescribeEipAddressesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeEipAddressesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeEipAddressesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeEipAddressesResult::EipAddress> DescribeEipAddressesResult::getEipAddresses()const
|
||||
{
|
||||
return eipAddresses_;
|
||||
}
|
||||
|
||||
int DescribeEipAddressesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeEipAddressesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,6 +58,17 @@ void DescribeEipMonitorDataRequest::setResourceOwnerAccount(const std::string& r
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeEipMonitorDataRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeEipMonitorDataRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeEipMonitorDataRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
|
||||
@@ -40,29 +40,29 @@ void DescribeEipMonitorDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEipMonitorDatas = value["EipMonitorDatas"]["EipMonitorData"];
|
||||
for (auto value : allEipMonitorDatas)
|
||||
{
|
||||
EipMonitorData eipMonitorDatasObject;
|
||||
if(!value["EipRX"].isNull())
|
||||
eipMonitorDatasObject.eipRX = std::stoi(value["EipRX"].asString());
|
||||
if(!value["EipTX"].isNull())
|
||||
eipMonitorDatasObject.eipTX = std::stoi(value["EipTX"].asString());
|
||||
if(!value["EipFlow"].isNull())
|
||||
eipMonitorDatasObject.eipFlow = std::stoi(value["EipFlow"].asString());
|
||||
if(!value["EipBandwidth"].isNull())
|
||||
eipMonitorDatasObject.eipBandwidth = std::stoi(value["EipBandwidth"].asString());
|
||||
if(!value["EipPackets"].isNull())
|
||||
eipMonitorDatasObject.eipPackets = std::stoi(value["EipPackets"].asString());
|
||||
if(!value["TimeStamp"].isNull())
|
||||
eipMonitorDatasObject.timeStamp = value["TimeStamp"].asString();
|
||||
eipMonitorDatas_.push_back(eipMonitorDatasObject);
|
||||
}
|
||||
auto allEipMonitorDatas = value["EipMonitorDatas"]["EipMonitorData"];
|
||||
for (auto value : allEipMonitorDatas)
|
||||
{
|
||||
EipMonitorData eipMonitorDatasObject;
|
||||
if(!value["EipRX"].isNull())
|
||||
eipMonitorDatasObject.eipRX = std::stoi(value["EipRX"].asString());
|
||||
if(!value["EipTX"].isNull())
|
||||
eipMonitorDatasObject.eipTX = std::stoi(value["EipTX"].asString());
|
||||
if(!value["EipFlow"].isNull())
|
||||
eipMonitorDatasObject.eipFlow = std::stoi(value["EipFlow"].asString());
|
||||
if(!value["EipBandwidth"].isNull())
|
||||
eipMonitorDatasObject.eipBandwidth = std::stoi(value["EipBandwidth"].asString());
|
||||
if(!value["EipPackets"].isNull())
|
||||
eipMonitorDatasObject.eipPackets = std::stoi(value["EipPackets"].asString());
|
||||
if(!value["TimeStamp"].isNull())
|
||||
eipMonitorDatasObject.timeStamp = value["TimeStamp"].asString();
|
||||
eipMonitorDatas_.push_back(eipMonitorDatasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeEipMonitorDataResult::EipMonitorData> DescribeEipMonitorDataResult::getEipMonitorDatas()const
|
||||
{
|
||||
return eipMonitorDatas_;
|
||||
}
|
||||
|
||||
std::vector<DescribeEipMonitorDataResult::EipMonitorData> DescribeEipMonitorDataResult::getEipMonitorDatas()const
|
||||
{
|
||||
return eipMonitorDatas_;
|
||||
}
|
||||
|
||||
|
||||
203
vpc/src/model/DescribeFlowLogsRequest.cc
Normal file
203
vpc/src/model/DescribeFlowLogsRequest.cc
Normal file
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/DescribeFlowLogsRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::DescribeFlowLogsRequest;
|
||||
|
||||
DescribeFlowLogsRequest::DescribeFlowLogsRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "DescribeFlowLogs")
|
||||
{}
|
||||
|
||||
DescribeFlowLogsRequest::~DescribeFlowLogsRequest()
|
||||
{}
|
||||
|
||||
long DescribeFlowLogsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsRequest::getLogStoreName()const
|
||||
{
|
||||
return logStoreName_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setLogStoreName(const std::string& logStoreName)
|
||||
{
|
||||
logStoreName_ = logStoreName;
|
||||
setParameter("LogStoreName", logStoreName);
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
long DescribeFlowLogsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
int DescribeFlowLogsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeFlowLogsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsRequest::getTrafficType()const
|
||||
{
|
||||
return trafficType_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setTrafficType(const std::string& trafficType)
|
||||
{
|
||||
trafficType_ = trafficType;
|
||||
setParameter("TrafficType", trafficType);
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsRequest::getFlowLogId()const
|
||||
{
|
||||
return flowLogId_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setFlowLogId(const std::string& flowLogId)
|
||||
{
|
||||
flowLogId_ = flowLogId;
|
||||
setParameter("FlowLogId", flowLogId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsRequest::getFlowLogName()const
|
||||
{
|
||||
return flowLogName_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setFlowLogName(const std::string& flowLogName)
|
||||
{
|
||||
flowLogName_ = flowLogName;
|
||||
setParameter("FlowLogName", flowLogName);
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeFlowLogsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
106
vpc/src/model/DescribeFlowLogsResult.cc
Normal file
106
vpc/src/model/DescribeFlowLogsResult.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/vpc/model/DescribeFlowLogsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
DescribeFlowLogsResult::DescribeFlowLogsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeFlowLogsResult::DescribeFlowLogsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeFlowLogsResult::~DescribeFlowLogsResult()
|
||||
{}
|
||||
|
||||
void DescribeFlowLogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFlowLogs = value["FlowLogs"]["FlowLog"];
|
||||
for (auto value : allFlowLogs)
|
||||
{
|
||||
FlowLog flowLogsObject;
|
||||
if(!value["FlowLogId"].isNull())
|
||||
flowLogsObject.flowLogId = value["FlowLogId"].asString();
|
||||
if(!value["FlowLogName"].isNull())
|
||||
flowLogsObject.flowLogName = value["FlowLogName"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
flowLogsObject.description = value["Description"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
flowLogsObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["ResourceType"].isNull())
|
||||
flowLogsObject.resourceType = value["ResourceType"].asString();
|
||||
if(!value["ResourceId"].isNull())
|
||||
flowLogsObject.resourceId = value["ResourceId"].asString();
|
||||
if(!value["ProjectName"].isNull())
|
||||
flowLogsObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["LogStoreName"].isNull())
|
||||
flowLogsObject.logStoreName = value["LogStoreName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
flowLogsObject.status = value["Status"].asString();
|
||||
if(!value["TrafficType"].isNull())
|
||||
flowLogsObject.trafficType = value["TrafficType"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
flowLogsObject.regionId = value["RegionId"].asString();
|
||||
flowLogs_.push_back(flowLogsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeFlowLogsResult::FlowLog> DescribeFlowLogsResult::getFlowLogs()const
|
||||
{
|
||||
return flowLogs_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowLogsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -47,26 +47,26 @@ void DescribeForwardTableEntriesRequest::setResourceOwnerAccount(const std::stri
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getRegionId()const
|
||||
std::string DescribeForwardTableEntriesRequest::getIpProtocol()const
|
||||
{
|
||||
return regionId_;
|
||||
return ipProtocol_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setRegionId(const std::string& regionId)
|
||||
void DescribeForwardTableEntriesRequest::setIpProtocol(const std::string& ipProtocol)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
ipProtocol_ = ipProtocol;
|
||||
setParameter("IpProtocol", ipProtocol);
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getForwardEntryId()const
|
||||
std::string DescribeForwardTableEntriesRequest::getForwardEntryName()const
|
||||
{
|
||||
return forwardEntryId_;
|
||||
return forwardEntryName_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setForwardEntryId(const std::string& forwardEntryId)
|
||||
void DescribeForwardTableEntriesRequest::setForwardEntryName(const std::string& forwardEntryName)
|
||||
{
|
||||
forwardEntryId_ = forwardEntryId;
|
||||
setParameter("ForwardEntryId", forwardEntryId);
|
||||
forwardEntryName_ = forwardEntryName;
|
||||
setParameter("ForwardEntryName", forwardEntryName);
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getOwnerAccount()const
|
||||
@@ -91,17 +91,6 @@ void DescribeForwardTableEntriesRequest::setForwardTableId(const std::string& fo
|
||||
setParameter("ForwardTableId", forwardTableId);
|
||||
}
|
||||
|
||||
int DescribeForwardTableEntriesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeForwardTableEntriesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -113,6 +102,17 @@ void DescribeForwardTableEntriesRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getInternalIp()const
|
||||
{
|
||||
return internalIp_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setInternalIp(const std::string& internalIp)
|
||||
{
|
||||
internalIp_ = internalIp;
|
||||
setParameter("InternalIp", internalIp);
|
||||
}
|
||||
|
||||
int DescribeForwardTableEntriesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -124,3 +124,69 @@ void DescribeForwardTableEntriesRequest::setPageNumber(int pageNumber)
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getForwardEntryId()const
|
||||
{
|
||||
return forwardEntryId_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setForwardEntryId(const std::string& forwardEntryId)
|
||||
{
|
||||
forwardEntryId_ = forwardEntryId;
|
||||
setParameter("ForwardEntryId", forwardEntryId);
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getInternalPort()const
|
||||
{
|
||||
return internalPort_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setInternalPort(const std::string& internalPort)
|
||||
{
|
||||
internalPort_ = internalPort;
|
||||
setParameter("InternalPort", internalPort);
|
||||
}
|
||||
|
||||
int DescribeForwardTableEntriesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getExternalIp()const
|
||||
{
|
||||
return externalIp_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setExternalIp(const std::string& externalIp)
|
||||
{
|
||||
externalIp_ = externalIp;
|
||||
setParameter("ExternalIp", externalIp);
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getExternalPort()const
|
||||
{
|
||||
return externalPort_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setExternalPort(const std::string& externalPort)
|
||||
{
|
||||
externalPort_ = externalPort;
|
||||
setParameter("ExternalPort", externalPort);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,54 +40,56 @@ void DescribeForwardTableEntriesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allForwardTableEntries = value["ForwardTableEntries"]["ForwardTableEntry"];
|
||||
for (auto value : allForwardTableEntries)
|
||||
{
|
||||
ForwardTableEntry forwardTableEntriesObject;
|
||||
if(!value["ForwardTableId"].isNull())
|
||||
forwardTableEntriesObject.forwardTableId = value["ForwardTableId"].asString();
|
||||
if(!value["ForwardEntryId"].isNull())
|
||||
forwardTableEntriesObject.forwardEntryId = value["ForwardEntryId"].asString();
|
||||
if(!value["ExternalIp"].isNull())
|
||||
forwardTableEntriesObject.externalIp = value["ExternalIp"].asString();
|
||||
if(!value["ExternalPort"].isNull())
|
||||
forwardTableEntriesObject.externalPort = value["ExternalPort"].asString();
|
||||
if(!value["IpProtocol"].isNull())
|
||||
forwardTableEntriesObject.ipProtocol = value["IpProtocol"].asString();
|
||||
if(!value["InternalIp"].isNull())
|
||||
forwardTableEntriesObject.internalIp = value["InternalIp"].asString();
|
||||
if(!value["InternalPort"].isNull())
|
||||
forwardTableEntriesObject.internalPort = value["InternalPort"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
forwardTableEntriesObject.status = value["Status"].asString();
|
||||
forwardTableEntries_.push_back(forwardTableEntriesObject);
|
||||
}
|
||||
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());
|
||||
auto allForwardTableEntries = value["ForwardTableEntries"]["ForwardTableEntry"];
|
||||
for (auto value : allForwardTableEntries)
|
||||
{
|
||||
ForwardTableEntry forwardTableEntriesObject;
|
||||
if(!value["ForwardTableId"].isNull())
|
||||
forwardTableEntriesObject.forwardTableId = value["ForwardTableId"].asString();
|
||||
if(!value["ForwardEntryId"].isNull())
|
||||
forwardTableEntriesObject.forwardEntryId = value["ForwardEntryId"].asString();
|
||||
if(!value["ExternalIp"].isNull())
|
||||
forwardTableEntriesObject.externalIp = value["ExternalIp"].asString();
|
||||
if(!value["ExternalPort"].isNull())
|
||||
forwardTableEntriesObject.externalPort = value["ExternalPort"].asString();
|
||||
if(!value["IpProtocol"].isNull())
|
||||
forwardTableEntriesObject.ipProtocol = value["IpProtocol"].asString();
|
||||
if(!value["InternalIp"].isNull())
|
||||
forwardTableEntriesObject.internalIp = value["InternalIp"].asString();
|
||||
if(!value["InternalPort"].isNull())
|
||||
forwardTableEntriesObject.internalPort = value["InternalPort"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
forwardTableEntriesObject.status = value["Status"].asString();
|
||||
if(!value["ForwardEntryName"].isNull())
|
||||
forwardTableEntriesObject.forwardEntryName = value["ForwardEntryName"].asString();
|
||||
forwardTableEntries_.push_back(forwardTableEntriesObject);
|
||||
}
|
||||
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 DescribeForwardTableEntriesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeForwardTableEntriesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeForwardTableEntriesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeForwardTableEntriesResult::ForwardTableEntry> DescribeForwardTableEntriesResult::getForwardTableEntries()const
|
||||
{
|
||||
return forwardTableEntries_;
|
||||
}
|
||||
|
||||
int DescribeForwardTableEntriesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeForwardTableEntriesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeForwardTableEntriesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeForwardTableEntriesResult::ForwardTableEntry> DescribeForwardTableEntriesResult::getForwardTableEntries()const
|
||||
{
|
||||
return forwardTableEntries_;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,115 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/DescribeForwardTablesRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::DescribeForwardTablesRequest;
|
||||
|
||||
DescribeForwardTablesRequest::DescribeForwardTablesRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "DescribeForwardTables")
|
||||
{}
|
||||
|
||||
DescribeForwardTablesRequest::~DescribeForwardTablesRequest()
|
||||
{}
|
||||
|
||||
long DescribeForwardTablesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeForwardTablesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeForwardTablesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeForwardTablesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeForwardTablesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeForwardTablesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeForwardTablesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeForwardTablesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeForwardTablesRequest::getForwardTableId()const
|
||||
{
|
||||
return forwardTableId_;
|
||||
}
|
||||
|
||||
void DescribeForwardTablesRequest::setForwardTableId(const std::string& forwardTableId)
|
||||
{
|
||||
forwardTableId_ = forwardTableId;
|
||||
setParameter("ForwardTableId", forwardTableId);
|
||||
}
|
||||
|
||||
int DescribeForwardTablesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeForwardTablesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeForwardTablesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeForwardTablesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeForwardTablesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeForwardTablesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user