Account management add SourceBiz parameters.
This commit is contained in:
@@ -447,6 +447,42 @@ R_kvstoreClient::CreateInstancesOutcomeCallable R_kvstoreClient::createInstances
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::CreateParameterGroupOutcome R_kvstoreClient::createParameterGroup(const CreateParameterGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateParameterGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateParameterGroupOutcome(CreateParameterGroupResult(outcome.result()));
|
||||
else
|
||||
return CreateParameterGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void R_kvstoreClient::createParameterGroupAsync(const CreateParameterGroupRequest& request, const CreateParameterGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createParameterGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
R_kvstoreClient::CreateParameterGroupOutcomeCallable R_kvstoreClient::createParameterGroupCallable(const CreateParameterGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateParameterGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createParameterGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::CreateTairInstanceOutcome R_kvstoreClient::createTairInstance(const CreateTairInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -591,6 +627,42 @@ R_kvstoreClient::DeleteInstanceOutcomeCallable R_kvstoreClient::deleteInstanceCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::DeleteParameterGroupOutcome R_kvstoreClient::deleteParameterGroup(const DeleteParameterGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteParameterGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteParameterGroupOutcome(DeleteParameterGroupResult(outcome.result()));
|
||||
else
|
||||
return DeleteParameterGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void R_kvstoreClient::deleteParameterGroupAsync(const DeleteParameterGroupRequest& request, const DeleteParameterGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteParameterGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
R_kvstoreClient::DeleteParameterGroupOutcomeCallable R_kvstoreClient::deleteParameterGroupCallable(const DeleteParameterGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteParameterGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteParameterGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::DeleteShardingNodeOutcome R_kvstoreClient::deleteShardingNode(const DeleteShardingNodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +771,42 @@ R_kvstoreClient::DescribeActiveOperationTaskOutcomeCallable R_kvstoreClient::des
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeActiveOperationTasksOutcome R_kvstoreClient::describeActiveOperationTasks(const DescribeActiveOperationTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeActiveOperationTasksOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeActiveOperationTasksOutcome(DescribeActiveOperationTasksResult(outcome.result()));
|
||||
else
|
||||
return DescribeActiveOperationTasksOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void R_kvstoreClient::describeActiveOperationTasksAsync(const DescribeActiveOperationTasksRequest& request, const DescribeActiveOperationTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeActiveOperationTasks(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeActiveOperationTasksOutcomeCallable R_kvstoreClient::describeActiveOperationTasksCallable(const DescribeActiveOperationTasksRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeActiveOperationTasksOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeActiveOperationTasks(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeAuditLogConfigOutcome R_kvstoreClient::describeAuditLogConfig(const DescribeAuditLogConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1815,6 +1923,150 @@ R_kvstoreClient::DescribeMonitorItemsOutcomeCallable R_kvstoreClient::describeMo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeParameterGroupOutcome R_kvstoreClient::describeParameterGroup(const DescribeParameterGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeParameterGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeParameterGroupOutcome(DescribeParameterGroupResult(outcome.result()));
|
||||
else
|
||||
return DescribeParameterGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void R_kvstoreClient::describeParameterGroupAsync(const DescribeParameterGroupRequest& request, const DescribeParameterGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeParameterGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeParameterGroupOutcomeCallable R_kvstoreClient::describeParameterGroupCallable(const DescribeParameterGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeParameterGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeParameterGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeParameterGroupSupportParamOutcome R_kvstoreClient::describeParameterGroupSupportParam(const DescribeParameterGroupSupportParamRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeParameterGroupSupportParamOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeParameterGroupSupportParamOutcome(DescribeParameterGroupSupportParamResult(outcome.result()));
|
||||
else
|
||||
return DescribeParameterGroupSupportParamOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void R_kvstoreClient::describeParameterGroupSupportParamAsync(const DescribeParameterGroupSupportParamRequest& request, const DescribeParameterGroupSupportParamAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeParameterGroupSupportParam(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeParameterGroupSupportParamOutcomeCallable R_kvstoreClient::describeParameterGroupSupportParamCallable(const DescribeParameterGroupSupportParamRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeParameterGroupSupportParamOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeParameterGroupSupportParam(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeParameterGroupTemplateListOutcome R_kvstoreClient::describeParameterGroupTemplateList(const DescribeParameterGroupTemplateListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeParameterGroupTemplateListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeParameterGroupTemplateListOutcome(DescribeParameterGroupTemplateListResult(outcome.result()));
|
||||
else
|
||||
return DescribeParameterGroupTemplateListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void R_kvstoreClient::describeParameterGroupTemplateListAsync(const DescribeParameterGroupTemplateListRequest& request, const DescribeParameterGroupTemplateListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeParameterGroupTemplateList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeParameterGroupTemplateListOutcomeCallable R_kvstoreClient::describeParameterGroupTemplateListCallable(const DescribeParameterGroupTemplateListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeParameterGroupTemplateListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeParameterGroupTemplateList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeParameterGroupsOutcome R_kvstoreClient::describeParameterGroups(const DescribeParameterGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeParameterGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeParameterGroupsOutcome(DescribeParameterGroupsResult(outcome.result()));
|
||||
else
|
||||
return DescribeParameterGroupsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void R_kvstoreClient::describeParameterGroupsAsync(const DescribeParameterGroupsRequest& request, const DescribeParameterGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeParameterGroups(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeParameterGroupsOutcomeCallable R_kvstoreClient::describeParameterGroupsCallable(const DescribeParameterGroupsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeParameterGroupsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeParameterGroups(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeParameterModificationHistoryOutcome R_kvstoreClient::describeParameterModificationHistory(const DescribeParameterModificationHistoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2679,6 +2931,42 @@ R_kvstoreClient::ModifyActiveOperationTaskOutcomeCallable R_kvstoreClient::modif
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::ModifyActiveOperationTasksOutcome R_kvstoreClient::modifyActiveOperationTasks(const ModifyActiveOperationTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyActiveOperationTasksOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyActiveOperationTasksOutcome(ModifyActiveOperationTasksResult(outcome.result()));
|
||||
else
|
||||
return ModifyActiveOperationTasksOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void R_kvstoreClient::modifyActiveOperationTasksAsync(const ModifyActiveOperationTasksRequest& request, const ModifyActiveOperationTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyActiveOperationTasks(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
R_kvstoreClient::ModifyActiveOperationTasksOutcomeCallable R_kvstoreClient::modifyActiveOperationTasksCallable(const ModifyActiveOperationTasksRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyActiveOperationTasksOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyActiveOperationTasks(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::ModifyAuditLogConfigOutcome R_kvstoreClient::modifyAuditLogConfig(const ModifyAuditLogConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2751,6 +3039,42 @@ R_kvstoreClient::ModifyBackupPolicyOutcomeCallable R_kvstoreClient::modifyBackup
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::ModifyDBInstanceAutoUpgradeOutcome R_kvstoreClient::modifyDBInstanceAutoUpgrade(const ModifyDBInstanceAutoUpgradeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDBInstanceAutoUpgradeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDBInstanceAutoUpgradeOutcome(ModifyDBInstanceAutoUpgradeResult(outcome.result()));
|
||||
else
|
||||
return ModifyDBInstanceAutoUpgradeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void R_kvstoreClient::modifyDBInstanceAutoUpgradeAsync(const ModifyDBInstanceAutoUpgradeRequest& request, const ModifyDBInstanceAutoUpgradeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDBInstanceAutoUpgrade(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
R_kvstoreClient::ModifyDBInstanceAutoUpgradeOutcomeCallable R_kvstoreClient::modifyDBInstanceAutoUpgradeCallable(const ModifyDBInstanceAutoUpgradeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDBInstanceAutoUpgradeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDBInstanceAutoUpgrade(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::ModifyDBInstanceConnectionStringOutcome R_kvstoreClient::modifyDBInstanceConnectionString(const ModifyDBInstanceConnectionStringRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3363,6 +3687,42 @@ R_kvstoreClient::ModifyIntranetAttributeOutcomeCallable R_kvstoreClient::modifyI
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::ModifyParameterGroupOutcome R_kvstoreClient::modifyParameterGroup(const ModifyParameterGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyParameterGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyParameterGroupOutcome(ModifyParameterGroupResult(outcome.result()));
|
||||
else
|
||||
return ModifyParameterGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void R_kvstoreClient::modifyParameterGroupAsync(const ModifyParameterGroupRequest& request, const ModifyParameterGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyParameterGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
R_kvstoreClient::ModifyParameterGroupOutcomeCallable R_kvstoreClient::modifyParameterGroupCallable(const ModifyParameterGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyParameterGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyParameterGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::ModifyResourceGroupOutcome R_kvstoreClient::modifyResourceGroup(const ModifyResourceGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -97,6 +97,15 @@ void CreateAccountRequest::setSecurityToken(const std::string &securityToken) {
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getSourceBiz() const {
|
||||
return sourceBiz_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setSourceBiz(const std::string &sourceBiz) {
|
||||
sourceBiz_ = sourceBiz;
|
||||
setParameter(std::string("SourceBiz"), sourceBiz);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -70,6 +70,15 @@ void CreateGlobalDistributeCacheRequest::setSecurityToken(const std::string &sec
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string CreateGlobalDistributeCacheRequest::getEffectiveTime() const {
|
||||
return effectiveTime_;
|
||||
}
|
||||
|
||||
void CreateGlobalDistributeCacheRequest::setEffectiveTime(const std::string &effectiveTime) {
|
||||
effectiveTime_ = effectiveTime;
|
||||
setParameter(std::string("EffectiveTime"), effectiveTime);
|
||||
}
|
||||
|
||||
std::string CreateGlobalDistributeCacheRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -390,6 +390,15 @@ void CreateInstanceRequest::setGlobalInstance(bool globalInstance) {
|
||||
setParameter(std::string("GlobalInstance"), globalInstance ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getRecoverConfigMode() const {
|
||||
return recoverConfigMode_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setRecoverConfigMode(const std::string &recoverConfigMode) {
|
||||
recoverConfigMode_ = recoverConfigMode;
|
||||
setParameter(std::string("RecoverConfigMode"), recoverConfigMode);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getToken() const {
|
||||
return token_;
|
||||
}
|
||||
|
||||
144
r-kvstore/src/model/CreateParameterGroupRequest.cc
Normal file
144
r-kvstore/src/model/CreateParameterGroupRequest.cc
Normal file
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* 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/CreateParameterGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::CreateParameterGroupRequest;
|
||||
|
||||
CreateParameterGroupRequest::CreateParameterGroupRequest()
|
||||
: RpcServiceRequest("r-kvstore", "2015-01-01", "CreateParameterGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateParameterGroupRequest::~CreateParameterGroupRequest() {}
|
||||
|
||||
long CreateParameterGroupRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getEngineVersion() const {
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setEngineVersion(const std::string &engineVersion) {
|
||||
engineVersion_ = engineVersion;
|
||||
setParameter(std::string("EngineVersion"), engineVersion);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getEngineType() const {
|
||||
return engineType_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setEngineType(const std::string &engineType) {
|
||||
engineType_ = engineType;
|
||||
setParameter(std::string("EngineType"), engineType);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long CreateParameterGroupRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getCategory() const {
|
||||
return category_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setCategory(const std::string &category) {
|
||||
category_ = category;
|
||||
setParameter(std::string("Category"), category);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getParameterGroupName() const {
|
||||
return parameterGroupName_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setParameterGroupName(const std::string ¶meterGroupName) {
|
||||
parameterGroupName_ = parameterGroupName;
|
||||
setParameter(std::string("ParameterGroupName"), parameterGroupName);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getParameters() const {
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setParameters(const std::string ¶meters) {
|
||||
parameters_ = parameters;
|
||||
setParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getParameterGroupDesc() const {
|
||||
return parameterGroupDesc_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setParameterGroupDesc(const std::string ¶meterGroupDesc) {
|
||||
parameterGroupDesc_ = parameterGroupDesc;
|
||||
setParameter(std::string("ParameterGroupDesc"), parameterGroupDesc);
|
||||
}
|
||||
|
||||
51
r-kvstore/src/model/CreateParameterGroupResult.cc
Normal file
51
r-kvstore/src/model/CreateParameterGroupResult.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/CreateParameterGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
|
||||
CreateParameterGroupResult::CreateParameterGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateParameterGroupResult::CreateParameterGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateParameterGroupResult::~CreateParameterGroupResult()
|
||||
{}
|
||||
|
||||
void CreateParameterGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ParamGroupId"].isNull())
|
||||
paramGroupId_ = value["ParamGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupResult::getParamGroupId()const
|
||||
{
|
||||
return paramGroupId_;
|
||||
}
|
||||
|
||||
@@ -318,6 +318,15 @@ void CreateTairInstanceRequest::setInstanceType(const std::string &instanceType)
|
||||
setParameter(std::string("InstanceType"), instanceType);
|
||||
}
|
||||
|
||||
std::string CreateTairInstanceRequest::getRestoreTime() const {
|
||||
return restoreTime_;
|
||||
}
|
||||
|
||||
void CreateTairInstanceRequest::setRestoreTime(const std::string &restoreTime) {
|
||||
restoreTime_ = restoreTime;
|
||||
setParameter(std::string("RestoreTime"), restoreTime);
|
||||
}
|
||||
|
||||
bool CreateTairInstanceRequest::getAutoPay() const {
|
||||
return autoPay_;
|
||||
}
|
||||
@@ -354,6 +363,15 @@ void CreateTairInstanceRequest::setOwnerAccount(const std::string &ownerAccount)
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateTairInstanceRequest::getRecoverConfigMode() const {
|
||||
return recoverConfigMode_;
|
||||
}
|
||||
|
||||
void CreateTairInstanceRequest::setRecoverConfigMode(const std::string &recoverConfigMode) {
|
||||
recoverConfigMode_ = recoverConfigMode;
|
||||
setParameter(std::string("RecoverConfigMode"), recoverConfigMode);
|
||||
}
|
||||
|
||||
std::string CreateTairInstanceRequest::getGlobalInstanceId() const {
|
||||
return globalInstanceId_;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,15 @@ void DeleteAccountRequest::setSecurityToken(const std::string &securityToken) {
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteAccountRequest::getSourceBiz() const {
|
||||
return sourceBiz_;
|
||||
}
|
||||
|
||||
void DeleteAccountRequest::setSourceBiz(const std::string &sourceBiz) {
|
||||
sourceBiz_ = sourceBiz;
|
||||
setParameter(std::string("SourceBiz"), sourceBiz);
|
||||
}
|
||||
|
||||
std::string DeleteAccountRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
90
r-kvstore/src/model/DeleteParameterGroupRequest.cc
Normal file
90
r-kvstore/src/model/DeleteParameterGroupRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/DeleteParameterGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::DeleteParameterGroupRequest;
|
||||
|
||||
DeleteParameterGroupRequest::DeleteParameterGroupRequest()
|
||||
: RpcServiceRequest("r-kvstore", "2015-01-01", "DeleteParameterGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteParameterGroupRequest::~DeleteParameterGroupRequest() {}
|
||||
|
||||
long DeleteParameterGroupRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupRequest::getParameterGroupId() const {
|
||||
return parameterGroupId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setParameterGroupId(const std::string ¶meterGroupId) {
|
||||
parameterGroupId_ = parameterGroupId;
|
||||
setParameter(std::string("ParameterGroupId"), parameterGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteParameterGroupRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
r-kvstore/src/model/DeleteParameterGroupResult.cc
Normal file
51
r-kvstore/src/model/DeleteParameterGroupResult.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/DeleteParameterGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
|
||||
DeleteParameterGroupResult::DeleteParameterGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteParameterGroupResult::DeleteParameterGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteParameterGroupResult::~DeleteParameterGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteParameterGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ParamGroupId"].isNull())
|
||||
paramGroupId_ = value["ParamGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupResult::getParamGroupId()const
|
||||
{
|
||||
return paramGroupId_;
|
||||
}
|
||||
|
||||
189
r-kvstore/src/model/DescribeActiveOperationTasksRequest.cc
Normal file
189
r-kvstore/src/model/DescribeActiveOperationTasksRequest.cc
Normal file
@@ -0,0 +1,189 @@
|
||||
/*
|
||||
* 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/DescribeActiveOperationTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::DescribeActiveOperationTasksRequest;
|
||||
|
||||
DescribeActiveOperationTasksRequest::DescribeActiveOperationTasksRequest()
|
||||
: RpcServiceRequest("r-kvstore", "2015-01-01", "DescribeActiveOperationTasks") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeActiveOperationTasksRequest::~DescribeActiveOperationTasksRequest() {}
|
||||
|
||||
long DescribeActiveOperationTasksRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTasksRequest::getProductId() const {
|
||||
return productId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setProductId(const std::string &productId) {
|
||||
productId_ = productId;
|
||||
setParameter(std::string("ProductId"), productId);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTasksRequest::getChangeLevel() const {
|
||||
return changeLevel_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setChangeLevel(const std::string &changeLevel) {
|
||||
changeLevel_ = changeLevel;
|
||||
setParameter(std::string("ChangeLevel"), changeLevel);
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTasksRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTasksRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTasksRequest::getInsName() const {
|
||||
return insName_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setInsName(const std::string &insName) {
|
||||
insName_ = insName;
|
||||
setParameter(std::string("InsName"), insName);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTasksRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTasksRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTasksRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTasksRequest::getTaskType() const {
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setTaskType(const std::string &taskType) {
|
||||
taskType_ = taskType;
|
||||
setParameter(std::string("TaskType"), taskType);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTasksRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTasksRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTasksRequest::getAllowCancel() const {
|
||||
return allowCancel_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setAllowCancel(int allowCancel) {
|
||||
allowCancel_ = allowCancel;
|
||||
setParameter(std::string("AllowCancel"), std::to_string(allowCancel));
|
||||
}
|
||||
|
||||
long DescribeActiveOperationTasksRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTasksRequest::getDbType() const {
|
||||
return dbType_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setDbType(const std::string &dbType) {
|
||||
dbType_ = dbType;
|
||||
setParameter(std::string("DbType"), dbType);
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTasksRequest::getAllowChange() const {
|
||||
return allowChange_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setAllowChange(int allowChange) {
|
||||
allowChange_ = allowChange;
|
||||
setParameter(std::string("AllowChange"), std::to_string(allowChange));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTasksRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTasksRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTasksRequest::setStatus(int status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), std::to_string(status));
|
||||
}
|
||||
|
||||
133
r-kvstore/src/model/DescribeActiveOperationTasksResult.cc
Normal file
133
r-kvstore/src/model/DescribeActiveOperationTasksResult.cc
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* 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/DescribeActiveOperationTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
|
||||
DescribeActiveOperationTasksResult::DescribeActiveOperationTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeActiveOperationTasksResult::DescribeActiveOperationTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeActiveOperationTasksResult::~DescribeActiveOperationTasksResult()
|
||||
{}
|
||||
|
||||
void DescribeActiveOperationTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["ItemsItem"];
|
||||
for (auto valueItemsItemsItem : allItemsNode)
|
||||
{
|
||||
ItemsItem itemsObject;
|
||||
if(!valueItemsItemsItem["Status"].isNull())
|
||||
itemsObject.status = std::stoi(valueItemsItemsItem["Status"].asString());
|
||||
if(!valueItemsItemsItem["ChangeLevelEn"].isNull())
|
||||
itemsObject.changeLevelEn = valueItemsItemsItem["ChangeLevelEn"].asString();
|
||||
if(!valueItemsItemsItem["TaskType"].isNull())
|
||||
itemsObject.taskType = valueItemsItemsItem["TaskType"].asString();
|
||||
if(!valueItemsItemsItem["InsName"].isNull())
|
||||
itemsObject.insName = valueItemsItemsItem["InsName"].asString();
|
||||
if(!valueItemsItemsItem["Region"].isNull())
|
||||
itemsObject.region = valueItemsItemsItem["Region"].asString();
|
||||
if(!valueItemsItemsItem["ImpactZh"].isNull())
|
||||
itemsObject.impactZh = valueItemsItemsItem["ImpactZh"].asString();
|
||||
if(!valueItemsItemsItem["CreatedTime"].isNull())
|
||||
itemsObject.createdTime = valueItemsItemsItem["CreatedTime"].asString();
|
||||
if(!valueItemsItemsItem["SwitchTime"].isNull())
|
||||
itemsObject.switchTime = valueItemsItemsItem["SwitchTime"].asString();
|
||||
if(!valueItemsItemsItem["ChangeLevelZh"].isNull())
|
||||
itemsObject.changeLevelZh = valueItemsItemsItem["ChangeLevelZh"].asString();
|
||||
if(!valueItemsItemsItem["Deadline"].isNull())
|
||||
itemsObject.deadline = valueItemsItemsItem["Deadline"].asString();
|
||||
if(!valueItemsItemsItem["PrepareInterval"].isNull())
|
||||
itemsObject.prepareInterval = valueItemsItemsItem["PrepareInterval"].asString();
|
||||
if(!valueItemsItemsItem["TaskTypeZh"].isNull())
|
||||
itemsObject.taskTypeZh = valueItemsItemsItem["TaskTypeZh"].asString();
|
||||
if(!valueItemsItemsItem["CurrentAVZ"].isNull())
|
||||
itemsObject.currentAVZ = valueItemsItemsItem["CurrentAVZ"].asString();
|
||||
if(!valueItemsItemsItem["AllowChange"].isNull())
|
||||
itemsObject.allowChange = valueItemsItemsItem["AllowChange"].asString();
|
||||
if(!valueItemsItemsItem["DbVersion"].isNull())
|
||||
itemsObject.dbVersion = valueItemsItemsItem["DbVersion"].asString();
|
||||
if(!valueItemsItemsItem["ImpactEn"].isNull())
|
||||
itemsObject.impactEn = valueItemsItemsItem["ImpactEn"].asString();
|
||||
if(!valueItemsItemsItem["InsComment"].isNull())
|
||||
itemsObject.insComment = valueItemsItemsItem["InsComment"].asString();
|
||||
if(!valueItemsItemsItem["StartTime"].isNull())
|
||||
itemsObject.startTime = valueItemsItemsItem["StartTime"].asString();
|
||||
if(!valueItemsItemsItem["ModifiedTime"].isNull())
|
||||
itemsObject.modifiedTime = valueItemsItemsItem["ModifiedTime"].asString();
|
||||
if(!valueItemsItemsItem["AllowCancel"].isNull())
|
||||
itemsObject.allowCancel = valueItemsItemsItem["AllowCancel"].asString();
|
||||
if(!valueItemsItemsItem["DbType"].isNull())
|
||||
itemsObject.dbType = valueItemsItemsItem["DbType"].asString();
|
||||
if(!valueItemsItemsItem["ChangeLevel"].isNull())
|
||||
itemsObject.changeLevel = valueItemsItemsItem["ChangeLevel"].asString();
|
||||
if(!valueItemsItemsItem["TaskTypeEn"].isNull())
|
||||
itemsObject.taskTypeEn = valueItemsItemsItem["TaskTypeEn"].asString();
|
||||
if(!valueItemsItemsItem["ResultInfo"].isNull())
|
||||
itemsObject.resultInfo = valueItemsItemsItem["ResultInfo"].asString();
|
||||
if(!valueItemsItemsItem["Id"].isNull())
|
||||
itemsObject.id = std::stoi(valueItemsItemsItem["Id"].asString());
|
||||
if(!valueItemsItemsItem["TaskParams"].isNull())
|
||||
itemsObject.taskParams = valueItemsItemsItem["TaskParams"].asString();
|
||||
if(!valueItemsItemsItem["Impact"].isNull())
|
||||
itemsObject.impact = valueItemsItemsItem["Impact"].asString();
|
||||
auto allSubInsNames = value["SubInsNames"]["SubInsNames"];
|
||||
for (auto value : allSubInsNames)
|
||||
itemsObject.subInsNames.push_back(value.asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTasksResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTasksResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTasksResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeActiveOperationTasksResult::ItemsItem> DescribeActiveOperationTasksResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ void DescribeBackupTasksResult::parse(const std::string &payload)
|
||||
if(!valueBackupJobsBackupJob["JobMode"].isNull())
|
||||
backupJobsObject.jobMode = valueBackupJobsBackupJob["JobMode"].asString();
|
||||
if(!valueBackupJobsBackupJob["BackupJobID"].isNull())
|
||||
backupJobsObject.backupJobID = std::stoi(valueBackupJobsBackupJob["BackupJobID"].asString());
|
||||
backupJobsObject.backupJobID = std::stol(valueBackupJobsBackupJob["BackupJobID"].asString());
|
||||
if(!valueBackupJobsBackupJob["BackupProgressStatus"].isNull())
|
||||
backupJobsObject.backupProgressStatus = valueBackupJobsBackupJob["BackupProgressStatus"].asString();
|
||||
if(!valueBackupJobsBackupJob["NodeId"].isNull())
|
||||
|
||||
@@ -25,11 +25,11 @@ DescribeBackupsRequest::DescribeBackupsRequest()
|
||||
|
||||
DescribeBackupsRequest::~DescribeBackupsRequest() {}
|
||||
|
||||
int DescribeBackupsRequest::getBackupJobId() const {
|
||||
long DescribeBackupsRequest::getBackupJobId() const {
|
||||
return backupJobId_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setBackupJobId(int backupJobId) {
|
||||
void DescribeBackupsRequest::setBackupJobId(long backupJobId) {
|
||||
backupJobId_ = backupJobId;
|
||||
setParameter(std::string("BackupJobId"), std::to_string(backupJobId));
|
||||
}
|
||||
@@ -106,11 +106,11 @@ void DescribeBackupsRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeBackupsRequest::getBackupId() const {
|
||||
long DescribeBackupsRequest::getBackupId() const {
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setBackupId(int backupId) {
|
||||
void DescribeBackupsRequest::setBackupId(long backupId) {
|
||||
backupId_ = backupId;
|
||||
setParameter(std::string("BackupId"), std::to_string(backupId));
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ void DescribeBackupsResult::parse(const std::string &payload)
|
||||
if(!valueBackupsBackup["BackupEndTime"].isNull())
|
||||
backupsObject.backupEndTime = valueBackupsBackup["BackupEndTime"].asString();
|
||||
if(!valueBackupsBackup["BackupId"].isNull())
|
||||
backupsObject.backupId = std::stoi(valueBackupsBackup["BackupId"].asString());
|
||||
backupsObject.backupId = std::stol(valueBackupsBackup["BackupId"].asString());
|
||||
if(!valueBackupsBackup["BackupDBNames"].isNull())
|
||||
backupsObject.backupDBNames = valueBackupsBackup["BackupDBNames"].asString();
|
||||
if(!valueBackupsBackup["EngineVersion"].isNull())
|
||||
@@ -70,7 +70,9 @@ void DescribeBackupsResult::parse(const std::string &payload)
|
||||
if(!valueBackupsBackup["BackupMethod"].isNull())
|
||||
backupsObject.backupMethod = valueBackupsBackup["BackupMethod"].asString();
|
||||
if(!valueBackupsBackup["BackupJobID"].isNull())
|
||||
backupsObject.backupJobID = std::stoi(valueBackupsBackup["BackupJobID"].asString());
|
||||
backupsObject.backupJobID = std::stol(valueBackupsBackup["BackupJobID"].asString());
|
||||
if(!valueBackupsBackup["RecoverConfigMode"].isNull())
|
||||
backupsObject.recoverConfigMode = valueBackupsBackup["RecoverConfigMode"].asString();
|
||||
backups_.push_back(backupsObject);
|
||||
}
|
||||
auto accessDeniedDetailNode = value["AccessDeniedDetail"];
|
||||
@@ -94,6 +96,12 @@ void DescribeBackupsResult::parse(const std::string &payload)
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["FullStorageSize"].isNull())
|
||||
fullStorageSize_ = std::stol(value["FullStorageSize"].asString());
|
||||
if(!value["LogStorageSize"].isNull())
|
||||
logStorageSize_ = std::stol(value["LogStorageSize"].asString());
|
||||
if(!value["FreeSize"].isNull())
|
||||
freeSize_ = std::stol(value["FreeSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -117,8 +125,23 @@ int DescribeBackupsResult::getPageNumber()const
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long DescribeBackupsResult::getFreeSize()const
|
||||
{
|
||||
return freeSize_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBackupsResult::Backup> DescribeBackupsResult::getBackups()const
|
||||
{
|
||||
return backups_;
|
||||
}
|
||||
|
||||
long DescribeBackupsResult::getFullStorageSize()const
|
||||
{
|
||||
return fullStorageSize_;
|
||||
}
|
||||
|
||||
long DescribeBackupsResult::getLogStorageSize()const
|
||||
{
|
||||
return logStorageSize_;
|
||||
}
|
||||
|
||||
|
||||
@@ -73,6 +73,8 @@ void DescribeClusterBackupListResult::parse(const std::string &payload)
|
||||
backupsObject.backupDownloadURL = valueClusterBackupsclusterBackupBackupsbackup["BackupDownloadURL"].asString();
|
||||
if(!valueClusterBackupsclusterBackupBackupsbackup["BackupIntranetDownloadURL"].isNull())
|
||||
backupsObject.backupIntranetDownloadURL = valueClusterBackupsclusterBackupBackupsbackup["BackupIntranetDownloadURL"].asString();
|
||||
if(!valueClusterBackupsclusterBackupBackupsbackup["RecoverConfigMode"].isNull())
|
||||
backupsObject.recoverConfigMode = valueClusterBackupsclusterBackupBackupsbackup["RecoverConfigMode"].asString();
|
||||
if(!valueClusterBackupsclusterBackupBackupsbackup["BackupStartTime"].isNull())
|
||||
backupsObject.backupStartTime = valueClusterBackupsclusterBackupBackupsbackup["BackupStartTime"].asString();
|
||||
if(!valueClusterBackupsclusterBackupBackupsbackup["BackupEndTime"].isNull())
|
||||
@@ -109,6 +111,12 @@ void DescribeClusterBackupListResult::parse(const std::string &payload)
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["FullStorageSize"].isNull())
|
||||
fullStorageSize_ = std::stol(value["FullStorageSize"].asString());
|
||||
if(!value["LogStorageSize"].isNull())
|
||||
logStorageSize_ = std::stol(value["LogStorageSize"].asString());
|
||||
if(!value["FreeSize"].isNull())
|
||||
freeSize_ = std::stol(value["FreeSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -127,8 +135,23 @@ int DescribeClusterBackupListResult::getPageNumber()const
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long DescribeClusterBackupListResult::getFreeSize()const
|
||||
{
|
||||
return freeSize_;
|
||||
}
|
||||
|
||||
int DescribeClusterBackupListResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
long DescribeClusterBackupListResult::getFullStorageSize()const
|
||||
{
|
||||
return fullStorageSize_;
|
||||
}
|
||||
|
||||
long DescribeClusterBackupListResult::getLogStorageSize()const
|
||||
{
|
||||
return logStorageSize_;
|
||||
}
|
||||
|
||||
|
||||
@@ -113,6 +113,8 @@ void DescribeEngineVersionResult::parse(const std::string &payload)
|
||||
isNewSSLMode_ = value["IsNewSSLMode"].asString();
|
||||
if(!value["IsAutoUpgradeOpen"].isNull())
|
||||
isAutoUpgradeOpen_ = value["IsAutoUpgradeOpen"].asString();
|
||||
if(!value["IsOpenNGLB"].isNull())
|
||||
isOpenNGLB_ = value["IsOpenNGLB"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -161,6 +163,11 @@ std::string DescribeEngineVersionResult::getIsNewSSLMode()const
|
||||
return isNewSSLMode_;
|
||||
}
|
||||
|
||||
std::string DescribeEngineVersionResult::getIsOpenNGLB()const
|
||||
{
|
||||
return isOpenNGLB_;
|
||||
}
|
||||
|
||||
std::string DescribeEngineVersionResult::getIsRedisCompatibleVersion()const
|
||||
{
|
||||
return isRedisCompatibleVersion_;
|
||||
|
||||
@@ -34,6 +34,15 @@ void DescribeHistoryMonitorValuesRequest::setResourceOwnerId(long resourceOwnerI
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeHistoryMonitorValuesRequest::getNodeRole() const {
|
||||
return nodeRole_;
|
||||
}
|
||||
|
||||
void DescribeHistoryMonitorValuesRequest::setNodeRole(const std::string &nodeRole) {
|
||||
nodeRole_ = nodeRole;
|
||||
setParameter(std::string("NodeRole"), nodeRole);
|
||||
}
|
||||
|
||||
std::string DescribeHistoryMonitorValuesRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
@@ -117,6 +117,8 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.instanceStatus = valueInstancesKVStoreInstance["InstanceStatus"].asString();
|
||||
if(!valueInstancesKVStoreInstance["ProxyCount"].isNull())
|
||||
instancesObject.proxyCount = std::stoi(valueInstancesKVStoreInstance["ProxyCount"].asString());
|
||||
if(!valueInstancesKVStoreInstance["ComputingType"].isNull())
|
||||
instancesObject.computingType = valueInstancesKVStoreInstance["ComputingType"].asString();
|
||||
if(!valueInstancesKVStoreInstance["CloudType"].isNull())
|
||||
instancesObject.cloudType = valueInstancesKVStoreInstance["CloudType"].asString();
|
||||
if(!valueInstancesKVStoreInstance["EditionType"].isNull())
|
||||
|
||||
99
r-kvstore/src/model/DescribeParameterGroupRequest.cc
Normal file
99
r-kvstore/src/model/DescribeParameterGroupRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/DescribeParameterGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::DescribeParameterGroupRequest;
|
||||
|
||||
DescribeParameterGroupRequest::DescribeParameterGroupRequest()
|
||||
: RpcServiceRequest("r-kvstore", "2015-01-01", "DescribeParameterGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeParameterGroupRequest::~DescribeParameterGroupRequest() {}
|
||||
|
||||
long DescribeParameterGroupRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getParameterGroupId() const {
|
||||
return parameterGroupId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setParameterGroupId(const std::string ¶meterGroupId) {
|
||||
parameterGroupId_ = parameterGroupId;
|
||||
setParameter(std::string("ParameterGroupId"), parameterGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeParameterGroupRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
76
r-kvstore/src/model/DescribeParameterGroupResult.cc
Normal file
76
r-kvstore/src/model/DescribeParameterGroupResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/DescribeParameterGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
|
||||
DescribeParameterGroupResult::DescribeParameterGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeParameterGroupResult::DescribeParameterGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeParameterGroupResult::~DescribeParameterGroupResult()
|
||||
{}
|
||||
|
||||
void DescribeParameterGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto parameterGroupNode = value["ParameterGroup"];
|
||||
if(!parameterGroupNode["EngineVersion"].isNull())
|
||||
parameterGroup_.engineVersion = parameterGroupNode["EngineVersion"].asString();
|
||||
if(!parameterGroupNode["Modified"].isNull())
|
||||
parameterGroup_.modified = parameterGroupNode["Modified"].asString();
|
||||
if(!parameterGroupNode["ParameterGroupName"].isNull())
|
||||
parameterGroup_.parameterGroupName = parameterGroupNode["ParameterGroupName"].asString();
|
||||
if(!parameterGroupNode["ParameterGroupDesc"].isNull())
|
||||
parameterGroup_.parameterGroupDesc = parameterGroupNode["ParameterGroupDesc"].asString();
|
||||
if(!parameterGroupNode["Engine"].isNull())
|
||||
parameterGroup_.engine = parameterGroupNode["Engine"].asString();
|
||||
if(!parameterGroupNode["ParamGroupId"].isNull())
|
||||
parameterGroup_.paramGroupId = parameterGroupNode["ParamGroupId"].asString();
|
||||
if(!parameterGroupNode["Created"].isNull())
|
||||
parameterGroup_.created = parameterGroupNode["Created"].asString();
|
||||
if(!parameterGroupNode["Category"].isNull())
|
||||
parameterGroup_.category = std::stol(parameterGroupNode["Category"].asString());
|
||||
auto allParamGroupsDetailsNode = parameterGroupNode["ParamGroupsDetails"]["ParamGroupDetail"];
|
||||
for (auto parameterGroupNodeParamGroupsDetailsParamGroupDetail : allParamGroupsDetailsNode)
|
||||
{
|
||||
ParameterGroup::ParamGroupDetail paramGroupDetailObject;
|
||||
if(!parameterGroupNodeParamGroupsDetailsParamGroupDetail["ParamName"].isNull())
|
||||
paramGroupDetailObject.paramName = parameterGroupNodeParamGroupsDetailsParamGroupDetail["ParamName"].asString();
|
||||
if(!parameterGroupNodeParamGroupsDetailsParamGroupDetail["ParamValue"].isNull())
|
||||
paramGroupDetailObject.paramValue = parameterGroupNodeParamGroupsDetailsParamGroupDetail["ParamValue"].asString();
|
||||
parameterGroup_.paramGroupsDetails.push_back(paramGroupDetailObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeParameterGroupResult::ParameterGroup DescribeParameterGroupResult::getParameterGroup()const
|
||||
{
|
||||
return parameterGroup_;
|
||||
}
|
||||
|
||||
108
r-kvstore/src/model/DescribeParameterGroupSupportParamRequest.cc
Normal file
108
r-kvstore/src/model/DescribeParameterGroupSupportParamRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/DescribeParameterGroupSupportParamRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::DescribeParameterGroupSupportParamRequest;
|
||||
|
||||
DescribeParameterGroupSupportParamRequest::DescribeParameterGroupSupportParamRequest()
|
||||
: RpcServiceRequest("r-kvstore", "2015-01-01", "DescribeParameterGroupSupportParam") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeParameterGroupSupportParamRequest::~DescribeParameterGroupSupportParamRequest() {}
|
||||
|
||||
long DescribeParameterGroupSupportParamRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupSupportParamRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupSupportParamRequest::getEngineVersion() const {
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupSupportParamRequest::setEngineVersion(const std::string &engineVersion) {
|
||||
engineVersion_ = engineVersion;
|
||||
setParameter(std::string("EngineVersion"), engineVersion);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupSupportParamRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupSupportParamRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupSupportParamRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupSupportParamRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupSupportParamRequest::getEngineType() const {
|
||||
return engineType_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupSupportParamRequest::setEngineType(const std::string &engineType) {
|
||||
engineType_ = engineType;
|
||||
setParameter(std::string("EngineType"), engineType);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupSupportParamRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupSupportParamRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupSupportParamRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupSupportParamRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeParameterGroupSupportParamRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupSupportParamRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupSupportParamRequest::getCategory() const {
|
||||
return category_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupSupportParamRequest::setCategory(const std::string &category) {
|
||||
category_ = category;
|
||||
setParameter(std::string("Category"), category);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/DescribeParameterGroupSupportParamResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
|
||||
DescribeParameterGroupSupportParamResult::DescribeParameterGroupSupportParamResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeParameterGroupSupportParamResult::DescribeParameterGroupSupportParamResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeParameterGroupSupportParamResult::~DescribeParameterGroupSupportParamResult()
|
||||
{}
|
||||
|
||||
void DescribeParameterGroupSupportParamResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResourceListNode = value["ResourceList"]["ResourceListItem"];
|
||||
for (auto valueResourceListResourceListItem : allResourceListNode)
|
||||
{
|
||||
ResourceListItem resourceListObject;
|
||||
if(!valueResourceListResourceListItem["DbType"].isNull())
|
||||
resourceListObject.dbType = valueResourceListResourceListItem["DbType"].asString();
|
||||
if(!valueResourceListResourceListItem["DbVersion"].isNull())
|
||||
resourceListObject.dbVersion = valueResourceListResourceListItem["DbVersion"].asString();
|
||||
if(!valueResourceListResourceListItem["Category"].isNull())
|
||||
resourceListObject.category = valueResourceListResourceListItem["Category"].asString();
|
||||
if(!valueResourceListResourceListItem["ParamName"].isNull())
|
||||
resourceListObject.paramName = valueResourceListResourceListItem["ParamName"].asString();
|
||||
resourceList_.push_back(resourceListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeParameterGroupSupportParamResult::ResourceListItem> DescribeParameterGroupSupportParamResult::getResourceList()const
|
||||
{
|
||||
return resourceList_;
|
||||
}
|
||||
|
||||
117
r-kvstore/src/model/DescribeParameterGroupTemplateListRequest.cc
Normal file
117
r-kvstore/src/model/DescribeParameterGroupTemplateListRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/DescribeParameterGroupTemplateListRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::DescribeParameterGroupTemplateListRequest;
|
||||
|
||||
DescribeParameterGroupTemplateListRequest::DescribeParameterGroupTemplateListRequest()
|
||||
: RpcServiceRequest("r-kvstore", "2015-01-01", "DescribeParameterGroupTemplateList") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeParameterGroupTemplateListRequest::~DescribeParameterGroupTemplateListRequest() {}
|
||||
|
||||
long DescribeParameterGroupTemplateListRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupTemplateListRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupTemplateListRequest::getEngineVersion() const {
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupTemplateListRequest::setEngineVersion(const std::string &engineVersion) {
|
||||
engineVersion_ = engineVersion;
|
||||
setParameter(std::string("EngineVersion"), engineVersion);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupTemplateListRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupTemplateListRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupTemplateListRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupTemplateListRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupTemplateListRequest::getEngineType() const {
|
||||
return engineType_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupTemplateListRequest::setEngineType(const std::string &engineType) {
|
||||
engineType_ = engineType;
|
||||
setParameter(std::string("EngineType"), engineType);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupTemplateListRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupTemplateListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupTemplateListRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupTemplateListRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeParameterGroupTemplateListRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupTemplateListRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupTemplateListRequest::getCategory() const {
|
||||
return category_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupTemplateListRequest::setCategory(const std::string &category) {
|
||||
category_ = category;
|
||||
setParameter(std::string("Category"), category);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupTemplateListRequest::getCharacterType() const {
|
||||
return characterType_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupTemplateListRequest::setCharacterType(const std::string &characterType) {
|
||||
characterType_ = characterType;
|
||||
setParameter(std::string("CharacterType"), characterType);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/DescribeParameterGroupTemplateListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
|
||||
DescribeParameterGroupTemplateListResult::DescribeParameterGroupTemplateListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeParameterGroupTemplateListResult::DescribeParameterGroupTemplateListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeParameterGroupTemplateListResult::~DescribeParameterGroupTemplateListResult()
|
||||
{}
|
||||
|
||||
void DescribeParameterGroupTemplateListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParametersNode = value["Parameters"]["ParametersItem"];
|
||||
for (auto valueParametersParametersItem : allParametersNode)
|
||||
{
|
||||
ParametersItem parametersObject;
|
||||
if(!valueParametersParametersItem["SupportModifyForMinorVersion"].isNull())
|
||||
parametersObject.supportModifyForMinorVersion = valueParametersParametersItem["SupportModifyForMinorVersion"].asString() == "true";
|
||||
if(!valueParametersParametersItem["CheckingCode"].isNull())
|
||||
parametersObject.checkingCode = valueParametersParametersItem["CheckingCode"].asString();
|
||||
if(!valueParametersParametersItem["ParameterValue"].isNull())
|
||||
parametersObject.parameterValue = valueParametersParametersItem["ParameterValue"].asString();
|
||||
if(!valueParametersParametersItem["Revisable"].isNull())
|
||||
parametersObject.revisable = std::stol(valueParametersParametersItem["Revisable"].asString());
|
||||
if(!valueParametersParametersItem["Factor"].isNull())
|
||||
parametersObject.factor = std::stol(valueParametersParametersItem["Factor"].asString());
|
||||
if(!valueParametersParametersItem["ParameterName"].isNull())
|
||||
parametersObject.parameterName = valueParametersParametersItem["ParameterName"].asString();
|
||||
if(!valueParametersParametersItem["Unit"].isNull())
|
||||
parametersObject.unit = valueParametersParametersItem["Unit"].asString();
|
||||
if(!valueParametersParametersItem["ParameterDescription"].isNull())
|
||||
parametersObject.parameterDescription = valueParametersParametersItem["ParameterDescription"].asString();
|
||||
if(!valueParametersParametersItem["Effective"].isNull())
|
||||
parametersObject.effective = std::stol(valueParametersParametersItem["Effective"].asString());
|
||||
parameters_.push_back(parametersObject);
|
||||
}
|
||||
if(!value["EngineVersion"].isNull())
|
||||
engineVersion_ = value["EngineVersion"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeParameterGroupTemplateListResult::ParametersItem> DescribeParameterGroupTemplateListResult::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupTemplateListResult::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
99
r-kvstore/src/model/DescribeParameterGroupsRequest.cc
Normal file
99
r-kvstore/src/model/DescribeParameterGroupsRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/DescribeParameterGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::DescribeParameterGroupsRequest;
|
||||
|
||||
DescribeParameterGroupsRequest::DescribeParameterGroupsRequest()
|
||||
: RpcServiceRequest("r-kvstore", "2015-01-01", "DescribeParameterGroups") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeParameterGroupsRequest::~DescribeParameterGroupsRequest() {}
|
||||
|
||||
long DescribeParameterGroupsRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupsRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupsRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupsRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeParameterGroupsRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupsRequest::getDbType() const {
|
||||
return dbType_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setDbType(const std::string &dbType) {
|
||||
dbType_ = dbType;
|
||||
setParameter(std::string("DbType"), dbType);
|
||||
}
|
||||
|
||||
71
r-kvstore/src/model/DescribeParameterGroupsResult.cc
Normal file
71
r-kvstore/src/model/DescribeParameterGroupsResult.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/DescribeParameterGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
|
||||
DescribeParameterGroupsResult::DescribeParameterGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeParameterGroupsResult::DescribeParameterGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeParameterGroupsResult::~DescribeParameterGroupsResult()
|
||||
{}
|
||||
|
||||
void DescribeParameterGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParameterGroupsNode = value["ParameterGroups"]["ParameterGroup"];
|
||||
for (auto valueParameterGroupsParameterGroup : allParameterGroupsNode)
|
||||
{
|
||||
ParameterGroup parameterGroupsObject;
|
||||
if(!valueParameterGroupsParameterGroup["EngineVersion"].isNull())
|
||||
parameterGroupsObject.engineVersion = valueParameterGroupsParameterGroup["EngineVersion"].asString();
|
||||
if(!valueParameterGroupsParameterGroup["Modified"].isNull())
|
||||
parameterGroupsObject.modified = valueParameterGroupsParameterGroup["Modified"].asString();
|
||||
if(!valueParameterGroupsParameterGroup["ParameterGroupName"].isNull())
|
||||
parameterGroupsObject.parameterGroupName = valueParameterGroupsParameterGroup["ParameterGroupName"].asString();
|
||||
if(!valueParameterGroupsParameterGroup["ParameterGroupDesc"].isNull())
|
||||
parameterGroupsObject.parameterGroupDesc = valueParameterGroupsParameterGroup["ParameterGroupDesc"].asString();
|
||||
if(!valueParameterGroupsParameterGroup["Engine"].isNull())
|
||||
parameterGroupsObject.engine = valueParameterGroupsParameterGroup["Engine"].asString();
|
||||
if(!valueParameterGroupsParameterGroup["ParamGroupId"].isNull())
|
||||
parameterGroupsObject.paramGroupId = valueParameterGroupsParameterGroup["ParamGroupId"].asString();
|
||||
if(!valueParameterGroupsParameterGroup["Created"].isNull())
|
||||
parameterGroupsObject.created = valueParameterGroupsParameterGroup["Created"].asString();
|
||||
if(!valueParameterGroupsParameterGroup["Category"].isNull())
|
||||
parameterGroupsObject.category = std::stol(valueParameterGroupsParameterGroup["Category"].asString());
|
||||
parameterGroups_.push_back(parameterGroupsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeParameterGroupsResult::ParameterGroup> DescribeParameterGroupsResult::getParameterGroups()const
|
||||
{
|
||||
return parameterGroups_;
|
||||
}
|
||||
|
||||
@@ -63,6 +63,158 @@ void DescribePriceResult::parse(const std::string &payload)
|
||||
subOrdersObject.discountAmount = valueSubOrdersSubOrder["DiscountAmount"].asString();
|
||||
if(!valueSubOrdersSubOrder["TradeAmount"].isNull())
|
||||
subOrdersObject.tradeAmount = valueSubOrdersSubOrder["TradeAmount"].asString();
|
||||
if(!valueSubOrdersSubOrder["StandDiscountPrice"].isNull())
|
||||
subOrdersObject.standDiscountPrice = std::stol(valueSubOrdersSubOrder["StandDiscountPrice"].asString());
|
||||
if(!valueSubOrdersSubOrder["IsContractActivity"].isNull())
|
||||
subOrdersObject.isContractActivity = valueSubOrdersSubOrder["IsContractActivity"].asString() == "true";
|
||||
if(!valueSubOrdersSubOrder["StandPrice"].isNull())
|
||||
subOrdersObject.standPrice = std::stol(valueSubOrdersSubOrder["StandPrice"].asString());
|
||||
if(!valueSubOrdersSubOrder["ContractActivity"].isNull())
|
||||
subOrdersObject.contractActivity = valueSubOrdersSubOrder["ContractActivity"].asString() == "true";
|
||||
auto allOptionalPromotionsNode = valueSubOrdersSubOrder["OptionalPromotions"]["OptionalPromotion"];
|
||||
for (auto valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion : allOptionalPromotionsNode)
|
||||
{
|
||||
SubOrder::OptionalPromotion optionalPromotionsObject;
|
||||
if(!valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["Selected"].isNull())
|
||||
optionalPromotionsObject.selected = valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["Selected"].asString() == "true";
|
||||
if(!valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["CouponNo"].isNull())
|
||||
optionalPromotionsObject.couponNo = valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["CouponNo"].asString();
|
||||
if(!valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["Name"].isNull())
|
||||
optionalPromotionsObject.name = valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["Name"].asString();
|
||||
if(!valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["Description"].isNull())
|
||||
optionalPromotionsObject.description = valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["Description"].asString();
|
||||
if(!valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["Show"].isNull())
|
||||
optionalPromotionsObject.show = valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["Show"].asString() == "true";
|
||||
if(!valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["ActivityExtInfo"].isNull())
|
||||
optionalPromotionsObject.activityExtInfo = valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["ActivityExtInfo"].asString();
|
||||
if(!valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["OptionCode"].isNull())
|
||||
optionalPromotionsObject.optionCode = valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["OptionCode"].asString();
|
||||
if(!valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["PromotionName"].isNull())
|
||||
optionalPromotionsObject.promotionName = valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["PromotionName"].asString();
|
||||
if(!valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["PromotionOptionNo"].isNull())
|
||||
optionalPromotionsObject.promotionOptionNo = valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["PromotionOptionNo"].asString();
|
||||
if(!valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["CanPromFee"].isNull())
|
||||
optionalPromotionsObject.canPromFee = valueSubOrdersSubOrderOptionalPromotionsOptionalPromotion["CanPromFee"].asString();
|
||||
subOrdersObject.optionalPromotions.push_back(optionalPromotionsObject);
|
||||
}
|
||||
auto allModuleInstanceNode = valueSubOrdersSubOrder["ModuleInstance"]["ModuleInstanceItem"];
|
||||
for (auto valueSubOrdersSubOrderModuleInstanceModuleInstanceItem : allModuleInstanceNode)
|
||||
{
|
||||
SubOrder::ModuleInstanceItem moduleInstanceObject;
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["ModuleCode"].isNull())
|
||||
moduleInstanceObject.moduleCode = valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["ModuleCode"].asString();
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["ModuleId"].isNull())
|
||||
moduleInstanceObject.moduleId = valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["ModuleId"].asString();
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["StandPrice"].isNull())
|
||||
moduleInstanceObject.standPrice = valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["StandPrice"].asString();
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["PricingModule"].isNull())
|
||||
moduleInstanceObject.pricingModule = valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["PricingModule"].asString() == "true";
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["ModuleName"].isNull())
|
||||
moduleInstanceObject.moduleName = valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["ModuleName"].asString();
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["DiscountFee"].isNull())
|
||||
moduleInstanceObject.discountFee = valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["DiscountFee"].asString();
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["TotalProductFee"].isNull())
|
||||
moduleInstanceObject.totalProductFee = valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["TotalProductFee"].asString();
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["NeedOrderPay"].isNull())
|
||||
moduleInstanceObject.needOrderPay = valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["NeedOrderPay"].asString() == "true";
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["PayFee"].isNull())
|
||||
moduleInstanceObject.payFee = valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["PayFee"].asString();
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["ContractActivity"].isNull())
|
||||
moduleInstanceObject.contractActivity = valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["ContractActivity"].asString() == "true";
|
||||
auto allModuleAttrsNode = valueSubOrdersSubOrderModuleInstanceModuleInstanceItem["ModuleAttrs"]["moduleAttr"];
|
||||
for (auto valueSubOrdersSubOrderModuleInstanceModuleInstanceItemModuleAttrsmoduleAttr : allModuleAttrsNode)
|
||||
{
|
||||
SubOrder::ModuleInstanceItem::ModuleAttr moduleAttrsObject;
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItemModuleAttrsmoduleAttr["Type"].isNull())
|
||||
moduleAttrsObject.type = std::stol(valueSubOrdersSubOrderModuleInstanceModuleInstanceItemModuleAttrsmoduleAttr["Type"].asString());
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItemModuleAttrsmoduleAttr["Value"].isNull())
|
||||
moduleAttrsObject.value = valueSubOrdersSubOrderModuleInstanceModuleInstanceItemModuleAttrsmoduleAttr["Value"].asString();
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItemModuleAttrsmoduleAttr["Code"].isNull())
|
||||
moduleAttrsObject.code = valueSubOrdersSubOrderModuleInstanceModuleInstanceItemModuleAttrsmoduleAttr["Code"].asString();
|
||||
if(!valueSubOrdersSubOrderModuleInstanceModuleInstanceItemModuleAttrsmoduleAttr["Name"].isNull())
|
||||
moduleAttrsObject.name = valueSubOrdersSubOrderModuleInstanceModuleInstanceItemModuleAttrsmoduleAttr["Name"].asString();
|
||||
moduleInstanceObject.moduleAttrs.push_back(moduleAttrsObject);
|
||||
}
|
||||
auto depreciateInfo1Node = value["DepreciateInfo"];
|
||||
if(!depreciateInfo1Node["ListPrice"].isNull())
|
||||
moduleInstanceObject.depreciateInfo1.listPrice = depreciateInfo1Node["ListPrice"].asString();
|
||||
if(!depreciateInfo1Node["OriginalStandAmount"].isNull())
|
||||
moduleInstanceObject.depreciateInfo1.originalStandAmount = depreciateInfo1Node["OriginalStandAmount"].asString();
|
||||
if(!depreciateInfo1Node["CheapStandAmount"].isNull())
|
||||
moduleInstanceObject.depreciateInfo1.cheapStandAmount = depreciateInfo1Node["CheapStandAmount"].asString();
|
||||
if(!depreciateInfo1Node["CheapRate"].isNull())
|
||||
moduleInstanceObject.depreciateInfo1.cheapRate = depreciateInfo1Node["CheapRate"].asString();
|
||||
if(!depreciateInfo1Node["Differential"].isNull())
|
||||
moduleInstanceObject.depreciateInfo1.differential = depreciateInfo1Node["Differential"].asString();
|
||||
if(!depreciateInfo1Node["DifferentialName"].isNull())
|
||||
moduleInstanceObject.depreciateInfo1.differentialName = depreciateInfo1Node["DifferentialName"].asString();
|
||||
if(!depreciateInfo1Node["MonthPrice"].isNull())
|
||||
moduleInstanceObject.depreciateInfo1.monthPrice = depreciateInfo1Node["MonthPrice"].asString();
|
||||
if(!depreciateInfo1Node["IsContractActivity"].isNull())
|
||||
moduleInstanceObject.depreciateInfo1.isContractActivity = depreciateInfo1Node["IsContractActivity"].asString() == "true";
|
||||
if(!depreciateInfo1Node["IsShow"].isNull())
|
||||
moduleInstanceObject.depreciateInfo1.isShow = depreciateInfo1Node["IsShow"].asString() == "true";
|
||||
if(!depreciateInfo1Node["StartTime"].isNull())
|
||||
moduleInstanceObject.depreciateInfo1.startTime = depreciateInfo1Node["StartTime"].asString();
|
||||
subOrdersObject.moduleInstance.push_back(moduleInstanceObject);
|
||||
}
|
||||
auto allPromDetailListNode = valueSubOrdersSubOrder["PromDetailList"]["PromDetail"];
|
||||
for (auto valueSubOrdersSubOrderPromDetailListPromDetail : allPromDetailListNode)
|
||||
{
|
||||
SubOrder::PromDetail promDetailListObject;
|
||||
if(!valueSubOrdersSubOrderPromDetailListPromDetail["PromotionName"].isNull())
|
||||
promDetailListObject.promotionName = valueSubOrdersSubOrderPromDetailListPromDetail["PromotionName"].asString();
|
||||
if(!valueSubOrdersSubOrderPromDetailListPromDetail["PromotionId"].isNull())
|
||||
promDetailListObject.promotionId = std::stol(valueSubOrdersSubOrderPromDetailListPromDetail["PromotionId"].asString());
|
||||
if(!valueSubOrdersSubOrderPromDetailListPromDetail["FinalPromFee"].isNull())
|
||||
promDetailListObject.finalPromFee = valueSubOrdersSubOrderPromDetailListPromDetail["FinalPromFee"].asString();
|
||||
if(!valueSubOrdersSubOrderPromDetailListPromDetail["OptionCode"].isNull())
|
||||
promDetailListObject.optionCode = valueSubOrdersSubOrderPromDetailListPromDetail["OptionCode"].asString();
|
||||
if(!valueSubOrdersSubOrderPromDetailListPromDetail["PromType"].isNull())
|
||||
promDetailListObject.promType = valueSubOrdersSubOrderPromDetailListPromDetail["PromType"].asString();
|
||||
if(!valueSubOrdersSubOrderPromDetailListPromDetail["ActivityExtInfo"].isNull())
|
||||
promDetailListObject.activityExtInfo = valueSubOrdersSubOrderPromDetailListPromDetail["ActivityExtInfo"].asString();
|
||||
if(!valueSubOrdersSubOrderPromDetailListPromDetail["DerivedPromType"].isNull())
|
||||
promDetailListObject.derivedPromType = valueSubOrdersSubOrderPromDetailListPromDetail["DerivedPromType"].asString();
|
||||
if(!valueSubOrdersSubOrderPromDetailListPromDetail["PromotionCode"].isNull())
|
||||
promDetailListObject.promotionCode = valueSubOrdersSubOrderPromDetailListPromDetail["PromotionCode"].asString();
|
||||
subOrdersObject.promDetailList.push_back(promDetailListObject);
|
||||
}
|
||||
auto depreciateInfoNode = value["DepreciateInfo"];
|
||||
if(!depreciateInfoNode["ListPrice"].isNull())
|
||||
subOrdersObject.depreciateInfo.listPrice = std::stol(depreciateInfoNode["ListPrice"].asString());
|
||||
if(!depreciateInfoNode["OriginalStandAmount"].isNull())
|
||||
subOrdersObject.depreciateInfo.originalStandAmount = std::stol(depreciateInfoNode["OriginalStandAmount"].asString());
|
||||
if(!depreciateInfoNode["CheapStandAmount"].isNull())
|
||||
subOrdersObject.depreciateInfo.cheapStandAmount = std::stol(depreciateInfoNode["CheapStandAmount"].asString());
|
||||
if(!depreciateInfoNode["CheapRate"].isNull())
|
||||
subOrdersObject.depreciateInfo.cheapRate = std::stol(depreciateInfoNode["CheapRate"].asString());
|
||||
if(!depreciateInfoNode["Differential"].isNull())
|
||||
subOrdersObject.depreciateInfo.differential = std::stol(depreciateInfoNode["Differential"].asString());
|
||||
if(!depreciateInfoNode["DifferentialName"].isNull())
|
||||
subOrdersObject.depreciateInfo.differentialName = depreciateInfoNode["DifferentialName"].asString();
|
||||
if(!depreciateInfoNode["MonthPrice"].isNull())
|
||||
subOrdersObject.depreciateInfo.monthPrice = std::stol(depreciateInfoNode["MonthPrice"].asString());
|
||||
if(!depreciateInfoNode["IsContractActivity"].isNull())
|
||||
subOrdersObject.depreciateInfo.isContractActivity = depreciateInfoNode["IsContractActivity"].asString() == "true";
|
||||
if(!depreciateInfoNode["StartTime"].isNull())
|
||||
subOrdersObject.depreciateInfo.startTime = depreciateInfoNode["StartTime"].asString();
|
||||
auto contractActivityNode = depreciateInfoNode["ContractActivity"];
|
||||
if(!contractActivityNode["FinalPromFee"].isNull())
|
||||
subOrdersObject.depreciateInfo.contractActivity.finalPromFee = contractActivityNode["FinalPromFee"].asString();
|
||||
if(!contractActivityNode["FinalFee"].isNull())
|
||||
subOrdersObject.depreciateInfo.contractActivity.finalFee = contractActivityNode["FinalFee"].asString();
|
||||
if(!contractActivityNode["ProdFee"].isNull())
|
||||
subOrdersObject.depreciateInfo.contractActivity.prodFee = contractActivityNode["ProdFee"].asString();
|
||||
if(!contractActivityNode["ActivityId"].isNull())
|
||||
subOrdersObject.depreciateInfo.contractActivity.activityId = std::stol(contractActivityNode["ActivityId"].asString());
|
||||
if(!contractActivityNode["OptionCode"].isNull())
|
||||
subOrdersObject.depreciateInfo.contractActivity.optionCode = contractActivityNode["OptionCode"].asString();
|
||||
if(!contractActivityNode["ActivityName"].isNull())
|
||||
subOrdersObject.depreciateInfo.contractActivity.activityName = contractActivityNode["ActivityName"].asString();
|
||||
auto allOptionIds = contractActivityNode["OptionIds"]["OptionId"];
|
||||
for (auto value : allOptionIds)
|
||||
subOrdersObject.depreciateInfo.contractActivity.optionIds.push_back(value.asString());
|
||||
auto allRuleIds = value["RuleIds"]["RuleId"];
|
||||
for (auto value : allRuleIds)
|
||||
subOrdersObject.ruleIds.push_back(value.asString());
|
||||
@@ -81,6 +233,16 @@ void DescribePriceResult::parse(const std::string &payload)
|
||||
order_.tradeAmount = orderNode["TradeAmount"].asString();
|
||||
if(!orderNode["ShowDiscountInfo"].isNull())
|
||||
order_.showDiscountInfo = orderNode["ShowDiscountInfo"].asString() == "true";
|
||||
if(!orderNode["StandDiscountPrice"].isNull())
|
||||
order_.standDiscountPrice = std::stol(orderNode["StandDiscountPrice"].asString());
|
||||
if(!orderNode["IsContractActivity"].isNull())
|
||||
order_.isContractActivity = orderNode["IsContractActivity"].asString() == "true";
|
||||
if(!orderNode["StandPrice"].isNull())
|
||||
order_.standPrice = std::stol(orderNode["StandPrice"].asString());
|
||||
if(!orderNode["Code"].isNull())
|
||||
order_.code = orderNode["Code"].asString();
|
||||
if(!orderNode["Message"].isNull())
|
||||
order_.message = orderNode["Message"].asString();
|
||||
auto allCouponsNode = orderNode["Coupons"]["Coupon"];
|
||||
for (auto orderNodeCouponsCoupon : allCouponsNode)
|
||||
{
|
||||
@@ -95,9 +257,44 @@ void DescribePriceResult::parse(const std::string &payload)
|
||||
couponObject.description = orderNodeCouponsCoupon["Description"].asString();
|
||||
order_.coupons.push_back(couponObject);
|
||||
}
|
||||
auto allRuleIds1 = orderNode["RuleIds"]["RuleId"];
|
||||
for (auto value : allRuleIds1)
|
||||
order_.ruleIds1.push_back(value.asString());
|
||||
auto depreciateInfo3Node = orderNode["DepreciateInfo"];
|
||||
if(!depreciateInfo3Node["ListPrice"].isNull())
|
||||
order_.depreciateInfo3.listPrice = std::stol(depreciateInfo3Node["ListPrice"].asString());
|
||||
if(!depreciateInfo3Node["OriginalStandAmount"].isNull())
|
||||
order_.depreciateInfo3.originalStandAmount = std::stol(depreciateInfo3Node["OriginalStandAmount"].asString());
|
||||
if(!depreciateInfo3Node["CheapStandAmount"].isNull())
|
||||
order_.depreciateInfo3.cheapStandAmount = std::stol(depreciateInfo3Node["CheapStandAmount"].asString());
|
||||
if(!depreciateInfo3Node["CheapRate"].isNull())
|
||||
order_.depreciateInfo3.cheapRate = std::stol(depreciateInfo3Node["CheapRate"].asString());
|
||||
if(!depreciateInfo3Node["Differential"].isNull())
|
||||
order_.depreciateInfo3.differential = std::stol(depreciateInfo3Node["Differential"].asString());
|
||||
if(!depreciateInfo3Node["DifferentialName"].isNull())
|
||||
order_.depreciateInfo3.differentialName = depreciateInfo3Node["DifferentialName"].asString();
|
||||
if(!depreciateInfo3Node["MonthPrice"].isNull())
|
||||
order_.depreciateInfo3.monthPrice = std::stol(depreciateInfo3Node["MonthPrice"].asString());
|
||||
if(!depreciateInfo3Node["IsContractActivity"].isNull())
|
||||
order_.depreciateInfo3.isContractActivity = depreciateInfo3Node["IsContractActivity"].asString() == "true";
|
||||
if(!depreciateInfo3Node["IsShow"].isNull())
|
||||
order_.depreciateInfo3.isShow = depreciateInfo3Node["IsShow"].asString() == "true";
|
||||
auto contractActivity4Node = depreciateInfo3Node["ContractActivity"];
|
||||
if(!contractActivity4Node["FinalPromFee"].isNull())
|
||||
order_.depreciateInfo3.contractActivity4.finalPromFee = contractActivity4Node["FinalPromFee"].asString();
|
||||
if(!contractActivity4Node["FinalFee"].isNull())
|
||||
order_.depreciateInfo3.contractActivity4.finalFee = contractActivity4Node["FinalFee"].asString();
|
||||
if(!contractActivity4Node["ProdFee"].isNull())
|
||||
order_.depreciateInfo3.contractActivity4.prodFee = contractActivity4Node["ProdFee"].asString();
|
||||
if(!contractActivity4Node["ActivityId"].isNull())
|
||||
order_.depreciateInfo3.contractActivity4.activityId = std::stol(contractActivity4Node["ActivityId"].asString());
|
||||
if(!contractActivity4Node["OptionCode"].isNull())
|
||||
order_.depreciateInfo3.contractActivity4.optionCode = contractActivity4Node["OptionCode"].asString();
|
||||
if(!contractActivity4Node["ActivityName"].isNull())
|
||||
order_.depreciateInfo3.contractActivity4.activityName = contractActivity4Node["ActivityName"].asString();
|
||||
auto allOptionIds5 = contractActivity4Node["OptionIds"]["OptionId"];
|
||||
for (auto value : allOptionIds5)
|
||||
order_.depreciateInfo3.contractActivity4.optionIds5.push_back(value.asString());
|
||||
auto allRuleIds2 = orderNode["RuleIds"]["RuleId"];
|
||||
for (auto value : allRuleIds2)
|
||||
order_.ruleIds2.push_back(value.asString());
|
||||
if(!value["OrderParams"].isNull())
|
||||
orderParams_ = value["OrderParams"].asString();
|
||||
|
||||
|
||||
@@ -70,6 +70,15 @@ void GrantAccountPrivilegeRequest::setSecurityToken(const std::string &securityT
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string GrantAccountPrivilegeRequest::getSourceBiz() const {
|
||||
return sourceBiz_;
|
||||
}
|
||||
|
||||
void GrantAccountPrivilegeRequest::setSourceBiz(const std::string &sourceBiz) {
|
||||
sourceBiz_ = sourceBiz;
|
||||
setParameter(std::string("SourceBiz"), sourceBiz);
|
||||
}
|
||||
|
||||
std::string GrantAccountPrivilegeRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -70,6 +70,15 @@ void ModifyAccountDescriptionRequest::setSecurityToken(const std::string &securi
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyAccountDescriptionRequest::getSourceBiz() const {
|
||||
return sourceBiz_;
|
||||
}
|
||||
|
||||
void ModifyAccountDescriptionRequest::setSourceBiz(const std::string &sourceBiz) {
|
||||
sourceBiz_ = sourceBiz;
|
||||
setParameter(std::string("SourceBiz"), sourceBiz);
|
||||
}
|
||||
|
||||
std::string ModifyAccountDescriptionRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -70,6 +70,15 @@ void ModifyAccountPasswordRequest::setSecurityToken(const std::string &securityT
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyAccountPasswordRequest::getSourceBiz() const {
|
||||
return sourceBiz_;
|
||||
}
|
||||
|
||||
void ModifyAccountPasswordRequest::setSourceBiz(const std::string &sourceBiz) {
|
||||
sourceBiz_ = sourceBiz;
|
||||
setParameter(std::string("SourceBiz"), sourceBiz);
|
||||
}
|
||||
|
||||
std::string ModifyAccountPasswordRequest::getOldAccountPassword() const {
|
||||
return oldAccountPassword_;
|
||||
}
|
||||
|
||||
117
r-kvstore/src/model/ModifyActiveOperationTasksRequest.cc
Normal file
117
r-kvstore/src/model/ModifyActiveOperationTasksRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/ModifyActiveOperationTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::ModifyActiveOperationTasksRequest;
|
||||
|
||||
ModifyActiveOperationTasksRequest::ModifyActiveOperationTasksRequest()
|
||||
: RpcServiceRequest("r-kvstore", "2015-01-01", "ModifyActiveOperationTasks") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyActiveOperationTasksRequest::~ModifyActiveOperationTasksRequest() {}
|
||||
|
||||
long ModifyActiveOperationTasksRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyActiveOperationTasksRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyActiveOperationTasksRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyActiveOperationTasksRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyActiveOperationTasksRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifyActiveOperationTasksRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyActiveOperationTasksRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyActiveOperationTasksRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ModifyActiveOperationTasksRequest::getSwitchTime() const {
|
||||
return switchTime_;
|
||||
}
|
||||
|
||||
void ModifyActiveOperationTasksRequest::setSwitchTime(const std::string &switchTime) {
|
||||
switchTime_ = switchTime;
|
||||
setParameter(std::string("SwitchTime"), switchTime);
|
||||
}
|
||||
|
||||
std::string ModifyActiveOperationTasksRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyActiveOperationTasksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyActiveOperationTasksRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyActiveOperationTasksRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyActiveOperationTasksRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyActiveOperationTasksRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyActiveOperationTasksRequest::getIds() const {
|
||||
return ids_;
|
||||
}
|
||||
|
||||
void ModifyActiveOperationTasksRequest::setIds(const std::string &ids) {
|
||||
ids_ = ids;
|
||||
setParameter(std::string("Ids"), ids);
|
||||
}
|
||||
|
||||
int ModifyActiveOperationTasksRequest::getImmediateStart() const {
|
||||
return immediateStart_;
|
||||
}
|
||||
|
||||
void ModifyActiveOperationTasksRequest::setImmediateStart(int immediateStart) {
|
||||
immediateStart_ = immediateStart;
|
||||
setParameter(std::string("ImmediateStart"), std::to_string(immediateStart));
|
||||
}
|
||||
|
||||
51
r-kvstore/src/model/ModifyActiveOperationTasksResult.cc
Normal file
51
r-kvstore/src/model/ModifyActiveOperationTasksResult.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/ModifyActiveOperationTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
|
||||
ModifyActiveOperationTasksResult::ModifyActiveOperationTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyActiveOperationTasksResult::ModifyActiveOperationTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyActiveOperationTasksResult::~ModifyActiveOperationTasksResult()
|
||||
{}
|
||||
|
||||
void ModifyActiveOperationTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Ids"].isNull())
|
||||
ids_ = value["Ids"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyActiveOperationTasksResult::getIds()const
|
||||
{
|
||||
return ids_;
|
||||
}
|
||||
|
||||
@@ -106,6 +106,15 @@ void ModifyBackupPolicyRequest::setPreferredBackupTime(const std::string &prefer
|
||||
setParameter(std::string("PreferredBackupTime"), preferredBackupTime);
|
||||
}
|
||||
|
||||
int ModifyBackupPolicyRequest::getBackupRetentionPeriod() const {
|
||||
return backupRetentionPeriod_;
|
||||
}
|
||||
|
||||
void ModifyBackupPolicyRequest::setBackupRetentionPeriod(int backupRetentionPeriod) {
|
||||
backupRetentionPeriod_ = backupRetentionPeriod;
|
||||
setParameter(std::string("BackupRetentionPeriod"), std::to_string(backupRetentionPeriod));
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
99
r-kvstore/src/model/ModifyDBInstanceAutoUpgradeRequest.cc
Normal file
99
r-kvstore/src/model/ModifyDBInstanceAutoUpgradeRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/ModifyDBInstanceAutoUpgradeRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::ModifyDBInstanceAutoUpgradeRequest;
|
||||
|
||||
ModifyDBInstanceAutoUpgradeRequest::ModifyDBInstanceAutoUpgradeRequest()
|
||||
: RpcServiceRequest("r-kvstore", "2015-01-01", "ModifyDBInstanceAutoUpgrade") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDBInstanceAutoUpgradeRequest::~ModifyDBInstanceAutoUpgradeRequest() {}
|
||||
|
||||
long ModifyDBInstanceAutoUpgradeRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceAutoUpgradeRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceAutoUpgradeRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceAutoUpgradeRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceAutoUpgradeRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceAutoUpgradeRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceAutoUpgradeRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceAutoUpgradeRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceAutoUpgradeRequest::getValue() const {
|
||||
return value_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceAutoUpgradeRequest::setValue(const std::string &value) {
|
||||
value_ = value;
|
||||
setParameter(std::string("Value"), value);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceAutoUpgradeRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceAutoUpgradeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceAutoUpgradeRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceAutoUpgradeRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyDBInstanceAutoUpgradeRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceAutoUpgradeRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
r-kvstore/src/model/ModifyDBInstanceAutoUpgradeResult.cc
Normal file
44
r-kvstore/src/model/ModifyDBInstanceAutoUpgradeResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/ModifyDBInstanceAutoUpgradeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
|
||||
ModifyDBInstanceAutoUpgradeResult::ModifyDBInstanceAutoUpgradeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBInstanceAutoUpgradeResult::ModifyDBInstanceAutoUpgradeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBInstanceAutoUpgradeResult::~ModifyDBInstanceAutoUpgradeResult()
|
||||
{}
|
||||
|
||||
void ModifyDBInstanceAutoUpgradeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void ModifyInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyInstanceSpecRequest::getNodeType() const {
|
||||
return nodeType_;
|
||||
}
|
||||
|
||||
void ModifyInstanceSpecRequest::setNodeType(const std::string &nodeType) {
|
||||
nodeType_ = nodeType;
|
||||
setParameter(std::string("NodeType"), nodeType);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceSpecRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
135
r-kvstore/src/model/ModifyParameterGroupRequest.cc
Normal file
135
r-kvstore/src/model/ModifyParameterGroupRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/ModifyParameterGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::ModifyParameterGroupRequest;
|
||||
|
||||
ModifyParameterGroupRequest::ModifyParameterGroupRequest()
|
||||
: RpcServiceRequest("r-kvstore", "2015-01-01", "ModifyParameterGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyParameterGroupRequest::~ModifyParameterGroupRequest() {}
|
||||
|
||||
long ModifyParameterGroupRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getParameterGroupId() const {
|
||||
return parameterGroupId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setParameterGroupId(const std::string ¶meterGroupId) {
|
||||
parameterGroupId_ = parameterGroupId;
|
||||
setParameter(std::string("ParameterGroupId"), parameterGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyParameterGroupRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getCategory() const {
|
||||
return category_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setCategory(const std::string &category) {
|
||||
category_ = category;
|
||||
setParameter(std::string("Category"), category);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getParameterGroupName() const {
|
||||
return parameterGroupName_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setParameterGroupName(const std::string ¶meterGroupName) {
|
||||
parameterGroupName_ = parameterGroupName;
|
||||
setParameter(std::string("ParameterGroupName"), parameterGroupName);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getParameters() const {
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setParameters(const std::string ¶meters) {
|
||||
parameters_ = parameters;
|
||||
setParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getParameterGroupDesc() const {
|
||||
return parameterGroupDesc_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setParameterGroupDesc(const std::string ¶meterGroupDesc) {
|
||||
parameterGroupDesc_ = parameterGroupDesc;
|
||||
setParameter(std::string("ParameterGroupDesc"), parameterGroupDesc);
|
||||
}
|
||||
|
||||
51
r-kvstore/src/model/ModifyParameterGroupResult.cc
Normal file
51
r-kvstore/src/model/ModifyParameterGroupResult.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/ModifyParameterGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
|
||||
ModifyParameterGroupResult::ModifyParameterGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyParameterGroupResult::ModifyParameterGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyParameterGroupResult::~ModifyParameterGroupResult()
|
||||
{}
|
||||
|
||||
void ModifyParameterGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ParamGroupId"].isNull())
|
||||
paramGroupId_ = value["ParamGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupResult::getParamGroupId()const
|
||||
{
|
||||
return paramGroupId_;
|
||||
}
|
||||
|
||||
@@ -160,6 +160,15 @@ void RenewInstanceRequest::setInstanceId(const std::string &instanceId) {
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
bool RenewInstanceRequest::getAutoRenew() const {
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void RenewInstanceRequest::setAutoRenew(bool autoRenew) {
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
bool RenewInstanceRequest::getForceUpgrade() const {
|
||||
return forceUpgrade_;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,15 @@ void ResetAccountPasswordRequest::setSecurityToken(const std::string &securityTo
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string ResetAccountPasswordRequest::getSourceBiz() const {
|
||||
return sourceBiz_;
|
||||
}
|
||||
|
||||
void ResetAccountPasswordRequest::setSourceBiz(const std::string &sourceBiz) {
|
||||
sourceBiz_ = sourceBiz;
|
||||
setParameter(std::string("SourceBiz"), sourceBiz);
|
||||
}
|
||||
|
||||
std::string ResetAccountPasswordRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user