Supported param and error code.
This commit is contained in:
@@ -3795,6 +3795,42 @@ RdsClient::DescribeCollationTimeZonesOutcomeCallable RdsClient::describeCollatio
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeComputeBurstConfigOutcome RdsClient::describeComputeBurstConfig(const DescribeComputeBurstConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeComputeBurstConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeComputeBurstConfigOutcome(DescribeComputeBurstConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeComputeBurstConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeComputeBurstConfigAsync(const DescribeComputeBurstConfigRequest& request, const DescribeComputeBurstConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeComputeBurstConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeComputeBurstConfigOutcomeCallable RdsClient::describeComputeBurstConfigCallable(const DescribeComputeBurstConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeComputeBurstConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeComputeBurstConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeCrossBackupMetaListOutcome RdsClient::describeCrossBackupMetaList(const DescribeCrossBackupMetaListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6495,6 +6531,42 @@ RdsClient::DescribeQuickSaleConfigOutcomeCallable RdsClient::describeQuickSaleCo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeRCCloudAssistantStatusOutcome RdsClient::describeRCCloudAssistantStatus(const DescribeRCCloudAssistantStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRCCloudAssistantStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRCCloudAssistantStatusOutcome(DescribeRCCloudAssistantStatusResult(outcome.result()));
|
||||
else
|
||||
return DescribeRCCloudAssistantStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeRCCloudAssistantStatusAsync(const DescribeRCCloudAssistantStatusRequest& request, const DescribeRCCloudAssistantStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRCCloudAssistantStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeRCCloudAssistantStatusOutcomeCallable RdsClient::describeRCCloudAssistantStatusCallable(const DescribeRCCloudAssistantStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRCCloudAssistantStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRCCloudAssistantStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeRCClusterConfigOutcome RdsClient::describeRCClusterConfig(const DescribeRCClusterConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6999,6 +7071,42 @@ RdsClient::DescribeRCInstancesOutcomeCallable RdsClient::describeRCInstancesCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeRCInvocationResultsOutcome RdsClient::describeRCInvocationResults(const DescribeRCInvocationResultsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRCInvocationResultsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRCInvocationResultsOutcome(DescribeRCInvocationResultsResult(outcome.result()));
|
||||
else
|
||||
return DescribeRCInvocationResultsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeRCInvocationResultsAsync(const DescribeRCInvocationResultsRequest& request, const DescribeRCInvocationResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRCInvocationResults(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeRCInvocationResultsOutcomeCallable RdsClient::describeRCInvocationResultsCallable(const DescribeRCInvocationResultsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRCInvocationResultsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRCInvocationResults(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeRCMetricListOutcome RdsClient::describeRCMetricList(const DescribeRCMetricListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7179,6 +7287,42 @@ RdsClient::DescribeRCSnapshotsOutcomeCallable RdsClient::describeRCSnapshotsCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeRCVClusterOutcome RdsClient::describeRCVCluster(const DescribeRCVClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRCVClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRCVClusterOutcome(DescribeRCVClusterResult(outcome.result()));
|
||||
else
|
||||
return DescribeRCVClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeRCVClusterAsync(const DescribeRCVClusterRequest& request, const DescribeRCVClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRCVCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeRCVClusterOutcomeCallable RdsClient::describeRCVClusterCallable(const DescribeRCVClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRCVClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRCVCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeRdsResourceSettingsOutcome RdsClient::describeRdsResourceSettings(const DescribeRdsResourceSettingsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8007,6 +8151,42 @@ RdsClient::DescribeUpgradeMajorVersionTasksOutcomeCallable RdsClient::describeUp
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeVSwitchListOutcome RdsClient::describeVSwitchList(const DescribeVSwitchListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVSwitchListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVSwitchListOutcome(DescribeVSwitchListResult(outcome.result()));
|
||||
else
|
||||
return DescribeVSwitchListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeVSwitchListAsync(const DescribeVSwitchListRequest& request, const DescribeVSwitchListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVSwitchList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeVSwitchListOutcomeCallable RdsClient::describeVSwitchListCallable(const DescribeVSwitchListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVSwitchListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVSwitchList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeVSwitchesOutcome RdsClient::describeVSwitches(const DescribeVSwitchesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8475,6 +8655,42 @@ RdsClient::ImportUserBackupFileOutcomeCallable RdsClient::importUserBackupFileCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::InstallRCCloudAssistantOutcome RdsClient::installRCCloudAssistant(const InstallRCCloudAssistantRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InstallRCCloudAssistantOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InstallRCCloudAssistantOutcome(InstallRCCloudAssistantResult(outcome.result()));
|
||||
else
|
||||
return InstallRCCloudAssistantOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::installRCCloudAssistantAsync(const InstallRCCloudAssistantRequest& request, const InstallRCCloudAssistantAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, installRCCloudAssistant(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::InstallRCCloudAssistantOutcomeCallable RdsClient::installRCCloudAssistantCallable(const InstallRCCloudAssistantRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InstallRCCloudAssistantOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->installRCCloudAssistant(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ListClassesOutcome RdsClient::listClasses(const ListClassesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -9087,6 +9303,42 @@ RdsClient::ModifyBackupPolicyOutcomeCallable RdsClient::modifyBackupPolicyCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyBackupSetExpireTimeOutcome RdsClient::modifyBackupSetExpireTime(const ModifyBackupSetExpireTimeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyBackupSetExpireTimeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyBackupSetExpireTimeOutcome(ModifyBackupSetExpireTimeResult(outcome.result()));
|
||||
else
|
||||
return ModifyBackupSetExpireTimeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifyBackupSetExpireTimeAsync(const ModifyBackupSetExpireTimeRequest& request, const ModifyBackupSetExpireTimeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyBackupSetExpireTime(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifyBackupSetExpireTimeOutcomeCallable RdsClient::modifyBackupSetExpireTimeCallable(const ModifyBackupSetExpireTimeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyBackupSetExpireTimeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyBackupSetExpireTime(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyCollationTimeZoneOutcome RdsClient::modifyCollationTimeZone(const ModifyCollationTimeZoneRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -9123,6 +9375,42 @@ RdsClient::ModifyCollationTimeZoneOutcomeCallable RdsClient::modifyCollationTime
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyComputeBurstConfigOutcome RdsClient::modifyComputeBurstConfig(const ModifyComputeBurstConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyComputeBurstConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyComputeBurstConfigOutcome(ModifyComputeBurstConfigResult(outcome.result()));
|
||||
else
|
||||
return ModifyComputeBurstConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifyComputeBurstConfigAsync(const ModifyComputeBurstConfigRequest& request, const ModifyComputeBurstConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyComputeBurstConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifyComputeBurstConfigOutcomeCallable RdsClient::modifyComputeBurstConfigCallable(const ModifyComputeBurstConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyComputeBurstConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyComputeBurstConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyCustinsResourceOutcome RdsClient::modifyCustinsResource(const ModifyCustinsResourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -11535,6 +11823,42 @@ RdsClient::RecoveryDBInstanceOutcomeCallable RdsClient::recoveryDBInstanceCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::RedeployRCInstanceOutcome RdsClient::redeployRCInstance(const RedeployRCInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RedeployRCInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RedeployRCInstanceOutcome(RedeployRCInstanceResult(outcome.result()));
|
||||
else
|
||||
return RedeployRCInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::redeployRCInstanceAsync(const RedeployRCInstanceRequest& request, const RedeployRCInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, redeployRCInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::RedeployRCInstanceOutcomeCallable RdsClient::redeployRCInstanceCallable(const RedeployRCInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RedeployRCInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->redeployRCInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ReleaseInstanceConnectionOutcome RdsClient::releaseInstanceConnection(const ReleaseInstanceConnectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -12111,6 +12435,42 @@ RdsClient::RevokeRCSecurityGroupPermissionOutcomeCallable RdsClient::revokeRCSec
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::RunRCCommandOutcome RdsClient::runRCCommand(const RunRCCommandRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RunRCCommandOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RunRCCommandOutcome(RunRCCommandResult(outcome.result()));
|
||||
else
|
||||
return RunRCCommandOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::runRCCommandAsync(const RunRCCommandRequest& request, const RunRCCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, runRCCommand(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::RunRCCommandOutcomeCallable RdsClient::runRCCommandCallable(const RunRCCommandRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RunRCCommandOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->runRCCommand(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::RunRCInstancesOutcome RdsClient::runRCInstances(const RunRCInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -39,13 +39,6 @@ void AcceptRCInquiredSystemEventResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AcceptRCInquiredSystemEventResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -124,6 +124,15 @@ void CreateBackupRequest::setBackupMethod(const std::string &backupMethod) {
|
||||
setParameter(std::string("BackupMethod"), backupMethod);
|
||||
}
|
||||
|
||||
long CreateBackupRequest::getBackupRetentionPeriod() const {
|
||||
return backupRetentionPeriod_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setBackupRetentionPeriod(long backupRetentionPeriod) {
|
||||
backupRetentionPeriod_ = backupRetentionPeriod;
|
||||
setParameter(std::string("BackupRetentionPeriod"), std::to_string(backupRetentionPeriod));
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getDBName() const {
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
@@ -363,6 +363,15 @@ void CreateDBInstanceRequest::setTargetDedicatedHostIdForSlave(const std::string
|
||||
setParameter(std::string("TargetDedicatedHostIdForSlave"), targetDedicatedHostIdForSlave);
|
||||
}
|
||||
|
||||
bool CreateDBInstanceRequest::getExternalReplication() const {
|
||||
return externalReplication_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setExternalReplication(bool externalReplication) {
|
||||
externalReplication_ = externalReplication;
|
||||
setParameter(std::string("ExternalReplication"), externalReplication ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getZoneIdSlave1() const {
|
||||
return zoneIdSlave1_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void CreateRCSnapshotRequest::setDescription(const std::string &description) {
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateRCSnapshotRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateRCSnapshotRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
int CreateRCSnapshotRequest::getInstantAccessRetentionDays() const {
|
||||
return instantAccessRetentionDays_;
|
||||
}
|
||||
@@ -70,6 +79,20 @@ void CreateRCSnapshotRequest::setDiskId(const std::string &diskId) {
|
||||
setParameter(std::string("DiskId"), diskId);
|
||||
}
|
||||
|
||||
std::vector<CreateRCSnapshotRequest::Tag> CreateRCSnapshotRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateRCSnapshotRequest::setTag(const std::vector<CreateRCSnapshotRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateRCSnapshotRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
@@ -103,6 +103,8 @@ void DescribeBackupsResult::parse(const std::string &payload)
|
||||
itemsObject.storeStatus = valueItemsBackup["StoreStatus"].asString();
|
||||
if(!valueItemsBackup["TotalBackupSize"].isNull())
|
||||
itemsObject.totalBackupSize = std::stol(valueItemsBackup["TotalBackupSize"].asString());
|
||||
if(!valueItemsBackup["ExpectExpireTime"].isNull())
|
||||
itemsObject.expectExpireTime = valueItemsBackup["ExpectExpireTime"].asString();
|
||||
auto allBackupDownloadLinkByDBNode = valueItemsBackup["BackupDownloadLinkByDB"]["BackupDownloadLinkByDBItem"];
|
||||
for (auto valueItemsBackupBackupDownloadLinkByDBBackupDownloadLinkByDBItem : allBackupDownloadLinkByDBNode)
|
||||
{
|
||||
|
||||
90
rds/src/model/DescribeComputeBurstConfigRequest.cc
Normal file
90
rds/src/model/DescribeComputeBurstConfigRequest.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/rds/model/DescribeComputeBurstConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeComputeBurstConfigRequest;
|
||||
|
||||
DescribeComputeBurstConfigRequest::DescribeComputeBurstConfigRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DescribeComputeBurstConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeComputeBurstConfigRequest::~DescribeComputeBurstConfigRequest() {}
|
||||
|
||||
std::string DescribeComputeBurstConfigRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeComputeBurstConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeComputeBurstConfigRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeComputeBurstConfigRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeComputeBurstConfigRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeComputeBurstConfigRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeComputeBurstConfigRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeComputeBurstConfigRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeComputeBurstConfigRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeComputeBurstConfigRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeComputeBurstConfigRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeComputeBurstConfigRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeComputeBurstConfigRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeComputeBurstConfigRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
58
rds/src/model/DescribeComputeBurstConfigResult.cc
Normal file
58
rds/src/model/DescribeComputeBurstConfigResult.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/DescribeComputeBurstConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeComputeBurstConfigResult::DescribeComputeBurstConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeComputeBurstConfigResult::DescribeComputeBurstConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeComputeBurstConfigResult::~DescribeComputeBurstConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeComputeBurstConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ComputeBurstEnabled"].isNull())
|
||||
computeBurstEnabled_ = value["ComputeBurstEnabled"].asString() == "true";
|
||||
if(!value["ComputeBurstConfig"].isNull())
|
||||
computeBurstConfig_ = value["ComputeBurstConfig"].asString();
|
||||
|
||||
}
|
||||
|
||||
bool DescribeComputeBurstConfigResult::getComputeBurstEnabled()const
|
||||
{
|
||||
return computeBurstEnabled_;
|
||||
}
|
||||
|
||||
std::string DescribeComputeBurstConfigResult::getComputeBurstConfig()const
|
||||
{
|
||||
return computeBurstConfig_;
|
||||
}
|
||||
|
||||
@@ -127,6 +127,8 @@ void DescribeDBInstancesAsCsvResult::parse(const std::string &payload)
|
||||
itemsObject.vpcId = valueItemsDBInstanceAttribute["VpcId"].asString();
|
||||
if(!valueItemsDBInstanceAttribute["ZoneId"].isNull())
|
||||
itemsObject.zoneId = valueItemsDBInstanceAttribute["ZoneId"].asString();
|
||||
if(!valueItemsDBInstanceAttribute["DBInstanceStorageType"].isNull())
|
||||
itemsObject.dBInstanceStorageType = valueItemsDBInstanceAttribute["DBInstanceStorageType"].asString();
|
||||
auto allSlaveZones = value["SlaveZones"]["slaveRegion"];
|
||||
for (auto value : allSlaveZones)
|
||||
itemsObject.slaveZones.push_back(value.asString());
|
||||
|
||||
@@ -268,6 +268,15 @@ void DescribeDBInstancesRequest::setExpired(const std::string &expired) {
|
||||
setParameter(std::string("Expired"), expired);
|
||||
}
|
||||
|
||||
bool DescribeDBInstancesRequest::getQueryAutoRenewal() const {
|
||||
return queryAutoRenewal_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setQueryAutoRenewal(bool queryAutoRenewal) {
|
||||
queryAutoRenewal_ = queryAutoRenewal;
|
||||
setParameter(std::string("QueryAutoRenewal"), queryAutoRenewal ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getEngine() const {
|
||||
return engine_;
|
||||
}
|
||||
|
||||
@@ -159,6 +159,8 @@ void DescribeDBInstancesResult::parse(const std::string &payload)
|
||||
itemsObject.blueInstanceName = valueItemsDBInstance["BlueInstanceName"].asString();
|
||||
if(!valueItemsDBInstance["GreenInstanceName"].isNull())
|
||||
itemsObject.greenInstanceName = valueItemsDBInstance["GreenInstanceName"].asString();
|
||||
if(!valueItemsDBInstance["AutoRenewal"].isNull())
|
||||
itemsObject.autoRenewal = valueItemsDBInstance["AutoRenewal"].asString() == "true";
|
||||
auto allReadOnlyDBInstanceIdsNode = valueItemsDBInstance["ReadOnlyDBInstanceIds"]["ReadOnlyDBInstanceId"];
|
||||
for (auto valueItemsDBInstanceReadOnlyDBInstanceIdsReadOnlyDBInstanceId : allReadOnlyDBInstanceIdsNode)
|
||||
{
|
||||
|
||||
92
rds/src/model/DescribeRCCloudAssistantStatusRequest.cc
Normal file
92
rds/src/model/DescribeRCCloudAssistantStatusRequest.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/DescribeRCCloudAssistantStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeRCCloudAssistantStatusRequest;
|
||||
|
||||
DescribeRCCloudAssistantStatusRequest::DescribeRCCloudAssistantStatusRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DescribeRCCloudAssistantStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRCCloudAssistantStatusRequest::~DescribeRCCloudAssistantStatusRequest() {}
|
||||
|
||||
std::string DescribeRCCloudAssistantStatusRequest::getOSType() const {
|
||||
return oSType_;
|
||||
}
|
||||
|
||||
void DescribeRCCloudAssistantStatusRequest::setOSType(const std::string &oSType) {
|
||||
oSType_ = oSType;
|
||||
setParameter(std::string("OSType"), oSType);
|
||||
}
|
||||
|
||||
int DescribeRCCloudAssistantStatusRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRCCloudAssistantStatusRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeRCCloudAssistantStatusRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRCCloudAssistantStatusRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeRCCloudAssistantStatusRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeRCCloudAssistantStatusRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::vector<DescribeRCCloudAssistantStatusRequest::std::string> DescribeRCCloudAssistantStatusRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void DescribeRCCloudAssistantStatusRequest::setInstanceIds(const std::vector<DescribeRCCloudAssistantStatusRequest::std::string> &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
for(int dep1 = 0; dep1 != instanceIds.size(); dep1++) {
|
||||
setParameter(std::string("InstanceIds") + "." + std::to_string(dep1 + 1), instanceIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
int DescribeRCCloudAssistantStatusRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRCCloudAssistantStatusRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeRCCloudAssistantStatusRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeRCCloudAssistantStatusRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
101
rds/src/model/DescribeRCCloudAssistantStatusResult.cc
Normal file
101
rds/src/model/DescribeRCCloudAssistantStatusResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/DescribeRCCloudAssistantStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeRCCloudAssistantStatusResult::DescribeRCCloudAssistantStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRCCloudAssistantStatusResult::DescribeRCCloudAssistantStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRCCloudAssistantStatusResult::~DescribeRCCloudAssistantStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeRCCloudAssistantStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstanceCloudAssistantStatusSetNode = value["InstanceCloudAssistantStatusSet"]["instanceCloudAssistantStatusSetItem"];
|
||||
for (auto valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem : allInstanceCloudAssistantStatusSetNode)
|
||||
{
|
||||
InstanceCloudAssistantStatusSetItem instanceCloudAssistantStatusSetObject;
|
||||
if(!valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["CloudAssistantVersion"].isNull())
|
||||
instanceCloudAssistantStatusSetObject.cloudAssistantVersion = valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["CloudAssistantVersion"].asString();
|
||||
if(!valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["SupportSessionManager"].isNull())
|
||||
instanceCloudAssistantStatusSetObject.supportSessionManager = valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["SupportSessionManager"].asString() == "true";
|
||||
if(!valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["InstanceId"].isNull())
|
||||
instanceCloudAssistantStatusSetObject.instanceId = valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["InstanceId"].asString();
|
||||
if(!valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["InvocationCount"].isNull())
|
||||
instanceCloudAssistantStatusSetObject.invocationCount = std::stoi(valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["InvocationCount"].asString());
|
||||
if(!valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["OSType"].isNull())
|
||||
instanceCloudAssistantStatusSetObject.oSType = valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["OSType"].asString();
|
||||
if(!valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["CloudAssistantStatus"].isNull())
|
||||
instanceCloudAssistantStatusSetObject.cloudAssistantStatus = valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["CloudAssistantStatus"].asString();
|
||||
if(!valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["LastHeartbeatTime"].isNull())
|
||||
instanceCloudAssistantStatusSetObject.lastHeartbeatTime = valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["LastHeartbeatTime"].asString();
|
||||
if(!valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["LastInvokedTime"].isNull())
|
||||
instanceCloudAssistantStatusSetObject.lastInvokedTime = valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["LastInvokedTime"].asString();
|
||||
if(!valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["ActiveTaskCount"].isNull())
|
||||
instanceCloudAssistantStatusSetObject.activeTaskCount = std::stoi(valueInstanceCloudAssistantStatusSetinstanceCloudAssistantStatusSetItem["ActiveTaskCount"].asString());
|
||||
instanceCloudAssistantStatusSet_.push_back(instanceCloudAssistantStatusSetObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
|
||||
}
|
||||
|
||||
int DescribeRCCloudAssistantStatusResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeRCCloudAssistantStatusResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string DescribeRCCloudAssistantStatusResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRCCloudAssistantStatusResult::InstanceCloudAssistantStatusSetItem> DescribeRCCloudAssistantStatusResult::getInstanceCloudAssistantStatusSet()const
|
||||
{
|
||||
return instanceCloudAssistantStatusSet_;
|
||||
}
|
||||
|
||||
std::string DescribeRCCloudAssistantStatusResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -52,3 +52,12 @@ void DescribeRCInstanceAttributeRequest::setRegionId(const std::string ®ionId
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
long DescribeRCInstanceAttributeRequest::getMaxDisksResults() const {
|
||||
return maxDisksResults_;
|
||||
}
|
||||
|
||||
void DescribeRCInstanceAttributeRequest::setMaxDisksResults(long maxDisksResults) {
|
||||
maxDisksResults_ = maxDisksResults;
|
||||
setParameter(std::string("MaxDisksResults"), std::to_string(maxDisksResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -45,14 +45,14 @@ void DescribeRCInstanceAttributeResult::parse(const std::string &payload)
|
||||
DataDisk dataDisksObject;
|
||||
if(!valueDataDisksDataDisk["Category"].isNull())
|
||||
dataDisksObject.category = valueDataDisksDataDisk["Category"].asString();
|
||||
if(!valueDataDisksDataDisk["DeleteWithInstance"].isNull())
|
||||
dataDisksObject.deleteWithInstance = valueDataDisksDataDisk["DeleteWithInstance"].asString() == "true";
|
||||
if(!valueDataDisksDataDisk["Encrypted"].isNull())
|
||||
dataDisksObject.encrypted = valueDataDisksDataDisk["Encrypted"].asString();
|
||||
if(!valueDataDisksDataDisk["PerformanceLevel"].isNull())
|
||||
dataDisksObject.performanceLevel = valueDataDisksDataDisk["PerformanceLevel"].asString();
|
||||
if(!valueDataDisksDataDisk["Size"].isNull())
|
||||
dataDisksObject.size = std::stol(valueDataDisksDataDisk["Size"].asString());
|
||||
if(!valueDataDisksDataDisk["DeleteWithInstance"].isNull())
|
||||
dataDisksObject.deleteWithInstance = valueDataDisksDataDisk["DeleteWithInstance"].asString() == "true";
|
||||
dataDisks_.push_back(dataDisksObject);
|
||||
}
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
@@ -61,10 +61,10 @@ void DescribeRCInstanceAttributeResult::parse(const std::string &payload)
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["ResourceId"].isNull())
|
||||
tagsObject.resourceId = valueTagsTag["ResourceId"].asString();
|
||||
if(!valueTagsTag["ResourceType"].isNull())
|
||||
tagsObject.resourceType = valueTagsTag["ResourceType"].asString();
|
||||
if(!valueTagsTag["TagKey"].isNull())
|
||||
tagsObject.tagKey = valueTagsTag["TagKey"].asString();
|
||||
if(!valueTagsTag["ResourceType"].isNull())
|
||||
tagsObject.resourceType = valueTagsTag["ResourceType"].asString();
|
||||
if(!valueTagsTag["TagValue"].isNull())
|
||||
tagsObject.tagValue = valueTagsTag["TagValue"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
@@ -191,14 +191,19 @@ void DescribeRCInstanceAttributeResult::parse(const std::string &payload)
|
||||
createMode_ = std::stoi(value["CreateMode"].asString());
|
||||
if(!value["AutoRenew"].isNull())
|
||||
autoRenew_ = value["AutoRenew"].asString() == "true";
|
||||
if(!value["DeletionProtection"].isNull())
|
||||
deletionProtection_ = value["DeletionProtection"].asString() == "true";
|
||||
if(!value["Gpu"].isNull())
|
||||
gpu_ = std::stoi(value["Gpu"].asString());
|
||||
if(!value["GpuTypes"].isNull())
|
||||
gpuTypes_ = value["GpuTypes"].asString();
|
||||
if(!value["NodeType"].isNull())
|
||||
nodeType_ = value["NodeType"].asString();
|
||||
if(!value["UserData"].isNull())
|
||||
userData_ = value["UserData"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRCInstanceAttributeResult::DataDisk> DescribeRCInstanceAttributeResult::getDataDisks()const
|
||||
{
|
||||
return dataDisks_;
|
||||
@@ -219,16 +224,16 @@ std::string DescribeRCInstanceAttributeResult::getInstanceChargeType()const
|
||||
return instanceChargeType_;
|
||||
}
|
||||
|
||||
bool DescribeRCInstanceAttributeResult::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
int DescribeRCInstanceAttributeResult::getCpu()const
|
||||
{
|
||||
return cpu_;
|
||||
}
|
||||
|
||||
int DescribeRCInstanceAttributeResult::getGpu()const
|
||||
{
|
||||
return gpu_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getInstanceNetworkType()const
|
||||
{
|
||||
return instanceNetworkType_;
|
||||
@@ -239,11 +244,6 @@ DescribeRCInstanceAttributeResult::SystemDisk DescribeRCInstanceAttributeResult:
|
||||
return systemDisk_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeRCInstanceAttributeResult::getPublicIpAddress()const
|
||||
{
|
||||
return publicIpAddress_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getDiskType()const
|
||||
{
|
||||
return diskType_;
|
||||
@@ -254,11 +254,6 @@ std::vector<std::string> DescribeRCInstanceAttributeResult::getInnerIpAddress()c
|
||||
return innerIpAddress_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getHostType()const
|
||||
{
|
||||
return hostType_;
|
||||
}
|
||||
|
||||
bool DescribeRCInstanceAttributeResult::getEnableJumboFrame()const
|
||||
{
|
||||
return enableJumboFrame_;
|
||||
@@ -284,11 +279,6 @@ std::string DescribeRCInstanceAttributeResult::getEcsInstanceType()const
|
||||
return ecsInstanceType_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRCInstanceAttributeResult::Tag> DescribeRCInstanceAttributeResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
@@ -304,36 +294,11 @@ std::string DescribeRCInstanceAttributeResult::getVlanId()const
|
||||
return vlanId_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getSpotStrategy()const
|
||||
{
|
||||
return spotStrategy_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getKeyPairName()const
|
||||
{
|
||||
return keyPairName_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getIoOptimized()const
|
||||
{
|
||||
return ioOptimized_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
@@ -344,9 +309,9 @@ std::string DescribeRCInstanceAttributeResult::getStoppedMode()const
|
||||
return stoppedMode_;
|
||||
}
|
||||
|
||||
DescribeRCInstanceAttributeResult::DedicatedHostAttribute DescribeRCInstanceAttributeResult::getDedicatedHostAttribute()const
|
||||
bool DescribeRCInstanceAttributeResult::getDeletionProtection()const
|
||||
{
|
||||
return dedicatedHostAttribute_;
|
||||
return deletionProtection_;
|
||||
}
|
||||
|
||||
DescribeRCInstanceAttributeResult::VpcAttributes DescribeRCInstanceAttributeResult::getVpcAttributes()const
|
||||
@@ -359,16 +324,6 @@ std::vector<std::string> DescribeRCInstanceAttributeResult::getSecurityGroupIds(
|
||||
return securityGroupIds_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRCInstanceAttributeResult::LockReason> DescribeRCInstanceAttributeResult::getOperationLocks()const
|
||||
{
|
||||
return operationLocks_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getDbType()const
|
||||
{
|
||||
return dbType_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getInternetChargeType()const
|
||||
{
|
||||
return internetChargeType_;
|
||||
@@ -389,11 +344,6 @@ int DescribeRCInstanceAttributeResult::getInternetMaxBandwidthOut()const
|
||||
return internetMaxBandwidthOut_;
|
||||
}
|
||||
|
||||
int DescribeRCInstanceAttributeResult::getInternetMaxBandwidthIn()const
|
||||
{
|
||||
return internetMaxBandwidthIn_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getSerialNumber()const
|
||||
{
|
||||
return serialNumber_;
|
||||
@@ -404,11 +354,96 @@ int DescribeRCInstanceAttributeResult::getCreateMode()const
|
||||
return createMode_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getNodeType()const
|
||||
{
|
||||
return nodeType_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getCreationTime()const
|
||||
{
|
||||
return creationTime_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getUserData()const
|
||||
{
|
||||
return userData_;
|
||||
}
|
||||
|
||||
bool DescribeRCInstanceAttributeResult::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeRCInstanceAttributeResult::getPublicIpAddress()const
|
||||
{
|
||||
return publicIpAddress_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getHostType()const
|
||||
{
|
||||
return hostType_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getSpotStrategy()const
|
||||
{
|
||||
return spotStrategy_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getKeyPairName()const
|
||||
{
|
||||
return keyPairName_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getGpuTypes()const
|
||||
{
|
||||
return gpuTypes_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getIoOptimized()const
|
||||
{
|
||||
return ioOptimized_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
DescribeRCInstanceAttributeResult::DedicatedHostAttribute DescribeRCInstanceAttributeResult::getDedicatedHostAttribute()const
|
||||
{
|
||||
return dedicatedHostAttribute_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRCInstanceAttributeResult::LockReason> DescribeRCInstanceAttributeResult::getOperationLocks()const
|
||||
{
|
||||
return operationLocks_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getDbType()const
|
||||
{
|
||||
return dbType_;
|
||||
}
|
||||
|
||||
int DescribeRCInstanceAttributeResult::getInternetMaxBandwidthIn()const
|
||||
{
|
||||
return internetMaxBandwidthIn_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInstanceAttributeResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
@@ -89,6 +89,8 @@ void DescribeRCInstancesResult::parse(const std::string &payload)
|
||||
rCInstancesObject.deploymentSetId = valueRCInstancesrCInstancesItem["DeploymentSetId"].asString();
|
||||
if(!valueRCInstancesrCInstancesItem["ImageId"].isNull())
|
||||
rCInstancesObject.imageId = valueRCInstancesrCInstancesItem["ImageId"].asString();
|
||||
if(!valueRCInstancesrCInstancesItem["NodeType"].isNull())
|
||||
rCInstancesObject.nodeType = valueRCInstancesrCInstancesItem["NodeType"].asString();
|
||||
auto allTagResourcesNode = valueRCInstancesrCInstancesItem["TagResources"]["TagResource"];
|
||||
for (auto valueRCInstancesrCInstancesItemTagResourcesTagResource : allTagResourcesNode)
|
||||
{
|
||||
|
||||
147
rds/src/model/DescribeRCInvocationResultsRequest.cc
Normal file
147
rds/src/model/DescribeRCInvocationResultsRequest.cc
Normal file
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
* 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/DescribeRCInvocationResultsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeRCInvocationResultsRequest;
|
||||
|
||||
DescribeRCInvocationResultsRequest::DescribeRCInvocationResultsRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DescribeRCInvocationResults") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRCInvocationResultsRequest::~DescribeRCInvocationResultsRequest() {}
|
||||
|
||||
std::string DescribeRCInvocationResultsRequest::getCommandId() const {
|
||||
return commandId_;
|
||||
}
|
||||
|
||||
void DescribeRCInvocationResultsRequest::setCommandId(const std::string &commandId) {
|
||||
commandId_ = commandId;
|
||||
setParameter(std::string("CommandId"), commandId);
|
||||
}
|
||||
|
||||
int DescribeRCInvocationResultsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRCInvocationResultsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeRCInvocationResultsRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeRCInvocationResultsRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeRCInvocationResultsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRCInvocationResultsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeRCInvocationResultsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeRCInvocationResultsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string DescribeRCInvocationResultsRequest::getContentEncoding() const {
|
||||
return contentEncoding_;
|
||||
}
|
||||
|
||||
void DescribeRCInvocationResultsRequest::setContentEncoding(const std::string &contentEncoding) {
|
||||
contentEncoding_ = contentEncoding;
|
||||
setParameter(std::string("ContentEncoding"), contentEncoding);
|
||||
}
|
||||
|
||||
int DescribeRCInvocationResultsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRCInvocationResultsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<DescribeRCInvocationResultsRequest::Tag> DescribeRCInvocationResultsRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeRCInvocationResultsRequest::setTag(const std::vector<DescribeRCInvocationResultsRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeRCInvocationResultsRequest::getInvokeId() const {
|
||||
return invokeId_;
|
||||
}
|
||||
|
||||
void DescribeRCInvocationResultsRequest::setInvokeId(const std::string &invokeId) {
|
||||
invokeId_ = invokeId;
|
||||
setParameter(std::string("InvokeId"), invokeId);
|
||||
}
|
||||
|
||||
std::string DescribeRCInvocationResultsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeRCInvocationResultsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeRCInvocationResultsRequest::getInvokeRecordStatus() const {
|
||||
return invokeRecordStatus_;
|
||||
}
|
||||
|
||||
void DescribeRCInvocationResultsRequest::setInvokeRecordStatus(const std::string &invokeRecordStatus) {
|
||||
invokeRecordStatus_ = invokeRecordStatus;
|
||||
setParameter(std::string("InvokeRecordStatus"), invokeRecordStatus);
|
||||
}
|
||||
|
||||
bool DescribeRCInvocationResultsRequest::getIncludeHistory() const {
|
||||
return includeHistory_;
|
||||
}
|
||||
|
||||
void DescribeRCInvocationResultsRequest::setIncludeHistory(bool includeHistory) {
|
||||
includeHistory_ = includeHistory;
|
||||
setParameter(std::string("IncludeHistory"), includeHistory ? "true" : "false");
|
||||
}
|
||||
|
||||
int DescribeRCInvocationResultsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeRCInvocationResultsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
127
rds/src/model/DescribeRCInvocationResultsResult.cc
Normal file
127
rds/src/model/DescribeRCInvocationResultsResult.cc
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* 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/DescribeRCInvocationResultsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeRCInvocationResultsResult::DescribeRCInvocationResultsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRCInvocationResultsResult::DescribeRCInvocationResultsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRCInvocationResultsResult::~DescribeRCInvocationResultsResult()
|
||||
{}
|
||||
|
||||
void DescribeRCInvocationResultsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInvocationResultsNode = value["InvocationResults"]["invocationResultsItem"];
|
||||
for (auto valueInvocationResultsinvocationResultsItem : allInvocationResultsNode)
|
||||
{
|
||||
InvocationResultsItem invocationResultsObject;
|
||||
if(!valueInvocationResultsinvocationResultsItem["Dropped"].isNull())
|
||||
invocationResultsObject.dropped = std::stoi(valueInvocationResultsinvocationResultsItem["Dropped"].asString());
|
||||
if(!valueInvocationResultsinvocationResultsItem["InvocationStatus"].isNull())
|
||||
invocationResultsObject.invocationStatus = valueInvocationResultsinvocationResultsItem["InvocationStatus"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["InstanceId"].isNull())
|
||||
invocationResultsObject.instanceId = valueInvocationResultsinvocationResultsItem["InstanceId"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["ErrorInfo"].isNull())
|
||||
invocationResultsObject.errorInfo = valueInvocationResultsinvocationResultsItem["ErrorInfo"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["ExitCode"].isNull())
|
||||
invocationResultsObject.exitCode = std::stoi(valueInvocationResultsinvocationResultsItem["ExitCode"].asString());
|
||||
if(!valueInvocationResultsinvocationResultsItem["StartTime"].isNull())
|
||||
invocationResultsObject.startTime = valueInvocationResultsinvocationResultsItem["StartTime"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["Repeats"].isNull())
|
||||
invocationResultsObject.repeats = valueInvocationResultsinvocationResultsItem["Repeats"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["InvokeRecordStatus"].isNull())
|
||||
invocationResultsObject.invokeRecordStatus = valueInvocationResultsinvocationResultsItem["InvokeRecordStatus"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["FinishedTime"].isNull())
|
||||
invocationResultsObject.finishedTime = valueInvocationResultsinvocationResultsItem["FinishedTime"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["ContainerId"].isNull())
|
||||
invocationResultsObject.containerId = valueInvocationResultsinvocationResultsItem["ContainerId"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["ContainerName"].isNull())
|
||||
invocationResultsObject.containerName = valueInvocationResultsinvocationResultsItem["ContainerName"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["Username"].isNull())
|
||||
invocationResultsObject.username = valueInvocationResultsinvocationResultsItem["Username"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["Output"].isNull())
|
||||
invocationResultsObject.output = valueInvocationResultsinvocationResultsItem["Output"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["CommandId"].isNull())
|
||||
invocationResultsObject.commandId = valueInvocationResultsinvocationResultsItem["CommandId"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["ErrorCode"].isNull())
|
||||
invocationResultsObject.errorCode = valueInvocationResultsinvocationResultsItem["ErrorCode"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["InvokeId"].isNull())
|
||||
invocationResultsObject.invokeId = valueInvocationResultsinvocationResultsItem["InvokeId"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItem["StopTime"].isNull())
|
||||
invocationResultsObject.stopTime = valueInvocationResultsinvocationResultsItem["StopTime"].asString();
|
||||
auto allTagsNode = valueInvocationResultsinvocationResultsItem["Tags"]["tagsItem"];
|
||||
for (auto valueInvocationResultsinvocationResultsItemTagstagsItem : allTagsNode)
|
||||
{
|
||||
InvocationResultsItem::TagsItem tagsObject;
|
||||
if(!valueInvocationResultsinvocationResultsItemTagstagsItem["TagKey"].isNull())
|
||||
tagsObject.tagKey = valueInvocationResultsinvocationResultsItemTagstagsItem["TagKey"].asString();
|
||||
if(!valueInvocationResultsinvocationResultsItemTagstagsItem["TagValue"].isNull())
|
||||
tagsObject.tagValue = valueInvocationResultsinvocationResultsItemTagstagsItem["TagValue"].asString();
|
||||
invocationResultsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
invocationResults_.push_back(invocationResultsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRCInvocationResultsResult::InvocationResultsItem> DescribeRCInvocationResultsResult::getInvocationResults()const
|
||||
{
|
||||
return invocationResults_;
|
||||
}
|
||||
|
||||
int DescribeRCInvocationResultsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInvocationResultsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInvocationResultsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeRCInvocationResultsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -70,3 +70,17 @@ void DescribeRCSnapshotsRequest::setDiskId(const std::string &diskId) {
|
||||
setParameter(std::string("DiskId"), diskId);
|
||||
}
|
||||
|
||||
std::vector<DescribeRCSnapshotsRequest::Tag> DescribeRCSnapshotsRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeRCSnapshotsRequest::setTag(const std::vector<DescribeRCSnapshotsRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -77,6 +77,18 @@ void DescribeRCSnapshotsResult::parse(const std::string &payload)
|
||||
snapshotsObject.status = valueSnapshotsSnapshot["Status"].asString();
|
||||
if(!valueSnapshotsSnapshot["Usage"].isNull())
|
||||
snapshotsObject.usage = valueSnapshotsSnapshot["Usage"].asString();
|
||||
if(!valueSnapshotsSnapshot["ResourceGroupId"].isNull())
|
||||
snapshotsObject.resourceGroupId = valueSnapshotsSnapshot["ResourceGroupId"].asString();
|
||||
auto allTagNode = valueSnapshotsSnapshot["Tag"]["tagItem"];
|
||||
for (auto valueSnapshotsSnapshotTagtagItem : allTagNode)
|
||||
{
|
||||
Snapshot::TagItem tagObject;
|
||||
if(!valueSnapshotsSnapshotTagtagItem["TagKey"].isNull())
|
||||
tagObject.tagKey = valueSnapshotsSnapshotTagtagItem["TagKey"].asString();
|
||||
if(!valueSnapshotsSnapshotTagtagItem["TagValue"].isNull())
|
||||
tagObject.tagValue = valueSnapshotsSnapshotTagtagItem["TagValue"].asString();
|
||||
snapshotsObject.tag.push_back(tagObject);
|
||||
}
|
||||
snapshots_.push_back(snapshotsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
|
||||
45
rds/src/model/DescribeRCVClusterRequest.cc
Normal file
45
rds/src/model/DescribeRCVClusterRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeRCVClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeRCVClusterRequest;
|
||||
|
||||
DescribeRCVClusterRequest::DescribeRCVClusterRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DescribeRCVCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRCVClusterRequest::~DescribeRCVClusterRequest() {}
|
||||
|
||||
std::string DescribeRCVClusterRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeRCVClusterRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeRCVClusterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRCVClusterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
51
rds/src/model/DescribeRCVClusterResult.cc
Normal file
51
rds/src/model/DescribeRCVClusterResult.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/rds/model/DescribeRCVClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeRCVClusterResult::DescribeRCVClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRCVClusterResult::DescribeRCVClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRCVClusterResult::~DescribeRCVClusterResult()
|
||||
{}
|
||||
|
||||
void DescribeRCVClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["VClusterStatus"].isNull())
|
||||
vClusterStatus_ = value["VClusterStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeRCVClusterResult::getVClusterStatus()const
|
||||
{
|
||||
return vClusterStatus_;
|
||||
}
|
||||
|
||||
@@ -61,15 +61,6 @@ void DescribeSQLCollectorRetentionRequest::setSecurityToken(const std::string &s
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
71
rds/src/model/DescribeVSwitchListRequest.cc
Normal file
71
rds/src/model/DescribeVSwitchListRequest.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/rds/model/DescribeVSwitchListRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeVSwitchListRequest;
|
||||
|
||||
DescribeVSwitchListRequest::DescribeVSwitchListRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DescribeVSwitchList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVSwitchListRequest::~DescribeVSwitchListRequest() {}
|
||||
|
||||
std::vector<std::string> DescribeVSwitchListRequest::getVSwitchIds() const {
|
||||
return vSwitchIds_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchListRequest::setVSwitchIds(const std::vector<std::string> &vSwitchIds) {
|
||||
vSwitchIds_ = vSwitchIds;
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchListRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchListRequest::setPageNumber(const std::string &pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), pageNumber);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchListRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchListRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchListRequest::setPageSize(const std::string &pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchListRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchListRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
96
rds/src/model/DescribeVSwitchListResult.cc
Normal file
96
rds/src/model/DescribeVSwitchListResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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/DescribeVSwitchListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeVSwitchListResult::DescribeVSwitchListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVSwitchListResult::DescribeVSwitchListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVSwitchListResult::~DescribeVSwitchListResult()
|
||||
{}
|
||||
|
||||
void DescribeVSwitchListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVSwitchesNode = value["VSwitches"]["VSwitchesItem"];
|
||||
for (auto valueVSwitchesVSwitchesItem : allVSwitchesNode)
|
||||
{
|
||||
VSwitchesItem vSwitchesObject;
|
||||
if(!valueVSwitchesVSwitchesItem["IsDefault"].isNull())
|
||||
vSwitchesObject.isDefault = valueVSwitchesVSwitchesItem["IsDefault"].asString();
|
||||
if(!valueVSwitchesVSwitchesItem["Status"].isNull())
|
||||
vSwitchesObject.status = valueVSwitchesVSwitchesItem["Status"].asString();
|
||||
if(!valueVSwitchesVSwitchesItem["IzNo"].isNull())
|
||||
vSwitchesObject.izNo = valueVSwitchesVSwitchesItem["IzNo"].asString();
|
||||
if(!valueVSwitchesVSwitchesItem["GmtCreate"].isNull())
|
||||
vSwitchesObject.gmtCreate = valueVSwitchesVSwitchesItem["GmtCreate"].asString();
|
||||
if(!valueVSwitchesVSwitchesItem["Description"].isNull())
|
||||
vSwitchesObject.description = valueVSwitchesVSwitchesItem["Description"].asString();
|
||||
if(!valueVSwitchesVSwitchesItem["AvailableIpAddressCount"].isNull())
|
||||
vSwitchesObject.availableIpAddressCount = valueVSwitchesVSwitchesItem["AvailableIpAddressCount"].asString();
|
||||
if(!valueVSwitchesVSwitchesItem["VSwitchId"].isNull())
|
||||
vSwitchesObject.vSwitchId = valueVSwitchesVSwitchesItem["VSwitchId"].asString();
|
||||
if(!valueVSwitchesVSwitchesItem["CidrBlock"].isNull())
|
||||
vSwitchesObject.cidrBlock = valueVSwitchesVSwitchesItem["CidrBlock"].asString();
|
||||
if(!valueVSwitchesVSwitchesItem["VSwitchName"].isNull())
|
||||
vSwitchesObject.vSwitchName = valueVSwitchesVSwitchesItem["VSwitchName"].asString();
|
||||
if(!valueVSwitchesVSwitchesItem["ShareType"].isNull())
|
||||
vSwitchesObject.shareType = valueVSwitchesVSwitchesItem["ShareType"].asString();
|
||||
vSwitches_.push_back(vSwitchesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeVSwitchListResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeVSwitchListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeVSwitchListResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeVSwitchListResult::VSwitchesItem> DescribeVSwitchListResult::getVSwitches()const
|
||||
{
|
||||
return vSwitches_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void ImportUserBackupFileRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ImportUserBackupFileRequest::getSourceInfo() const {
|
||||
return sourceInfo_;
|
||||
}
|
||||
|
||||
void ImportUserBackupFileRequest::setSourceInfo(const std::string &sourceInfo) {
|
||||
sourceInfo_ = sourceInfo;
|
||||
setParameter(std::string("SourceInfo"), sourceInfo);
|
||||
}
|
||||
|
||||
std::string ImportUserBackupFileRequest::getEngineVersion() const {
|
||||
return engineVersion_;
|
||||
}
|
||||
@@ -52,6 +61,15 @@ void ImportUserBackupFileRequest::setAccessKeyId(const std::string &accessKeyId)
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string ImportUserBackupFileRequest::getMode() const {
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void ImportUserBackupFileRequest::setMode(const std::string &mode) {
|
||||
mode_ = mode;
|
||||
setParameter(std::string("Mode"), mode);
|
||||
}
|
||||
|
||||
std::string ImportUserBackupFileRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
@@ -124,6 +142,24 @@ void ImportUserBackupFileRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ImportUserBackupFileRequest::getMasterInfo() const {
|
||||
return masterInfo_;
|
||||
}
|
||||
|
||||
void ImportUserBackupFileRequest::setMasterInfo(const std::string &masterInfo) {
|
||||
masterInfo_ = masterInfo;
|
||||
setParameter(std::string("MasterInfo"), masterInfo);
|
||||
}
|
||||
|
||||
bool ImportUserBackupFileRequest::getBuildReplication() const {
|
||||
return buildReplication_;
|
||||
}
|
||||
|
||||
void ImportUserBackupFileRequest::setBuildReplication(bool buildReplication) {
|
||||
buildReplication_ = buildReplication;
|
||||
setParameter(std::string("BuildReplication"), buildReplication ? "true" : "false");
|
||||
}
|
||||
|
||||
int ImportUserBackupFileRequest::getRestoreSize() const {
|
||||
return restoreSize_;
|
||||
}
|
||||
|
||||
47
rds/src/model/InstallRCCloudAssistantRequest.cc
Normal file
47
rds/src/model/InstallRCCloudAssistantRequest.cc
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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/InstallRCCloudAssistantRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::InstallRCCloudAssistantRequest;
|
||||
|
||||
InstallRCCloudAssistantRequest::InstallRCCloudAssistantRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "InstallRCCloudAssistant") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InstallRCCloudAssistantRequest::~InstallRCCloudAssistantRequest() {}
|
||||
|
||||
std::string InstallRCCloudAssistantRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void InstallRCCloudAssistantRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<InstallRCCloudAssistantRequest::std::string> InstallRCCloudAssistantRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void InstallRCCloudAssistantRequest::setInstanceIds(const std::vector<InstallRCCloudAssistantRequest::std::string> &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
for(int dep1 = 0; dep1 != instanceIds.size(); dep1++) {
|
||||
setParameter(std::string("InstanceIds") + "." + std::to_string(dep1 + 1), instanceIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
44
rds/src/model/InstallRCCloudAssistantResult.cc
Normal file
44
rds/src/model/InstallRCCloudAssistantResult.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/rds/model/InstallRCCloudAssistantResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
InstallRCCloudAssistantResult::InstallRCCloudAssistantResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InstallRCCloudAssistantResult::InstallRCCloudAssistantResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InstallRCCloudAssistantResult::~InstallRCCloudAssistantResult()
|
||||
{}
|
||||
|
||||
void InstallRCCloudAssistantResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
117
rds/src/model/ModifyBackupSetExpireTimeRequest.cc
Normal file
117
rds/src/model/ModifyBackupSetExpireTimeRequest.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/ModifyBackupSetExpireTimeRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifyBackupSetExpireTimeRequest;
|
||||
|
||||
ModifyBackupSetExpireTimeRequest::ModifyBackupSetExpireTimeRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "ModifyBackupSetExpireTime") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyBackupSetExpireTimeRequest::~ModifyBackupSetExpireTimeRequest() {}
|
||||
|
||||
long ModifyBackupSetExpireTimeRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetExpireTimeRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetExpireTimeRequest::getExpectExpireTime() const {
|
||||
return expectExpireTime_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetExpireTimeRequest::setExpectExpireTime(const std::string &expectExpireTime) {
|
||||
expectExpireTime_ = expectExpireTime;
|
||||
setParameter(std::string("ExpectExpireTime"), expectExpireTime);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetExpireTimeRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetExpireTimeRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetExpireTimeRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetExpireTimeRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetExpireTimeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetExpireTimeRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetExpireTimeRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetExpireTimeRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetExpireTimeRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetExpireTimeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifyBackupSetExpireTimeRequest::getBackupId() const {
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetExpireTimeRequest::setBackupId(long backupId) {
|
||||
backupId_ = backupId;
|
||||
setParameter(std::string("BackupId"), std::to_string(backupId));
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetExpireTimeRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetExpireTimeRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyBackupSetExpireTimeRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetExpireTimeRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
72
rds/src/model/ModifyBackupSetExpireTimeResult.cc
Normal file
72
rds/src/model/ModifyBackupSetExpireTimeResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ModifyBackupSetExpireTimeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
ModifyBackupSetExpireTimeResult::ModifyBackupSetExpireTimeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyBackupSetExpireTimeResult::ModifyBackupSetExpireTimeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyBackupSetExpireTimeResult::~ModifyBackupSetExpireTimeResult()
|
||||
{}
|
||||
|
||||
void ModifyBackupSetExpireTimeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetExpireTimeResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetExpireTimeResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetExpireTimeResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ModifyBackupSetExpireTimeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
216
rds/src/model/ModifyComputeBurstConfigRequest.cc
Normal file
216
rds/src/model/ModifyComputeBurstConfigRequest.cc
Normal file
@@ -0,0 +1,216 @@
|
||||
/*
|
||||
* 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/ModifyComputeBurstConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifyComputeBurstConfigRequest;
|
||||
|
||||
ModifyComputeBurstConfigRequest::ModifyComputeBurstConfigRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "ModifyComputeBurstConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyComputeBurstConfigRequest::~ModifyComputeBurstConfigRequest() {}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getCpuShrinkThreshold() const {
|
||||
return cpuShrinkThreshold_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setCpuShrinkThreshold(const std::string &cpuShrinkThreshold) {
|
||||
cpuShrinkThreshold_ = cpuShrinkThreshold;
|
||||
setParameter(std::string("CpuShrinkThreshold"), cpuShrinkThreshold);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getBurstStatus() const {
|
||||
return burstStatus_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setBurstStatus(const std::string &burstStatus) {
|
||||
burstStatus_ = burstStatus;
|
||||
setParameter(std::string("BurstStatus"), burstStatus);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getPeriodScaleMemory() const {
|
||||
return periodScaleMemory_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setPeriodScaleMemory(const std::string &periodScaleMemory) {
|
||||
periodScaleMemory_ = periodScaleMemory;
|
||||
setParameter(std::string("PeriodScaleMemory"), periodScaleMemory);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getSwitchTimeMode() const {
|
||||
return switchTimeMode_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setSwitchTimeMode(const std::string &switchTimeMode) {
|
||||
switchTimeMode_ = switchTimeMode;
|
||||
setParameter(std::string("SwitchTimeMode"), switchTimeMode);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getPeriodScaleCpus() const {
|
||||
return periodScaleCpus_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setPeriodScaleCpus(const std::string &periodScaleCpus) {
|
||||
periodScaleCpus_ = periodScaleCpus;
|
||||
setParameter(std::string("PeriodScaleCpus"), periodScaleCpus);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getSwitchTime() const {
|
||||
return switchTime_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setSwitchTime(const std::string &switchTime) {
|
||||
switchTime_ = switchTime;
|
||||
setParameter(std::string("SwitchTime"), switchTime);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getScaleType() const {
|
||||
return scaleType_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setScaleType(const std::string &scaleType) {
|
||||
scaleType_ = scaleType;
|
||||
setParameter(std::string("ScaleType"), scaleType);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getMemoryEnlargeThreshold() const {
|
||||
return memoryEnlargeThreshold_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setMemoryEnlargeThreshold(const std::string &memoryEnlargeThreshold) {
|
||||
memoryEnlargeThreshold_ = memoryEnlargeThreshold;
|
||||
setParameter(std::string("MemoryEnlargeThreshold"), memoryEnlargeThreshold);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getCrontabJobId() const {
|
||||
return crontabJobId_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setCrontabJobId(const std::string &crontabJobId) {
|
||||
crontabJobId_ = crontabJobId;
|
||||
setParameter(std::string("CrontabJobId"), crontabJobId);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyComputeBurstConfigRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getScaleMaxMemory() const {
|
||||
return scaleMaxMemory_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setScaleMaxMemory(const std::string &scaleMaxMemory) {
|
||||
scaleMaxMemory_ = scaleMaxMemory;
|
||||
setParameter(std::string("ScaleMaxMemory"), scaleMaxMemory);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getMemoryShrinkThreshold() const {
|
||||
return memoryShrinkThreshold_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setMemoryShrinkThreshold(const std::string &memoryShrinkThreshold) {
|
||||
memoryShrinkThreshold_ = memoryShrinkThreshold;
|
||||
setParameter(std::string("MemoryShrinkThreshold"), memoryShrinkThreshold);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getScaleMaxCpus() const {
|
||||
return scaleMaxCpus_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setScaleMaxCpus(const std::string &scaleMaxCpus) {
|
||||
scaleMaxCpus_ = scaleMaxCpus;
|
||||
setParameter(std::string("ScaleMaxCpus"), scaleMaxCpus);
|
||||
}
|
||||
|
||||
std::string ModifyComputeBurstConfigRequest::getCpuEnlargeThreshold() const {
|
||||
return cpuEnlargeThreshold_;
|
||||
}
|
||||
|
||||
void ModifyComputeBurstConfigRequest::setCpuEnlargeThreshold(const std::string &cpuEnlargeThreshold) {
|
||||
cpuEnlargeThreshold_ = cpuEnlargeThreshold;
|
||||
setParameter(std::string("CpuEnlargeThreshold"), cpuEnlargeThreshold);
|
||||
}
|
||||
|
||||
44
rds/src/model/ModifyComputeBurstConfigResult.cc
Normal file
44
rds/src/model/ModifyComputeBurstConfigResult.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/rds/model/ModifyComputeBurstConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
ModifyComputeBurstConfigResult::ModifyComputeBurstConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyComputeBurstConfigResult::ModifyComputeBurstConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyComputeBurstConfigResult::~ModifyComputeBurstConfigResult()
|
||||
{}
|
||||
|
||||
void ModifyComputeBurstConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -25,15 +25,6 @@ ModifyRCInstanceAttributeRequest::ModifyRCInstanceAttributeRequest()
|
||||
|
||||
ModifyRCInstanceAttributeRequest::~ModifyRCInstanceAttributeRequest() {}
|
||||
|
||||
bool ModifyRCInstanceAttributeRequest::getReboot() const {
|
||||
return reboot_;
|
||||
}
|
||||
|
||||
void ModifyRCInstanceAttributeRequest::setReboot(bool reboot) {
|
||||
reboot_ = reboot;
|
||||
setParameter(std::string("Reboot"), reboot ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyRCInstanceAttributeRequest::getSecurityGroupId() const {
|
||||
return securityGroupId_;
|
||||
}
|
||||
@@ -43,6 +34,15 @@ void ModifyRCInstanceAttributeRequest::setSecurityGroupId(const std::string &sec
|
||||
setParameter(std::string("SecurityGroupId"), securityGroupId);
|
||||
}
|
||||
|
||||
bool ModifyRCInstanceAttributeRequest::getDeletionProtection() const {
|
||||
return deletionProtection_;
|
||||
}
|
||||
|
||||
void ModifyRCInstanceAttributeRequest::setDeletionProtection(bool deletionProtection) {
|
||||
deletionProtection_ = deletionProtection;
|
||||
setParameter(std::string("DeletionProtection"), deletionProtection ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyRCInstanceAttributeRequest::getPassword() const {
|
||||
return password_;
|
||||
}
|
||||
@@ -61,15 +61,6 @@ void ModifyRCInstanceAttributeRequest::setHostName(const std::string &hostName)
|
||||
setParameter(std::string("HostName"), hostName);
|
||||
}
|
||||
|
||||
std::string ModifyRCInstanceAttributeRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyRCInstanceAttributeRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyRCInstanceAttributeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -79,3 +70,43 @@ void ModifyRCInstanceAttributeRequest::setRegionId(const std::string ®ionId)
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
bool ModifyRCInstanceAttributeRequest::getReboot() const {
|
||||
return reboot_;
|
||||
}
|
||||
|
||||
void ModifyRCInstanceAttributeRequest::setReboot(bool reboot) {
|
||||
reboot_ = reboot;
|
||||
setParameter(std::string("Reboot"), reboot ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<ModifyRCInstanceAttributeRequest::std::string> ModifyRCInstanceAttributeRequest::getSecurityGroupIds() const {
|
||||
return securityGroupIds_;
|
||||
}
|
||||
|
||||
void ModifyRCInstanceAttributeRequest::setSecurityGroupIds(const std::vector<ModifyRCInstanceAttributeRequest::std::string> &securityGroupIds) {
|
||||
securityGroupIds_ = securityGroupIds;
|
||||
for(int dep1 = 0; dep1 != securityGroupIds.size(); dep1++) {
|
||||
setParameter(std::string("SecurityGroupIds") + "." + std::to_string(dep1 + 1), securityGroupIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ModifyRCInstanceAttributeRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyRCInstanceAttributeRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::vector<ModifyRCInstanceAttributeRequest::std::string> ModifyRCInstanceAttributeRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void ModifyRCInstanceAttributeRequest::setInstanceIds(const std::vector<ModifyRCInstanceAttributeRequest::std::string> &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
for(int dep1 = 0; dep1 != instanceIds.size(); dep1++) {
|
||||
setParameter(std::string("InstanceIds") + "." + std::to_string(dep1 + 1), instanceIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
54
rds/src/model/RedeployRCInstanceRequest.cc
Normal file
54
rds/src/model/RedeployRCInstanceRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/RedeployRCInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::RedeployRCInstanceRequest;
|
||||
|
||||
RedeployRCInstanceRequest::RedeployRCInstanceRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "RedeployRCInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RedeployRCInstanceRequest::~RedeployRCInstanceRequest() {}
|
||||
|
||||
bool RedeployRCInstanceRequest::getForceStop() const {
|
||||
return forceStop_;
|
||||
}
|
||||
|
||||
void RedeployRCInstanceRequest::setForceStop(bool forceStop) {
|
||||
forceStop_ = forceStop;
|
||||
setParameter(std::string("ForceStop"), forceStop ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RedeployRCInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void RedeployRCInstanceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string RedeployRCInstanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RedeployRCInstanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
51
rds/src/model/RedeployRCInstanceResult.cc
Normal file
51
rds/src/model/RedeployRCInstanceResult.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/rds/model/RedeployRCInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
RedeployRCInstanceResult::RedeployRCInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RedeployRCInstanceResult::RedeployRCInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RedeployRCInstanceResult::~RedeployRCInstanceResult()
|
||||
{}
|
||||
|
||||
void RedeployRCInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RedeployRCInstanceResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
253
rds/src/model/RunRCCommandRequest.cc
Normal file
253
rds/src/model/RunRCCommandRequest.cc
Normal file
@@ -0,0 +1,253 @@
|
||||
/*
|
||||
* 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/RunRCCommandRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::RunRCCommandRequest;
|
||||
|
||||
RunRCCommandRequest::RunRCCommandRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "RunRCCommand") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RunRCCommandRequest::~RunRCCommandRequest() {}
|
||||
|
||||
std::vector<RunRCCommandRequest::ResourceTags> RunRCCommandRequest::getResourceTags() const {
|
||||
return resourceTags_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setResourceTags(const std::vector<RunRCCommandRequest::ResourceTags> &resourceTags) {
|
||||
resourceTags_ = resourceTags;
|
||||
for(int dep1 = 0; dep1 != resourceTags.size(); dep1++) {
|
||||
setParameter(std::string("ResourceTags") + "." + std::to_string(dep1 + 1) + ".Value", resourceTags[dep1].value);
|
||||
setParameter(std::string("ResourceTags") + "." + std::to_string(dep1 + 1) + ".Key", resourceTags[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getContainerName() const {
|
||||
return containerName_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setContainerName(const std::string &containerName) {
|
||||
containerName_ = containerName;
|
||||
setParameter(std::string("ContainerName"), containerName);
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getWorkingDir() const {
|
||||
return workingDir_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setWorkingDir(const std::string &workingDir) {
|
||||
workingDir_ = workingDir;
|
||||
setParameter(std::string("WorkingDir"), workingDir);
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getCommandContent() const {
|
||||
return commandContent_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setCommandContent(const std::string &commandContent) {
|
||||
commandContent_ = commandContent;
|
||||
setParameter(std::string("CommandContent"), commandContent);
|
||||
}
|
||||
|
||||
long RunRCCommandRequest::getTimeout() const {
|
||||
return timeout_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setTimeout(long timeout) {
|
||||
timeout_ = timeout;
|
||||
setParameter(std::string("Timeout"), std::to_string(timeout));
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getFrequency() const {
|
||||
return frequency_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setFrequency(const std::string &frequency) {
|
||||
frequency_ = frequency;
|
||||
setParameter(std::string("Frequency"), frequency);
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getContentEncoding() const {
|
||||
return contentEncoding_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setContentEncoding(const std::string &contentEncoding) {
|
||||
contentEncoding_ = contentEncoding;
|
||||
setParameter(std::string("ContentEncoding"), contentEncoding);
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getRepeatMode() const {
|
||||
return repeatMode_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setRepeatMode(const std::string &repeatMode) {
|
||||
repeatMode_ = repeatMode;
|
||||
setParameter(std::string("RepeatMode"), repeatMode);
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getWindowsPasswordName() const {
|
||||
return windowsPasswordName_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setWindowsPasswordName(const std::string &windowsPasswordName) {
|
||||
windowsPasswordName_ = windowsPasswordName;
|
||||
setParameter(std::string("WindowsPasswordName"), windowsPasswordName);
|
||||
}
|
||||
|
||||
bool RunRCCommandRequest::getKeepCommand() const {
|
||||
return keepCommand_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setKeepCommand(bool keepCommand) {
|
||||
keepCommand_ = keepCommand;
|
||||
setParameter(std::string("KeepCommand"), keepCommand ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<RunRCCommandRequest::Tags> RunRCCommandRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setTags(const std::vector<RunRCCommandRequest::Tags> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Value", tags[dep1].value);
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Key", tags[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getTerminationMode() const {
|
||||
return terminationMode_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setTerminationMode(const std::string &terminationMode) {
|
||||
terminationMode_ = terminationMode;
|
||||
setParameter(std::string("TerminationMode"), terminationMode);
|
||||
}
|
||||
|
||||
std::vector<RunRCCommandRequest::std::string> RunRCCommandRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setInstanceIds(const std::vector<RunRCCommandRequest::std::string> &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
for(int dep1 = 0; dep1 != instanceIds.size(); dep1++) {
|
||||
setParameter(std::string("InstanceIds") + "." + std::to_string(dep1 + 1), instanceIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getContainerId() const {
|
||||
return containerId_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setContainerId(const std::string &containerId) {
|
||||
containerId_ = containerId;
|
||||
setParameter(std::string("ContainerId"), containerId);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> RunRCCommandRequest::getParameters() const {
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setParameters(const std::map<std::string, std::string> ¶meters) {
|
||||
parameters_ = parameters;
|
||||
for(auto const &iter1 : parameters) {
|
||||
setParameter(std::string("Parameters") + "." + iter1.first, iter1.second);
|
||||
}
|
||||
}
|
||||
|
||||
bool RunRCCommandRequest::getEnableParameter() const {
|
||||
return enableParameter_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setEnableParameter(bool enableParameter) {
|
||||
enableParameter_ = enableParameter;
|
||||
setParameter(std::string("EnableParameter"), enableParameter ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getUsername() const {
|
||||
return username_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setUsername(const std::string &username) {
|
||||
username_ = username;
|
||||
setParameter(std::string("Username"), username);
|
||||
}
|
||||
|
||||
std::string RunRCCommandRequest::getLauncher() const {
|
||||
return launcher_;
|
||||
}
|
||||
|
||||
void RunRCCommandRequest::setLauncher(const std::string &launcher) {
|
||||
launcher_ = launcher;
|
||||
setParameter(std::string("Launcher"), launcher);
|
||||
}
|
||||
|
||||
58
rds/src/model/RunRCCommandResult.cc
Normal file
58
rds/src/model/RunRCCommandResult.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/RunRCCommandResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
RunRCCommandResult::RunRCCommandResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RunRCCommandResult::RunRCCommandResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RunRCCommandResult::~RunRCCommandResult()
|
||||
{}
|
||||
|
||||
void RunRCCommandResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CommandId"].isNull())
|
||||
commandId_ = value["CommandId"].asString();
|
||||
if(!value["InvokeId"].isNull())
|
||||
invokeId_ = value["InvokeId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RunRCCommandResult::getCommandId()const
|
||||
{
|
||||
return commandId_;
|
||||
}
|
||||
|
||||
std::string RunRCCommandResult::getInvokeId()const
|
||||
{
|
||||
return invokeId_;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,15 @@ void RunRCInstancesRequest::setKeyPairName(const std::string &keyPairName) {
|
||||
setParameter(std::string("KeyPairName"), keyPairName);
|
||||
}
|
||||
|
||||
bool RunRCInstancesRequest::getDeletionProtection() const {
|
||||
return deletionProtection_;
|
||||
}
|
||||
|
||||
void RunRCInstancesRequest::setDeletionProtection(bool deletionProtection) {
|
||||
deletionProtection_ = deletionProtection;
|
||||
setParameter(std::string("DeletionProtection"), deletionProtection ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RunRCInstancesRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
@@ -34,13 +34,22 @@ void SwitchOverMajorVersionUpgradeRequest::setDBInstanceName(const std::string &
|
||||
setParameter(std::string("DBInstanceName"), dBInstanceName);
|
||||
}
|
||||
|
||||
long SwitchOverMajorVersionUpgradeRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
long SwitchOverMajorVersionUpgradeRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SwitchOverMajorVersionUpgradeRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
void SwitchOverMajorVersionUpgradeRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SwitchOverMajorVersionUpgradeRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void SwitchOverMajorVersionUpgradeRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string SwitchOverMajorVersionUpgradeRequest::getType() const {
|
||||
@@ -52,13 +61,22 @@ void SwitchOverMajorVersionUpgradeRequest::setType(const std::string &type) {
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
int SwitchOverMajorVersionUpgradeRequest::getSwitchoverTimeout() const {
|
||||
return switchoverTimeout_;
|
||||
std::string SwitchOverMajorVersionUpgradeRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SwitchOverMajorVersionUpgradeRequest::setSwitchoverTimeout(int switchoverTimeout) {
|
||||
switchoverTimeout_ = switchoverTimeout;
|
||||
setParameter(std::string("SwitchoverTimeout"), std::to_string(switchoverTimeout));
|
||||
void SwitchOverMajorVersionUpgradeRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string SwitchOverMajorVersionUpgradeRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void SwitchOverMajorVersionUpgradeRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string SwitchOverMajorVersionUpgradeRequest::getRegionId() const {
|
||||
@@ -70,3 +88,39 @@ void SwitchOverMajorVersionUpgradeRequest::setRegionId(const std::string ®ion
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string SwitchOverMajorVersionUpgradeRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SwitchOverMajorVersionUpgradeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SwitchOverMajorVersionUpgradeRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void SwitchOverMajorVersionUpgradeRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long SwitchOverMajorVersionUpgradeRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SwitchOverMajorVersionUpgradeRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int SwitchOverMajorVersionUpgradeRequest::getSwitchoverTimeout() const {
|
||||
return switchoverTimeout_;
|
||||
}
|
||||
|
||||
void SwitchOverMajorVersionUpgradeRequest::setSwitchoverTimeout(int switchoverTimeout) {
|
||||
switchoverTimeout_ = switchoverTimeout;
|
||||
setParameter(std::string("SwitchoverTimeout"), std::to_string(switchoverTimeout));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user