Supported Add the history event signature function.
This commit is contained in:
@@ -2607,6 +2607,42 @@ RdsClient::DescribeDBInstancesForCloneOutcomeCallable RdsClient::describeDBInsta
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBInstancesOverviewOutcome RdsClient::describeDBInstancesOverview(const DescribeDBInstancesOverviewRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBInstancesOverviewOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBInstancesOverviewOutcome(DescribeDBInstancesOverviewResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBInstancesOverviewOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeDBInstancesOverviewAsync(const DescribeDBInstancesOverviewRequest& request, const DescribeDBInstancesOverviewAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBInstancesOverview(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBInstancesOverviewOutcomeCallable RdsClient::describeDBInstancesOverviewCallable(const DescribeDBInstancesOverviewRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBInstancesOverviewOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBInstancesOverview(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyOutcome RdsClient::describeDBProxy(const DescribeDBProxyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3327,6 +3363,42 @@ RdsClient::DescribeModifyParameterLogOutcomeCallable RdsClient::describeModifyPa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeNextEventForSignOutcome RdsClient::describeNextEventForSign(const DescribeNextEventForSignRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeNextEventForSignOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeNextEventForSignOutcome(DescribeNextEventForSignResult(outcome.result()));
|
||||
else
|
||||
return DescribeNextEventForSignOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeNextEventForSignAsync(const DescribeNextEventForSignRequest& request, const DescribeNextEventForSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeNextEventForSign(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeNextEventForSignOutcomeCallable RdsClient::describeNextEventForSignCallable(const DescribeNextEventForSignRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeNextEventForSignOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeNextEventForSign(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeOssDownloadsOutcome RdsClient::describeOssDownloads(const DescribeOssDownloadsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3723,6 +3795,78 @@ RdsClient::DescribeResourceUsageOutcomeCallable RdsClient::describeResourceUsage
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeSQLCollectorPolicyOutcome RdsClient::describeSQLCollectorPolicy(const DescribeSQLCollectorPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSQLCollectorPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSQLCollectorPolicyOutcome(DescribeSQLCollectorPolicyResult(outcome.result()));
|
||||
else
|
||||
return DescribeSQLCollectorPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeSQLCollectorPolicyAsync(const DescribeSQLCollectorPolicyRequest& request, const DescribeSQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSQLCollectorPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeSQLCollectorPolicyOutcomeCallable RdsClient::describeSQLCollectorPolicyCallable(const DescribeSQLCollectorPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSQLCollectorPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSQLCollectorPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeSQLCollectorRetentionOutcome RdsClient::describeSQLCollectorRetention(const DescribeSQLCollectorRetentionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSQLCollectorRetentionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSQLCollectorRetentionOutcome(DescribeSQLCollectorRetentionResult(outcome.result()));
|
||||
else
|
||||
return DescribeSQLCollectorRetentionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeSQLCollectorRetentionAsync(const DescribeSQLCollectorRetentionRequest& request, const DescribeSQLCollectorRetentionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSQLCollectorRetention(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeSQLCollectorRetentionOutcomeCallable RdsClient::describeSQLCollectorRetentionCallable(const DescribeSQLCollectorRetentionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSQLCollectorRetentionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSQLCollectorRetention(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeSQLLogFilesOutcome RdsClient::describeSQLLogFiles(const DescribeSQLLogFilesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3939,6 +4083,42 @@ RdsClient::DescribeSecurityGroupConfigurationOutcomeCallable RdsClient::describe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeSignedEventActionsOutcome RdsClient::describeSignedEventActions(const DescribeSignedEventActionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSignedEventActionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSignedEventActionsOutcome(DescribeSignedEventActionsResult(outcome.result()));
|
||||
else
|
||||
return DescribeSignedEventActionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeSignedEventActionsAsync(const DescribeSignedEventActionsRequest& request, const DescribeSignedEventActionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSignedEventActions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeSignedEventActionsOutcomeCallable RdsClient::describeSignedEventActionsCallable(const DescribeSignedEventActionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSignedEventActionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSignedEventActions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeSlowLogRecordsOutcome RdsClient::describeSlowLogRecords(const DescribeSlowLogRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4515,6 +4695,42 @@ RdsClient::ModifyActionEventPolicyOutcomeCallable RdsClient::modifyActionEventPo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyActionEventVerifyPolicyOutcome RdsClient::modifyActionEventVerifyPolicy(const ModifyActionEventVerifyPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyActionEventVerifyPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyActionEventVerifyPolicyOutcome(ModifyActionEventVerifyPolicyResult(outcome.result()));
|
||||
else
|
||||
return ModifyActionEventVerifyPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifyActionEventVerifyPolicyAsync(const ModifyActionEventVerifyPolicyRequest& request, const ModifyActionEventVerifyPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyActionEventVerifyPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifyActionEventVerifyPolicyOutcomeCallable RdsClient::modifyActionEventVerifyPolicyCallable(const ModifyActionEventVerifyPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyActionEventVerifyPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyActionEventVerifyPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyBackupPolicyOutcome RdsClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5703,6 +5919,42 @@ RdsClient::ModifySQLCollectorPolicyOutcomeCallable RdsClient::modifySQLCollector
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifySQLCollectorRetentionOutcome RdsClient::modifySQLCollectorRetention(const ModifySQLCollectorRetentionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifySQLCollectorRetentionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifySQLCollectorRetentionOutcome(ModifySQLCollectorRetentionResult(outcome.result()));
|
||||
else
|
||||
return ModifySQLCollectorRetentionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifySQLCollectorRetentionAsync(const ModifySQLCollectorRetentionRequest& request, const ModifySQLCollectorRetentionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifySQLCollectorRetention(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifySQLCollectorRetentionOutcomeCallable RdsClient::modifySQLCollectorRetentionCallable(const ModifySQLCollectorRetentionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifySQLCollectorRetentionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifySQLCollectorRetention(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifySecurityGroupConfigurationOutcome RdsClient::modifySecurityGroupConfiguration(const ModifySecurityGroupConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6423,6 +6675,42 @@ RdsClient::RevokeOperatorPermissionOutcomeCallable RdsClient::revokeOperatorPerm
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::SignEventActionOutcome RdsClient::signEventAction(const SignEventActionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SignEventActionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SignEventActionOutcome(SignEventActionResult(outcome.result()));
|
||||
else
|
||||
return SignEventActionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::signEventActionAsync(const SignEventActionRequest& request, const SignEventActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, signEventAction(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::SignEventActionOutcomeCallable RdsClient::signEventActionCallable(const SignEventActionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SignEventActionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->signEventAction(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::SwitchDBInstanceHAOutcome RdsClient::switchDBInstanceHA(const SwitchDBInstanceHARequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -126,3 +126,14 @@ void DescribeDBInstancePerformanceRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool DescribeDBInstancePerformanceRequest::getUseNullWhenMissingPoint()const
|
||||
{
|
||||
return useNullWhenMissingPoint_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setUseNullWhenMissingPoint(bool useNullWhenMissingPoint)
|
||||
{
|
||||
useNullWhenMissingPoint_ = useNullWhenMissingPoint;
|
||||
setCoreParameter("UseNullWhenMissingPoint", useNullWhenMissingPoint ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -148,6 +148,17 @@ void DescribeDBInstancesForCloneRequest::setRegionId(const std::string& regionId
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesForCloneRequest::getCurrentInstanceId()const
|
||||
{
|
||||
return currentInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesForCloneRequest::setCurrentInstanceId(const std::string& currentInstanceId)
|
||||
{
|
||||
currentInstanceId_ = currentInstanceId;
|
||||
setCoreParameter("CurrentInstanceId", currentInstanceId);
|
||||
}
|
||||
|
||||
int DescribeDBInstancesForCloneRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
|
||||
150
rds/src/model/DescribeDBInstancesOverviewRequest.cc
Normal file
150
rds/src/model/DescribeDBInstancesOverviewRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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/rds/model/DescribeDBInstancesOverviewRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDBInstancesOverviewRequest;
|
||||
|
||||
DescribeDBInstancesOverviewRequest::DescribeDBInstancesOverviewRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstancesOverview")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBInstancesOverviewRequest::~DescribeDBInstancesOverviewRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBInstancesOverviewRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getExpired()const
|
||||
{
|
||||
return expired_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setExpired(const std::string& expired)
|
||||
{
|
||||
expired_ = expired;
|
||||
setCoreParameter("Expired", expired);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getProxyId()const
|
||||
{
|
||||
return proxyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setProxyId(const std::string& proxyId)
|
||||
{
|
||||
proxyId_ = proxyId;
|
||||
setCoreParameter("ProxyId", proxyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBInstancesOverviewRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
95
rds/src/model/DescribeDBInstancesOverviewResult.cc
Normal file
95
rds/src/model/DescribeDBInstancesOverviewResult.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/rds/model/DescribeDBInstancesOverviewResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeDBInstancesOverviewResult::DescribeDBInstancesOverviewResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBInstancesOverviewResult::DescribeDBInstancesOverviewResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBInstancesOverviewResult::~DescribeDBInstancesOverviewResult()
|
||||
{}
|
||||
|
||||
void DescribeDBInstancesOverviewResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionsNode = value["Regions"]["RegionModel"];
|
||||
for (auto valueRegionsRegionModel : allRegionsNode)
|
||||
{
|
||||
RegionModel regionsObject;
|
||||
if(!valueRegionsRegionModel["Region"].isNull())
|
||||
regionsObject.region = valueRegionsRegionModel["Region"].asString();
|
||||
if(!valueRegionsRegionModel["EngineCount"].isNull())
|
||||
regionsObject.engineCount = valueRegionsRegionModel["EngineCount"].asString();
|
||||
if(!valueRegionsRegionModel["TotalCount"].isNull())
|
||||
regionsObject.totalCount = std::stoi(valueRegionsRegionModel["TotalCount"].asString());
|
||||
auto allTypeModelsNode = allRegionsNode["TypeModels"]["TypeModel"];
|
||||
for (auto allRegionsNodeTypeModelsTypeModel : allTypeModelsNode)
|
||||
{
|
||||
RegionModel::TypeModel typeModelsObject;
|
||||
if(!allRegionsNodeTypeModelsTypeModel["InstanceDateType"].isNull())
|
||||
typeModelsObject.instanceDateType = allRegionsNodeTypeModelsTypeModel["InstanceDateType"].asString();
|
||||
if(!allRegionsNodeTypeModelsTypeModel["Count"].isNull())
|
||||
typeModelsObject.count = std::stoi(allRegionsNodeTypeModelsTypeModel["Count"].asString());
|
||||
auto allInstanceModelsNode = allTypeModelsNode["InstanceModels"]["InstanceModel"];
|
||||
for (auto allTypeModelsNodeInstanceModelsInstanceModel : allInstanceModelsNode)
|
||||
{
|
||||
RegionModel::TypeModel::InstanceModel instanceModelsObject;
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["DBInstanceId"].isNull())
|
||||
instanceModelsObject.dBInstanceId = allTypeModelsNodeInstanceModelsInstanceModel["DBInstanceId"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["Region"].isNull())
|
||||
instanceModelsObject.region = allTypeModelsNodeInstanceModelsInstanceModel["Region"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["ZoneId"].isNull())
|
||||
instanceModelsObject.zoneId = allTypeModelsNodeInstanceModelsInstanceModel["ZoneId"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["Engine"].isNull())
|
||||
instanceModelsObject.engine = allTypeModelsNodeInstanceModelsInstanceModel["Engine"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["PayType"].isNull())
|
||||
instanceModelsObject.payType = allTypeModelsNodeInstanceModelsInstanceModel["PayType"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["CreatedTime"].isNull())
|
||||
instanceModelsObject.createdTime = allTypeModelsNodeInstanceModelsInstanceModel["CreatedTime"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["ExpireTime"].isNull())
|
||||
instanceModelsObject.expireTime = allTypeModelsNodeInstanceModelsInstanceModel["ExpireTime"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["LockMode"].isNull())
|
||||
instanceModelsObject.lockMode = allTypeModelsNodeInstanceModelsInstanceModel["LockMode"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["DBInstanceStatus"].isNull())
|
||||
instanceModelsObject.dBInstanceStatus = allTypeModelsNodeInstanceModelsInstanceModel["DBInstanceStatus"].asString();
|
||||
typeModelsObject.instanceModels.push_back(instanceModelsObject);
|
||||
}
|
||||
regionsObject.typeModels.push_back(typeModelsObject);
|
||||
}
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstancesOverviewResult::RegionModel> DescribeDBInstancesOverviewResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
84
rds/src/model/DescribeNextEventForSignRequest.cc
Normal file
84
rds/src/model/DescribeNextEventForSignRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeNextEventForSignRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeNextEventForSignRequest;
|
||||
|
||||
DescribeNextEventForSignRequest::DescribeNextEventForSignRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeNextEventForSign")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeNextEventForSignRequest::~DescribeNextEventForSignRequest()
|
||||
{}
|
||||
|
||||
long DescribeNextEventForSignRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeNextEventForSignRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeNextEventForSignRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeNextEventForSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeNextEventForSignRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeNextEventForSignRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeNextEventForSignRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeNextEventForSignRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeNextEventForSignRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeNextEventForSignRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
rds/src/model/DescribeNextEventForSignResult.cc
Normal file
59
rds/src/model/DescribeNextEventForSignResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeNextEventForSignResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeNextEventForSignResult::DescribeNextEventForSignResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNextEventForSignResult::DescribeNextEventForSignResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNextEventForSignResult::~DescribeNextEventForSignResult()
|
||||
{}
|
||||
|
||||
void DescribeNextEventForSignResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEventItemsNode = value["EventItems"]["EventItemsItem"];
|
||||
for (auto valueEventItemsEventItemsItem : allEventItemsNode)
|
||||
{
|
||||
EventItemsItem eventItemsObject;
|
||||
if(!valueEventItemsEventItemsItem["EventId"].isNull())
|
||||
eventItemsObject.eventId = std::stoi(valueEventItemsEventItemsItem["EventId"].asString());
|
||||
if(!valueEventItemsEventItemsItem["EventContent"].isNull())
|
||||
eventItemsObject.eventContent = valueEventItemsEventItemsItem["EventContent"].asString();
|
||||
eventItems_.push_back(eventItemsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeNextEventForSignResult::EventItemsItem> DescribeNextEventForSignResult::getEventItems()const
|
||||
{
|
||||
return eventItems_;
|
||||
}
|
||||
|
||||
106
rds/src/model/DescribeSQLCollectorPolicyRequest.cc
Normal file
106
rds/src/model/DescribeSQLCollectorPolicyRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeSQLCollectorPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeSQLCollectorPolicyRequest;
|
||||
|
||||
DescribeSQLCollectorPolicyRequest::DescribeSQLCollectorPolicyRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeSQLCollectorPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLCollectorPolicyRequest::~DescribeSQLCollectorPolicyRequest()
|
||||
{}
|
||||
|
||||
long DescribeSQLCollectorPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeSQLCollectorPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
58
rds/src/model/DescribeSQLCollectorPolicyResult.cc
Normal file
58
rds/src/model/DescribeSQLCollectorPolicyResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/rds/model/DescribeSQLCollectorPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeSQLCollectorPolicyResult::DescribeSQLCollectorPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLCollectorPolicyResult::DescribeSQLCollectorPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLCollectorPolicyResult::~DescribeSQLCollectorPolicyResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLCollectorPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SQLCollectorStatus"].isNull())
|
||||
sQLCollectorStatus_ = value["SQLCollectorStatus"].asString();
|
||||
if(!value["StoragePeriod"].isNull())
|
||||
storagePeriod_ = std::stoi(value["StoragePeriod"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeSQLCollectorPolicyResult::getStoragePeriod()const
|
||||
{
|
||||
return storagePeriod_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyResult::getSQLCollectorStatus()const
|
||||
{
|
||||
return sQLCollectorStatus_;
|
||||
}
|
||||
|
||||
106
rds/src/model/DescribeSQLCollectorRetentionRequest.cc
Normal file
106
rds/src/model/DescribeSQLCollectorRetentionRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeSQLCollectorRetentionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeSQLCollectorRetentionRequest;
|
||||
|
||||
DescribeSQLCollectorRetentionRequest::DescribeSQLCollectorRetentionRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeSQLCollectorRetention")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLCollectorRetentionRequest::~DescribeSQLCollectorRetentionRequest()
|
||||
{}
|
||||
|
||||
long DescribeSQLCollectorRetentionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeSQLCollectorRetentionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
65
rds/src/model/DescribeSQLCollectorRetentionResult.cc
Normal file
65
rds/src/model/DescribeSQLCollectorRetentionResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/rds/model/DescribeSQLCollectorRetentionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeSQLCollectorRetentionResult::DescribeSQLCollectorRetentionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLCollectorRetentionResult::DescribeSQLCollectorRetentionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLCollectorRetentionResult::~DescribeSQLCollectorRetentionResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLCollectorRetentionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceID"].isNull())
|
||||
dBInstanceID_ = std::stoi(value["DBInstanceID"].asString());
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
if(!value["ConfigValue"].isNull())
|
||||
configValue_ = value["ConfigValue"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionResult::getConfigValue()const
|
||||
{
|
||||
return configValue_;
|
||||
}
|
||||
|
||||
int DescribeSQLCollectorRetentionResult::getDBInstanceID()const
|
||||
{
|
||||
return dBInstanceID_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
106
rds/src/model/DescribeSignedEventActionsRequest.cc
Normal file
106
rds/src/model/DescribeSignedEventActionsRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeSignedEventActionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeSignedEventActionsRequest;
|
||||
|
||||
DescribeSignedEventActionsRequest::DescribeSignedEventActionsRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeSignedEventActions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSignedEventActionsRequest::~DescribeSignedEventActionsRequest()
|
||||
{}
|
||||
|
||||
long DescribeSignedEventActionsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeSignedEventActionsRequest::getBeginEventId()const
|
||||
{
|
||||
return beginEventId_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setBeginEventId(int beginEventId)
|
||||
{
|
||||
beginEventId_ = beginEventId;
|
||||
setCoreParameter("BeginEventId", std::to_string(beginEventId));
|
||||
}
|
||||
|
||||
std::string DescribeSignedEventActionsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeSignedEventActionsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeSignedEventActionsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSignedEventActionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeSignedEventActionsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
91
rds/src/model/DescribeSignedEventActionsResult.cc
Normal file
91
rds/src/model/DescribeSignedEventActionsResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeSignedEventActionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeSignedEventActionsResult::DescribeSignedEventActionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSignedEventActionsResult::DescribeSignedEventActionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSignedEventActionsResult::~DescribeSignedEventActionsResult()
|
||||
{}
|
||||
|
||||
void DescribeSignedEventActionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEventItemsNode = value["EventItems"]["EventItemsItem"];
|
||||
for (auto valueEventItemsEventItemsItem : allEventItemsNode)
|
||||
{
|
||||
EventItemsItem eventItemsObject;
|
||||
if(!valueEventItemsEventItemsItem["EventId"].isNull())
|
||||
eventItemsObject.eventId = std::stoi(valueEventItemsEventItemsItem["EventId"].asString());
|
||||
if(!valueEventItemsEventItemsItem["EventContent"].isNull())
|
||||
eventItemsObject.eventContent = valueEventItemsEventItemsItem["EventContent"].asString();
|
||||
if(!valueEventItemsEventItemsItem["EventSig"].isNull())
|
||||
eventItemsObject.eventSig = valueEventItemsEventItemsItem["EventSig"].asString();
|
||||
if(!valueEventItemsEventItemsItem["EventRcpt"].isNull())
|
||||
eventItemsObject.eventRcpt = valueEventItemsEventItemsItem["EventRcpt"].asString();
|
||||
eventItems_.push_back(eventItemsObject);
|
||||
}
|
||||
if(!value["NextPageEventId"].isNull())
|
||||
nextPageEventId_ = std::stoi(value["NextPageEventId"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["FromBegin"].isNull())
|
||||
fromBegin_ = value["FromBegin"].asString() == "true";
|
||||
if(!value["ToEnd"].isNull())
|
||||
toEnd_ = value["ToEnd"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeSignedEventActionsResult::EventItemsItem> DescribeSignedEventActionsResult::getEventItems()const
|
||||
{
|
||||
return eventItems_;
|
||||
}
|
||||
|
||||
int DescribeSignedEventActionsResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
bool DescribeSignedEventActionsResult::getToEnd()const
|
||||
{
|
||||
return toEnd_;
|
||||
}
|
||||
|
||||
bool DescribeSignedEventActionsResult::getFromBegin()const
|
||||
{
|
||||
return fromBegin_;
|
||||
}
|
||||
|
||||
int DescribeSignedEventActionsResult::getNextPageEventId()const
|
||||
{
|
||||
return nextPageEventId_;
|
||||
}
|
||||
|
||||
95
rds/src/model/ModifyActionEventVerifyPolicyRequest.cc
Normal file
95
rds/src/model/ModifyActionEventVerifyPolicyRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/rds/model/ModifyActionEventVerifyPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifyActionEventVerifyPolicyRequest;
|
||||
|
||||
ModifyActionEventVerifyPolicyRequest::ModifyActionEventVerifyPolicyRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ModifyActionEventVerifyPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyActionEventVerifyPolicyRequest::~ModifyActionEventVerifyPolicyRequest()
|
||||
{}
|
||||
|
||||
long ModifyActionEventVerifyPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyActionEventVerifyPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyActionEventVerifyPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyActionEventVerifyPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifyActionEventVerifyPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyActionEventVerifyPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyActionEventVerifyPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyActionEventVerifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyActionEventVerifyPolicyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyActionEventVerifyPolicyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyActionEventVerifyPolicyRequest::getUserPublicKey()const
|
||||
{
|
||||
return userPublicKey_;
|
||||
}
|
||||
|
||||
void ModifyActionEventVerifyPolicyRequest::setUserPublicKey(const std::string& userPublicKey)
|
||||
{
|
||||
userPublicKey_ = userPublicKey;
|
||||
setCoreParameter("UserPublicKey", userPublicKey);
|
||||
}
|
||||
|
||||
58
rds/src/model/ModifyActionEventVerifyPolicyResult.cc
Normal file
58
rds/src/model/ModifyActionEventVerifyPolicyResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/rds/model/ModifyActionEventVerifyPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
ModifyActionEventVerifyPolicyResult::ModifyActionEventVerifyPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyActionEventVerifyPolicyResult::ModifyActionEventVerifyPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyActionEventVerifyPolicyResult::~ModifyActionEventVerifyPolicyResult()
|
||||
{}
|
||||
|
||||
void ModifyActionEventVerifyPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["ServerPublicKey"].isNull())
|
||||
serverPublicKey_ = value["ServerPublicKey"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyActionEventVerifyPolicyResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ModifyActionEventVerifyPolicyResult::getServerPublicKey()const
|
||||
{
|
||||
return serverPublicKey_;
|
||||
}
|
||||
|
||||
@@ -115,6 +115,17 @@ void ModifyDBInstanceSpecRequest::setDBInstanceStorageType(const std::string& dB
|
||||
setCoreParameter("DBInstanceStorageType", dBInstanceStorageType);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceSpecRequest::getSourceBiz()const
|
||||
{
|
||||
return sourceBiz_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceSpecRequest::setSourceBiz(const std::string& sourceBiz)
|
||||
{
|
||||
sourceBiz_ = sourceBiz;
|
||||
setCoreParameter("SourceBiz", sourceBiz);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceSpecRequest::getDirection()const
|
||||
{
|
||||
return direction_;
|
||||
|
||||
117
rds/src/model/ModifySQLCollectorRetentionRequest.cc
Normal file
117
rds/src/model/ModifySQLCollectorRetentionRequest.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/rds/model/ModifySQLCollectorRetentionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifySQLCollectorRetentionRequest;
|
||||
|
||||
ModifySQLCollectorRetentionRequest::ModifySQLCollectorRetentionRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ModifySQLCollectorRetention")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifySQLCollectorRetentionRequest::~ModifySQLCollectorRetentionRequest()
|
||||
{}
|
||||
|
||||
long ModifySQLCollectorRetentionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionRequest::getConfigValue()const
|
||||
{
|
||||
return configValue_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setConfigValue(const std::string& configValue)
|
||||
{
|
||||
configValue_ = configValue;
|
||||
setCoreParameter("ConfigValue", configValue);
|
||||
}
|
||||
|
||||
long ModifySQLCollectorRetentionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
65
rds/src/model/ModifySQLCollectorRetentionResult.cc
Normal file
65
rds/src/model/ModifySQLCollectorRetentionResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/rds/model/ModifySQLCollectorRetentionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
ModifySQLCollectorRetentionResult::ModifySQLCollectorRetentionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifySQLCollectorRetentionResult::ModifySQLCollectorRetentionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifySQLCollectorRetentionResult::~ModifySQLCollectorRetentionResult()
|
||||
{}
|
||||
|
||||
void ModifySQLCollectorRetentionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceID"].isNull())
|
||||
dBInstanceID_ = std::stoi(value["DBInstanceID"].asString());
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stoi(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ModifySQLCollectorRetentionResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
int ModifySQLCollectorRetentionResult::getDBInstanceID()const
|
||||
{
|
||||
return dBInstanceID_;
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
106
rds/src/model/SignEventActionRequest.cc
Normal file
106
rds/src/model/SignEventActionRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/SignEventActionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::SignEventActionRequest;
|
||||
|
||||
SignEventActionRequest::SignEventActionRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "SignEventAction")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SignEventActionRequest::~SignEventActionRequest()
|
||||
{}
|
||||
|
||||
int SignEventActionRequest::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setEventId(int eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setCoreParameter("EventId", std::to_string(eventId));
|
||||
}
|
||||
|
||||
long SignEventActionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SignEventActionRequest::getEventSig()const
|
||||
{
|
||||
return eventSig_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setEventSig(const std::string& eventSig)
|
||||
{
|
||||
eventSig_ = eventSig;
|
||||
setCoreParameter("EventSig", eventSig);
|
||||
}
|
||||
|
||||
std::string SignEventActionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long SignEventActionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SignEventActionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SignEventActionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
58
rds/src/model/SignEventActionResult.cc
Normal file
58
rds/src/model/SignEventActionResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/rds/model/SignEventActionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
SignEventActionResult::SignEventActionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SignEventActionResult::SignEventActionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SignEventActionResult::~SignEventActionResult()
|
||||
{}
|
||||
|
||||
void SignEventActionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EventId"].isNull())
|
||||
eventId_ = value["EventId"].asString();
|
||||
if(!value["EventRcpt"].isNull())
|
||||
eventRcpt_ = value["EventRcpt"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SignEventActionResult::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
std::string SignEventActionResult::getEventRcpt()const
|
||||
{
|
||||
return eventRcpt_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user