Add RenewAdditionalBandwidth API.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2021-03-26 Version: 1.36.656
|
||||
- Add RenewAdditionalBandwidth API.
|
||||
|
||||
2021-03-26 Version: 1.36.655
|
||||
- Upgrade mongodb sdk.
|
||||
|
||||
|
||||
@@ -183,6 +183,8 @@ set(r-kvstore_public_header_model
|
||||
include/alibabacloud/r-kvstore/model/ReleaseDirectConnectionResult.h
|
||||
include/alibabacloud/r-kvstore/model/ReleaseInstancePublicConnectionRequest.h
|
||||
include/alibabacloud/r-kvstore/model/ReleaseInstancePublicConnectionResult.h
|
||||
include/alibabacloud/r-kvstore/model/RenewAdditionalBandwidthRequest.h
|
||||
include/alibabacloud/r-kvstore/model/RenewAdditionalBandwidthResult.h
|
||||
include/alibabacloud/r-kvstore/model/RenewInstanceRequest.h
|
||||
include/alibabacloud/r-kvstore/model/RenewInstanceResult.h
|
||||
include/alibabacloud/r-kvstore/model/ReplaceUserClusterHostRequest.h
|
||||
@@ -370,6 +372,8 @@ set(r-kvstore_src
|
||||
src/model/ReleaseDirectConnectionResult.cc
|
||||
src/model/ReleaseInstancePublicConnectionRequest.cc
|
||||
src/model/ReleaseInstancePublicConnectionResult.cc
|
||||
src/model/RenewAdditionalBandwidthRequest.cc
|
||||
src/model/RenewAdditionalBandwidthResult.cc
|
||||
src/model/RenewInstanceRequest.cc
|
||||
src/model/RenewInstanceResult.cc
|
||||
src/model/ReplaceUserClusterHostRequest.cc
|
||||
|
||||
@@ -184,6 +184,8 @@
|
||||
#include "model/ReleaseDirectConnectionResult.h"
|
||||
#include "model/ReleaseInstancePublicConnectionRequest.h"
|
||||
#include "model/ReleaseInstancePublicConnectionResult.h"
|
||||
#include "model/RenewAdditionalBandwidthRequest.h"
|
||||
#include "model/RenewAdditionalBandwidthResult.h"
|
||||
#include "model/RenewInstanceRequest.h"
|
||||
#include "model/RenewInstanceResult.h"
|
||||
#include "model/ReplaceUserClusterHostRequest.h"
|
||||
@@ -458,6 +460,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ReleaseInstancePublicConnectionResult> ReleaseInstancePublicConnectionOutcome;
|
||||
typedef std::future<ReleaseInstancePublicConnectionOutcome> ReleaseInstancePublicConnectionOutcomeCallable;
|
||||
typedef std::function<void(const R_kvstoreClient*, const Model::ReleaseInstancePublicConnectionRequest&, const ReleaseInstancePublicConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseInstancePublicConnectionAsyncHandler;
|
||||
typedef Outcome<Error, Model::RenewAdditionalBandwidthResult> RenewAdditionalBandwidthOutcome;
|
||||
typedef std::future<RenewAdditionalBandwidthOutcome> RenewAdditionalBandwidthOutcomeCallable;
|
||||
typedef std::function<void(const R_kvstoreClient*, const Model::RenewAdditionalBandwidthRequest&, const RenewAdditionalBandwidthOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewAdditionalBandwidthAsyncHandler;
|
||||
typedef Outcome<Error, Model::RenewInstanceResult> RenewInstanceOutcome;
|
||||
typedef std::future<RenewInstanceOutcome> RenewInstanceOutcomeCallable;
|
||||
typedef std::function<void(const R_kvstoreClient*, const Model::RenewInstanceRequest&, const RenewInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewInstanceAsyncHandler;
|
||||
@@ -739,6 +744,9 @@ namespace AlibabaCloud
|
||||
ReleaseInstancePublicConnectionOutcome releaseInstancePublicConnection(const Model::ReleaseInstancePublicConnectionRequest &request)const;
|
||||
void releaseInstancePublicConnectionAsync(const Model::ReleaseInstancePublicConnectionRequest& request, const ReleaseInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReleaseInstancePublicConnectionOutcomeCallable releaseInstancePublicConnectionCallable(const Model::ReleaseInstancePublicConnectionRequest& request) const;
|
||||
RenewAdditionalBandwidthOutcome renewAdditionalBandwidth(const Model::RenewAdditionalBandwidthRequest &request)const;
|
||||
void renewAdditionalBandwidthAsync(const Model::RenewAdditionalBandwidthRequest& request, const RenewAdditionalBandwidthAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenewAdditionalBandwidthOutcomeCallable renewAdditionalBandwidthCallable(const Model::RenewAdditionalBandwidthRequest& request) const;
|
||||
RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const;
|
||||
void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const;
|
||||
|
||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getSourceBiz()const;
|
||||
void setSourceBiz(const std::string& sourceBiz);
|
||||
int getShardCount()const;
|
||||
void setShardCount(int shardCount);
|
||||
std::string getBusinessInfo()const;
|
||||
@@ -68,6 +70,7 @@ namespace AlibabaCloud
|
||||
std::string couponNo_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string sourceBiz_;
|
||||
int shardCount_;
|
||||
std::string businessInfo_;
|
||||
bool autoPay_;
|
||||
|
||||
@@ -79,6 +79,8 @@ namespace AlibabaCloud
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
bool getGlobalInstance()const;
|
||||
void setGlobalInstance(bool globalInstance);
|
||||
std::string getPrivateIp()const;
|
||||
void setPrivateIp(const std::string& privateIp);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getVSwitchId()const;
|
||||
@@ -116,6 +118,7 @@ namespace AlibabaCloud
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
bool globalInstance_;
|
||||
std::string privateIp_;
|
||||
long ownerId_;
|
||||
std::string vSwitchId_;
|
||||
int vpcCloudInsInfo_;
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_RENEWADDITIONALBANDWIDTHREQUEST_H_
|
||||
#define ALIBABACLOUD_R_KVSTORE_MODEL_RENEWADDITIONALBANDWIDTHREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace R_kvstore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_R_KVSTORE_EXPORT RenewAdditionalBandwidthRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RenewAdditionalBandwidthRequest();
|
||||
~RenewAdditionalBandwidthRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getCouponNo()const;
|
||||
void setCouponNo(const std::string& couponNo);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getSourceBiz()const;
|
||||
void setSourceBiz(const std::string& sourceBiz);
|
||||
std::string getOrderTimeLength()const;
|
||||
void setOrderTimeLength(const std::string& orderTimeLength);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
bool getAutoPay()const;
|
||||
void setAutoPay(bool autoPay);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getCategory()const;
|
||||
void setCategory(const std::string& category);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string couponNo_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string sourceBiz_;
|
||||
std::string orderTimeLength_;
|
||||
std::string product_;
|
||||
bool autoPay_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string instanceId_;
|
||||
std::string category_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_RENEWADDITIONALBANDWIDTHREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_RENEWADDITIONALBANDWIDTHRESULT_H_
|
||||
#define ALIBABACLOUD_R_KVSTORE_MODEL_RENEWADDITIONALBANDWIDTHRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace R_kvstore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_R_KVSTORE_EXPORT RenewAdditionalBandwidthResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RenewAdditionalBandwidthResult();
|
||||
explicit RenewAdditionalBandwidthResult(const std::string &payload);
|
||||
~RenewAdditionalBandwidthResult();
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_RENEWADDITIONALBANDWIDTHRESULT_H_
|
||||
@@ -2967,6 +2967,42 @@ R_kvstoreClient::ReleaseInstancePublicConnectionOutcomeCallable R_kvstoreClient:
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::RenewAdditionalBandwidthOutcome R_kvstoreClient::renewAdditionalBandwidth(const RenewAdditionalBandwidthRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RenewAdditionalBandwidthOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RenewAdditionalBandwidthOutcome(RenewAdditionalBandwidthResult(outcome.result()));
|
||||
else
|
||||
return RenewAdditionalBandwidthOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void R_kvstoreClient::renewAdditionalBandwidthAsync(const RenewAdditionalBandwidthRequest& request, const RenewAdditionalBandwidthAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, renewAdditionalBandwidth(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
R_kvstoreClient::RenewAdditionalBandwidthOutcomeCallable R_kvstoreClient::renewAdditionalBandwidthCallable(const RenewAdditionalBandwidthRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RenewAdditionalBandwidthOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->renewAdditionalBandwidth(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::RenewInstanceOutcome R_kvstoreClient::renewInstance(const RenewInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -82,6 +82,17 @@ void AddShardingNodeRequest::setSecurityToken(const std::string& securityToken)
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string AddShardingNodeRequest::getSourceBiz()const
|
||||
{
|
||||
return sourceBiz_;
|
||||
}
|
||||
|
||||
void AddShardingNodeRequest::setSourceBiz(const std::string& sourceBiz)
|
||||
{
|
||||
sourceBiz_ = sourceBiz;
|
||||
setParameter("SourceBiz", sourceBiz);
|
||||
}
|
||||
|
||||
int AddShardingNodeRequest::getShardCount()const
|
||||
{
|
||||
return shardCount_;
|
||||
|
||||
@@ -241,6 +241,17 @@ void DescribeInstancesRequest::setGlobalInstance(bool globalInstance)
|
||||
setParameter("GlobalInstance", globalInstance ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeInstancesRequest::getPrivateIp()const
|
||||
{
|
||||
return privateIp_;
|
||||
}
|
||||
|
||||
void DescribeInstancesRequest::setPrivateIp(const std::string& privateIp)
|
||||
{
|
||||
privateIp_ = privateIp;
|
||||
setParameter("PrivateIp", privateIp);
|
||||
}
|
||||
|
||||
long DescribeInstancesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
172
r-kvstore/src/model/RenewAdditionalBandwidthRequest.cc
Normal file
172
r-kvstore/src/model/RenewAdditionalBandwidthRequest.cc
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/RenewAdditionalBandwidthRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::RenewAdditionalBandwidthRequest;
|
||||
|
||||
RenewAdditionalBandwidthRequest::RenewAdditionalBandwidthRequest() :
|
||||
RpcServiceRequest("r-kvstore", "2015-01-01", "RenewAdditionalBandwidth")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RenewAdditionalBandwidthRequest::~RenewAdditionalBandwidthRequest()
|
||||
{}
|
||||
|
||||
long RenewAdditionalBandwidthRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void RenewAdditionalBandwidthRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string RenewAdditionalBandwidthRequest::getCouponNo()const
|
||||
{
|
||||
return couponNo_;
|
||||
}
|
||||
|
||||
void RenewAdditionalBandwidthRequest::setCouponNo(const std::string& couponNo)
|
||||
{
|
||||
couponNo_ = couponNo;
|
||||
setParameter("CouponNo", couponNo);
|
||||
}
|
||||
|
||||
std::string RenewAdditionalBandwidthRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void RenewAdditionalBandwidthRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string RenewAdditionalBandwidthRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void RenewAdditionalBandwidthRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string RenewAdditionalBandwidthRequest::getSourceBiz()const
|
||||
{
|
||||
return sourceBiz_;
|
||||
}
|
||||
|
||||
void RenewAdditionalBandwidthRequest::setSourceBiz(const std::string& sourceBiz)
|
||||
{
|
||||
sourceBiz_ = sourceBiz;
|
||||
setParameter("SourceBiz", sourceBiz);
|
||||
}
|
||||
|
||||
std::string RenewAdditionalBandwidthRequest::getOrderTimeLength()const
|
||||
{
|
||||
return orderTimeLength_;
|
||||
}
|
||||
|
||||
void RenewAdditionalBandwidthRequest::setOrderTimeLength(const std::string& orderTimeLength)
|
||||
{
|
||||
orderTimeLength_ = orderTimeLength;
|
||||
setParameter("OrderTimeLength", orderTimeLength);
|
||||
}
|
||||
|
||||
std::string RenewAdditionalBandwidthRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void RenewAdditionalBandwidthRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
bool RenewAdditionalBandwidthRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void RenewAdditionalBandwidthRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RenewAdditionalBandwidthRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void RenewAdditionalBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string RenewAdditionalBandwidthRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void RenewAdditionalBandwidthRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long RenewAdditionalBandwidthRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RenewAdditionalBandwidthRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string RenewAdditionalBandwidthRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void RenewAdditionalBandwidthRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string RenewAdditionalBandwidthRequest::getCategory()const
|
||||
{
|
||||
return category_;
|
||||
}
|
||||
|
||||
void RenewAdditionalBandwidthRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setParameter("Category", category);
|
||||
}
|
||||
|
||||
51
r-kvstore/src/model/RenewAdditionalBandwidthResult.cc
Normal file
51
r-kvstore/src/model/RenewAdditionalBandwidthResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/RenewAdditionalBandwidthResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
|
||||
RenewAdditionalBandwidthResult::RenewAdditionalBandwidthResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RenewAdditionalBandwidthResult::RenewAdditionalBandwidthResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RenewAdditionalBandwidthResult::~RenewAdditionalBandwidthResult()
|
||||
{}
|
||||
|
||||
void RenewAdditionalBandwidthResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RenewAdditionalBandwidthResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user